Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
vii
Table of contents
Preface ......................................................................................................................................................iii
1 Flexible NC programming ....................................................................................................................... 1-1
1.1 Variables and arithmetic parameters (user-defined variables, arithmetic parameters,
system variables) ....................................................................................................................... 1-1
1.2 Variable definition (DEF user-defined variables LUD, GUD, PUD) ........................................... 1-3
1.3 Array definitions (DEF, SET, REP) ............................................................................................ 1-7
1.4 Indirect programming ............................................................................................................... 1-13
1.4.1 Run string as parts program line (EXECSTRING)................................................................... 1-16
1.5 Assignments............................................................................................................................. 1-17
1.6 Arithmetic operations/functions................................................................................................ 1-18
1.7 Comparison and logical operations ......................................................................................... 1-20
1.7.1 Precision correction on comparison errors (TRUNC) .............................................................. 1-22
1.8 Priority of the operations .......................................................................................................... 1-24
1.9 Possible type conversions ....................................................................................................... 1-25
1.10 String operations...................................................................................................................... 1-26
1.10.1 Type conversion to STRING .................................................................................................... 1-27
1.10.2 Type conversion of STRING .................................................................................................... 1-28
1.10.3 Concatenation of strings .......................................................................................................... 1-28
1.10.4 Conversion to lower/upper case .............................................................................................. 1-30
1.10.5 Length of the string .................................................................................................................. 1-30
1.10.6 Look for character/string in the string ...................................................................................... 1-31
1.10.7 Selection of a substring............................................................................................................ 1-32
1.10.8 Selection of a single character................................................................................................. 1-33
1.11 CASE statement ...................................................................................................................... 1-34
1.12 Control structures..................................................................................................................... 1-36
1.13 Program coordination............................................................................................................... 1-39
1.14 Interrupt routine (SETINT, DISABLE, ENABLE, CLRINT)....................................................... 1-45
1.15 Axis replacement, spindle replacement (RELEASE, GET, GETD) ......................................... 1-54
1.16 Transfer axis to another channel (AXTOCHAN)...................................................................... 1-58
1.17 NEWCONF: Setting machine data effective............................................................................ 1-60
1.18 WRITE: Write file...................................................................................................................... 1-61
1.19 DELETE: Delete file ................................................................................................................. 1-63
1.20 READ: Read lines in the file..................................................................................................... 1-64
1.21 ISFILE: File present in the NCK user memory......................................................................... 1-66
1.22 FILEDATE/TIME/SIZE/STAT/INFO: File information............................................................... 1-67