E
XAMPLE
MANUAL
51
;Part 1 (password)
N100
(IB1= INPUT “PASSWORD = “, 6)
(IF IB1 NE (123456) GOTO N100)
;
;Part 2 (status of the inputs)
N200
(PAGE2)
(KEY = 0)
N210
(P100=PLCI1)
(P199=85)
(CALL 2)
(P100=PLCI11)
(P199=155)
(CALL 2)
(P100=PLCI21)
(P199=225)
(CALL 2)
(P100=PLCI31)
(P199=295)
(CALL 2)
(IF KEY EQ $FFAF GOTO N300)
(GOTO N210)
;
(SUB 2)
(IF (P100 AND 1) EQ 0 SYMBOL 22,80,P199 ELSE SYMBOL 21,80,P199)
(IF (P100 AND 2) EQ 0 SYMBOL 22,130,P199 ELSE SYMBOL 21,130,P199)
(IF (P100 AND 4) EQ 0 SYMBOL 22,180,P199 ELSE SYMBOL 21,180,P199)
(IF (P100 AND 8) EQ 0 SYMBOL 22,230,P199 ELSE SYMBOL 21,230,P199)
(IF (P100 AND $10) EQ 0 SYMBOL 22,280,P199 ELSE SYMBOL 21,280,P199)
(IF (P100 AND $20) EQ 0 SYMBOL 22,330,P199 ELSE SYMBOL 21,330,P199)
(IF (P100 AND $40) EQ 0 SYMBOL 22,380,P199 ELSE SYMBOL 21,380,P199)
(IF (P100 AND $80) EQ 0 SYMBOL 22,430,P199 ELSE SYMBOL 21,430,P199)
(IF (P100 AND $100) EQ 0 SYMBOL 22,480,P199 ELSE SYMBOL 21,480,P199)
(IF (P100 AND $200) EQ 0 SYMBOL 22,530,P199 ELSE SYMBOL 21,530,P199)
(RET)
;
;Part 3 (status of the outputs)
N300
(PAGE3)
(KEY = 0)
N310
(P100=PLCO1)
(P199=85)
(CALL 3)
(P100=PLCO10)
(P199=155)
(CALL 3)
(IF KEY EQ $FFA5 GOTO N200)
(IF KEY EQ $FFAF GOTO N400)
(GOTO N310)
;
(SUB 3)
(IF (P100 AND 1) EQ 0 SYMBOL 22,105,P199 ELSE SYMBOL 21,105,P199)
(IF (P100 AND 2) EQ 0 SYMBOL 22,155,P199 ELSE SYMBOL 21,155,P199)
(IF (P100 AND 4) EQ 0 SYMBOL 22,205,P199 ELSE SYMBOL 21,205,P199)
(IF (P100 AND 8) EQ 0 SYMBOL 22,255,P199 ELSE SYMBOL 21,255,P199)
(IF (P100 AND $10) EQ 0 SYMBOL 22,305,P199 ELSE SYMBOL 21,305,P199)
(IF (P100 AND $20) EQ 0 SYMBOL 22,355,P199 ELSE SYMBOL 21,355,P199)
(IF (P100 AND $40) EQ 0 SYMBOL 22,405,P199 ELSE SYMBOL 21,405,P199)
(IF (P100 AND $80) EQ 0 SYMBOL 22,455,P199 ELSE SYMBOL 21,455,P199)
(IF (P100 AND $100) EQ 0 SYMBOL 22,505,P199 ELSE SYMBOL 21,505,P199)
(RET)
;
;Part 4 (motor consumption)
N400
(PAGE 4)
(KEY = 0)
N410
(SYMBOL ABS ROUND (ANAI1/0.5), 130, 120)
(SYMBOL ABS ROUND (ANAI2/0.5), 130, 190)
(SYMBOL ABS ROUND (ANAI3/0.5), 130, 260)
(IF KEY EQ $FFA5 GOTO N300)
(GOTO N410)
Whole program
Содержание CNC 8055 T
Страница 1: ...REF 1010 8055 T Examples manual CNC...
Страница 4: ...EXAMPLE MANUAL 1 TOOLS List of tools used in these examples...
Страница 7: ...4 EXAMPLE MANUAL User Notes...
Страница 35: ...32 EXAMPLE MANUAL User Notes...
Страница 39: ...36 EXAMPLE MANUAL User Notes...
Страница 45: ...42 EXAMPLE MANUAL User Notes...
Страница 46: ...43 Programming examples User screen customizing programs 8055T Machine diagnosis 44 Machining a pulley 52...