Commreq #12: Write Device Command - GE GFK-2892F User Manual

Pacsystems rx3i genius communications gateway
Table of Contents

Advertisement

Chapter 6. COMMREQ/Data_Init_Comm Programming

COMMREQ #12: Write Device Command

To send up to 128 bytes of data to another CPU on the bus, use the Write Device command. Any type of data
that can be addressed by its memory type and offset can be sent. This command causes the Gateway to issue
a Write Device datagram to the specified device.
Note that while the GCG001 does support this COMMREQ, the Genius devices which respond to such a
COMMREQ are not currently supported by the GCG001.
Using Write Device Messages Instead of Global Data
Write Device datagrams can replace Global Data when the target device is a PLC that is using a Genius Bus
Controller to connect to the Genius bus. However, Write Device will not work in this manner when the target
PLC is using a Genius Gateway to connect to the Genius bus.
Command Block for the Write Device Command
Address
Command Length
Address +1
No Wait
Address +2
Status Block memory type
Address +3
Status Block offset
Address +4
Idle timeout value
Address +5
Max. communications time
Address +6
Command number
Address +7
PROFINET Device number
Address +8
Genius Device Number
Target Memory Address,
Address +9
bytes 1, 2
Address +10
bytes 3, 4
Program name,
Address +11
characters 1, 2
Address +12
characters 3, 4
Address +13
characters 5, 6
Address +14
characters 7, 8
Block name,
Address +15
characters 1, 2
Address +16
characters 3, 4
Address +17
characters 5, 6
Address +18
characters 7, 8
Target Data length,
Address +19
(in words, bytes, or bits).
Address +20
to
Data
Address +n
72
14 – 78 depending on length of data specified in Address +19.
0
70 (%I), 72 (%Q), 8 (%R), 10 (%AI), 12 (%AQ) or 196 (%W)
Beginning address for the COMMREQ Status Block.
0
0
12
1-255: The device number of the targeted GCG Genius Gateway.
0-31: the SBA of the targeted Genius Device to which data is to be
transmitted.
Specify the location TO which the supplied data will be transmitted.
(It is not necessary to specify a source memory address when sending a
Write Device COMREQ to a computer).
Required to write to %P or %L memory in another PLC, otherwise zero.
If the target of the command is NOT a PLC, Address +11 through Address
+18 are ignored; they may contain any value.
Program names are limited to 7 characters. Character 8 and all other
trailing characters MUST be entered as nulls (00h).
Required to write to %L memory in a PLC, otherwise zero.
For %P, Address+15 through Address +18 are ignored.
Block names are limited to 7 characters. Character 8 and all other trailing
characters MUST be entered as nulls (00h).
This is the amount of data to be written to the targeted device. When
reading a PLC, data length is defined in bits or words, depending on the
memory type being written. For other types of devices, the length
entered here is as expected by the target device.
The maximum length is equal to 128 bytes.
Data to be transmitted, then written into the specified memory of the
target device.
PACSystems RX3i Genius Communications Gateway
GFK-2892F

Advertisement

Table of Contents
loading

Table of Contents