EasyManua.ls Logo

Mitsubishi FX2N-10GM - Page 248

Mitsubishi FX2N-10GM
274 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
FX Series Positioning Controllers Program Examples 9
9-26
6) Program in FX
2N
Series PLC
External signal
Connect a 6-digit digital switch to X000 to X007 and Y000 to Y003. (For a connection
example, refer to the attached connection diagram.)
X010: START PB
X011: STOP PB
X10
START PB
M100
M8029
Completion
signal
FNC 72
DSW
X 0 Y 0 D 0 K 2
SET M100
RST M100
FNC 22
MUL[P]
D 1
K10000
D 3
RST D 1
FNC 20
[D]ADD[P]
D 0 D 3 D 5
X11
STOP PB
M 1
M 2
M 1
FNC 79
[D]TO[P]
K 0 K100 D 5 K 1
M8000
FNC 79
TO
K 0 K 20 K2M0 K 1
END
Digital switch read: X000 to X007
Changeover output: Y000 to Y003
Data register: D1 and D0
D1 x 10,000 = D4, D3
Clears D1.
D1, D0 + D4, D3 = D6, D5
Start command
Stop command
Transfers the movement quantity from "D6 and
D5" to "BFM #101 and D100 (#101 and #100)".
Transfers "M7 to M0" to "BFM #20 (M9007 to
M9000)".
M1: M9001 Start command
M2: M9002 Stop command

Table of Contents

Other manuals for Mitsubishi FX2N-10GM

Related product manuals