Establish read channel (2003), Example command block – GE GEFanuc Automation Programmable Control Products TCP/IP Ethernet Communications for the Series 90t-70 PLC GFK-1004B User Manual

Page 99

Advertising
background image

4

4-11

GFK-1004B

Chapter 4 Programming Communications Requests

Establish Read Channel (2003)

The Establish Read Channel Command requests that a channel be associated with a
remote PLC and that data from the remote PLC be transferred (periodically) to the local
PLC. The Command Block specifies the period, the number of reads from the remote to
perform, and the timeout allowed in waiting for each transfer to complete. The first
read is performed immediately, regardless of the period specified.

Example Command Block

Establish a channel (channel 5) to a remote PLC at IP address 3.0.0.1. Return the
COMMREQ Status word to %R10. Read remote PLC registers %R50-%R57 to local PLC
registers %R100-%R107. Repeat the read 10 times once every 7 seconds with a timeout
of 500 ms for each read.

БББББ

БББББ

ББББББ

ББББББ

Dec (Hex)

ББББББББББББББББББББ

ББББББББББББББББББББ

БББББ

БББББ

Word 1

ББББББ

ББББББ

00017 (0011)

ББББББББББББББББББББ

ББББББББББББББББББББ

Length of Channel Command Data Block (17 - 25 words)

БББББ

БББББ

Word 2

ББББББ

ББББББ

00000 (0000)

ББББББББББББББББББББ

ББББББББББББББББББББ

Always 0 (no-wait mode request)

БББББ

БББББ

Word 3

ББББББ

ББББББ

00008 (0008)

ББББББББББББББББББББ

ББББББББББББББББББББ

Memory type of CRS word (%R)

БББББ

БББББ

Word 4

ББББББ

ББББББ

00009 (0009)

ББББББББББББББББББББ

ББББББББББББББББББББ

CRS word address minus 1 (%R10)*

БББББ

БББББ

Word 5

ББББББ

ББББББ

00000 (0000)

ББББББББББББББББББББ

ББББББББББББББББББББ

Reserved

БББББ

БББББ

Word 6

ББББББ

ББББББ

00000 (0000)

ББББББББББББББББББББ

ББББББББББББББББББББ

Reserved

БББББ

БББББ

БББББ

Word 7

ББББББ

ББББББ

ББББББ

02003 (07d3)

ББББББББББББББББББББ

ББББББББББББББББББББ

ББББББББББББББББББББ

Establish Read Channel Command number

БББББ

БББББ

Word 8

ББББББ

ББББББ

00005 (0005)

ББББББББББББББББББББ

ББББББББББББББББББББ

Channel number (5)

БББББ

БББББ

Word 9

ББББББ

ББББББ

00010 (000A)

ББББББББББББББББББББ

ББББББББББББББББББББ

Number of read repetitions (read 10 times)

БББББ

БББББ

Word 10

ББББББ

ББББББ

00003 (0003)

ББББББББББББББББББББ

ББББББББББББББББББББ

Time units for read period (3=seconds)

БББББ

БББББ

Word 11

ББББББ

ББББББ

00007 (0007)

ББББББББББББББББББББ

ББББББББББББББББББББ

Number of time units for read period (every 7 seconds)

БББББ

БББББ

Word 12

ББББББ

ББББББ

00050 (0032)

ББББББББББББББББББББ

ББББББББББББББББББББ

Timeout for each read (500 ms)

БББББ

Word 13

ББББББ

00008 (0008)

ББББББББББББББББББББ

Local PLC - memory type at which to store data (%R)

БББББ

БББББ

БББББ

Word 14

ББББББ

ББББББ

ББББББ

00100 (0064)

ББББББББББББББББББББ

ББББББББББББББББББББ

ББББББББББББББББББББ

Local PLC - starting address at which to store data (%R100)

БББББ

БББББ

Word 15

ББББББ

ББББББ

00008 (0008)

ББББББББББББББББББББ

ББББББББББББББББББББ

Remote PLC - memory type from which to read data (%R)

БББББ

БББББ

Word 16

ББББББ

ББББББ

00050 (0032)

ББББББББББББББББББББ

ББББББББББББББББББББ

Remote PLC - starting address from which to read data (%R50)

БББББ

Word 17

ББББББ

00008 (0008)

ББББББББББББББББББББ

Remote PLC - number of memory units (8 registers)

БББББ

БББББ

Word 18

ББББББ

ББББББ

00001 (0001)

ББББББББББББББББББББ

ББББББББББББББББББББ

Remote PLC - PLC (node) address type (IP Address)

БББББ

БББББ

Word 19

ББББББ

ББББББ

00004 (0004)

ББББББББББББББББББББ

ББББББББББББББББББББ

Remote PLC - PLC (node) address length in words (4)

БББББ

БББББ

Word 20

ББББББ

ББББББ

00003 (0003)

ББББББББББББББББББББ

ББББББББББББББББББББ

Remote PLC - Register 1 of IP address (3)

БББББ

БББББ

Word 21

ББББББ

ББББББ

00000 (0000)

ББББББББББББББББББББ

ББББББББББББББББББББ

Remote PLC - Register 2 of IP address (0)

БББББ

БББББ

Word 22

ББББББ

ББББББ

00000 (0000)

ББББББББББББББББББББ

ББББББББББББББББББББ

Remote PLC - Register 3 of IP address (0)

БББББ

БББББ

БББББ

Word 23

ББББББ

ББББББ

ББББББ

00001 (0001)

ББББББББББББББББББББ

ББББББББББББББББББББ

ББББББББББББББББББББ

Remote PLC - Register 4 of IP address (1)

БББББ

БББББ

Word 24 - 27

ББББББ

ББББББ

ББББББББББББББББББББ

ББББББББББББББББББББ

Remote PLC - Program Name (needed for access to remote %P
or %L) (zero terminated and padded)

БББББ

БББББ

БББББ

Word 28 - 31

ББББББ

ББББББ

ББББББ

ББББББББББББББББББББ

ББББББББББББББББББББ

ББББББББББББББББББББ

Remote PLC - Program Block (needed for access to remote %L)
(zero terminated and padded)

* Word 4 (CRS word address) is the only zero-based address in the Command Block.

Only this address requires subtracting 1 from the intended address.

(Word 7) Channel Command Number:

Word 7 requests that a read channel be set up. If

the command is processed successfully, it will result in attempting the specified number
of transfers from the server to the client.

The term local PLC is
used here to identify the
client PLC

-the PLC

that initiates the
communications
request.

The term remote PLC
is used here to identify
the server PLC-the
PLC that responds to
the request.

Advertising