Specifications

Table Of Contents
A - 32
Appendix 5.2 CHGA current value change command
This command is used to change the current value of a stopped axis.
Command
SP.CHGA (n1) (S1) (S2) (D1) (D2)
Command
S.CHGA (n1) (S1) (S2) (D1) (D2)
[Comman
symbol]
SP.CHG
S.CHG
[Execution
condition]
Completion device
(D1+0): Device to turn on one-scan after completion of
command start accept
(D1+1): Device to turn on one-scan after abnormal
completion of command start accept (In this
case, (D1+0) is turned on at the same time.)
Device to store completion status
Setting of current value to be changed
Head input/output No.
÷
16 of object
machine CPU
No. 2 machine: 3E1H
No. 3 machine: 3E2H
No. 4 machine: 3E3H
Axis No. ('Jn' = J1 to J8) of which current value is changed
Encoder axis No. ('En' = E1 to E8) of which current value is changed
Cam axis No. ('Cn' = C1 to C8) of which current value per rotation is changed
(1) CHGA command program example
This program is used to change the current value of axis No. 1 (No. 2 machine
motion CPU) from that of axis No. 1 (No. 1 machine PLC CPU) to "10".
H3E1 "J1" K10 M0 D0
RST
M100
SP.CHGA
Current value after change
M0
M1
M1
M100
U3E1
¥G48.0
U3E1
¥G516.0
Designation of object axis
Normally completed program
Abnormally completed program
CPU1
Local
CPU interrupt
accept fla
Number 2
machine axis 1
start accept fla
Example
No. 2