Hi,
it is possible by changing connection type in source code. Connection type is selected in function _daveConnectPLCTCP, where are some configuration arrays for individual types of connection.
For ethernet it is array b4. Here is b4 with description:
Hello, I'm using libnodave with a S7300 plc on ethernet, in a vb.net program i wrote.
I think that libnodave uses a plc 'pg comunication resource' when it opens a connection.
It causes problems when trying to connect more than 3 clients
Is it possible to configure libnodave to use 'OP communication' or 'others comunication resources' (comunication reserved to pc)?
Thanks
Andrea
Hi,
it is possible by changing connection type in source code. Connection type is selected in function _daveConnectPLCTCP, where are some configuration arrays for individual types of connection.
For ethernet it is array b4. Here is b4 with description:
uc b4={
0x11,0xE0,0x00,
0x00,0x00,0x01,0x00,
0xC1,2,0x4B,0x54,
0xC2,2,
0x01, // Connection type (1-PG;2-OP;3-Other/PC)
0x02, // Rack/Slot definition (bit 0..4 slot; bit 5..7 rack)
0xC0,1,9,
};
Little late but I hope it helps to someone
Vita
hello ,docbender ,i have done according to your method,but no effective.
i check nodave0.8.4.5 is below.
it is different with you?
uc b4={
0x11,0xE0,0x00,
0x00,0x00,0x01,0x00,
0xC1,2,1,0,
0xC2,2,0,1,
0xC0,1,9,
};
i try but fail!
please i need modify which nalue to "2"?
thanks!
dorry
Hi, i forget to write that there have to be repaired bug with assigning rack number. See this:
https://sourceforge.net/tracker/?func=detail&aid=3564705&group_id=61026&atid=495931
In stable version rack number is writing wrongly into "Connection type" byte.
So on line 4025 you need change code from this
dc->msgOut=dc->rack+1;
dc->msgOut=dc->slot;
to this:
dc->msgOut= dc->slot | (dc->rack << 5);
Thank very much.
I have try sucessfull.