Programming manual
CNC 8055
CNC 8055i
HIGH-LEVEL LANGUAGE PROGRAMMING
13.
·M· & ·EN· MODELS
SOFT: V02.2X
·339·
Variables
13.2 Variables
The CNC has a number of internal variables that may be accessed from the user program, from
the PLC program or via DNC. Depending on how they are used, these variables may be read-only
or read-write.
These variables may be accessed from the user program using high-level commands. Each one
of these variables is referred to by its mnemonic that must be written in upper-case (capital) letters.
• Mnemonics ending in (X-C)indicate a set of 9 elements formed by the corresponding root
followed by X, Y, Z, U, V, W, A, B and C.
ORG(X-C) -> ORGX ORGY ORGZ
ORGU ORGV ORGW
ORGA ORGB ORGC
• Mnemonics ending in n indicate that the variables are grouped in tables. To access an element
of any of these tables, indicate the field of the desired table using the relevant mnemonic followed
by the desired element.
TORn -> TOR1 TOR3 TOR11
The variables and block preparation
The variables that access the real values of the CNC interrupt block preparation. The CNC waits
for that command to be executed before resuming block preparation. Thus, precaution must be taken
when using this type of variable, because if they are inserted between machining blocks that are
working with compensation, undesired profiles may be obtained.
Example: Reading a variable that interrupts block preparation.
The following program blocks are performed in a section with G41 compensation.
...
N10 X50 Y80
N15 (P100 = POSX); Assigns the value of the real coordinate in X to parameter P100
N20 X50 Y50
N30 X80 Y50
...
Block N15 interrupts block preparation
and the execution of block N10 will finish
at point A.
Once the execution of block N15 has
ended, the CNC will resume block
preparation from block N20 on.
As the next point corresponding to the
compensated path is point "B", the CNC
will move the tool to this point, executing
path "A-B".
As can be observed, the resulting path is
not the desired one, and therefore it is
recommended to avoid the use of this
type of variable in sections having tool
compensation active.