
6.2
Sending Operation
6-3
6.2 Sending Operation
6.2.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 instruction.
External device
ABCDE (CR)
Send message/data
DT100
U 5
DT101
B A
DT102
D C
DT103
・・
E
00001
・・・・・・・・
00002
・・・・・・・・
・・・・・・
・・・・・・・・
・・・・・・
・・・・・・・・
PLC
Send data based on GPSEND
instruction
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 instruction, 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 instruction, specify the slot No. (U0) and the COM. port No. (U1).
In the GPSEND instruction, specify and execute the header of the table where the message
to be sent is saved (DT101) and the No. of characters (DT100).
R0
(
)
DF
SSET
DT100
“ABCDE”
R100
R100
R100
UNITSEL
U1
U0
GPSEND
.
US
DT101
DT0
DT100
X8
Y8
GPSEND execution conditions
Clear to send flag: ON
Sending active flag: OFF
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)
General purpose
communication
Clear to send flag
General-purpose
communication
Sending active flag
R100
Data conversion
S1: Sent Data
S2: Save Sent Data
DT100: No. of Sent Characters
DT101 onward: Sent Data
R101
(
)
DF
Y8
R101
(
)
DF /
Confirm sending completion
Reset GPSEND execution
conditions
S1
S2
S1
S2
S
n
D
Содержание AF7CPS Series
Страница 1: ......
Страница 7: ...1 Communication Functions of CPU Unit ...
Страница 14: ...Communication Functions of CPU Unit 1 8 ...
Страница 15: ...2 Installation and Wiring ...
Страница 19: ...3 I O Number Allocation ...
Страница 23: ...4 Setting Communication Conditions ...
Страница 42: ...Setting Communication Conditions 4 20 ...
Страница 43: ...5 MEWTOCOL Master Slave Communication ...
Страница 51: ...6 General Purpose Communication ...
Страница 66: ...General Purpose Communication 6 16 ...
Страница 67: ...7 Specifications ...
Страница 78: ...Specifications 7 12 ...
Страница 79: ...Record of changes Manual No Date Record of Changes WUME FP7CCET 01 DEC 2013 First Edition ...
Страница 80: ......
Страница 81: ......
Страница 82: ......