12.1
Format of the Communication Request Function
Serial I/O is implemented through the use of Communication Request (COMMREQ)
functions. The operations of the protocol, such as transmitting a character through the
serial port or waiting for an input character, are implemented through the COMMREQ
function block. In CPUE05, Serial I/O is not available for Port 1 when that port is
configured or forced for Station Manager operation.
The COMMREQ requires that all its command data be placed in the correct order (in a
command block) in the CPU memory before it is executed. The COMMREQ should then
be executed by a contact of a one-shot coil to prevent sending the data multiple times. A
series of Block Move (BLKMV) commands should be used to move the words to create a
command block in the Register tables.
The COMMREQ function has three inputs and one output. When the function receives
power flow, a command block of data is sent to the specified module.
First word of command block
Enable
COMM_
REQ
IN
Location
SYSID
Task identifier
TASK
FT
12.1.1
Parameters of the COMMREQ Function
Input/ Output
Choices
Description
enable
flow
When the function is energized, the
communications request is performed.
IN
R, AI, AQ
IN contains the first word of the command block.
SYSID
I, Q, M, T, G, R, AI, AQ,
constant
SYSID contains the rack number (most
significant byte) and slot number (least
significant byte) of the target device. For the
CPU, SYSID must specify rack/slot 0.
TASK
R AI, AQ, constant
TASK specifies the port for which the operation is
intended:
task 19 for port 1
task 20 for port 2
FT
flow, none
FT is energized if an error is detected processing
the COMMREQ:
•The specified target address is not present
(SYSID).
• The specified task is not valid for the device
(TASK).
• The data length is 0.
• The device’s status pointer address (in the
command block) does not exist.
226
GFK-1503E
VersaMax PLC User Manual
For public disclosure
Summary of Contents for VersaMax PLC
Page 16: ...Notes 16 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 38: ...Notes 38 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 50: ...Notes 50 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 92: ...Notes 92 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 112: ...Notes 112 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 224: ...Notes 224 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 292: ...Notes 292 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 316: ...Notes 316 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 317: ......