Omron TJ2-MC64 - PROGRAMMING Programming Manual page 319

Hide thumbs Also See for TJ2-MC64 - PROGRAMMING:
Table of Contents

Advertisement

Examples and tips
'if no alarm, notify RUN=$99 or BaseBlock=$BB
ELSEIF(DRIVE_STATUS AND 8) THEN
VR(servo_alarm+i*2)=$99
ELSE
VR(servo_alarm+i*2)=$bb
ENDIF
ENDIF
NEXT i
sys_error=SYSTEM_ERROR
RETURN
'--------------------------------------------------------
stop_all:
'In this example, if the application program is stopped
'suddenly all the movements are cancelled and all the axes
'are set to BaseBlock. Modify this section if you require
'a different STOP procedure
STOP "APPLICATION"
WDOG=0
FOR i= 0 TO max_axis
BASE(i)
IF MARK=0 THEN REGIST(-1)
AXIS_ENABLE=0
SERVO=0
CANCEL(1) 'Cancel NTYPE
WA(1)
CANCEL(1) 'Cancel possible program buffer
NEXT i
RAPIDSTOP 'Cancel MTYPE
RETURN
PROGRAMMING MANUAL
313

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tj1-prtTj1-drtTj1-cortTj1-mlGrt1-ml2Tj1-fl02

Table of Contents