Chapter 9. Modbus/TCP Client
GFK-2224Q
January 2017
141
Status Data
There are several types of status available to the client application program.
LAN Interface Status Bits (LIS Bits):
The LIS bits comprise bits 1–16 of the 80-bit status area. The location of
this 80-bit status area is assigned using the configuration software. The LIS bits contain information on the
status of the Local Area Network (LAN) and the Ethernet interface.
Channel Status Bits:
The Channel Status bits comprise bits 17–80 (64 bits) of the 80-bit status area. When
used for Modbus/TCP channels, these bits consist of a
connection open
bit and an unused bit, reserved for
future use, for each of the 16 channels that can be established. Status bits for unused channels are always set
to zero.
COMMREQ Status Word (CRS Word):
The 16-bit CRS word will receive the initial status of the communication
request. The location of the CRS word is assigned for each COMMREQ function in the COMMREQ Command
Block.
FT Output of the COMMREQ Function Block:
This output indicates that the PLC CPU detected errors in the
COMMREQ Function Block and/or Command Block and did not pass the Command Block to the Ethernet
interface.
The Logic Program Controlling Execution of the COMMREQ Function Block
The COMMREQ must be initiated by a one-shot to prevent the COMMREQ from being executed repeatedly each
CPU scan, which would overrun the capability of the Ethernet interface and possibly require a manual restart.
Checking certain status bits before initiating a COMMREQ function is also important. In particular, the LAN
Interface OK bit should be used as an interlock to prevent execution of the COMMREQ function when the
Ethernet interface is not operational. Following initiation of a COMMREQ on a channel, no further COMMREQs
should be issued to that channel until a non-zero CRS word has been returned to the program from the
Ethernet interface.
Содержание PACSystems RX7i
Страница 45: ......
Страница 54: ...Chapter 4 Configuration GFK 2224Q January 2017 41 Figure 18 CPE400 Advanced Ethernet Configuration LAN1 LAN 2 ...
Страница 80: ...Chapter 4 Configuration GFK 2224Q January 2017 67 ...
Страница 81: ......
Страница 122: ...Chapter 6 Programming EGD Commands GFK 2224Q January 2017 109 ...
Страница 142: ...Chapter 7 Programming SRTP Channel Commands GFK 2224Q January 2017 129 Figure 51 Sample Ladder Logic for COMMREQ ...
Страница 147: ......
Страница 193: ...Chapter 10 OPC UA Server 180 PACSystems RX7i RX3i TCP IP Ethernet Communications User Manual GFK 2224Q Example ...
Страница 202: ...Chapter 10 OPC UA Server GFK 2224Q January 2017 189 Figure 73 Machine Edition Online Command to Set Passwords ...
Страница 211: ......
Страница 253: ...Chapter 12 Diagnostics 240 PACSystems RX7i RX3i TCP IP Ethernet Communications User Manual GFK 2224Q ...
Страница 262: ...Chapter 13 Network Administration GFK 2224Q January 2017 249 ...
Страница 263: ......