ï›™ Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition
0-5
0
04.00 Contents
0
Contents
Preface 0-13
Flexible NC Programming 1-21
1.1 Variables and arithmetic parameters ............................................................................. 1-22
1.2 Variable definition........................................................................................................... 1-25
1.3 Array definition ............................................................................................................... 1-30
1.4 Indirect programming..................................................................................................... 1-36
1.5 Assignments ..................................................................................................................1-38
1.6 Arithmetic operations/functions...................................................................................... 1-39
1.7 Comparison and logic operators .................................................................................... 1-41
1.8 Priority of operators........................................................................................................1-44
1.9 Possible type conversions.............................................................................................. 1-45
1.10 String operations............................................................................................................ 1-46
1.10.1 Type conversion........................................................................................................ 1-47
1.10.2 Chaining of strings .................................................................................................... 1-49
1.10.3 Conversion to lower/upper case ............................................................................... 1-50
1.10.4 Length of string ......................................................................................................... 1-51
1.10.5 Search for character/string in string.......................................................................... 1-51
1.10.6 Selection of a substring............................................................................................. 1-53
1.10.7 Selecting a single character...................................................................................... 1-54
1.11 CASE instruction ............................................................................................................1-56
1.12 Control structures........................................................................................................... 1-58
1.13 Program coordination..................................................................................................... 1-63
1.14 Interrupt routine.............................................................................................................. 1-68
1.15 Axis transfer, spindle transfer ........................................................................................ 1-76
1.16 NEWCONF: Setting machine data active (as from SW 4.3) ......................................... 1-80
1.17 WRITE: Write file (as from SW 4.3) .............................................................................. 1-81
1.18 DELETE: Delete file (as from SW 4.3) .......................................................................... 1-83
1.19 READ: Read lines in file (as from SW 5.2) .................................................................... 1-84
1.20 ISFILE: File available in user memory NCK (as from SW 5.2) ...................................... 1-87
1.21 CHECKSUM: Creation of a checksum over an array (> SW 5.2).................................. 1-88