![Mitsubishi Electric A171SHCPUN Скачать руководство пользователя страница 121](http://html.mh-extra.com/html/mitsubishi-electric/a171shcpun/a171shcpun_programming-manual_238566121.webp)
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
5
−
13
[Error Details]
(1) In the following cases an operation error occurs and the CHGA instruction is
not executed.
•
When the setting for (D) is other than J1 to J8/J1 to J4.
(2) In the following cases, a minor error (error on control change) occurs and the
current value change/speed change is not executed.
When this happens, the error detection flag (M1607+20n) is turned ON and the
error code is stored in the minor error code area for the relevant axis.
•
When the axis designated in (D) for the current value change is in motion.
[Program Example]
The program shown below changes the current value for axis 2.
(1) Conditions
1) Current value change command ................... Leading edge (OFF
→
ON) of
X000
2) Current value change execution flag ............. M0
3) Axis 2 start accept flag
(used to determine whether axis 2 is stopped
or in motion)................................................... M2002 (axis 2 start accept flag)
(2) Program example
Start accept flag
When X000 comes ON, MO is turned ON.
0
2
CIRCUIT END
X000
M0
SET M0
M2002
CHGA J2 50
K
RST M0
Axis 2 current value change execution
request
M0 turned OFF.
Downloaded from