Programming instructions

VI
Table of Contents NC Programming 17VRS
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
9.7 Conditional Branches Upon the Results of Arithmetic Operations..................................................... 9-16
Branch If Equal to Zero ‘BEQ’ ..................................................................................................... 9-16
Branch If Not Equal to Zero ‘BNE’............................................................................................... 9-16
Branch If Greater Than or Equal to Zero (If Minus) ‘BPL’ ........................................................... 9-16
Branch If Less Than Zero (If Minus) ‘BMI’ .................................................................................. 9-16
10 Variable Assignments and Arithmetic Functions................................................. 10-1
10.1 Variables .......................................................................................................................................... 10-1
Reading/Writing NC Variable Data.............................................................................................. 10-2
10.2 Angle Unit for Trigonometric Functions ‘RAD’, ‘DEG’...................................................................... 10-6
10.3 Mathematical Expressions............................................................................................................... 10-6
Operands .................................................................................................................................... 10-7
Operators .................................................................................................................................... 10-8
Parentheses ................................................................................................................................ 10-8
Functions..................................................................................................................................... 10-8
11 Special NC Functions ............................................................................................. 11-1
11.1 Position Values with Analog Drives.................................................................................................. 11-1
Positive Memorized Position ‘PMP’............................................................................................. 11-1
Negative Memorized Position ‘NMP’........................................................................................... 11-1
11.2 APR Sercos Parameters.................................................................................................................. 11-1
Digital Drive Data Read/Write ‘AXD’ ........................................................................................... 11-1
Electronic Axis Coupling and Table Interpolators .......................................................................11-4
11.3 Reading and Writing ZO Data to/from the NC Program ‘OTD’........................................................ 11-6
11.4 Read/Write Tool Data from the NC Program ‘TLD’ ......................................................................... 11-8
11.5 Reading and Writing D Corrections from the NC Program ‘DCD’ .................................................11-13
11.6 Reading and Writing Machine Data ............................................................................................... 11-14
Machine Data Utilization............................................................................................................ 11-14
Read and Write the Machine Data Element ‘MTD’ ................................................................... 11-15
11.7 Possible Allocations Between AXD, OTD, TLD, DCD, MTD.......................................................... 11-16
Handling AXD Commands ........................................................................................................ 11-16
Handling OTD Commands........................................................................................................ 11-17
Handling TLD Commands......................................................................................................... 11-17
Handling DCD Commands........................................................................................................ 11-17
Handling MTD Commands........................................................................................................ 11-18
Allocations Between AXD, OTD, TLD, DCD and MTD Commands.......................................... 11-18
12 NC Compiler Functions .......................................................................................... 12-1
12.1 Basics............................................................................................................................................... 12-1
12.2 Chamfers and Roundings ................................................................................................................ 12-1
12.3 Macro Technique ............................................................................................................................. 12-3
Enhancing NC Functions by Macro Technique........................................................................... 12-5
12.4 Modal Function................................................................................................................................. 12-6
12.5 Enhanced Look-Ahead Function...................................................................................................... 12-9
12.6 Graphical NC Editor ....................................................................................................................... 12-12