Mazak EIA/ ISO Pre-Processor Syntax
This document list the specific Mazak EIA/
1. Pre-processor setup
The Mazak EIA/
$FCEPP('PROCESS', 'COMMENTS', value )
$FCEPP('PROCESS', 'MESSAGES', value )
2. Command Abbreviations
The following commands can be coded by specifying at least 2 or more characters instead of the whole command name.
THEN
GOTO
WHILE
END
SIN
ASIN
COS
ACOS
TAN
ATAN
SQRT
ABS
ROUND
FIX
FUP
EXP
AND
XOR
3. Operators
EQ Is equal
NE Not equal
GE Greater or equal then
GT Greater than
LE Less or equal than
LT Less than
AND Logical AND
&& Logical AND
OR Logical OR
|| Logical OR
XOR Bitwise OR
4. Arithmetic operators
Subtraction |
|
Addition |
|
* |
Multiplication |
/ |
Division |
= |
Assignation |
[ ] |
Priority |
SIN[x] |
Sinus |
ASIN[x] |
ArcSinus |
COS[x] |
Cosinus |
ACOS[x] |
ArcCosinus |
TAN[x] |
Tangent |
ATAN[x] |
ArcTangeant |
SQRT[x] |
Square root |
ABS[x] |
Absolute value |
ROUND[x] |
Rounding value |
FIX[x] |
Nearest integer part closest to 0 |
FUP[x] |
Nearest integer part farthest to 0 |
LN[x] |
Logarithm |
EXP[x] |
Exponential value |
MOD[x] |
Modulo (get the remainder part) |
5. Unconditional branching
Syntax |
Description |
GOTO |
Jump to a specific sequence
number in the MCD.
GOTO 150
|
6. Conditional branching
Syntax |
Description |
IF |
Evaluate boolean condition and
optionally branch.
IF [ [212]EQ[442|2*12]EQ[44/
IF [#2GT5.5] THEN #4= |
IF/ |
Evaluate boolean condition and
execute block of codes.
IF [ [212]EQ[442|2*12]EQ[44/
G0 X100.
ENDIF
|
7. Repetition
Syntax |
Description |
WHILE [expr] DO n ... END n |
Execute a portion of blocks
between the WHILE and END as
long as the expression is true.
The DO number and END number
must match to form a valid
WHILE block.
WHILE [#3 GT 15] DO 1
G0X#3 #3= END 1 |
8. Variables
Syntax |
Description |
#n |
Variables are defined starting
from 1 (#n)
#1, #45, #123, ...
|
10. Other matching patterns
Description |
Description |
(Comments) |
Comments. Text enclosed between
( )
(this is a comment)
|
; |
The “;”marks the end of a
block. Everything after it is
ignored
N12 G0 Z120.5; After end of
block
|