Chapter 6. COMMREQ/Data_Init_Comm Programming
GFK-2892F
March 2019
83
COMMREQ #25: Write Data Command
This command is used to set data values in a Genius High-speed Counter.
Command Block for the Write Data Command
Address
Command Length
7
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
25
A7
PROFINET Device number
1-255: The device number of the targeted GCG Genius Gateway.
A8
Genius Device Number
1-29: the SBA of the targeted Genius Device to which data is to be
transmitted.
A9
Command Code
See Read/Write Data Command Code Table below.
A10
Counter Number
1-4
A11
A12
Data to be written
bytes 1, 2
bytes 3, 4
Four bytes of data to be written to the target Genius HSC
(Byte 4 is MSB, Byte 1 is LSB)