Programming instructions

ADT-CNC4620 Programming Manual
- 15 -
Gear position control: S _1~16 principal axis rotation is controlled by switching 16-gear BCD
code. In gear position control mode, #061 comprehensive parameter must be 1, and port
parameters #070~073 specify the output port of gear position.
Analog control: S _0~maximum rotation; in analog control mode, #061 comprehensive
parameter must be 0, and it is required to set the maximum principal axis rotation of parameter #20.
The controller will output 0~10V analog voltage on principal axis port XS8 according to this
parameter. If S instruction and the instruction word that executes moving function are in the same
block, motion instruction and S instruction are executed at the same time.
2.3.1. Principal axis rotation switching control
Instruction format: S_1~16.
Instruction function: 16 gear BCD coding position control.
2.3.2. Principal axis rotation analog voltage control
Instruction format: M03 (M04) S____
Instruction function: set principal axis rotation, the system outputs 0~10V analog voltage to
control principal axis servo or inverter, achieve stepless speed change, and the
value of S instruction is saved after power off.
For example:
Program:
O0001; (program name)
M3 S300; (principal axis forward rotation)
G0 X100 Z50; (quickly move to point A)
G0 X50 Z0; (quickly move to point B)
G1 W-30 F200; (cut from point B to point C)
X80 W-20 F150; (cut from point C to point D)
G0 X100 Z50; (quickly back to point A)
M30; (program ends, principal axis/coolant off)
%
2.3.3. Principal axis rate
If principal axis rotation analog voltage control mode is valid, the actual rotation of the principal axis
can be adjusted in 10%~150% instruction rotation range by 15 levels (change 10% every level) with