FANUC Robotics America GFK-1541B User Manual

Page 143

Advertising
background image

4-28

TCP/IP Ethernet Communications for the Series 90™ PLC User's Manual

May 2002

GFK-1541B

4

Rung # 4: The BLKMV INT functions set up the COMMREQ Command Block contents. When
this rung is activated, the constant operands are moved into the memory beginning at the address
indicated in the instruction. The constant operands in this example are defined in the Open
Modbus/TCP Connection Example in this chapter.

5

6

Rung # 5: The COMMREQ Function Block has three input parameters and one output
parameter.

ƒ

The IN field points to the starting location of the Command Block parameters (%R00301 in
this example).

ƒ

The SYSID field of the COMMREQ Function Block defines the target rack and slot of the
Ethernet Interface to receive the command data. This is a hexadecimal word value that gives
the rack (high byte) and slot (low byte) location of the Ethernet Interface module. In the
example ladder diagram shown, which is taken from a VersaPro screen, the first three
number places (from left to right) are zeros and are not displayed; only the last number, 4,
appears. This indicates rack 0, slot 4. On a Logicmaster screen, all four digits will appear
(0004).

ƒ

The TASK field of the COMMREQ Function Block indicates which mailbox task ID to use
for the specified rack and slot. For the Series 90-30 Ethernet Interface this value should
always be zero.

ƒ

The FT output (energizes the OPEN_FLT coil in this example) is turned ON (set to 1) if there
were problems preventing the delivery of the Command Block to the Ethernet Interface. In
this case, the other status indicators are not updated for this COMMREQ.

Rung # 6: When ETH_READY is set the CRS word for the Open Modbus/TCP Connection
commreq is monitored for a status of 1, indicating that the Open commreq completed
successfully. The CRS word change to 1 sets coil OPEN_SUCCESS.

www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete

Advertising