Mitsubishi FX3U-232-BD User Manual page 568

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. Program example
M8002
FNC 79
Initial
pulse
FNC 79
FNC 79
FNC 79
FNC 79
FNC 79
X000
Sending command input
M 1
FNC 79
M8000
M8003
RUN
monitor
FNC 78
M10
Sending complete
M13
Error occurrence
X001
Error reset input
M11
FNC 78
FROM
Receiving
complete
M8000
FNC 79
G-40
-232IF)
2N
K 0
K 0
H409F
TO
Block No. BFM # Transfer
source
K 0
K 2
K 8
TO
H02
K 0
K 4
(STX)
TO
H03
K 6
K 0
(ETX)
TO
H02
K 0
K 8
(STX)
TO
H03
K 0
K 10
(ETX)
TO
PLS
FNC 12
K 9
MOV
FNC 12
H54
MOV
Program the steps for the remaining
data in the same way.
MOV H65 D202
MOV H73 D203
MOV H74 D204
MOV H20 D205
MOV H64 D206
MOV H61 D207
MOV H74 D208
MOV H61 D209
K 0
K1000 D200
TO
K 0
K 28 K4M10
FROM
Block No.
BFM # Transfer
source
K 0
K2001 D301
K 0
K 1
K1M0
TO
The communication format is transferred.
K 1
(409FH → BFM#0)
Number of
transfer points
The maximum number of receivable bytes is transferred.
K 1
(K 8 → BFM#2)
Sending header
K 1
(02H → BFM#4)
Sending terminator
K 1
(03H → BFM#6)
Receiving header
K 1
(02H → BFM#8)
Receiving terminator
K 1
(03H → BFM#10)
M 1
Sending command
Number of bytes to be sent
D 200
(K9 → D200)
D 201
( T )
( e )
Send data (9 bytes)
( s )
( t )
"Test
(
)
( d )
( a )
( t )
( a )
The number of bytes to be sent and send data are transferred.
K 10
D200(K 9) → BFM#1000
D201( t ) → BFM#1001
D202( e ) → BFM#1002
D203( s ) → BFM#1003
D204( t ) → BFM#1004
M 0
Sending/receiving is enabled.
The status is read.
K 1
(BFM#28 b15 to b0 → M25 to M10)
Number of
transfer points
Y 0
The status is monitored (if necessary).
Y 1
M 3
The error is reset.
The received data buffers are read.
K 8
BFM#2001 → D301
BFM#2002 → D302
BFM#2003 → D303
BFM#2004 → D304
Receiving complete
M 2
flag reset command
The commands are transferred.
K 1
(M3 to M0 → BFM#1 b3 to b0)
6 Practical Program Examples
6.2 Sending/Receiving 8-Bit Buffer Length Data
data"
) → BFM#1005
D205(
D206( d ) → BFM#1006
D207( a ) → BFM#1007
D208( t ) → BFM#1008
D209( a ) → BFM#1009
BFM#2005 → D305
BFM#2006 → D306
BFM#2007 → D307
BFM#2008 → D308

Advertisement

Table of Contents
loading

Table of Contents