Receiving Control Method; Receive Processing With The Main Program - Mitsubishi Electric FX3U-ENET User Manual

Hide thumbs Also See for FX3U-ENET:
Table of Contents

Advertisement

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.
• For FX
* <<Storing the data received from the external device to the fixed buffer No.2 in D1000 and after>>
M8000
[=
[=
User applications are described at the area enclosed with
7 - 6
/FX
Series PLCs
3U
3UC
Program example for the unit No. 0
D100
H1
]
Receiving
status
D100
H8
]
Receiving
status
[MOV
[MOV
* <Adjustment when an odd number of data bytes is received
[ADD
D101
Received
data count
* <Word count from number of receive data
[DIV
D101
Received
data count
U0\
[BMOV
G2689
Fixed buffer
No.2
[MOV
.
MELSEC-F
U0\
G1611
D100
]
Receiving
Receiving
instruction/status
status
U0\
G2688
D101
D101
]
]
Received
Received
data count
data count
>
H1
D101
]
Received
data count
>
H2
D103
]
Received
word count
D1000
D103
]
Receive data
Received
storage head
word count
U0\
H2
G1611
]
Receiving
instruction/
status
[INCP
D102
]
Receive
abnormal
processing
[END
]
7 - 6

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u-enet-l

Table of Contents