Sending Operation; Overview Of Sending Operation - Panasonic FP7 CPU Unit User Manual

Lan port communication
Table of Contents

Advertisement

General-Purpose Communication

7.2 Sending Operation

7.2.1 Overview of Sending Operation

Sending in the general-purpose communication is performed by formulating a data table for
sending on the given operation memory, and subsequently executing GPSEND command.
PLC
DT100
U 5
DT101
B A
DT102
D C
DT103
・・E
Note: The above figure indicates the data part. In communication via LAN, a header including size information of the sent data is added.
 Sample program
• Confirm that Connection 1 is established in the general-purpose communication mode (X80),
and that the general-purpose sending process is not in progress for the same port (Y80),
and start up the sending program.
• In the SSET command, 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 command, specify the slot No. (LAN port: U100) and the connection No. (U1).
• In the GPSEND command, specify and execute the header of the table where the message
to be sent is saved (DT101) and the No. of characters (DT100).
R0
X80
DF
Clear to send
general-purpose
R100
communication flag
R100
DF
R100
GPSEND . US
Y80
DF /
7-4
Send message/data
ABCDE
Send data based on GPSEND
command
R101
Y80
Sending general-
purpose
communication flag
SSET
"ABCDE"
S1
UNITSEL
U100
DT101
DT100
S
00001
00002
・・・・・・
・・・・・・
R100
GPSEND execution conditions
Clear to send flag: ON
Sending flag: OFF
Data conversion
S1: Sent Data
S2: Save Sent Data
DT100
S2
Settings for communication port
U1
S1: CPU LAN port (U100)
S2: Connection 1 (U1)
S1
S2
SEND processing
DT0
S: Header of Sent Data (DT101)
n: No. of Sent Characters (DT100)
n
D
D: Execution Result Code (DT0)
R101
Confirm sending completion
Reset GPSEND execution
conditions
External device
・・・・・・・・
・・・・・・・・
・・・・・・・・
・・・・・・・・
DT100: No. of Sent Characters
DT101 onward: Sent Data

Advertisement

Table of Contents
loading

Table of Contents