Sending Operation; Overview Of Sending Operation - Panasonic AF7CPS Series User Manual

Table of Contents

Advertisement

6.2 Sending Operation

6.2.1 Overview of Sending Operation

 Instructions
Sending in the general-purpose communication is performed by formulating a data table for
sending on the given operation memory, and subsequently executing GPSEND instruction.
PLC
DT100
U 5
DT101
B A
DT102
D C
DT103
・・E
 Sample program
 Confirm that the unit is in the general-purpose communication mode (X8), and that the
general-purpose sending process is not in progress for the same port (Y8), and start up the
sending program.
 In the SSET instruction, convert a given message into an ASCII text string, and specify the
number of strings to be sent in the data register DT100, and the message to be sent from
the data register DT101.
 In the UNITSEL instruction, specify the slot No. (U0) and the COM. port No. (U1).
 In the GPSEND instruction, specify and execute the header of the table where the message
to be sent is saved (DT101) and the No. of characters (DT100).
R0
X8
DF
General purpose
communication
R100
Clear to send flag
R100
DF
R100
Y8
DF /
Send message/data
Send data based on GPSEND
Y8
General-purpose
communication
Sending active flag
SSET
UNITSEL
GPSEND . US
DT101
ABCDE (CR)
instruction
R101
"ABCDE"
DT100
S1
S2
U0
U1
S1
S2
DT100
DT0
S
n
D
6.2 Sending Operation
External device
00001
・・・・・・・・
00002
・・・・・・・・
・・・・・・
・・・・・・・・
・・・・・・
・・・・・・・・
R100
GPSEND execution conditions
Clear to send flag: ON
Sending active flag: OFF
Data conversion
S1: Sent Data
S2: Save Sent Data
DT100: No. of Sent Characters
DT101 onward: Sent Data
Settings for communication port
S1: Slot 0 (U0)
S2: COM1 (U1)
SEND processing
S: Header of Sent Data (DT101)
n: No. of Sent Characters (DT100)
D: Execution Result Code (DT0)
R101
Confirm sending completion
Reset GPSEND execution
conditions
6-3

Advertisement

Table of Contents
loading

Table of Contents