Installation manual
CNC 8035
11.
ACCESS TO INTERNAL CNC VARIABLES
Other variables
(SOFT M: V15.3X)
(S
OFT T: V16.3X)
·394·
KEYSRC
This variable allows reading or modifying the source of keystrokes, possible values being:
0 = Keyboard.
1 = PLC.
2 = DNC.
The CNC only allows modification of this variable if it is set to "0" or "1".
Once the keystroke simulation is finished, it is advisable to re-enable the CNC keyboard in order
to be able to access the various operating modes of the CNC.
The CNC will assign a value of 0 to this variable on power-up and after pressing [SHIFT]+[RESET].
ANAOn
This variable allows the required analog output (n) to be read or modified. The value assigned will
be expressed in 0.0001 volt units and within ±10 V.
The analog outputs which are free among the eight (1 through 8) available at the CNC may be
modified, the corresponding error being displayed if an attempt is made to write in one which is
occupied.
SELPRO
When having two probe inputs, it allows selecting the active input.
On power-up, it assumes the value of ·1· thus selecting the first probe input. To select the second
probe input, set it to a value of ·2·.
Accessing this variable from the CNC interrupts block preparation.
DIAM
In the lathe model, it changes the programming mode for X axis coordinates between radius and
diameter. When changing the value of this variable, the CNC assumes the new way to program the
following blocks.
When the variable is set to ·1·, the programmed coordinates are assumed in diameter; when is set
to ·0·, the programmed coordinates are assumed in radius.
This variable affects the display of the real value of the X axis in the coordinate system of the part
and the reading of variables PPOSX, TPOSX and POSX.
On power-up, after executing an M02 or M30 and after an emergency or a reset, the variable is
initialized according to the value of the DFORMAT parameter of the X axis. If this parameter has
a value equal to or greater than 4, the variable takes a value of 1; otherwise, it takes the value of ·0·.
To simulate the CNC keyboard from the PLC, follow these steps:
R111=1 R110=0
CNCWR (R111, KEYSCR, M10)
Indicates to the CNC that only keystrokes coming from the PLC must be processed (CNC
keyboard inhibited).
CNCWR (R101, KEY, M10)
It indicates to the CNC that a key has been pressed whose code is indicated in register
R101.
CNCWR (R110, KEYSCR, M10)
Process only keystrokes coming from the CNC.