R0
R100
UNITSEL U100 U1
SEND.US DT0U1 DT400DT100 U2
R100
SEND
execution
SEND execution conditions
Clear to send flag: ON
Sending flag: OFF
SEND processing
S: Data storage area (DT100)
n: Sent data amount (U2)
D1: Partner unit no. (U1)
D2: Destination address (DT400)
D3: Execution result code (DT0)
Master
communication
clear to send flag
X90 Y90
Master
communication
sending flag
(( ))
DF
S1 S2
S n D1 D2 D3
Settings for the communication
port
S1: CPU LAN port (U100)
S2: Connection 1 (U1)
■
Time chart (in the case of CPU with built-in ET-LAN)
Execute SEND
Master communication
sending flag
(Y90 - Y9F)
Master communication
sent flag
(Y70 - Y7F)
Sending data
Response reception
Master communication
clear to send flag
(X90 - X9F)
SEND instruction executable
conditions
Clear to send flag (X90 - X9F): ON
Sending flag (Y90 - Y9F): OFF
Sent flag (Y70 - Y7F):
Normal completion: OFF
Abnormal completion: ON
Sending flag (Y90 - Y9F):
While sending: ON
ED instruction executed following
response reception processing: OFF
Check that the
flag is OFF
Check that
the flag is ON
■
I/O allocation (in the case of CPU with built-in ET-LAN)
I/O number Name Description
X90 to X9F
Master communication
clear to send flag
Turns ON when a connection is established in the master
communication.
Y90 to Y9F
Master communication
sending flag
Turns ON during sending data based on the SEND/RECV
instruction.
Turns OFF when the ED instruction is executed after the completion
of the response receive processing.
Y70 to Y7F Sent flag
Reports completion result of sending data in genera-purpose
communication or master communication. (Normal completion: 0,
Abnormal completion: 1)
(Note 1) Each contact is used for reading the operation state. Do not write over it with a user program.
■
Precautions during programming (in the case of CPU with built-in ET-LAN)
● Use the UNITSEL instruction immediately before the SEND/RECV instruction to specify a
target connection number for communication.
7.4 MEWTOCOL-COM Master Communication (SEND)
WUME-FP7COM-07 7-23