Installation manual
CNC 8035
11.
ACCESS TO INTERNAL CNC VARIABLES
Variables associated with machine parameters
(SOFT M: V15.3X)
(S
OFT T: V16.3X)
·374·
11.3 Variables associated with machine parameters
These variables associated with machine parameters are read-only variables.
Refer to the installation and start-up manual to know the format of the values returned. The values
of 1/0 correspond to the parameters that are set as YES/NO, +/- or ON/OFF.
Values regarding position and feedrate values will be given in the units set by g.m.p. INCHES.
If, INCHES = 0, in ten-thousandths of a millimeter (±999999999).
If INCHES = 1, in hundred-thousandths of an inch (±393700787).
If rotary axis, in ten-thousandths of a degree (±999999999).
OEM programs or subroutines
These variables may be read and written when executed inside an OEM program or subroutine.
In order to be able to modify these parameters via PLC, an OEM subroutine containing the relevant
variables must be executed using the CNCEX command.
For the CNC to assume the new values, operate according to the indicators associated with the
machine parameters.
Read-only variables
MPGn
Returns the value assigned to general machine parameter (n).
MP(X-C)n
Returns the value assigned to the machine parameter (n) of the indicated axis (X-C).
MPSn
Returns the value assigned to the indicated machine parameter (n) of the main spindle.
MPLCn
Returns the value assigned to the indicated machine parameter (n) of the PLC.
Character Type of update
// It is necessary to press the keystroke sequence: [SHIFT] + [RESET] or turn the
CNC off and back on.
/ [RESET] must be pressed.
The rest of the parameters (those unmarked) will be updated automatically, only
by changing them.
CNCRD (MPG 8,R100,M102)
Loads register R100 with the value of general machine parameter INCHES (P8), If mm,
R100 = 0; and if inch, R100 =1.
CNCRD (MPY 1,R100,M102)
Assigns the value of Y axis machine parameter DFORMAT (P1) to register R100.