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

Page 103

Advertising
background image

4

4-15

GFK-1004B

Chapter 4 Programming Communications Requests

Establish Write Channel (2004)

The Establish Write Channel command requests that a channel be connected to a remote
PLC and that data from the local PLC be transferred (periodically) to the remote PLC.
The Command Block specifies the period, the number of writes to the server to perform,
and the timeout allowed in waiting for each transfer to complete. The first write is
performed immediately, regardless of the period specified.

Example Command Block

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

БББББ

БББББ

ББББББ

ББББББ

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

ББББББ

ББББББ

ББББББ

02004 (07d4)

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

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

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

Establish Write Channel Command number

БББББ

БББББ

Word 8

ББББББ

ББББББ

00006 (0006)

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

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

Channel number (6)

БББББ

БББББ

Word 9

ББББББ

ББББББ

00000 (0000)

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

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

Number of write repetitions (write indefinitely)

БББББ

БББББ

Word 10

ББББББ

ББББББ

00003 (0003)

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

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

Time units for write period (3=seconds)

БББББ

БББББ

Word 11

ББББББ

ББББББ

00007 (0007)

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

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

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

БББББ

БББББ

Word 12

ББББББ

ББББББ

00050 (0032)

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

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

Timeout for each write (500 ms)

БББББ

Word 13

ББББББ

00008 (0008)

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

Local PLC - memory type from which to write data (%R)

БББББ

БББББ

БББББ

Word 14

ББББББ

ББББББ

ББББББ

00050 (0032)

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

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

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

Local PLC - starting address from which to write data (%R50)

БББББ

БББББ

Word 15

ББББББ

ББББББ

00008 (0008)

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

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

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

БББББ

БББББ

Word 16

ББББББ

ББББББ

00100 (0064)

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

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

Remote PLC - starting address at which to store 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 write channel be set up. If

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

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