·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)
Содержание 8055 EN
Страница 1: ...CNC 8055 M EN Programming manual Ref 1711 Soft V02 2x...
Страница 8: ...8 Programming manual CNC 8055 CNC 8055i SOFT V02 2X...
Страница 12: ...12 CNC 8055 CNC 8055i Declaration of conformity and Warranty conditions...
Страница 16: ...16 CNC 8055 CNC 8055i Version history...
Страница 22: ...22 CNC 8055 CNC 8055i Returning conditions...
Страница 24: ...24 CNC 8055 CNC 8055i Additional notes...
Страница 26: ...26 CNC 8055 CNC 8055i Fagor documentation...
Страница 238: ...238 Programming manual CNC 8055 CNC 8055i 11 IRREGULAR POCKET CANNED CYCLE M EN MODELS SOFT V02 2X 2D pockets...
Страница 284: ...284 Programming manual CNC 8055 CNC 8055i 11 IRREGULAR POCKET CANNED CYCLE M EN MODELS SOFT V02 2X 3D pockets...
Страница 336: ...336 Programming manual CNC 8055 CNC 8055i 12 PROBING M EN MODELS SOFT V02 2X PROBE 12 Tabletop probe calibration...
Страница 394: ...394 Programming manual CNC 8055 CNC 8055i 13 HIGH LEVEL LANGUAGE PROGRAMMING M EN MODELS SOFT V02 2X Expressions...
Страница 442: ...442 Programming manual CNC 8055 CNC 8055i 15 COORDINATE TRANSFORMATION M EN MODELS SOFT V02 2X TCP Transformation G48...
Страница 448: ......
Страница 454: ...454 Programming manual CNC 8055 CNC 8055i B M EN MODELS SOFT V02 2X Program control instructions...
Страница 462: ...462 Programming manual CNC 8055 CNC 8055i C M EN MODELS SOFT V02 2X Summary of internal CNC variables...
Страница 463: ...Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X 463 Key code KEY CODE Alpha numeric keyboard and monitor...
Страница 464: ...464 Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X Key code...
Страница 465: ...Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X 465 Key code Alphanumeric operator panel...
Страница 466: ...466 Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X Key code MC operator panel...
Страница 467: ...Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X 467 Key code...
Страница 468: ...468 Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X Key code...
Страница 469: ...Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X 469 Key code MCO TCO operator panel...
Страница 470: ...470 Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X Key code Alphanumeric keyboard...
Страница 471: ...Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X 471 Key code 11 LCD Monitor...
Страница 472: ...472 Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X Key code...
Страница 478: ...478 Programming manual CNC 8055 CNC 8055i F M EN MODELS SOFT V02 2X Maintenance...
Страница 479: ...Programming manual CNC 8055 CNC 8055i F SOFT V02 2X 479...
Страница 480: ...480 Programming manual CNC 8055 CNC 8055i F SOFT V02 2X...
Страница 481: ......