EasyManua.ls Logo

Mitsubishi MELSEC-A series - Page 349

Mitsubishi MELSEC-A series
508 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...
7. APPLICATION INSTRUCTIONS
7 147
MELSEC-A
Program Examples DSFLP
(1) A program to change present position data of axis 2 to the BCD data set at X90
to XAF when X81 is turned ON.
Coding
24 LD X081
25 PLS M11
28 LD M11
29 SET M10
30 LD M10
31 ANI M2002
32 DBINP K8X090 D966
41 DSFLP D2 K0
48 RST M10
49 END
The present position data change storage flag
(M10) is set when X81 is turned ON.
When axis 2 is not started, the BCD data of X90
to XAF are stored in D966 and D967 (presen
t
position data change registers).
The DSFLP instruction is executed.
The present position data change storage flag is
reset.
24
28
30
X081
PLS M11
M11
SET M10
M10 M2002 P K8
DBIN X090 D966
P K
DSFL D2 0
RST M10

Table of Contents

Other manuals for Mitsubishi MELSEC-A series

Related product manuals