Chapter 9. Modbus/TCP Client
144
PACSystems* RX7i & RX3i TCP/IP Ethernet Communications User Manual
GFK-2224Q
FT Output:
The FT output is set if the PLC CPU (rather than the Ethernet interface) detects that the COMMREQ
fails. In this case, the other status indicators are not updated for this COMMREQ.
The COMMREQ Command Block
When the COMMREQ function is initiated, the Command Block is sent from the PLC CPU to the Ethernet
interface. The Command Block contains the details of a command to be performed by the Interface.
The address in CPU memory of the Command Block is specified by the IN input of the COMMREQ Function
Block. This address can be any valid address within a word-oriented area of memory. The Command Block is
usually set up using either the BLOCK MOVE or the DATA INIT COMM programming instruction. The Command
Block has the following structure:
Word 1
Data Block Length (words)
Word 2
WAIT/NOWAIT Flag
Word 3
CRS Word Memory Type
Word 4
CRS Word Address Offset
Word 5
Reserved
Word 6
Reserved
Words 7 and up Data Block (Channel Command Details)
When entering information for the Command Block, refer to these definitions:
(Word 1) Data Block Length:
This is the length in words of the Data Block portion of the Command Block. The
Data Block portion starts at Word 7 of the Command Block. The length is measured from the beginning of the
Data Block at Word 7, not from the beginning of the Command Block. The correct value for each command,
and the associated length of each command, is specified in the next section.
(Word 2) WAIT/NOWAIT Flag:
This flag must be set to zero for TCP/IP Ethernet Communications.
COMMREQ Status Word:
The Ethernet interface updates the CRS word to show success or failure of the
command. Command words 3 and 4 specify the PLC memory location of the CRSW word.
(Word 3) COMMREQ Status Word Memory Type:
This word specifies the memory type for the CRS word. The
memory types are listed in the table below:
Type
Value
(Decimal)
Value
(Hex.)
Description
%R
8
08H
Register memory (word mode)
%AI
10
0AH
Analog input memory (word mode)
%AQ
12
0CH
Analog output memory (word mode)
%I
16
70
10H
46H
Discrete input memory (byte mode)
Discrete input memory (bit mode)
%Q
18
72
12H
48H
Discrete output memory (byte mode)
Discrete output memory (bit mode)
%T
20
74
14H
4AH
Discrete temporary memory (byte mode)
Discrete temporary memory (bit mode)
%M
22
76
16H
4CH
Discrete momentary internal memory (byte mode)
Discrete momentary internal memory (bit mode)
%G
56
86
38H
56H
Discrete global data table (byte mode)
Discrete global data table (bit mode)
%W
196
C4H
Word memory (word mode limited to %W1 - %W65536)
(Word 4) COMMREQ Status Word Address Offset:
This word contains the offset within the memory type
selected.
The status word address offset is a zero-based number.
For example, if you want %R1 as the
Содержание 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: ......