Script Toggle Velocity
Script Toggle Velocity
; Toggle_velocity.txt script
;
; The scripts checks state of digital input 7,8 and set drive speed accordingly
; IN 7 | IN 8 | V
; 0 | 0 | 0
; 1 | 0 | 200
; 0 | 1 | -200
; 1 | 1 | 0
;infinite loop
#While 1>0
#Label jog_zero
#Print JOG_zero
j 0
#Goto end_loop
#Label jog_positive
#Print JOG_plus_200
j 200
#Goto end_loop
#Label jog_negative
#Print JOG_minus_200
j -200
#Label end_loop
#Delay 500
#End_While