Examples and tips
PROGRAMMING MANUAL
318
R
e
vi
si
o
n
1
.0
ENDIF
' Check SJDE-02ANA-OY address
IF NOT MECHATROLINK(0,4,1,system01) THEN
PRINT "Error getting address for ML04 unit 0, station 1"
SET_BIT(1,diag02)
ELSEIF VR(system01) <> $44 THEN
PRINT "Incorrect address for ML04 unit 0, station 1"
SET_BIT(1,diag02)
ENDIF
ENDIF
'Stop Mechatrolink Section
'Detection OK
IF VR(diag01)=0 AND VR(diag02)=0 AND VR(diag03)=0 THEN
SET_BIT(15,diag01)
'Invert input channels
INVERT_IN(16,OFF) 'POT
INVERT_IN(17,OFF) 'NOT
'Omron Auto Generated - Units End
'Start Standard Section
IF READ_BIT(15,diag01)=1 THEN
'Drive Parameters
BASE(2)
'Parameter data param_n/param_v/mask/size
TABLE(0,$20E,32,$FFFFFF,4)
TABLE(4,$210,45,$FFFFFF,4)
TABLE(8,$515,$800,$FFF0FF,2)
TABLE(12,-1)