Mitsubishi Electric A173UHCPU Programming Manual page 117

Motion controller
Hide thumbs Also See for A173UHCPU:
Table of Contents

Advertisement

5. SEQUENCE PROGRAMS AND SFC PROGRAMS
[Error Details]
[Program Example]
Start accept flag
X000
0
M0 M2002
2
CIRCUIT END
(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 J32.
(2) In the following cases, a minor error (error on control change) occurs and the
current value change is not executed.
When this happens, the error detection flag (M2407+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.
The program shown below changes the current value for axis 2.
(1) Conditions
1) Current value change command ................... Leading edge (OFF→ON) of
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
SET
M0
K
CHGA
J2
50
RST
M0
5 − 7
X000
When X000 comes ON, M0 is turned ON.
Axis 2 current value change execution
request.
M0 turned OFF.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

A273uhcpu

Table of Contents