Examples and tips
PROGRAMMING MANUAL
309
R
e
vi
si
o
n
1
.0
'Omron Auto Generated - Symbols End
'Omron Auto Generated - Local Variables
alarm_bit=0
i=0 'Servo Parameters
res=0 'Servo Parameters
res_act=0
res_ant=0
res_bit=0
run_act=0
run_ant=0
run_bit=0
stop_act=0
stop_ant=0
stop_bit=0
'Omron Auto Generated - Local Variables End
VR(signal_state) = 0
This subroutine tests whether the detected hardware is the expected
one or not. If the right hardware is detected, it sets the right values to
the axes and servo drives
At least the right system needs to be properly detected
'once
GOSUB system_detection
This subroutine stops all possible running programs and movements.
'Stop all potential programs movements
GOSUB stop_all
status_word=1