
User Manual
Chapter 12
GFK-1503F
Jan 2020
Serial I/O / SNP / RTU Protocols
203
12.1.2
Command Block for the COMMREQ Function
The Command Block starts at the reference specified in COMMREQ parameter IN. The
length of the Command Block depends on the amount of data sent to the device.
The Command Block contains the data to be communicated to the other device, plus
information related to the execution of the COMMREQ. The Command Block has the
following structure:
address
Length (in words)
a 1
Wait/No Wait Flag
a 2
Status Pointer Memory
a 3
Status Pointer Offset
a 4
Idle Timeout Value
a 5
Maximum Communication Time
a 6 to a 133
Data Block
12.1.3
Example of the COMMREQ Function
In the example, when %M0021 is ON, a Command Block located starting at %R0032 is sent
to port 2 (communications task 20) of the CPU (rack 0, slot 0). If an error occurs processing
the COMMREQ, %Q0110 is set.
Figure 201