5. SEQUENCE PROGRAMS AND SFC PROGRAMS
5
−
11
5.3.2 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
M9012 M9010 M9011
(D)
n
!
!
!
!
!
7
!
!
!
Setting data
Setting range
(D)
J + No. of current
value change axis
J1 to J8 (A172SHCPUN)
J1 to J4 (A171SHCPUN)
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
D0 to D799
W0 to W3FF
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 M2008/M2001 to M2004) 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
Current value change completion
CHGA instruction
Start accept flag
ON
Execution command
Downloaded from