Panasonic FP7 Series Command Reference Manual page 806

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

Advertisement

15.2 GPTRNS / pGPSEND /GPSEND (General-Purpose Communication
Send Instruction)
● Using the SSET instruction, convert any given message into an ASCII string. Set the number
of sent characters to the data register DT100, and the sent message to the data register
DT101.
● The UNITSEL instruction is used to specify a slot number (LAN port: U100) and the
connection number (U1).
● In the GPTRNS / pGPSEND / GPSEND instruction, specify and execute the start of the table
that stores the message to be sent (DT101) and the number of characters in the data
(DT100).
GPTRNS instruction
R0
(
DF
)
R100
R100
GPSEND instruction
R0
X80
R100
R100
DF
( (
) )
R100
Y80
( (
DF /
) )
15-12
X80
Y80
SSET
UNITSEL
DT101
GPTRNS.US
S
R101
Y80
SSET
UNITSEL
DT101
GPSEND.US
S
R100
<
>
SET
"ABCDE"
DT100
S1
S2
U100
U1
S1
S2
DT100
DT0
n
D
R100
<
RST
>
R100
"ABCDE"
DT100
S1
S2
U100
U1
S1
S2
DT100
DT0
n
D
R101
GPTRNS execution conditions
X80: Clear to send flag: ON
Y80: Send active flag: OFF
Data conversion
S1: Sent data
S2: Sent data storage
DT100: Number of sent characters
DT101 and after: Sent data
Communication port settings
S1: CPU LAN port (U100)
S2: Connection 1 (U1)
Transmission processing
S: Header for sent data (DT101)
n: Number of sent characters (DT100)
D: Execution result code (DT0)
GPTRNS execution conditions reset
GPSEND execution conditions
X80: Clear to send flag:ON
Y80: Send active flag:OFF
Data conversion
S1: Sent data
S2: Sent data storage
DT100: Number of sent characters
DT101 and after: Sent data
Communication port settings
S1: CPU LAN port (U100)
S2: Connection 1 (U1)
Transmission processing
S: Header for sent data (DT101)
n: Number of sent characters(DT100)
D: Execution result code (DT0)
Transmission completion check
GPSEND execution conditions reset
WUME-FP7CPUPGR-12

Advertisement

Table of Contents
loading

Table of Contents