·570·
Installation manual
CNC 8055
CNC 8055i
13.
ACCESS TO INTERNAL CNC VARIABLES
SOFT: V02.2X
Other variables
FIRST
Indicates whether it is the first time that a program has been run or not. It returns a value of 1 if it
is the first time and 0 if not.
A first-time execution is considered as being one which is done:
• After turning on the CNC.
• After pressing [SHIFT]+[RESET].
• Every time a new program is selected.
ANAIn
It returns the status of the indicated analog input (n). The value is given in tenth-thousandths of a volt.
• At the –Axes– module, it is possible to select one of the 8 analog inputs (1··8) available. The
values returned will be within the ±5 V range.
• At the –Vpp Axes– module, it is possible to select one of the 4 analog inputs (1··4) available.
The returned values will be either within the ±5 V or ±10 V range depending on how PLC
parameter IANA5V (P130) has been set.
• In the case of analog CAN I/O, the value assigned will be expressed in 0.0001 volt units and
within ±10 V. It is possible to select one of the 16 analog inputs (1··16) available. See chapter
"4 Remote modules (bus CAN with CanOPEN protocol)".
CNCERR
Returns the Error code active at the CNC. If none, it returns "0".
DNCERR
Returns the Error code generated via DNC. If none, it returns "0".
AXICOM
It returns in the 3 least significant bits the axis pairs switched with function G28.
The axes are coded in 4 bits and indicate the axis number (1 to 7) according to their programming
order.
If the CNC controls the X, Y, Z, B, C axes and G28BC has been programmed, the AXICOM variable
will show:
TANGAN
Variable associated with the tangential control function, G45. It indicates the programmed angular
position.
TPIOUT(X-C)
Output of the PI of the tandem master axis in rpm.
DNCSTA
DNC transmission status, even when not having this option.
There is on bit for each DNC that will be set to ·1· when a transmission is in progress.
Pair 3Pair 2Pair 1
Axis 2Axis 1Axis 2Axis 1Axis 2Axis 1 LSB
Pair 3Pair 2Pair 1
CB
0000 0000 0000 0000 0101 0100 LSB
Bit Meaning
1 Transmission in progress through DNC1.
8 Transmission in progress through DNC2.