Mitsubishi FX3U-232-BD User Manual page 564

Fx3u series
Hide thumbs Also See for FX3U-232-BD:
Table of Contents

Advertisement

FX Series PLC User's Manual - Data Communication Edition
Non-Protocol Communication (FX
4. Sequence program example
M8002
FNC 79
TO
Initial pulse
FNC 79
TO
FNC 79
TO
FNC 79
TO
FNC 79
TO
FNC 79
TO
X000
Sending command input
M 1
FNC 79
TO
M8000
M8003
RUN monitor
FNC 78
FROM
M10
Sending complete
M13
Error occurrence
X001
Error reset input
M11
FNC 78
FROM
Receiving
complete
M8000
FNC 79
TO
G-36
-232IF)
2N
K0
K0
H009F
Block No. BFM # Transfer
Number of
source
transfer points
K0
K2
K8
H02
K0
K4
(STX)
H03
K 0
K 6
K 1
(ETX)
H02
K 0
K 8
K 1
(STX)
H03
K 0
K 10
K 1
(ETX)
PLS
M 1
FNC 12
K 9
D 200
MOV
FNC 12
H6554 D 201
MOV
FNC 12
H7473 D 202
MOV
FNC 12
H6420 D 203
MOV
NC 12
H7461 D 204
MOV
FNC 12
H0061 D 205
MOV
Blank
K 0
K1000 D200
K 6
M 0
K 0
K 28 K4M10
K 1
Block No.
BFM #
Transfer
Number of
source
transfer points
Y 0
Y 1
M 3
K 0
K2001 D301
K 4
M 2
K 0
K 1
K1M0
K 1
6.1 Example of Sending/Receiving 16-Bit Buffer Length Data
The communication format is transferred.
K1
(009FH → BFM#0)
The maximum number of receivable bytes is transferred.
K1
(K 8 → BFM#2)
Sending header
K1
(02H → BFM#4)
Sending terminator
(03H → BFM#6)
Receiving header
(02H → BFM#8)
Receiving terminator
(03H → BFM#10)
Sending command
Number of bytes to be sent
(K9 → D200)
( e T)
( t s )
Send data (9 bytes)
( d
)
"Test
( t a )
(
a )
The number of bytes to be sent and send data are transferred.
D200(K 9) → BFM#1000
D201(e T) → BFM#1001
D202(t s) → BFM#1002
D203(d ) → BFM#1003
D204(t a) → BFM#1004
D205( a) → BFM#1005
Sending/receiving is enabled.
The status is read.
(BFM#28 b15 to b0 → M25 to M10)
The status is monitored (if necessary).
The error is reset.
The received data buffers are read.
BFM#2001 → D301
BFM#2002 → D302
BFM#2003 → D303
BFM#2004 → D304
Receiving complete
flag reset command
The commands are transferred.
(M3 to M0 → BFM#1 b3 to b0)
6 Practical Program Examples
data"

Advertisement

Table of Contents
loading

Table of Contents