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
Word Offset Value
Description
Word 1
Length of command data block
Always 16
Word 2
0
Always 0 (no-wait mode request)
Word 3
(See table on page 95)
Memory type of COMMREQ Status Word
Word 4
0-based
Offset of COMMREQ Status Word
Word 5
0
Reserved
Word 6
0
Reserved
Word 7
4001 (fa1H)
Write PLC Memory command number.
Word 8
Retry time, in milliseconds
The time between retries of command transfers.
Default is 1000ms.
Word 9
Local write buffer memory type
Memory type for the data that will be written, in the
local PLC.
Word 10
Local write buffer reference table
starting address (least significant word)
1-based offset in the local PLC.
Word 11
Local write buffer reference table
starting address (most significant word)
Word 12
Remote write location memory type
Memory type into which data will be written in the
remote PLC(s)
Word 13
Remote reference table write location
starting address (least significant word)
1-based offset in the remote PLC
Word 14
Remote reference table write location
starting address (least significant word)
Word 15
Write Length
0 to 1400 bytes, 0 to 700 words.
Word 16
Network address type
Must be 1. Indicates an IP address will be used.
Word 17
Network address length
Must be 4 for IP address.
Group ID (multicast) is not permitted.
Word 18 –
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 22
Reserved
Always 0
(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)
Summary of Contents for PACSystems RX7i
Page 45: ......
Page 80: ...Chapter 4 Configuration GFK 2224Q January 2017 67 ...
Page 81: ......
Page 122: ...Chapter 6 Programming EGD Commands GFK 2224Q January 2017 109 ...
Page 147: ......
Page 211: ......
Page 262: ...Chapter 13 Network Administration GFK 2224Q January 2017 249 ...
Page 263: ......