E
XAMPLE
MANUAL
47
Part 3: "Shows the status of outputs O1 to O18"
Program lines (main program).
N300 (PAGE3)
........................................... Shows page 3
(KEY = 0 )
..................................... Clears memory of last key pressed
N310 (P100=PLCO1)
................................. Assigns to parameter P100 the value of the outputs O1 to O32
(P199=85)
....................................... Row where to insert the symbol
(CALL 3)
......................................... Call to subroutine (it inserts symbols)
(P100=PLCO10)
............................... Assigns to parameter P100 the value of the outputs O10 to O41
(P199=155)
..................................... Row where to insert the symbol
(CALL 3)
......................................... Call to subroutine (it inserts symbols)
(IF KEY EQ $FFA5 GOTO N200)
... If "previous page" has been pressed, it goes on to line N200
(part 2)
(IF KEY EQ $FFAF GOTO N400)
... If "next page" has been pressed, it goes on to line N400
(part 4)
(GOTO N310)
................................... If not, it refreshes the status of the outputs
Program lines (subroutine that indicates the status of a row of outputs).
This subroutine analyzes the 10 least significant bits of parameter P100. If the bit is set to «1», it inserts
symbol 21 (lamp on, red color), if it is set to «0», it inserts symbol 22 (lamp off. background color).
Call parameters:
- P100 = Value of the outputs to be displayed.
- P199 = Row where to insert the symbols.
(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)
Содержание 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...