Chapter 6. Programming EGD Commands
GFK-2224Q January 2017 99
6.6 Write PLC Memory (4001)
The Write PLC Memory command can be used to write memory locations to one remote PACSystems PLC. Use
of this command does not require a configured produced / consumed exchange in the PLCs.
Write PLC Memory Command Block
Length of command data block
Always 0 (no-wait mode request)
Memory type of COMMREQ Status Word
Offset of COMMREQ Status Word
Write PLC Memory command number.
Retry time, in milliseconds
The time between retries of command transfers.
Default is 1000ms.
Local write buffer memory type
Memory type for the data that will be written, in the
local PLC.
Local write buffer reference table
starting address (least significant word)
1-based offset in the local PLC.
Local write buffer reference table
starting address (most significant word)
Remote write location memory type
Memory type into which data will be written in the
remote PLC(s)
Remote reference table write location
starting address (least significant word)
1-based offset in the remote PLC
Remote reference table write location
starting address (least significant word)
0 to 1400 bytes, 0 to 700 words.
Must be 1. Indicates an IP address will be used.
Must be 4 for IP address.
Group ID (multicast) is not permitted.
Word 21
IP Address of the remote PLC
Four integers, specified as one integer per word of
the dotted-decimal IP address of the remote PLC.
May not be a group IP address.
(Word 7) EGD Command Number: Word 7 a write PLC memory operation. If the command is processed
successfully, it will result in PLC reference memory data being sent from the server to the client.
(Word 8) Command Retry Time: Word 8 specifies the time (in milliseconds) the Ethernet Interface will wait
between retries when transferring the command. A total of four tries will be made to send the command. If no
response is received after the four tries (i.e. after four times the retry time value), an error status will be returned
in the COMMREQ status word. If the command retry is specified as zero, the default value of one second is used.
(Word 9) Local PLC - Memory Type: Words 9-11 specify the location in the local PLC where the Ethernet
Interface will get the data to be written to the remote PLC. Valid values for Word 9 are listed in the description
of Read PLC Memory Command. The amount of data to be transferred is specified by the number of memory
units of the data written to the remote PLC (Word 15).
(Words 10 - 11) Local PLC - Memory Starting Address: Words 10 and 11 determine the starting address in the
local PLC from which the data is to be written to the remote PLC. The value entered is the 32-bit offset (1-based)