·340·
Programming manual
CNC 8055
CNC 8055i
13.
HIGH-LEVEL LANGUAGE
PR
OGRAMMING
·M· & ·EN· M
ODELS
S
OFT
: V02.2
X
Va
riabl
es
13.2.1
General purpose parameters or variables
General purpose variables are referred to with the letter "P" followed by an integer number. The CNC
has four types of general purpose variables.
Blocks programmed in ISO code allow associating parameters to the G F S T D M fields and
coordinates of the axes. The block label number must be defined with a numeric value. If parameters
are used in blocks programmed in high-level language, they can be programmed within any
expression.
Programmers may use general purpose variables when editing their own programs. Later on, during
execution, the CNC will replace these variables with the values assigned to them at the time.
Using these general purpose variables will depend on the type of block in which they are
programmed and the channel of execution. Programs that are executed in the user channel may
contain any global, OEM or user parameter, but may not use local parameters.
Types of arithmetic parameters
Local parameters
Local parameters can only be accessed from the program or subroutine where they have been
programmed. There are seven groups of parameters.
Local parameters used in high-level language may be defined either using the above format or by
using the letter A-Z, except for Ñ, so that A is equal to P0 and Z to P25.
The following example shows these two methods of definition:
(IF ((P0+P1)* P2/P3 EQ P4) GOTO N100)
(IF ((A+B)* C/D EQ E) GOTO N100)
When using a parameter name (letter) for assigning a value to it (A instead of P0, for example), if
the arithmetic expression is a constant, the instruction can be abbreviated as follows:
(P0=13.7) ==> (A=13.7) ==> (A13.7)
Be careful when using parenthesis since M30 is not the same as (M30). The CNC interprets (M30)
as a high level instruction meaning (P12 = 30) and not the execution of the miscellaneous M30
function.
Global parameters
Global parameters can be accessed from any program and subroutine called from a program.
Global parameters may be used by the user, by the OEM or by the CNC cycles.
User parameters
These parameters are an expansion of the global parameters but they are not used by the CNC
cycles.
OEM (manufacturer's) parameters
OEM parameters and subroutines with OEM parameters can only be used in OEM programs; those
defined with the [O] attribute. Modifying one of these parameters in the tables requires an OEM
password.
Parameter type
Range
Local parameters
P0-P25
Global parameters
P100-P299
User parameters
P1000-P1255
OEM (manufacturer's) parameters
P2000-P2255
When programming...
GP0 XP1 Z100
(IF (P100 * P101 EQ P102) GOTO N100)
When executing...
G1 X-12.5 Z100
(IF (2 * 5 EQ 12) GOTO N100)
Summary of Contents for 8055 M
Page 1: ...CNC 8055 M EN Programming manual Ref 1711 Soft V02 2x...
Page 8: ...8 Programming manual CNC 8055 CNC 8055i SOFT V02 2X...
Page 12: ...12 CNC 8055 CNC 8055i Declaration of conformity and Warranty conditions...
Page 16: ...16 CNC 8055 CNC 8055i Version history...
Page 22: ...22 CNC 8055 CNC 8055i Returning conditions...
Page 24: ...24 CNC 8055 CNC 8055i Additional notes...
Page 26: ...26 CNC 8055 CNC 8055i Fagor documentation...
Page 448: ......
Page 464: ...464 Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X Key code...
Page 466: ...466 Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X Key code MC operator panel...
Page 467: ...Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X 467 Key code...
Page 468: ...468 Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X Key code...
Page 471: ...Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X 471 Key code 11 LCD Monitor...
Page 472: ...472 Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X Key code...
Page 478: ...478 Programming manual CNC 8055 CNC 8055i F M EN MODELS SOFT V02 2X Maintenance...
Page 479: ...Programming manual CNC 8055 CNC 8055i F SOFT V02 2X 479...
Page 480: ...480 Programming manual CNC 8055 CNC 8055i F SOFT V02 2X...
Page 481: ......