GPTRNS instruction
R0
( )DF
SSET DT100"ABCDE"
R100
R100
UNITSEL U1U0
GPTRNS.US
DT101 DT0DT100
X8 Y8
GPTRNS execution conditions
X8: Clear to send flag: ON
Y8: Send active flag: OFF
Communication port settings
S1: Slot 0 (U0)
S2: COM1 (U1)
Transmission processing
S: Header for sent data (DT101)
n: Number of sent characters (DT100)
D: Execution result code (DT0)
Data conversion
S1: Sent data
S2: Sent data storage
DT100: Number of sent characters
DT101 and after: Sent data
GPTRNS execution conditions reset
S1 S2
S n D
S1 S2
R100
< >
RST
R100
< >
SET
GPSEND instruction
R100
R100
UNITSEL U1U100
GPSEND.US
DT101 DT0DT100
X80 Y80
GPSEND execution condition
X80: Clear to send flag: ON
Y80: Send active flag: OFF
Communication port settings
S1: CPU LAN port (U100)
S2: COM1 (U1)
Transmission processing
S: Header for sent data (DT101)
n: Number of sent characters(DT100)
D: Execution result code (DT0)
R100
Data conversion
S1: Sent data
S2: Sent data storage
DT100: Number of sent characters
DT101 and after: Sent data
DF /
Transmission completion check
GPSEND execution conditions reset
S1 S2
S n D
S1 S2
● For the GPSEND instruction, it is necessary to turn ON the execution condition until the end of
data sending, and turn OFF the execution condition at a scan in which the end of data sending
is confirmed.
■
Time chart (in the case of SCU)
● Data are sent in ascending order from low bytes of [S+1] in the table specified by the
GPTRNS / pGPSEND / GPSEND instruction.
● During sending, the general-purpose communication sending flags (Y8, Y9, YA, YB) are
turned ON. They turn OFF when sending is completed.
9.3 Sending Operation
9-12 WUME-FP7COM-07