![Mitsubishi Electric A173UHCPU Скачать руководство пользователя страница 115](http://html.mh-extra.com/html/mitsubishi-electric/a173uhcpu/a173uhcpu_programming-manual_238567115.webp)
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
5
−
5
5.3
Current Value Change Instructions (CHGA)
These instructions are used to change the current value of a stopped axis.
5.3.1 CHGA
instructions
Usable Devices
Bit Devices
Word (16 Bit) Devices
Constants
Pointers
Level
Carry
Flag
Flag Error
X
Y
M
L
S
B
F
T
C
D
W
R
A0 A1
Z
V
K
H
P
I
N
D
igi
t D
esi
gnati
on
N
u
m
b
er
of S
teps
S
ubset
Index
M901
2
M
9010
M
9011
(D)
n
!
!
!
!
!
7
(Note)
!
!
!
(Note) : Possible with indirect setting only.
Setting data
Setting range
(D)
J + No. of current
value change axis
J1 to J32
Direct
designation
mm : -2147483648 to
2147483647
×
10
-1
µ
m
inch : -2147483648 to
2147483647
×
10
-5
inch
deg : 0 to 35999999
×
10
-5
deg
PLS : -2147483648 to
2147483647 PLS
SEQUENCE PROGRAM
CHGA
Execution command
(D)
n
[Execution
condition]
n
Setting of current
value to be changed
Indirect
designation
D800 to D8191
W0 to W1FFF
R0 to R8191
(1) The following processing is executed at the leading edge (OFF
→
ON) of the
CHGA instruction:
1) The start accept flag (M2001 to M2032) corresponding to the axis
designated in (D) is turned ON.
2) The current value of the axis designated in (D) is changed to the current
value designated in n.
3) On completion of the current value change, the start accept flag is turned
OFF.
[Operation Timing]
OFF
ON
Execution command
CHGA instruction
Start accept flag
Current value change
completion