7 - 6 7 - 6
MELSEC-F
7 FIXED BUFFER COMMUNICATION (WITH THE NO PROCEDURE
CONTROL METHOD)
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.
M8000
[ADD
H1
D101
Received
data count
]
[MOV
D100
Receiving
status
]
[MOV
H2
]
[MOV
D101
]
[INCP
D102
Receive
abnormal
processing
]
[=
D100
Receiving
status
H1
]
[=
D100
Receiving
status
H8
]
]
[END
0
52
* <<Storing the data received from the external device to the fixed buffer No.2 in D1000 and after>>
U1\
G1611
Receiving
instruction/status
U1\
G2688
[MOV
D101
Received
data count
]
U1\
G2688
Received
data count
D101
Received
data count
[BMOV
D1000
Receive data
storage head
D103
Received
word count
]
U1\
G2689
Fixed buffer
No.2
[DIV
H2
D103
Received
word count
]
D101
Received
data count
U1\
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 .
Read the word count
for the received data
and receive data
FROM
instruction
Notice the receive status
and receive completion
of the fixed buffer
BFM#1611
R
BFM#1611=0001H
Data receiving
AC
K
(only in TCP
)
1)
2)
Data
receiving
W
0002H
3)
R
0004H
4)
Содержание FX3U-ENET
Страница 1: ...USER S MANUAL FX3U ENET ...
Страница 2: ......
Страница 159: ...8 6 8 6 MELSEC F 8 COMMUNICATION USING MC PROTOCOL MEMO ...
Страница 295: ...App 25 App 25 MELSEC F APPENDIX MEMO ...
Страница 297: ......