Programming instructions

NC Programming 17VRS NC Compiler Functions
12-3
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
Chamfers or roundings cannot be inserted between two motion blocks if
one of the following functions is selected or de-selected:
Radius/diameter programming (G15, G16),
Changing planes (G17, G18, G19 and G20),
Transformation functions (G30, G31, G32),
Zero offsets and rotations (G50 through G59),
Dimension inch/mm (G70, G71),
Mirror function (G72, G73),
Homing axes (G74),
Travel to dead stop / canceling any axis pre-loading (G75, G76),
Repositioning and restarting (G77),
Scaling function (G78, G79),
Absolute/incremental dimension (G90, G91),
Jump instructions and program branches (BEQ, BER, BES, BEV, BMI,
BNE, BPL, BRA, BRF, BSR, BST, BTE, JVE JMP, JSR)
Jump labels.
For the NC blocks, between which a chamfer or rounding shall be in-
serted, the end points that lie in the current working plane must not be
specified by variables.
Note:
Inserting a specified chamfer or rounding between the pre-
ceding and the subsequent motion block must geometrically
be possible. If this is not possible, the compiler automatically
reduced the chamfer or rounding concerned to a correspond-
ing value (if necessary even to '0', without error message).
12.3 Macro Technique
A macro is the combination of individual instructions, that usually must be
programmed repeatedly, into a comprehensive instruction with its own
name.
DEFINE ... AS ...
A macro permits instructions to be combined, that must always be written
in the same sequence (for safety reasons, for example). It enables DIN G
codes (such as the drilling cycles G80 through G89) or DIN auxiliary func-
tions (such as M6) to be simulated. Furthermore, it enables functional
sequences that cannot be accessed from the PLC (such as spindle con-
trol during program mode) to be controlled by a single command from the
NC.
Besides the local macros, which the user may define within an NC pro-
gram and employ subsequently, the machine manufacturer can store
global macro definitions in the
NC Options
menu (in the
NC Programming
menu item). In contrast to the local macro definitions, they are valid in all
NC programs and in MDI operation of the graphical user interface.
Illegal commands
No variables
Macro
Syntax
Explanation
Global / local macros