Chapter 9. Modbus/TCP Client
140
PACSystems* RX7i & RX3i TCP/IP Ethernet Communications User Manual
GFK-2224Q
Structure of the Communications Request
The Communications Request is made up of the following elements:
▪
The COMMREQ Function Block (ladder instruction)
▪
The COMMREQ Command Block
▪
The Channel Command
▪
Status Data (COMMREQ Status word, LAN Interface Status and Channel Status bits)
▪
The logic program controlling execution of the COMMREQ Function Block
The figure below illustrates the relationship of these elements:
INPUTS
AND
OUTPUTS
FOR COMMREQ
FUNCTION
COMMAND
BLOCK
ADDRESS
COMMREQ
FUNCTION BLOCK
DETAILS
OF THE
CHANNEL
COMMAND
COMMREQ
COMMAND BLOCK
COMMREQ
STATUS WORD
STATUS
CODES
COMMREQ
STATUS
WORD
ADDRESS
STATUS BITS
LAN INTERFACE STATUS
AND CHANNEL STATUS
BITS
INITIATES
COMMREQ
FUNCTION
BLOCK
CONTROL
LOGIC
Location in PLC memory
specified when configuring
the Interface using
Configuration Software
Figure 54: Phases of a COMMREQ Execution
COMMREQ Function Block
The COMMREQ Function Block is the ladder instruction that triggers the execution of the Channel command. In
the COMMREQ Function Block, you specify the rack and slot location of the Ethernet interface, a task value, and
the address of a location in memory that contains the Command Block. There is also a fault output on the
COMMREQ Function Block that indicates certain programming errors.
COMMREQ Command Block
The COMMREQ Command Block is a structure that contains information about the Channel command to be
executed. The Command Block consists of two parts:
Common Area -
includes the address of the COMMREQ Status word (CRS word).
Data Block Area -
describes the Channel command to be executed.
When the COMMREQ function is initiated, the Command Block is transferred to the Ethernet interface for action.
Modbus/TCP Channel Commands
The Channel commands are a set of client commands used to communicate with a server. Up to 32
channels
can be established. The channel number is specified in the Command Block for the Channel command. The
channel can be monitored using the Channel Status bits. The 32 Client connections of an Ethernet interface are
shared between all Client protocols. For example, if 16 Client connections are used for SRTP Channels, there
are 16 Client connections available for Modbus/TCP Channels. Any given channel can be assigned to only one
protocol at a time.
Содержание 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: ......