Panasonic FP7 Series Command Reference Manual page 803

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

Advertisement

15.2 GPTRNS / pGPSEND /GPSEND (General-Purpose Communication
● The maximum volume of data that can be sent in a single instance with GPTRNS,
pGPSEND, and GPSEND instructions is 16,384 bytes.
Sample program (in the case of SCU)
● This program checks that the general-purpose communication mode is on (X8:ON) and that
general-purpose sending is not in progress in the same port (Y8:OFF), and then starts up the
sending program.
● 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.
● Using the UNITSEL instruction, specify the slot number (U0) and the COM. port 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
WUME-FP7CPUPGR-12
X8
Y8
SSET
UNITSEL
DT101
GPTRNS.US
S
R100
<
>
SET
"ABCDE"
DT100
S1
S2
U0
U1
S1
S2
DT100
DT0
n
D
R100
<
RST
>
Send Instruction)
GPTRNS execution conditions
X8: Clear to send flag: ON
Y8: 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: 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)
GPTRNS execution conditions reset
15-9

Advertisement

Table of Contents
loading

Table of Contents