ETEL Doc. - Operation & Software Manual # DSC2P 903 / Ver. F / 3/6/05 Chapter E: Appendixes
Operation & Software Manual
Direct Drives & Systems 235
15.4 CAM example
:10.0 ;Label 10
PWR.0=1 ;Power on
WTM.0 ;Waits until the movement is finished
IND.0 ;Starts the homing
WTM.0 ;Waits until the movement is finished
SPD.0=360.0 ;Sets the maximum speed to 360 (ISO unit)
ACC.0=200.0 ;Sets the maximum acceleration to 200 (ISO unit)
:30.0 ;Label 30
POS.0=360.0 ;Goes to the position 360 (ISO unit)
WTM.0 ;Waits until the movement is finished
CAL.0=60 ;Calls the subroutine 60
POS.0=30.0 ;Goes to the position 30 (ISO unit)
WTM.0 ;Waits until the movement is finished
CAL.0=70 ;Calls the subroutine 70
JMP.0=30 ;Jumps to label 30
:60.0 ;Label 60
CAM.0=20 ;Global diminution to 20% of speed, acceleration and increases the waiting time (refer
to §13.3.7
)
WTT.0=1.0 ;Waits for 1 (ISO unit)
RET.0 ;Returns to the calling routine
:70.0 ;Label 70
CAM.0=100 ;Sets the default value of the CAM (no diminution of speed and acceleration)
WTT.0=3.0 ;Waits for 3 (ISO unit)
RET.0 ;Returns to the calling routine