7 - 6
MELSEC-F
FIXED BUFFER COMMUNICATION (WITH THE NO PROCEDURE
CONTROL METHOD)
7
7 - 6
7.3 Receiving Control Method
This section explains the control method when the Ethernet module receives data
from an external device.
7.3.1 Receive processing with the main program
This section explains the receiving process to be performed with the main program,
using an example in which the fixed buffer No. 2 and the area corresponding to
connection No. 2.
•For FX
3U/FX3UC Series PLCs
Program example for the unit No. 0
U0\
G2688
Received
data count
M8000
[ADD H1 D101
Received
data count
]
[MOV D100
Receiving
status
]
[MOV H2 ]
D101 ]
[INCP D102
Receive
abnormal
processing
]
[= D100
Receiving
status
H1 ]
[= D100
Receiving
status
H8 ]
]
[END
* <<Storing the data received from the external device to the fixed buffer No.2 in D1000 and after>>
U0\
G1611
Receiving
instruction/status
[MOV D101
Received
data count
]
D101
Received
data count
[BMOV D1000
Receive data
storage head
D103
Received
word count
]
U0\
G2689
Fixed buffer
No.2
[DIV H2 D103
Received
word count
]D101
Received
data count
U0\
G1611
Receiving
instruction/
status
*
<Adjustment when an odd number of data bytes is received
* <
Word count from number of receive data
>
>
User applications are described at the area enclosed with .