Gpsend (General-Purpose Communication Sending Command) - Panasonic FP7 User Manual

Cpu unit. com port communication
Hide thumbs Also See for FP7:
Table of Contents

Advertisement

7.3.3 GPSEND (General-Purpose Communication Sending Command)

 Command 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 command
immediately before GPSEND command.
Maintain the ON conditions for GPSEND command until sending is
completed and the sending general-purpose communication flag (Y8, Y9,
YA) turns OFF.
Confirm that the "clear to send general-purpose communication flag" for
the targeted COM port has turned ON, and execute GPSEND command.
When GPSEND command is executed for a communication port in the
sending process, the sending flag and the sending result are updated.
GPSEND command cannot be used in an interrupt program.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
7.3 Sending Operation
Setting range
US / SS (Note 1)
(Note 2)
1 to 4094, -1 to -4096
(Note 1) (Note 3)
(Note 4)
7-7

Advertisement

Table of Contents
loading

Table of Contents