Chapter 6
.
COMMREQ/Data_Init_Comm Programming
6.4.3
COMMREQ #3: Write Configuration Command
The Write Configuration command is used to send configuration data from the CPU to a
device on the Genius bus. The Gateway cannot write configuration data to another Genius
Gateway, to a Bus Interface module, or to a Hand-Held Monitor.
The PLC sends the intended configuration data from CPU memory to the PNC which then
transfers it to the Gateway. The Gateway schedules background Write Configuration
datagrams to the target Genius device. Once message transmission begins, the Gateway
sends the configuration data to the target Genius device, up to 16 bytes per bus scan. The
block does not use any of the new configuration data until it has all been received. No new
datagrams can be sent to the Genius device until the operation has been completed. When all
the data has been sent, the Gateway changes the status to 4 (Done), and this is replicated by
the PNC.
The length of the data sent with this command must exactly match the length specified for
the target Genius device. If the lengths are not equal, the Gateway returns a Syntax Error to
the COMMREQ Status Block.
GNIU does not support this COMMREQ. Use Machine Edition to download configuration data
to a GNIU.
Command Block for the Write Configuration Command
Address
Command Length
This number equals the sum of the amount of configuration data to be
sent to the target Genius device, plus 4. For example, for an RTD block,
which has 42 words of configuration data, you would enter 46 here.
See “COMMREQ #2: Read Configuration” for data lengths associated
with other Genius devices.
A1
No Wait
0
A2
Status Block memory type
70 (%I), 72 (%Q), 8 (%R), 10 (%AI), 12 (%AQ) or 196 (%W)
A3
Status Block offset
Beginning address for the COMMREQ Status Block.
A4
Idle timeout value
0
A5
Max. communications time 0
A6
Command number
3
A7
PROFINET Device number
1-255: The device number of the targeted GCG Genius Gateway.
A8
Genius Device Number
0-31: the SBA of the targeted Genius Device.
A9
Length of configuration
data (
in bytes
)
Up to 248 bytes (128 words) of configuration data may be written to
the target Genius device. See “COMMREQ #2: Read Configuration”
for data lengths associated with other Genius devices.
A10
to
An
Configuration Data
Configuration data for transfer to the target Genius device.
Formats are given in the
Genius I/O System User’s Manual
.
GFK-2892B
PACSystems RX3i Genius Communications Gateway User Manual
Public 59