Programming
10.10 Program jumps
Cylindrical grinding
312
Programming and Operating Manual, 07/2009, 6FC5398-4CP10-2BA0
Programming example for comparison operators
R1>1
;R1 greater than 1
1 < R1
;1 less than R1
R1<R2+R3
;R1 less than R2 plus R3
R6>=SIN( R7*R7)
; R6 greater than or equal to SIN (R7) squared
Programming example
N10 IF R1 GOTOF LABEL1
;If R1 is not null then go to the block
having LABEL1
...
N90 LABEL1: ...
N100 IF R1>1 GOTOF LABEL2
;If R1 is greater than 1 then go to the
block having LABEL2
...
N150 LABEL2: ...
...
N800 LABEL3: ...
...
N1000 IF R45==R7+1 GOTOB LABEL3
;If R45 is equal to R7 plus 1 then go to the
block having LABEL3
...
Several conditional jumps in the
block:
N10 MA1: ...
...
N20 IF R1==1 GOTOB MA1 IF R1==2 GOTOF MA2 ...
...
N50 MA2: ...
Note
The jump is executed for the first fulfilled condition.
Содержание SINUMERIK 802D
Страница 6: ...Preface Cylindrical grinding 6 Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 ...
Страница 12: ...Table of contents Cylindrical grinding 12 Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 ...
Страница 64: ...Define 4 10 User data Cylindrical grinding 64 Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 ...
Страница 152: ...System 8 7 Alarm display Cylindrical grinding 152 Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 ...
Страница 334: ...Programming 10 15 Oscillation Cylindrical grinding 334 Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 ...
Страница 394: ...Appendix A 5 Overview Cylindrical grinding 394 Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 ...
Страница 399: ...Index Cylindrical grinding Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 399 W Word structure 221 ...