Panasonic FP7 Series Command Reference Manual page 805

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

15.2 GPTRNS / pGPSEND /GPSEND (General-Purpose Communication
I/O allocation (in the case of CPU with built-in SCU)
COM Port No.
1
2
0
X8
X9
XA
Y8
Y9
YA
Y0
Y1
Y2
(Note 1)
Each contact is used for reading the operation state. Do not write over it with a user program.
(Note 2)
In the case of the GPTRNS and pGPSEND instructions, the sending flag and send results flag are
updated after the scan is complete.
(Note 3)
In the case of the GPSEND instruction, the sending flag and send results flag are updated after
sending is completed when the next GPSEND instruction is executed. If sending time is shorter than
scan time, the general-purpose communication sending flags (Y8, Y9, YA, YB) are turned OFF when
the GPSEND instruction is executed in the subsequent scan following completion of data sending. The
flags remain ON for at least one scan time.
I/O allocation (in the case of Serial Communication Unit)
COM Port No.
1
2
3
X8
X9
XA
Y8
Y9
YA
Y0
Y1
Y2
(Note 1)
Each contact is used for reading the operation state. Do not write over it with a user program.
(Note 2)
In the case of the GPTRNS and pGPSEND instructions, the sending flag and send results flag are
updated after the scan is complete.
(Note 3)
In the case of the GPSEND instruction, the sending flag and send results flag are updated after
sending is completed when the next GPSEND instruction is executed. If sending time is shorter than
scan time, the general-purpose communication sending flags (Y8, Y9, YA, YB) are turned OFF when
the GPSEND instruction is executed in the subsequent scan following completion of data sending. The
flags remain ON for at least one scan time.
Sample program (in the case of CPU with built-in ET-LAN)
● This program checks that Connection 1 is established in the general-purpose communication
mode (X80:ON) and that general-purpose sending is not in progress in the same port
(Y80:OFF), and then starts up the sending program.
WUME-FP7CPUPGR-12
Name
General-purpose
communication clear to
send flag
General-purpose
communication sending
flag
Sent flag
Name
4
General-purpose
XB
communication clear
to send flag
General-purpose
YB
communication
sending flag
Y3
Sent flag
Turns ON when the unit is set to the general-purpose
communication mode.
Turns ON when sending with general-purpose communication
mode.
Turns OFF when the sending process is completed.
Reports completion result of sending data in genera-purpose
communication or master communication.
(Normal completion: 0, Abnormal completion: 1)
Turns ON when the unit is set to the general-purpose
communication mode.
Turns ON when sending with general-purpose
communication mode.
Turns OFF when the sending process is completed.
Reports completion result of sending data in genera-
purpose communication or master communication.
(Normal completion: 0, Abnormal completion: 1)
Send Instruction)
Description
Description
15-11

Advertisement

Table of Contents
loading

Table of Contents