
6.2
Sending Operation
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
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]
Содержание AFP7CCET1
Страница 1: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 15: ...2 Installation and Wiring Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 19: ...3 I O Number Allocation Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 42: ...Setting Communication Conditions Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 51: ...6 General Purpose Communication Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 66: ...General Purpose Communication Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 67: ...7 Specifications Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 78: ...Specifications Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...