Gpsend (General-Purpose Communication Sending Instruction) - Panasonic AFP7CPS4E User Manual

Fp7 series, programmable controller
Table of Contents

Advertisement

9.3.3 GPSEND (General-Purpose Communication Sending Instruction)

 Instruction format
Items
Settings
i
Specify the operation unit.
S
Specify the header of the source node data area.
n
Specify the No. of sent bytes.
Specify the device area in the source node to save the execution
D
result (one word).
(Note 1) When a K constant (integer with a symbol) is specified for the No. of sent bytes [n], select SS for operation
unit [i]. When a U constant (integer without a symbol) or an H constant (hexadecimal integer), select US for
operation unit [i].
(Note 2): Device that can be specified for S are: WX, WY, WR, WL, DT, LD.
(Note 3) If a negative value is specified, the end code is not automatically added to the sent data. (Where SCU is
targeted)
(Note 4): Device that can be specified for D are: WX, WY, WR, WL, DT, LD.
Once the sending process is completed, the sent bytes are saved. When an error occurs, "FFFFH" is saved.
KEY POINTS
Specify the port targeted for communication, using UNITSEL instruction
immediately before GPSEND instruction.
Maintain the ON conditions for GPSEND instruction until sending is
completed and the general-purpose communication sending active flag (Y8,
Y9, YA, YB) turns OFF.
Confirm that the "General-purpose communication Clear to send flag" for
the targeted COM port has turned ON, and execute GPSEND instruction.
When GPSEND instruction is executed for a communication port in the
sending process, the sending active flag and the sending result are updated.
GPSEND instruction cannot be used in an interrupt program.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
9.3 Sending Operation
Setting range
US / SS (Note 1)
(Note 2)
1 to 4094, -1 to -4096
(Note 1) (Note 3)
(Note 4)
9-7

Advertisement

Table of Contents
loading

Table of Contents