GE PACSystems RXi User Manual page 180

Distributed io controller
Table of Contents

Advertisement

Command 3000 Example
Establish a channel (Channel 5) to a remote Modbus TCP device at IP address 10.0.0.1.
Return the COMMREQ Status word to %R10.
Word 1
Word 2
Word 3
Word 4
Word 5
Word 6
Word 7
Word 8
Word 9
Word 10
Word 11
Word 12
Word 13
Word 14
(Word 7) Channel Command Number: Word 7 is the command id for an Open Modbus TCP Client
Connection COMMREQ. If successful a TCP connection with the specified device is
allocated.
(Word 8) Channel Number: Word 8 specifies the channel number to allocate for the Modbus TCP
Client connection. Channels 1–16 can be used for Client communications.
(Word 9) Address Type: Word 9 specifies the type of IP Address specified for the remote device.
A value of one (1) is required in this word.
(Word 10) Length of IP Address: Word 10 specifies the length of the IP Address. A value of four
(4) is required in this word.
(Word 11) IP Address 1
(Word 12) IP Address 2
Address.
(Word 13) IP Address 3
(Word 14) IP Address 4
6
Word 4 (CRS word address) is the only zero-based address in the Command Block. Subtract 1 from
the intended address for this value only. This note applies to all COMMREQ examples.
GFK-2816F
Chapter 8. Gigabit Ethernet (GbE) Interface Overview and Operation
Dec
(Hex)
00008 (0008)
Length of Channel command Data Block
00000 (0000)
Always 0 (no-wait mode request)
00008 (0008)
Memory type of CRS word (%R)
00009 (0009)
CRS word address minus 1 (%R10)
00000 (0000)
Reserved
00000 (0000)
Reserved
03000 (0BB8) Open Modbus TCP Client Connection
00005 (0005)
Channel number (5)
00001 (0001)
Remote Device Address Type
00004 (0004)
Length of Remote Device Address
00010 (0010)
Numeric value of 1
00000 (0000)
Numeric value of 2
00000 (0000)
Numeric value of 3
00001 (0001)
Numeric value of 4
Octet: Word 10 specifies the value of the first octet of the IP Address.
st
Octet: Word 11 specifies the value of the second octet of the IP
nd
Octet: Word 12 specifies the value of the third octet of the IP Address.
rd
Octet: Word 13 specifies the value of the fourth octet of the IP Address.
th
August 2015
6
st
Octet
nd
Octet
rd
Octet
th
Octet
167

Advertisement

Table of Contents
loading

This manual is also suitable for:

Icrxictl000

Table of Contents