P
Hi,
I am preparing
C/C++ communication code sequence ( class ) for sending/receiving commands using windows sockets FINS over TCP. The PLC is CP1L-L14 , Ethernet Option board is CP1W-CIF41.
I have a question - when I build FINS command array to send via socket (as in Omron Operation Manual):<pre>
fins_cmnd[0] = 0x80; /* ICF */
fins_cmnd[1] = 0x00; /* RSV */
fins_cmnd[2] = 0x02; /* GCT */
fins_cmnd[3] = 0x00; /* DNA */
fins_cmnd[4] = srv_node_no; /* DA1 *//* Ethernet Unit FINS NODE NUMBER*/
fins_cmnd[5] = 0x00; /* DA2 */
fins_cmnd[6] = 0x00; /* SNA */
fins_cmnd[7] = cli_node_no; /* SA1 *//* WS FINS NODE NUMBER OBTAINED
AUTOMATICALLY*/
fins_cmnd[8] = 0x00; /* SA2 */
fins_cmnd[9] = ++sid; /* SID */
fins_cmnd[10] = 0x01; /* MRC */
fins_cmnd[11] = 0x01; /* SRC */
fins_cmnd[12] = 0x82; /* VARIABLE TYPE: DM*/
fins_cmnd[13] = 0x00; /* READ START ADDRESS: 100*/
fins_cmnd[14] = 0x64;
fins_cmnd[15] = 0x00;
fins_cmnd[16] = 0x00; /* WORDS READ: 150*/
fins_cmnd[17] = 0x96;</pre>
What to put to fins_cmnd[12] for variable
D0 - D32767
W0-W511
CIO0 - CIO6143
C0000-C4095
and to fins_cmnd[13] to assign begin and end addresses.
Where can I get information about this structure
fins_cmnd[]? Filling it for accessing PLC's registers for FINS over TCP?
I can't find answer (details) of the fins command structure in this case (addressing)in www or the manuals...
Thanks
pmazniker(et sign)gmail.com
I am preparing
C/C++ communication code sequence ( class ) for sending/receiving commands using windows sockets FINS over TCP. The PLC is CP1L-L14 , Ethernet Option board is CP1W-CIF41.
I have a question - when I build FINS command array to send via socket (as in Omron Operation Manual):<pre>
fins_cmnd[0] = 0x80; /* ICF */
fins_cmnd[1] = 0x00; /* RSV */
fins_cmnd[2] = 0x02; /* GCT */
fins_cmnd[3] = 0x00; /* DNA */
fins_cmnd[4] = srv_node_no; /* DA1 *//* Ethernet Unit FINS NODE NUMBER*/
fins_cmnd[5] = 0x00; /* DA2 */
fins_cmnd[6] = 0x00; /* SNA */
fins_cmnd[7] = cli_node_no; /* SA1 *//* WS FINS NODE NUMBER OBTAINED
AUTOMATICALLY*/
fins_cmnd[8] = 0x00; /* SA2 */
fins_cmnd[9] = ++sid; /* SID */
fins_cmnd[10] = 0x01; /* MRC */
fins_cmnd[11] = 0x01; /* SRC */
fins_cmnd[12] = 0x82; /* VARIABLE TYPE: DM*/
fins_cmnd[13] = 0x00; /* READ START ADDRESS: 100*/
fins_cmnd[14] = 0x64;
fins_cmnd[15] = 0x00;
fins_cmnd[16] = 0x00; /* WORDS READ: 150*/
fins_cmnd[17] = 0x96;</pre>
What to put to fins_cmnd[12] for variable
D0 - D32767
W0-W511
CIO0 - CIO6143
C0000-C4095
and to fins_cmnd[13] to assign begin and end addresses.
Where can I get information about this structure
fins_cmnd[]? Filling it for accessing PLC's registers for FINS over TCP?
I can't find answer (details) of the fins command structure in this case (addressing)in www or the manuals...
Thanks
pmazniker(et sign)gmail.com