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

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

Advertisement

General-Purpose Communication

7.3 Sending Operation

7.3.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 command.
PLC
DT100
U 5
DT101
B A
DT102
D C
・・E
DT103
 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 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. (U0) and the COM. port 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
X8
DF
Clear to send
general purpose
R100
communication flag
R100
DF
R100
Y8
DF /
7-4
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Send message/data
Send data based on GPSEND
Y8
Sending general-
purpose
communication flag
SSET
UNITSEL
GPSEND . US
DT101
S
ABCDE (CR)
command
R101
R100
"ABCDE"
DT100
S1
S2
U0
U1
S1
S2
DT100
DT0
n
D
R101
External device
・・・・・・・・
00001
・・・・・・・・
00002
・・・・・・
・・・・・・・・
・・・・・・
・・・・・・・・
GPSEND execution conditions
Clear to send flag: ON
Sending 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)
Confirm sending completion
Reset GPSEND execution
conditions

Advertisement

Table of Contents
loading

Table of Contents