Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Int WINAPI PcdGetChannelSetup(LPCTSTR lpszChannel, LPOPE
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00751156
Message ID:
00751398
Vues:
15
Hi Anatoliy

Poor documentation from the developer, it showed the PcdGetChannelSetup
did not return enough information to be put to the channel.
So I used tracewin and there discovered what the Saia-Burgess people
did on the launch of the program (dev tool for PLC) I used the
same function witch retrieves the info from a ini file.
Everything match and I was able to communicate with the PLC trough
the ethernet module.

But now I have another problem.

I have made some kind of a COM witch manage the trafic (communication)
between the PC and the PLC. My Idea was to access the PLCs from
several PC using DCOM.

The factory Im at now have 5 PLCs witch is run trough a RS485 serial
port. They are adressed with station numbers. The 6 PLC has a built in
ethernet card and want to do communication with it trough the network.

So I already have a foxserver.exe witch is called from the other
exe
PUBLIC oFoxServer

if client_server=1
oFoxServer=CREATEOBJECT("FoxServer.COMtest") && Local
else
oFoxServer=CREATEOBJECTEX(visclsid,servernavn) && remote
endif

My new exe to communicate trough the ethernet have this in the init part

PUBLIC oFoxServer

if client_server=1
oFoxServer=CREATEOBJECT("saiaether.ethernett") && Local
else
oFoxServer=CREATEOBJECTEX(visclsid,servernavn) && remote
endif

if Type('OFoxServer')= "O"
=comarray(oFoxServer,1)
Endif

I'm using /regserver
racmgr32 to see if they are registered.
then running clireg32

I start the first application with use foxserver.exe and see it
in the process picture.
Trying to start the new application witch use saiaether.exe
Im getting error 0x80020009 witch is exception occured.
Read in the microsoft kb and there is something about
set procedure to additive but Im not using it have acctualy modified
the testcom.class so in my foxserver exe I only have one class
foxserver.comtest
and in my saiaether.exe I also have one class
sethernett.ethernet

I have no idea how to get the to exe to run simultaneously.

Best regards
Per Simmersholm
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform