CNC 8055-I M Programming
CNC 8055-I M Programming
CNC 8055-I M Programming
8055
M & EN
Programming manual
Ref. 1310
Soft: V01.4x
It is possible that CNC can execute more functions than those described in its
associated documentation; however, Fagor Automation does not guarantee the
validity of those applications. Therefore, except under the express permission
from Fagor Automation, any CNC application that is not described in the
documentation must be considered as "impossible". In any case, Fagor
Automation shall not be held responsible for any personal injuries or physical
damage caused or suffered by the CNC if it is used in any way other than as
explained in the related documentation.
The content of this manual and its validity for the product described here has been
verified. Even so, involuntary errors are possible, hence no absolute match is
guaranteed. However, the contents of this document are regularly checked and
updated implementing the necessary corrections in a later edition. We appreciate
your suggestions for improvement.
All the trade marks appearing in the manual belong to the corresponding owners.
The use of these marks by third parties for their own purpose could violate the
rights of the owners.
The examples described in this manual are for learning purposes. Before using
them in industrial applications, they must be properly adapted making sure that
the safety regulations are fully met.
This product uses the following source code, subject to the terms of the GPL license. The applications busybox V0.60.2;
dosfstools V2.9; linux-ftpd V0.17; ppp V2.4.0; utelnet V0.1.1. The librarygrx V2.4.4. The linux kernel V2.4.4. The linux boot
ppcboot V1.1.3. If you would like to have a CD copy of this source code sent to you, send 10 Euros to Fagor Automation
for shipping and handling.
P r o gr a m m i ng m a n u a l
INDEX
GENERAL CONCEPTS
1.1
1.1.1
1.2
1.3
CHAPTER 2
CREATING A PROGRAM
2.1
2.1.1
2.1.2
2.1.3
CHAPTER 3
REFERENCE SYSTEMS
4.1
4.2
4.3
4.4
4.4.1
4.4.2
4.5
CHAPTER 5
CHAPTER 4
Reference points............................................................................................................ 53
Machine reference (Home) search (G74) ...................................................................... 54
Programming with respect to machine zero (G53) ........................................................ 55
Coordinate preset and zero offsets................................................................................ 56
Coordinate preset and S value limitation (G92) ......................................................... 57
Zero offsets (G54..G59 and G159) ............................................................................ 58
Polar origin preset (G93)................................................................................................ 60
Preparatory functions..................................................................................................... 62
Feedrate F ..................................................................................................................... 65
Feedrate in mm/min or inches/min (G94)................................................................... 66
Feedrate in mm/rev.or inches/rev (G95) .................................................................... 67
Constant surface speed (G96) ................................................................................... 68
Constant tool center speed (G97) .............................................................................. 69
Spindle speed (S) .......................................................................................................... 70
Spindle selection (G28, G29)......................................................................................... 71
Synchronized spindles (G30, G77S, G78S) .................................................................. 72
Tool number (T) and tool offset (D)................................................................................ 73
CNC 8055
CNC 8055i
SOFT: V01.4X
PATH CONTROL
6.1
6.2
6.3
6.4
6.5
6.6
6.7
6.8
6.9
6.10
6.11
6.12
6.13
6.14
6.15
6.16
6.16.1
6.17
CHAPTER 7
CHAPTER 9
SOFT: V01.4X
TOOL COMPENSATION
8.1
8.1.1
8.1.2
8.1.3
8.1.4
8.2
8.3
CNC 8055
CNC 8055i
CHAPTER 8
CANNED CYCLES
9.1
9.2
9.2.1
9.3
9.4
9.5
9.6
9.6.1
P r o gr a m m i ng m a n u a l
9.7
9.7.1
9.8
9.8.1
9.9
9.9.1
9.10
9.10.1
9.11
9.11.1
9.12
9.12.1
9.13
9.13.1
9.14
9.14.1
9.15
9.15.1
9.16
9.16.1
9.17
9.17.1
9.18
9.18.1
CHAPTER 10
MULTIPLE MACHINING
10.1
10.1.1
10.2
10.2.1
10.3
10.3.1
10.4
10.4.1
10.5
10.5.1
10.6
10.6.1
CHAPTER 11
CHAPTER 12
PROBING
12.1
12.2
12.3
12.3.1
12.3.2
12.3.3
12.4
12.4.1
CNC 8055
CNC 8055i
SOFT: V01.4X
CHAPTER 14
CNC 8055
CNC 8055i
SOFT: V01.4X
P r o gr a m m i ng m a n u a l
CHAPTER 15
COORDINATE TRANSFORMATION
15.1
Movement in an inclined plane .................................................................................... 412
15.1.1
Definition of the inclined plane (G49) ....................................................................... 413
15.1.2
G49 in swinging spindles ......................................................................................... 418
15.1.3
G49 on Huron type spindles..................................................................................... 419
15.1.4
Considerations about the G49 function.................................................................... 420
15.1.5
Variables associated with function G49 ................................................................... 421
15.1.6
Parameters associated with function G49................................................................ 422
15.1.7
Programming example ............................................................................................. 423
15.2
Movement according to the tool coordinate system (G47) .......................................... 424
15.3
TCP Transformation (G48) .......................................................................................... 425
15.3.1
Considerations about the G48 function.................................................................... 428
CHAPTER 16
A
B
C
D
E
F
APPENDIX
CNC 8055
CNC 8055i
SOFT: V01.4X
CNC 8055
CNC 8055i
SOFT: V01.4X
8055 FL
8055i FL
8055i FL EN
8055 Power
8055i Power
8055i FL
8055i FL EN
8055i Power
Enclosure
8055 FL
8055 Power
USB
Standard
Standard
3.5 ms
0.9 ms
RAM memory
1Mb
1 Mb
-----
Option
TCP transformation
-----
Option
C axis (Lathe)
-----
Option
Y axis (Lathe)
-----
Option
100 blocks
200 blocks
Option
512Mb on the EN model
Option
Built-in
Look-ahead
Flash Memory 512Mb / 2Gb
Analog
Digital
Engraving
Option
Option
Option
Standard
Standard
Standard
Standard
Standard
Standard
Option
Option
Option
Probe inputs
Standard
Standard
Standard
Standard
Standard
Standard
Electronic handwheels
Standard
Standard
Standard
Option
Option
---
Option
Option
---
---
Option
---
---
Option
---
Ethernet
Another 40 digital inputs and 24 outputs (I65 to I104 and O33 to O56)
CNC 8055
CNC 8055i
Before start-up, verify that the machine that integrates this CNC meets the 89/392/CEE Directive.
Model
GP
MC
MCO
EN
TC
TCO
-----
4 or 7
4 or 7
4 or 7
Electronic threading
-----
Stand.
Stand.
Stand.
Stand.
Stand.
Stand.
Stand.
-----
Stand.
Stand.
Stand.
-----
Stand.
Stand.
Stand.
-----
Stand.
Stand.
-----
Stand.
Stand.
Stand.
-----
Multiple machining
-----
Stand.
Stand.
-----
Stand.
-----
-----
-----
Solid graphics
-----
Stand.
Stand.
Stand.
-----
Stand.
Stand.
Stand.
Rigid tapping
-----
Stand.
Stand.
Stand.
Stand.
Stand.
Stand.
Stand.
-----
Opt.
Opt.
Opt.
Stand.
Opt.
Opt.
Opt.
-----
Opt.
Opt.
Opt.
Stand.
Opt.
Opt.
Opt.
Stand.
Stand.
Stand.
Stand.
Stand.
Stand.
Stand.
Stand.
Opt.
Opt.
Opt.
Opt.
-----
Opt.
Opt.
Opt.
Profile editor
Stand.
Stand.
Stand.
Stand.
-----
Stand.
Stand.
Stand.
Stand.
Stand.
Stand.
Stand.
Stand.
Stand.
Stand.
Stand.
Tangential control
Opt.
Opt.
Opt.
Opt.
-----
Opt.
Opt.
Opt.
Retracing
-----
Opt.
Opt.
Opt.
Stand.
Opt.
Opt.
Opt.
Stand.
Stand.
Stand.
Stand.
Stand.
Stand.
Stand.
Stand.
-----
Stand.
Stand.
Stand.
-----
-----
-----
-----
TCP transformation
-----
Opt.
Opt.
Opt.
-----
-----
-----
-----
-----
-----
-----
-----
-----
Opt.
Opt.
Opt.
-----
-----
-----
-----
-----
Opt.
Opt.
Opt.
Telediagnosis
Opt.
Opt.
Opt.
Opt.
Stand.
Opt.
Opt.
Opt.
DNC
COCOM version
Setup assistance
CNC 8055
CNC 8055i
10
DECLARATION OF CONFORMITY
The manufacturer:
Fagor Automation S. Coop.
Barrio de San Andrs N 19, C.P. 20500, Mondragn -Guipzcoa- (SPAIN).
Declares:
Under their responsibility that the product:
CNC 8055
CNC 8055i
11
VERSION HISTORY
Here is a list of the features added in each software version and the manuals that describe them.
The version history uses the following abbreviations:
INST
Installation manual
PRG
Programming manual
OPT
Operating manual
OPT-MC
OPT-TC
OPT-CO
Software V01.00
October 2010
First version.
Software V01.20
List of features
April 2011
Manual
Open communication.
INST
INST
PRG
PRG
Software V01.08
August 2011
List of features
Manual
INST
Software V01.30
List of features
September 2011
Manual
INST
INST
PRG
PRG
OPT-MC
OPT-TC
TC option: Improved thread repair. Partial and multi-entry (start) thread repair.
OPT-TC
TC option: Zig-zag entry to the groove at the starting point of the groove.
OPT-TC
CNC 8055
CNC 8055i
13
Software V01.31
List of features
Manual
Version history
Software V01.40
CNC 8055
CNC 8055i
14
October 2011
List of features
January 2012
Manual
INST / PRG
INST
SAFETY CONDITIONS
Read the following safety measures in order to prevent harming people or damage to this product and those
products connected to it.
This unit may only be repaired by authorized personnel at Fagor Automation.
Fagor Automation shall not be held responsible of any physical damage or defective unit resulting from not
complying with these basic safety regulations.
Interconnection of modules.
Use the connection cables provided with the unit.
Use proper Mains AC power cables
To avoid risks, use only the Mains AC cables recommended for this unit.
Avoid electrical overloads.
In order to avoid electrical discharges and fire hazards, do not apply electrical voltage outside the range
selected on the rear panel of the central unit.
Ground connection.
In order to avoid electrical discharges, connect the ground terminals of all the modules to the main
ground terminal. Before connecting the inputs and outputs of this unit, make sure that all the grounding
connections are properly made.
Before powering the unit up, make sure that it is connected to ground.
In order to avoid electrical discharges, make sure that all the grounding connections are properly made.
Do not work in humid environments.
In order to avoid electrical discharges, always work under 90% of relative humidity (non-condensing)
and 45 C (113 F).
Do not work in explosive environments.
In order to avoid risks or damages, do no work in explosive environments.
CNC 8055
CNC 8055i
15
Working environment.
This unit is ready to be used in industrial environments complying with the directives and regulations
effective in the European Community.
Fagor Automation shall not be held responsible for any damage suffered or caused when installed in
other environments (residential or homes).
Safety conditions
CNC 8055
CNC 8055i
16
Power switch.
This power switch must be mounted in such a way that it is easily accessed and at a distance between
0.7 meters (27.5 inches) and 1.7 meters (5.5ft) off the floor.
Safety conditions
Monitor.
Central Unit.
It has a 4 A 250V external fast fuse (F).
OUT IN
X1
X8
X7
FUSE
FUSIBLE
+24V
0V
X9
X10
X11
X12
X13
X2
X3
X4
X5
X6
Inputs-Outputs.
All the digital inputs and outputs have galvanic isolation via optocouplers between the CNC circuitry
and the outside.
CNC 8055
CNC 8055i
17
Safety conditions
Do not get into the inside of the unit. Only personnel authorized by Fagor Automation may manipulate
the inside of this unit.
Do not handle the connectors with the unit connected to main AC power. Before manipulating the
connectors (inputs/outputs, feedback, etc.) make sure that the unit is not connected to AC power.
SAFETY SYMBOLS
Warning symbol.
It indicates situations that may be caused by certain operations and the actions to be taken to prevent
them.
Obligation symbol.
It indicates actions and operations that must be carried out.
CNC 8055
CNC 8055i
18
Information symbol.
It indicates notes, warnings and advises.
WARRANTY TERMS
INITIAL WARRANTY
All products manufactured or marketed by FAGOR carry a 12-month warranty for the end user which could
be controlled by the our service network by means of the warranty control system established by FAGOR
for this purpose.
In order to prevent the possibility of having the time period from the time a product leaves our warehouse
until the end user actually receives it run against this 12-month warranty, FAGOR has set up a warranty
control system based on having the manufacturer or agent inform FAGOR of the destination, identification
and on-machine installation date, by filling out the document accompanying each FAGOR product in the
warranty envelope. This system, besides assuring a full year of warranty to the end user, enables our service
network to know about FAGOR equipment coming from other countries into their area of responsibility.
The warranty starting date will be the one appearing as the installation date on the above mentioned
document. FAGOR offers the manufacturer or agent 12 months to sell and install the product. This means
that the warranty starting date may be up to one year after the product has left our warehouse so long as
the warranty control sheet has been sent back to us. This translates into the extension of warranty period
to two years since the product left our warehouse. If this sheet has not been sent to us, the warranty period
ends 15 months from when the product left our warehouse.
This warranty covers all costs of material and labour involved in repairs at FAGOR carried out to correct
malfunctions in the equipment. FAGOR undertakes to repair or replace their products within the period from
the moment manufacture begins until 8 years after the date on which it disappears from the catalog.
FAGOR has exclusive competence in deciding whether the repair enters within the term defined as the
warranty period.
EXCLUDING CLAUSES
Repairs will be carried out on our premises. Therefore, all expenses incurred as a result of trips made by
technical personnel to carry out equipment repairs, despite these being within the above-mentioned period
of warranty, are not covered by the warranty.
Said warranty will be applied whenever the equipment has been installed in accordance with instructions,
has not be mistreated, has not been damaged by accident or by negligence and has not been tampered
with by personnel not authorized by FAGOR. If, once servicing or repairs have been made, the cause of
the malfunction cannot be attributed to said elements, the customer is obliged to cover the expenses
incurred, in accordance with the tariffs in force.
Other warranties, implicit or explicit, are not covered and FAGOR AUTOMATION cannot be held responsible
for other damages which may occur.
CNC 8055
CNC 8055i
19
WARRANTY ON REPAIRS
Warranty terms
In a similar way to the initial warranty, FAGOR offers a warranty on standard repairs according to the
following conditions:
PERIOD
12 months.
CONCEPT
Covers parts and labor for repairs (or replacements) at the network's own
facilities.
EXCLUDING CLAUSES
When the customer does not choose the standard repair and just the faulty material has been replaced,
the warranty will cover just the replaced parts or components within 12 months.
For sold parts the warranty is 12 moths length.
MAINTENANCE CONTRACTS
The SERVICE CONTRACT is available for the distributor or manufacturer who buys and installs our CNC
systems.
CNC 8055
CNC 8055i
20
When sending the central nit or the remote modules, pack them in its original package and packaging
material. If the original packaging material is not available, pack it as follows:
1. Get a cardboard box whose three inside dimensions are at least 15 cm (6 inches) larger than those
of the unit. The cardboard being used to make the box must have a resistance of 170 kg. (375 pounds).
2. Attach a label indicating the owner of the unit, person to contact, type of unit and serial number.
3. In case of failure, also indicate the symptom and a short description.
4. Wrap the unit in a polyethylene roll or similar material to protect it.
5. When sending the central unit, protect especially the screen.
6. Pad the unit inside the cardboard box with polyurethane foam on all sides.
7. Seal the cardboard box with packing tape or industrial staples.
CNC 8055
CNC 8055i
21
CNC 8055
CNC 8055i
22
ADDITIONAL REMARKS
Mount the CNC away from coolants, chemical products, blows, etc. which could damage it. Before turning
the unit on, verify that the ground connections have been properly made.
To prevent electrical shock at the central unit of the 8055 CNC, use the proper mains AC connector at the
power supply module. Use 3-wire power cables (one for ground connection).
CPU
AXES
X1
I/O
X2 X1
X2
X3
X4
CMPCT X5
FLASH
X6
USB
X7
X1
X2
X8
ETH
X9
X10
X3
COM1
IN
OUT
NODE
8 9A
67
01
EF 2
B CD
3 45
X3
FAGOR
To prevent electrical shock at the monitor of the 8055 CNC, use the proper mains AC connector (A) with
3-wire power cables (one of them for ground connection).
(A)
(B)
X1
W1
Before turning on the monitor of the 8055 CNC and verifying that the external AC line (B) fuse of each unit
is the right one. See identification label of the unit itself.
In case of a malfunction or failure, disconnect it and call the technical service. Do not get into the inside
of the unit.
CNC 8055
CNC 8055i
23
Additional remarks
CNC 8055
CNC 8055i
24
FAGOR DOCUMENTATION
OEM manual
It is directed to the machine builder or person in charge of installing and starting-up the CNC.
USER-M manual
Directed to the end user.
It describes how to operate and program in M mode.
USER-T manual
Directed to the end user.
It describes how to operate and program in T mode.
MC Manual
Directed to the end user.
It describes how to operate and program in MC mode.
It contains a self-teaching manual.
TC Manual
Directed to the end user.
It describes how to operate and program in TC mode.
It contains a self-teaching manual.
MCO/TCO model
Directed to the end user.
It describes how to operate and program in MCO and TCO mode.
Examples-M manual
Directed to the end user.
It contains programming examples for the M mode.
Examples-T manual
Directed to the end user.
It contains programming examples for the T mode.
WINDNC Manual
It is directed to people using the optional DNC communications software.
It is supplied in a floppy disk with the application.
WINDRAW55 Manual
Directed to people who use the WINDRAW55 to create screens.
It is supplied in a floppy disk with the application.
CNC 8055
CNC 8055i
25
Fagor documentation
CNC 8055
CNC 8055i
26
GENERAL CONCEPTS
The CNC may be programmed at the machine (from the front panel) and from a peripheral
(computer). Memory available to the user for carrying out the part programs is 1 Mbyte.
The part programs and the values in the tables which the CNC has can be entered from the front
panel, from a pc (DNC) or from a peripheral.
"PROTOCOL" = 1
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
27
1.1
Part programs
The operating manual describes the different operating modes. Refer to that manual for further
information.
Editing a part-program
1.
Part programs
GENERAL CONCEPTS
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
28
P r o gr a m m i ng m a n u a l
Yes
Yes
Yes
No
Yes
No
No
No
No
No
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
No
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
Yes
No
Yes
Yes
Yes
Yes
No
No
No
No
Yes
Yes
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
Via Ethernet:
See from a PC the program directory of ...
See from a PC the subroutine directory of ...
See from a PC, a directory in ...
No
No
No
Yes
No
No
No
No
No
1.
Part programs
Hard
disk
GENERAL CONCEPTS
RAM
memory
(*) If it is not in RAM memory, it generates the executable code in RAM and it executes it.
Ethernet
When having the Ethernet option and if the CNC is configured as another node within the computer
network, the following operations are possible from any PC of the network:
Access the part-program directory of the hard disk (KeyCF).
Edit, modify, delete, rename, etc. the programs stored on the hard disk.
Copy programs from the hard disk to the PC and vice versa.
To configure the CNC as another node within the computer network, see the installation manual.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
29
1.1.1
1.
Part programs
GENERAL CONCEPTS
Data format
This connection is established through Ethernet and, therefore, the CNC does not control the syntax
of the programs while they are received or modified. However, whenever accessing the program
directory of the Hard Disk (HD), the following verification takes place:
File name.
The file number must always have 6 digits and the extension PIM (for milling) or PIT (for lathe).
Examples:
020150.PIT
If the file has been given the wrong name, for example: 1204.PIM or 100.PIT, the CNC will not change
it, but it will display it with the comment "****************". The file name cannot be modified
at the CNC; it must be edited from the PC to correct the error.
File size.
If the file is empty (size = 0) the CNC will display it with the comment "********************".
The file can be edited or deleted either from the CNC or from the PC.
%Comment ,MX,
% ,OMX,
If the first line does not exist, the CNC will display the program with an empty comment and with
the modifiable (M) and executable (X) attributes.
CNC 8055
CNC 8055i
When the format of the first line is wrong, the CNC does not modify it, but it displays it with the
comment "****************". The file can be edited or deleted either from the CNC or from the
PC.
The format is incorrect when the comment has more than 20 characters, a comma (,) is missing
to group the attributes or there is a strange character in the attributes.
M & EN MODELS
SOFT: V01.4X
30
P r o gr a m m i ng m a n u a l
DNC connection
The CNC offers as optional feature the possibility of working in DNC (Distributed Numerical Control),
enabling communication between the CNC and a computer to carry out the following functions:
Directory and delete commands.
Transfer of programs and tables between the CNC and a computer.
Remote control of the machine.
The ability to supervise the status of advanced DNC systems.
DNC connection
1.
GENERAL CONCEPTS
1.2
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
31
1.3
1.
GENERAL CONCEPTS
Then, and separated by a comma ",", comes the protection of each file, read, write, etc. These
protections are optional and need not be programmed.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
32
To end the file header, RT (RETURN ) or LF (LINE FEED) characters should be sent separated
by a comma (",").
Example:
Following the header, the file blocks should be programmed. These will all be programmed
according to the programming rules indicated in this manual. After each block, to separate it from
the others, the RT (RETURN ) or LF (LINE FEED) characters should be used.
Example:
If communication is made with a peripheral device, you will need to send the end of file command.
This command is selected via the machine parameter for the serial port: "EOFCHR", and can be
one of the following characters :
ESC
ESCAPE
EOT
END OF TRANSMISSION
SUB
SUBSTITUTE
EXT
END OF TRANSMISSION
CREATING A PROGRAM
A CNC program consists of a series of blocks or instructions. These blocks or instructions are made
of words composed of capital letters and numerical format.
The CNCs numerical format consists of :
The signs . (decimal points, + (plus), - (minus).
Digits 0 1 2 3 4 5 6 7 8 9.
Programming allows spaces between letters, numbers and symbols, in addition to ignoring the
numerical format if it has zero value, or a symbol if it is positive.
The numeric format of a word may be replaced by an arithmetic parameter when programming. Later
on, during execution, the CNC will replace the arithmetic parameter by its value. For example, if XP3
has been programmed, during execution the CNC will replace P3 by its numerical value, obtaining
results such as X20, X20.567, X-0.003, etc.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
33
2.1
2.1.1
CREATING A PROGRAM
2.
Block header
The block header is optional, and may consist of one or more block skip conditions and by the block
number or label. Both must be programmed in this order.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
34
P r o gr a m m i ng m a n u a l
Program block
This is written with commands in ISO and high level languages. To prepare a program, blocks written
in both languages will be used, although each one should be edited with commands in just one
language.
ISO language.
This language is specially designed to control axis movement, as it gives information and movement
conditions, in addition to data on feedrate. It offers the following types of functions.
2.
Preparatory functions for movement, used to determine geometry and working conditions, such
as linear and circular interpolations, threading, etc.
CREATING A PROGRAM
2.1.2
It also has instructions for the construction of loops, plus subroutines with local variables. A local
variable is one that is only recognized by the subroutine in which it has been defined.
It is also possible to create libraries, grouping subroutines with useful and tested functions, which
can be accessed from any program.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
35
2.1.3
End of block
The end of block is optional and may consist of the indication of number of repetitions of the block
and of the block comment. Both must be programmed in this order.
CREATING A PROGRAM
2.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
36
Movement blocks can only be repeated which, at the time of their execution, are under the influence
of a modal subroutine. In these cases, the CNC executes the programmed move and the active
machining operation (canned cycle or modal subroutine) the indicated number of times.
Block comment
The CNC allows you to incorporate any kind of information into all blocks in the form of a comment.
The comment is programmed at the end of the block, and should begin with the character ";"
(semicolon).
If a block begins with ";" all its contents will be considered as a comment, and it will not be executed.
Empty blocks are not permitted. They should contain at least one comment.
Given that the purpose of the CNC is to control the movement and positioning of axes, it is necessary
to determine the position of the point to be reached through its coordinates.
The CNC allows you to use absolute, relative or incremental coordinates throughout the same
program.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
37
3.1
Axis nomenclature
The axes are named according to DIN 66217.
Axis nomenclature
3.
parallel to the main axis of the machine, perpendicular to the main XY plane.
U, V, W
ABC
The drawing below shows an example of the nomenclature of the axes on a milling-profiling machine
with a tilted table.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
38
P r o gr a m m i ng m a n u a l
Axis selection
Of the 9 possible axes that may exist, the CNC allows the manufacturer to select up to 7 of them.
Moreover, all the axes should be suitably defined as linear/rotary, etc. through the axis machine
parameters which appear in the Installation and Start-up Manual.
There is no limitation to the programming of the axes, and up to 7 axes may be interpolated at the
same time.
Axis nomenclature
3.
AXES AND COORDINATE SYSTEMS
3.1.1
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
39
3.2
3.
Plane selection (G16, G17, G18, G19)
G17.
G18.
G19.
The G16, G17, G18 and G19 functions are modal and incompatible among themselves. The G16
function should be programmed on its own within a block.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
40
The G17, G18, and G19 functions define two of the three main axes (X, Y, Z) as belonging to the
work plane, and the other as the perpendicular axis to the same.
P r o gr a m m i ng m a n u a l
When radius compensation is done on the work plane, and length compensation on the
perpendicular axis, the CNC does not allow functions G17, G18, and G19 if any one of the X, Y,
or Z axes is not selected as being controlled by the CNC.
On power-up, after executing M02, M30 or after EMERGENCY or RESET, the CNC will assume that
the plane defined by the general machine parameter as "IPLANE" is the work plane.
Function G49, coordinate transformation, must be used to machine inclined planes.
See chapter "15 Coordinate transformation".
3.
AXES AND COORDINATE SYSTEMS
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
41
3.3
3.
AXES AND COORDINATE SYSTEMS
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
42
Depending on whether G70 or G71 has been programmed, the CNC assumes the corresponding
set of units for all the blocks programmed from that moment on.
The G70 and G71 functions are modal and are incompatible.
The CNC allows you to program figures from 0.00001 to 99999.9999 with or without sign, working
in millimeters (G71), called format +/-5.4, or either from 0.00001 to 3937.00787 with or without sign
if the programming is done in inches (G70), called format +/-4.5.
However, and to simplify the instructions, we can say that the CNC admits +/- 5.5 format, thereby
admitting +/- 5.4 in millimeters and +/- 4.5 in inches.
On power-up, after executing M02, M30 or after EMERGENCY or RESET, the CNC will assume that
the system of units of measurement is the one defined by the general machine parameter "INCHES".
P r o gr a m m i ng m a n u a l
3.
The G90/G91 functions are modal and incompatible with each other.
AXES AND COORDINATE SYSTEMS
3.4
Absolute coordinates:
G90
X0
Y0
; Point P0
X150.5
Y200
; Point P1
X300
X0
; Point P2
Y0
; Point P0
Incremental coordinates:
G90
X0
Y0
; Point P0
G91
X150.5
Y200
; Point P1
X149.5
X-300
; Point P2
Y-200
; Point P0
On power-up, after executing M02, M30 or after an EMERGENCY or RESET, the CNC will assume
G90 or G91 according to the definition by the general machine parameter "ISYSTEM".
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
43
3.5
Coordinate programming
The CNC allows the selection of up to 7 of the 9 possible axes X, Y, Z, U, V, W, A, B, C.
Each of these may be linear, linear to position only, normal rotary, rotary to position only or rotary
with hirth toothing (positioning in complete degrees), according to the specification in the machine
parameter of each "AXISTYPE" axis.
With the aim of always selecting the most suitable coordinate programming system, the CNC has
the following types :
3.
Cartesian coordinates
Coordinate programming
Polar coordinates
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
44
Cylindrical coordinates
Angle and Cartesian coordinate
P r o gr a m m i ng m a n u a l
Cartesian coordinates
The Cartesian Coordinate System is defined by two axes on the plane, and by three or more axes
in space.
The origin of all these, which in the case of the axes X Y Z coincides with the point of intersection,
is called Cartesian Origin or Zero Point of the Coordinate System.
The position of the different points of the machine is expressed in terms of the coordinates of the
axes, with two, three, four, or five coordinates.
The values of the coordinates are absolute or incremental, depending on whether it is working in
G90 or G91, and its programming format is 5.5.
Coordinate programming
3.
The coordinates of the axes are programmed via the letter of the axis (X, Y, Z, U, V, W, A, B, C, always
in this order) followed by the coordinate value.
AXES AND COORDINATE SYSTEMS
3.5.1
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
45
3.5.2
Polar coordinates
In the event of the presence of circular elements or angular dimensions, the coordinates of the
different points on the plane (2 axes at the same time), it may be easier to express them in polar
coordinates.
The reference point is called Polar Origin, and this will be the origin of the Polar Coordinate System.
A point on this system would be defined by :
Coordinate programming
3.
The RADIUS (R), the distance between the polar origin and the point.
The ANGLE (Q), formed by the abscissa axis and the line which joins the polar origin with the
point. (In degrees).
The values R and Q are absolute or incremental depending on whether you are working with G90
or G91, and their programming format will be R5.5 Q5.5. The radius value must always be positive.
The values R and Q are incremental and their programming format will be R5.5 Q5.5.
The R values may be negative when programming in incremental coordinates; but the resulting value
assigned to the radius must always be positive.
When programming a "Q" value greater than 360, the module will be assumed after dividing it by
360. Thus, Q420 is the same as Q60 and Q-420 is the same as Q-60.
Programming example assuming that the Polar Origin is located at the Coordinate Origin.
Absolute coordinates:
CNC 8055
CNC 8055i
G90
X0
Y0
; Point P0
G01
R100
Q0
Q30
Q30
Q60
Q60
Q90
Q90
G03
G01
R50
G03
G01
R100
G03
M & EN MODELS
SOFT: V01.4X
46
G01
R0
P r o gr a m m i ng m a n u a l
Incremental coordinates:
Y0
; Point P0
G91 G01
R100
Q0
Q30
Q0
Q30
Q0
Q30
Q0
G03
G01
R-50
G03
G01
R50
G03
G01
R-100
The polar origin, apart from being able to be preset using function G93 (described later) can be
modified in the following cases :
On power-up, after executing M02, M30 EMERGENCY or RESET, the CNC will assume, as the
polar origin, the coordinate origin of the work plane defined by the general machine
parameter"IPLANE".
Every time the work plane is changed (G16,G17,G18 or G19), the CNC assumes the coordinate
origin of the new work plane selected as the polar origin.
When executing a circular interpolation (G02 or G03), and if the general machine parameter
"PORGMOVE" has a value of 1, the center of the arc will become the new polar origin.
3.
Coordinate programming
X0
G90
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
47
3.5.3
Cylindrical coordinates
To define a point in space, the system of cylindrical coordinates can be used as well as the Cartesian
coordinate system.
A point on this system would be defined by :
Coordinate programming
3.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
48
The projection of this point on the main plane, which should be defined in polar coordinates (R Q).
Rest of axes in Cartesian coordinates.
Examples:
R30 Q10 Z100
R20 Q45 Z10 V30 A20
P r o gr a m m i ng m a n u a l
X10
Y20
Q45
X30
; Point P1
Q90
Y60
; Point P2
Q-45
X50
; Point P3
Q-135
Y20
; Point P4
Q180
X10
; Point P0
Coordinate programming
3.
AXES AND COORDINATE SYSTEMS
3.5.4
If you wish to represent a point in space, the remaining coordinates can be programmed in Cartesian
coordinates.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
49
3.6
Rotary axes
The types of rotary axes available are:
Normal rotary axis.
Positioning-only rotary axis.
Rotary HIRTH axis.
Each one of them can be divided into:
3.
Rollover
Rotary axes
The sign indicates the turning direction and the target position (between 0 and
359.9999).
G91
The sign indicates the turning direction. If the programmed movement exceeds
360, the axis will rotate more than one turn before positioning at the desired point.
Always positive and in the shortest direction. End coordinate between 0 and
359.9999.
G91
The sign indicates the turning direction. If the programmed movement exceeds
360, the axis will rotate more than one turn before positioning at the desired point.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
50
P r o gr a m m i ng m a n u a l
3.7
Work zones
The CNC provides four work zones or areas, and also limits the tool movement in each of these.
Where:
K
X...C
Indicates the coordinates (upper or lower) with which you wish to limit the axes.
These coordinates will be programmed with reference to machine zero (home).
For safety, the axis stops 0.1mm before the programmed limit.
It is not necessary to program all the axes, so only defined axes will be limited.
Work zones
3.
3.7.1
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
51
3.7.2
Work zones
3.
S= 1 No entry zone
S = 2 No exit zone
The CNC will take the dimensions of the tool into account at all times (tool offset table) to avoid it
exceeding the programmed limits.
The presetting of work zones is done via Function G22, the programming format being:
G22 K S
Where:
K
On power-up, the CNC will disable all work zones. However, upper and lower limits for these zones
will not undergo any variation, and they can be re-enabled through the G22 function.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
52
REFERENCE SYSTEMS
4.1
Reference points
A CNC machine needs the following origin and reference points defined :
Machine Reference Zero or home. This is set by the manufacturer as the origin of the coordinate
system of the machine.
Part zero or point of origin of the part. This is the origin point that is set for programming the
measurements of the part. It can be freely selected by the programmer, and its machine
reference zero can be set by the zero offset.
Machine Reference point. This is a point on the machine established by the manufacturer around
which the synchronization of the system is done. The control positions the axis on this point,
instead of moving it as far as the Machine Reference Zero, taking, at this point, the reference
coordinates which are defined via the axis machine parameter "REFVALUE".
Machine zero
Part zero
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
53
4.2
REFERENCE SYSTEMS
4.
This movement is carried out at the feedrate indicated by the axis machine parameter
"REFEED1" for each axis until the home switch is hit.
Next, the home search (marker pulse or home) will be carried out in the programmed order.
This second movement will be carried out one axis at a time, at the feedrate indicated in the axis
machine parameter "REFEED2" until the machine reference point is reached (i.e. the marker
pulse is found).
Home search using the associated subroutine.
The G74 function will be programmed alone in the block, and the CNC will automatically execute
the subroutine whose number appears in the general machine parameter "REFPSUB". In this
subroutine it is possible to program the machine reference searches required, and also in the
required order.
In a block in which G74 has been programmed, no other preparatory function may appear.
If the machine reference search is done in JOG mode, the part zero selected is lost. The coordinates
of the reference point indicated in the machine axis parameter "REFVALUE" is displayed. In all other
cases, the active part zero will be maintained and the CNC will display the position values with
respect to that part zero.
If the G74 command is executed in MDI, the display of coordinates depends on the mode in which
it is executed : Jog, Execution, or Simulation.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
54
P r o gr a m m i ng m a n u a l
Machine zero
Part zero
4.
Programming with respect to machine zero (G53)
Function G53 is not modal, so it should be programmed every time you wish to indicate the
coordinates referred to machine zero.
REFERENCE SYSTEMS
4.3
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
55
4.4
REFERENCE SYSTEMS
4.
Machine zero
Part zero
ORG*(55)
ORG*(56)
ORG*(57)
G54
G55
G56
G57
ORG*(58)
G58
G92
ORG*(59)
ORG*
PLC Parameters.
CNC 8055
CNC 8055i
Zero offsets
M & EN MODELS
SOFT: V01.4X
56
PLCOF*
G59
P r o gr a m m i ng m a n u a l
; Positioning in P0
G90 X50 Y40
; Preset P0 as part zero
G92 X0 Y0
; Programming according to part coordinates
G91 X30
X20 Y20
X-20 Y20
X -30
Y-40
4.
REFERENCE SYSTEMS
4.4.1
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
57
4.4.2
4.
REFERENCE SYSTEMS
==> G54
G58
==> G54+G58
G59
==> G54+G59
G55
==> G55
Once a Zero Offset has been selected, it will remain active until another one is selected or until a
home search is carried out (G74) in JOG mode. This zero offset will remain active even after
powering the CNC off and back on.
This kind of zero offsets established by program is very useful for repeated machining operations
at different machine positions.
Example: The zero offset table is initialized with the following values:
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
58
G54:
X200
Y100
G55:
X160
Y 60
G56:
X170
Y110
G58:
X-40
Y-40
G59:
X -30
Y 10
P r o gr a m m i ng m a n u a l
Profile execution
; Executes profile A1
G55
Profile execution
; Executes profile A2
G56
Profile execution
; Executes profile A3
Profile execution
; Executes profile A1
G58
Profile execution
; Executes profile A2
G59
Profile execution
; Executes profile A3
Function G159
REFERENCE SYSTEMS
G54
4.
Where n is a number from 1 to 20 that indicates the number of the zero offset being
applied.
Function G159 is modal, it is programmed alone in the block and is incompatible with functions G53,
G54, G55, G56, G57, G58, G59 and G92.
On power-up, the CNC assumes the zero offset that was active when the CNC was turned off. On
the other hand, the zero offset is neither affected by functions M02 and M30 nor by RESET.
This function is displayed in the history like G159Nn where the n is the active zero offset.
Examples:
G159 N1
G159 N6
It applies the second zero offset. It is the same as programming G59, but it is
applied in absolute.
G159 N20
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
59
4.5
Parameters I & J respectively define the abscissa and ordinate axes, of the new origin of polar
coordinates referred to part zero.
4.
Polar origin preset (G93)
REFERENCE SYSTEMS
G93
G90
G01
I35
J30
R25
Q0
Q90
Y0
G03
G01
X0
If G93 is only programmed in a block, the point where the machine is at that moment becomes the
polar origin.
On power-up; or after executing M02, M30; or after an EMERGENCY or RESET; the CNC assumes
the currently active part zero as polar origin.
When selecting a new work plane (G16, G17, G18, G19), the CNC assumes as polar origin the part
zero of that plane.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
60
The CNC does not modify the polar origin when defining a new part zero; but it modifies the values
of the variables: "PORGF" y "PORGS".
If, while selecting the general machine parameter "PORGMOVE" a circular interpolation is
programmed (G02 or G03), the CNC assumes the center of the arc as the new polar origin.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
61
5.1
Preparatory functions
Preparatory functions are programmed using the letter G followed by up to 3 digits (G0 - G319).
They are always programmed at the beginning of the body of the block and are useful in determining
the geometry and working condition of the CNC.
5.
Preparatory functions
Function
Rapid traverse
6.1
G01
Linear interpolation
6.2
G02
6.3 / 6.7
G03
6.3 / 6.7
7.1 / 7.2
G04
G05
Round corner
G08
6.5
G09
6.6
G06
G07
G10
G11
Square corner
*
*
6.4
7.3.1
7.5
7.5
7.5
G13
7.5
G14
7.5
G15
8.2
G16
3.2
G17
3.2
G18
3.2
G19
3.2
G20
3.7.1
G21
3.7.1
3.7.2
G28
G29
5.4
5.4
Axis toggle
7.9
G30
5.5
G32
6.15
G33
Electronic threading
6.12
Variable-pitch threading
6.13
6.10
6.8
G34
G36
62
7.3.2
G12
G28-G29
M & EN MODELS
SOFT: V01.4X
Section
G00
G22
CNC 8055
CNC 8055i
Meaning
G37
Tangential entry
G38
Tangential exit
6.9
G39
Chamfer
6.11
8.1
8.1
G40
G41
*
*
G41 N
Collision detection
8.3
G42
8.1
G42 N
Collision detection
8.3
8.2
G43
G44
G45
G47
8.2
6.16
15.2
G48
TCP transformation
15.3
G49
15.1
G50
7.3.3
G51
Look-Ahead
7.4
P r o gr a m m i ng m a n u a l
D
Meaning
Section
G52
6.14
G53
4.3
G54
4.4.2
G55
4.4.2
G56
4.4.2
G57
4.4.2
G58
4.4.2
G59
4.4.2
G60
10.1
G61
10.2
G62
10.3
G63
10.4
10.5
G64
G65
G66
G67
11.1.2
G68
11.1.3
9.6
Programming in inches
3.3
Programming in millimeters
3.3
G69
G70
G71
10.6
11.1 / 11.2
G72
7.6
G73
Pattern rotation
7.7
G74
Home search
4.2
G75
12.1
G76
12.1
7.8.1
G77
G77S
G78
G78S
Spindle synchronization
Cancellation of axis coupling (slaving)
Cancellation of spindle synchronization
G79
G80
G81
G82
G83
5.5
7.8.2
5.5
9.2.1
9.3
9.7
9.8
9.9
G84
9.10
G85
9.11
G86
9.12
G87
9.13
G88
9.14
G89
9.15
G90
Absolute programming:
3.4
G91
Incremental programming
3.4
G92
G93
G94
G95
G96
5.
Preparatory functions
Function
4.4.1
4.5
5.2.1
5.2.2
5.2.3
5.2.4
G97
G98
9.5
G99
9.5
G145
6.17
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
63
Meaning
Section
G159
4.4
G210
9.16
G211
9.17
G212
9.18
M means modal, i.e. the G function, once programmed, remains active until another incompatible
G function is programmed or until an M02, M30, EMERGENCY or RESET is executed or the CNC
is turned off and back on.
5.
Preparatory functions
D means BY DEFAULT, i.e. they will be assumed by the CNC when it is powered on, after executing
M02, M30 or after EMERGENCY or RESET.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
64
In those cases indicated by ?, it should be understood that the DEFAULT of these G functions
depends on the setting of the general machine parameters of the CNC.
The letter V means that the G code is displayed next to the current machining conditions in the
execution and simulation modes.
P r o gr a m m i ng m a n u a l
Feedrate F
The machining feedrate can be selected from the program. It remains active until another feedrate
is programmed. It is represented by the letter F and Depending on whether it is working in G94 or
G95, it is programmed in mm/minute (inches/minute) or in mm/revolution (inches/revolution).
Its programming format is 5.5; in other words, 5.4 when programmed in mm and 4.5 when
programmed in inches.
The maximum operating feedrate of the machine, limited on each axis by the axis machine
parameter "MAXFEED", may be programmed via code F0, or by giving F the corresponding value.
The programmed feedrate F may be varied between 0% and 255% via the PLC, or by DNC, or
between 0% and 120% via the switch located on the Operator Panel of the CNC.
The CNC, however, is equipped with the general machine parameter "MAXFOVR" to limit maximum
feedrate variation.
If you are working in rapid travel (G00), rapid feedrate will be fixed at 100%, alternatively it can be
varied between 0% and 100%, depending on how the machine parameter "RAPIDOVR" is set.
5.
Feedrate F
The programmed feedrate F is effective working in linear (G01) or circular (G02, G03) interpolation.
If function F is not programmed, the CNC assumes the feedrate to be F0. When working in rapid
travel (G00), the machine will move at the rapid feedrate indicated by the axis machine parameter
"G00FEED", apart from the F programmed.
5.2
When functions G33 (electronic threading), G34 (variable-pitch threading) or G84 (tapping canned
cycle) are executed the feedrate cannot be modified; it works at 100% of programmed F.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
65
5.2.1
5.
Feedrate F
The relationship between the feedrate of the axis component and the programmed feedrate "F" is
the same as that between the movement of the axis and the resulting programmed movement.
Feedrate F x Movement of axis
Feedrate component =
Resulting programmed movement
Example:
On a machine which has linear X and Y axes and rotary C axis, all located at point X0 Y0 C0, the
following movement is programmed :
G1 G90 X100 Y20 C270 F10000
You get:
F x
10000 100
Fx = ----------------------------------------------------------- = ------------------------------------------------ = 3464 7946
x 2 + y 2 + c 2
100 2 + 20 2 + 270 2
10000 20
F y
Fy = ----------------------------------------------------------- = ------------------------------------------------ = 692 9589
2
2
2
100 2 + 20 2 + 270 2
x + y + c
F c
10000 270
Fc = ----------------------------------------------------------- = ------------------------------------------------ = 9354 9455
2
2
2
x + y + c
100 2 + 20 2 + 270 2
Function G94 is modal i.e. once programmed it stays active until G95 is programmed.
On power-up, after executing M02, M30 or following EMERGENCY or RESET, the CNC assumes
function G94 or G95 according to how the general machine parameter "IFEED" is set.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
66
P r o gr a m m i ng m a n u a l
Feedrate F
5.
ISO CODE PROGRAMMING
5.2.2
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
67
5.2.3
5.
Feedrate F
On power-up, after executing M02, M30 or following EMERGENCY or RESET, the CNC assumes
function G97.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
68
P r o gr a m m i ng m a n u a l
Feedrate F
5.
ISO CODE PROGRAMMING
5.2.4
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
69
5.3
5.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
70
This speed variation is made between the maximum and minimum values established by spindle
machine parameters "MINSOVR" and "MAXSOVR".
The incremental pitch associated with the SPINDLE keys "+" and "-" on the CNC Operator Panel
in order to vary the programmed S value is fixed by the spindle machine parameter "SOVRSTEP".
When functions G33 (electronic threading), G34 (variable-pitch threading) or G84 (tapping canned
cycle) are executed the programmed speed cannot be modified; it works at 100% of programmed S.
P r o gr a m m i ng m a n u a l
5.
5.4
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
71
5.5
5.
ISO CODE PROGRAMMING
General output "SYNSPEED (M5560)" will be high while the spindle are in synch (same speed).
When this synchronism is cancelled (G78S), the second spindle recovers its previous speed and
status (M3, M4, M5, M19) and the main spindle stays in the current status.
If while in synchronism, an S is programmed greater than the maximum allowed, the CNC applies
the maximum value while they are synchronized. When canceling this synchronism, the limit is no
longer applied and the main spindle assumes the programmed speed.
While the spindles are synchronized in speed, function G77S active, with G30 they may also be
synchronized in position and set an angular offset between them so the second spindle follows the
main spindle at this set offset distance.
Programming format: G30 D 359.9999 (offset in degrees)
For example, with G30 D90 the second spindle will turn 90 behind the main spindle.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
72
P r o gr a m m i ng m a n u a l
If the machine has a tool magazine, the CNC looks up the "Tool
magazine table" to know the position occupied by the selected
tool and the desired one.
Yes
Selects the tool
Yes
D?
If the "D" function has not be defined, it looks up the "Tool table"
to know the "D" offset associated with it.
NO
The CNC takes the D
associated with the T in the
tool table
5.
NO
Magazine?
5.6
To access, check and define these tables, refer to the operating manual.
D22
Tool 5 stays selected and it assumes the dimensions of tool offset 22.
T3
Selects tool 3 and assumes the dimensions of the offset associated with that tool.
When having a tool magazine where the same position is occupied by more than one tool, do
the following:
Use the "T" function to refer to the magazine position and the "D" function to the dimensions
of the tool located in that position.
Thus, for example, programming T5 D23 means selecting the turret position 5 and assuming
the geometry and dimensions of tool offset 23.
CNC 8055
CNC 8055i
Length compensation is applied at all times, whereas tool length compensation must be selected
by the operator by means of functions G43, G44.
If there is no tool selected or D0 is defined, neither tool length nor radius compensation is applied.
For further information, refer to chapter 8 "tool compensation" in this manual..
M & EN MODELS
SOFT: V01.4X
73
5.7
5.
The number of the subroutine which is required to associate to this miscellaneous function.
An indicator which determines if the M function is executed before or after the movement block
in which it is programmed.
An indicator which determines if the execution of the M function interrupts block preparation or
not.
An indicator which determines if the M function is executed or not, after the execution of the
associated subroutine.
An indicator which determines if the CNC must wait for the signal AUX END or not (Executed
M signal, coming from the PLC), to continue the execution of the program.
If, when executing the M miscellaneous function, this is not defined in the M functions table, the
programmed function will be executed at the beginning of the block and the CNC will wait for the
AUX END to continue the execution of the program.
Some of the miscellaneous functions are assigned an internal meaning in the CNC.
If, while executing the associated subroutine of an "M" miscellaneous function, there is a block
containing the same "M", this will be executed but not the associated subroutine.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
74
All the miscellaneous "M" functions which have an associated subroutine must be programmed alone
in a block.
In the case of functions M41 through M44 with associated subroutine, the S that generates the gear
change must be programmed alone in the block. Otherwise, the CNC will display error 1031.
P r o gr a m m i ng m a n u a l
5.7.1
5.7.4
This is identical to M00, except that the CNC only takes notice of it if the signal M01 STOP from
the PLC is active (high logic level).
5.7.3
5.
5.7.2
5.7.5
CNC 8055
CNC 8055i
Auxiliary functions M03, M04 and M05 may be executed using the following PLC marks:
First spindle: PLCM3 (M5070), PLCM4 (M5071) and PLCM5 (M5072).
Second spindle: PLCM3SP2 (M5073), PLCM4SP2 (M5074) and PLCM5SP2 (M5075).
75
Auxiliary spindle: PLCM45 (M5076) to stop the auxiliary spindle and PLCM45S (M5077) to start
it up.
The PLC activates these marks to indicate to the CNC that it must execute the corresponding M
function at the indicated spindle.
If that spindle is not the main spindle at that moment, it changes the M in the execution history, it
activates the corresponding PLC mark DM3/4//5 and executes the transfer with the PLC (it writes
the M number in the MBCD1 (R550) register, it activates the MSTROBE signal, it waits for the
AUXEND signal to go up and it cancels the MSTROBE signal; if the M function is set as not to wait
for AUXEND in the M function table, it waits for the time period set with MINAENDW and cancels
the MSTROBE).
Auxiliary function (M)
5.
When acting upon the secondary spindle, it executes the same operation, but having activated the
mark S2MAIN (M5536) first and then cancelling it at the end. This operation is done automatically;
i.e. there is no need to program it at the PLC.
Even if the M3, M4 or M5 function has an associated subroutine in the M function table, that
subroutine will not be executed when they are executed using the PLC marks.
When executing M3, M4 or M5 using the PLC marks, the gear change that could be required by
the new S is not output to the PLC even if the gear change is automatic.
If the CNC is started up with no gear being active yet, because no M3 or M4 has been executed in
the main channel, the CNC will issue an error message even if it has been configured as AUTOGEAR.
The CNC will admit the M functions from the PLC as long as it is not in an error state or with LOPEN
(M5506) high, whether there is an execution active or not, either in manual or automatic. If the M
function is executed during a tool inspection and the spindle turning direction is changed, the change
will be identified in repositioning and it will offer the choice to change it again.
If when activating the M3, M4 or M5 marks via PLC, the main channel is transferring something to
the PLC, the PLC keeps the mark active until the CNC can attend to it. Once the M function is
executed, the CNC deactivates the mark.
In the following cases, the CNC ignores these PLC marks and deletes the mark so the request is
not left as pending:
When the spindle is threading in electronic threading (G33).
When it is doing a rigid tapping or a regular tapping.
When the CNC is in error state or when LOPEN (M5506) is high.
When activating several marks of different spindles at the same time, it will follow this order: first
the first spindle, then the second spindle and last the auxiliary spindle.
When receiving contradictory marks, they will all be ignored. When receiving several marks at the
same time and there is a stop (PLCM5 / PLCM45) between them, only this will be considered and
the rest will be ignored and not saved.
If the spindle has M19TYPE=1, the spindle is homed with the first M3 or M4 after start-up, as long
as that M function is executed in manual or automatic mode. If the M function is executed using one
of the PLC marks, the spindle will not be homed.
When activating the PLC marks while homing the spindle, the PLC command stays waiting for the
homing operation to be over. If the home search is associated with the first M3 or M4 after startup, the PLC command stays waiting for the homing operation is over.
If there are synchronized spindles, it acts upon the command of the main and secondary spindles
at the same time.
CNC 8055
CNC 8055i
While executing the M function, it is possible to abort the process by deactivating the PLC mark that
has initiated it.
Note:
The PLCM5 mark is used to handle the open-door safety operation defined by Fagor Automation.
M & EN MODELS
SOFT: V01.4X
76
P r o gr a m m i ng m a n u a l
5.
ISO CODE PROGRAMMING
5.7.6
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
77
5.7.7
5.
Auxiliary function (M)
If the spindle has a home switch, the CNC modifies the spindle speed until it reaches the one
set by spindle machine parameter "REFEED1".
It then searches for actual marker pulse (Io) of the spindle encoder at the turning speed set by
spindle machine parameter REFEED2.
And, finally, it positions the spindle at the programmed S5.5 point.
If the spindle does not have a home switch, it searches the encoder marker pulse at the turning
speed set by spindle machine parameter REFEED2.
And, then, it positions the spindle at the programmed S5.5 point.
If only M19 is executed, the spindle is oriented to position "I0".
To, now, orient the spindle to another position, program M19 S5.5, the CNC will not perform the
home search since it is already in closed loop and it will orient the spindle to the indicated position.
(S5.5).
The S5.5 code indicates the spindle position, in degrees, from the spindle reference point (marker
pulse).
The sign indicates the counting direction and the 5.5 value is always considered to be absolute
coordinates regardless of the type of units currently selected.
Example:
S1000 M3
Spindle in open loop.
M19 S100
The spindle switches to closed loop. Home search and positioning (orientation) at 100.
M19 S -30
The spindle orients to -30, passing through 0.
M19 S400
The spindle turns a whole revolution and positions at 40.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
78
During the M19 process the screen will display the warning: "M19 in execution"
P r o gr a m m i ng m a n u a l
Regardless of whether the gear change is automatic or not, functions M41 through M44 may have
an associated subroutine. If the function M41 through M44 is programmed and then an S
corresponding to that gear, it does not generate the automatic gear change and it does not execute
the associated subroutine.
5.
Auxiliary function (M)
If this machine parameter is set for non-automatic gear change, M41 thru M44 will have to be
programmed every time a gear change is required. Bear in mind that the maximum velocity
command value assigned to machine parameter "MAXVOLT" corresponds to the maximum speed
indicated for each one of the speed ranges (machine parameters "MAXGEAR1" thru
"MAXGEAR4").
5.7.8
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
79
5.7.9
5.
Auxiliary function (M)
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
80
Whenever the auxiliary spindle or live tool is active, the CNC will let the PLC know by activating the
general logic output "DM45" (M5548).
Also, it is possible to set the machine parameter for the auxiliary spindle "SPDLOVR" so the Override
keys of the front panel can modify the currently active turning speed of the auxiliary spindle.
PATH CONTROL
The CNC allows you to program movements on one axis only or several at the same time.
Only those axes which intervene in the required movement are programmed. The programming
order of the axes is as follows :
X, Y, Z, U, V, W, A, B, C
6.1
X100 Y100
;Starting point
It is possible, via the general machine parameter "RAPIDOVR", to establish if the feedrate override
% switch (when working in G00) operates from 0% to 100%, or whether it stays constant at 100%.
When G00 is programmed, the last "F" programmed is not cancelled i.e. when G01, G02 or G03
are programmed again "F" is recovered.
G00 is modal and incompatible with G01, G02, G03, G33 G34 and G75. Function G00 can be
programmed as G or G0.
On power-up, after executing M02, M30 or after EMERGENCY or RESET, the CNC assumes code
G00 or G01, depending on how general machine parameter "IMOVE" has been set.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
81
6.2
PATH CONTROL
6.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
82
P r o gr a m m i ng m a n u a l
6.
PATH CONTROL
6.3
This system of coordinates refers to the movement of the tool on the part.
Circular interpolation can only be executed on a plane. The form of definition of circular interpolation
is as follows :
Cartesian coordinates
The coordinates of the endpoint of the arc and the position of the center with respect to the starting
point are defined according to the axes of the work plane.
The center coordinates are defined in radius by the letters I, J, or K, each one of these being
associated to the axes as follows: When not defining the center coordinates, the CNC assumes that
their value is zero.
Axes X, U, A
==>
Axes Y, V, B
==>
Axes Z, W, C
==>
CNC 8055
CNC 8055i
Programming format:
Plane XY:
G02(G03)
X5.5
Y5.5
I6.5
J6.5
Plane ZX:
G02(G03)
X5.5
Z5.5
I6.5
K6.5
Plane YZ:
G02(G03)
Y5.5
Z5.5
J6.5
K6.5
M & EN MODELS
SOFT: V01.4X
83
The programming order of the axes is always maintained regardless of the plane selected,, as are
the respective center coordinates.
Plane AY:
G02(G03)
Y5.5
A5.5
J6.5
I6.5
Plane XU:
G02(G03)
X5.5
U5.5
I6.5
I6.5
Polar coordinates
PATH CONTROL
6.
It is necessary to define the angle to be traveled Q and the distance from the starting point to the
center (optional), according to the axes of the work plane.
The center coordinates are defined by the letters I, J, or K, each one of these being associated to
the axes as follows:
Axes X, U, A
==>
Axes Y, V, B
==>
Axes Z, W, C
==>
If the center of the arc is not defined, the CNC will assume that it coincides with the current polar
origin.
Programming format:
Plane XY:
G02(G03)
Q5.5
I6.5
J6.5
Plane ZX:
G02(G03)
Q5.5
I6.5
K6.5
Plane YZ:
G02(G03)
Q5.5
J6.5
K6.5
G02(G03)
X5.5
Y5.5
R6.5
Plane ZX:
G02(G03)
X5.5
Z5.5
R6.5
Plane YZ:
G02(G03)
Y5.5
Z5.5
R6.5
If a complete circle is programmed, with radius programming, the CNC will show the corresponding
error, as infinite solutions exist.
If an arc is less than 180o, the radius is programmed with a plus sign, and a minus sign if it is more
than 180o.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
84
P r o gr a m m i ng m a n u a l
Depending on the circular interpolation G02 or G03, and on the radius sign, the relevant arc is
defined. Thus the programming format of the sample arcs is as follows:
Arc 1
Arc 2
Arc 3
Arc 4
If P0 is the starting point and P1 the endpoint, there are 4 arcs which have the same value passing
through both points.
PATH CONTROL
6.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
85
Programming examples
PATH CONTROL
6.
Various programming modes are analyzed below, point X60 Y40 being the starting point.
Cartesian coordinates:
G90 G17 G03 X110 Y90 I0 J50
X160 Y40 I50 J0
Polar coordinates:
G90 G17 G03 Q0 I0 J50
Q-90 I50 J0
or:
G93 I60 J90
G03 Q0
G93 I160 J90
Q-90
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
86
P r o gr a m m i ng m a n u a l
Cartesian coordinates:
G90 G17 G02 X170 Y80 I-50 J0
or:
G90 G17 G02 I-50 J0
Various programming modes analyzed below, point X170 Y80 being the starting Point.
PATH CONTROL
6.
Polar coordinates.
G90 G17 G02 Q36 0I-50 J0
or:
G93 I120 J80
G02 Q360
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
87
6.4
PATH CONTROL
6.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
88
Various programming modes are analyzed below, point X60 Y40 being the starting point.
Cartesian coordinates:
G90 G17 G06 G03 X110 Y90 I60 J90
G06 X160 Y40 I160 J90
Polar coordinates:
G90 G17 G06 G03 Q0 I60 J90
G06 Q-90 I160 J90
P r o gr a m m i ng m a n u a l
Supposing that the starting point is X0 Y40, you wish to program a straight line, then an arc tangential
to the line and finally an arc tangential to the previous one.
6.
PATH CONTROL
6.5
Function G08 is not modal, so it should always be programmed if you wish to execute an arc
tangential to the previous path. Function G08 can be programmed as G8.
Function G08 enables the previous path to be a straight line or an arc and does not alter its history.
The same function G01, G02 or G03 stays active after the block is finished.
When using function G08 it is not possible to execute a complete circle, as an infinite range of solutions
exists. The CNC displays the corresponding error code.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
89
6.6
PATH CONTROL
6.
Axes X, U, A
==>
Axes Y, V, B
==>
Axes Z, W, C
==>
In Cartesian coordinates:
G17
G09
X5.5
Y5.5
I5.5
J5.5
G09
R5.5
Q5.5
I5.5
J5.5
Polar coordinates:
G17
Example:
Function G09 is not modal, so it should always be programmed if you wish to execute an arc defined
by three points. Function G09 can be programmed as G9.
When G09 is programmed it is not necessary to program the direction of movement (G02 or G03).
Function G09 does not alter the history of the program. The same G01, G02 or G03 function stays
active after finishing the block.
Function G09 may not be used to programmed a full circle because all three points must be different.
The CNC displays the corresponding error code.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
90
P r o gr a m m i ng m a n u a l
Helical interpolation
A helical interpolation consists in a circular interpolation in the work plane while moving the rest of
the programmed axes.
The helical interpolation is programmed in a block where the circular interpolation must be
programmed by means of functions: G02, G03, G08 or G09.
G02
G02
G03
G08
G09
Helical interpolation
6.
PATH CONTROL
6.7
XYIJZ
XYRZA
QIJAB
XYZ
XYIJZ
If the helical interpolation is supposed to make more than one turn, the linear movement of another
axis must also be programmed (one axis only).
On the other hand, the pitch along the linear axis must also be set (format 5.5) by means of the I,
J and K letters. Each one of these letters is associated with the axes as follows:
Axes X, U, A
==>
Axes Y, V, B
==>
Axes Z, W, C
==>
G02
G02
G03
G08
G09
XYIJZK
XYRZK
QIJAI
XYBJ
XYIJZK
Example:
Z
Programming a helical interpolation
where the starting point is X0 Y0 Z0.
(X, Y)
Z=18
CNC 8055
CNC 8055i
15
It is now possible to program helical interpolations while Look Ahead is active (G51). Thanks to this,
CAN/CAM programs that contain this type of paths may be executed while look-ahead is active.
M & EN MODELS
SOFT: V01.4X
91
6.8
PATH CONTROL
6.
If the starting point is X0 Y30 and you wish to machine an arc (the path of approach being straight)
you should program:
G90 G01 X40
G02 X60 Y10 I20 J0
If, however, in the same example you require the entrance of the tool to the part to be machined
tangential to the path and describing a radius of 5 mm, you should program:
As can be seen in the figure, the CNC modifies the path so that the tool starts to machine with a
tangential entry to the part.
You have to program Function G37 plus value R in the block which includes the path you want to
modify.
CNC 8055
CNC 8055i
R5.5 should appear in all cases following G37, indicating the radius of the arc which the CNC enters
to obtain tangential entry to the part. This R value must always be positive.
Function G37 should only be programmed in the block which includes a straight-line movement (G00
or G01). If you program in a block which includes circular movement (G02 or G03), the CNC displays
the corresponding error.
M & EN MODELS
SOFT: V01.4X
92
P r o gr a m m i ng m a n u a l
If the starting point is X0 Y30 and you wish to machine an arc (with the approach and exit paths
in a straight line), you should program :
G90 G01 X40
G02 X80 I20 J0
G00 X120
6.
PATH CONTROL
6.9
If, however, in the same example you wish the exit from machining to be done tangentially and
describing a radius of 5 mm, you should program :
G90 G01 X40
G02 G38 R5 X80 I20 J0
G00 X120
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
93
6.10
6.
PATH CONTROL
The R5.5 value should always follow G36. It also indicates the rounding radius which the CNC
applies to get the required corner rounding. This R value must always be positive.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
94
P r o gr a m m i ng m a n u a l
Chamfer (G39)
In machining operations it is possible (using G39) to chamfer corners between two straight lines,
without having to calculate intersection points.
Function G39 is not modal, so it should be programmed whenever the chamfering of a corner is
required.
This function should be programmed in the block in which the movement whose end you want to
chamfer is defined.
6.
Chamfer (G39)
The R5.5 value should always follow G39. It also indicates the distance from the end of the
programmed movement as far as the point where you wish to carry out the chamfering. This R value
must always be positive.
PATH CONTROL
6.11
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
95
6.12
Threading (G33)
If the machine spindle is equipped with a rotary encoder, you can thread with a tool tip via function
G33.
Although this threading is often done along the entire length of an axis, the CNC enables threading
to be done interpolating more than one axis at a time.
Programming format:
G33 X.....C L Q
Threading (G33)
PATH CONTROL
6.
X...C 5.5
L 5.5
Thread pitch
Q 3.5
Optional. It indicates the spindle angular position (359.9999) of the thread's starting
point. If not programmed, a value of 0 is assumed.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
96
P r o gr a m m i ng m a n u a l
Example:
We would like to a make a thread in a single pass in X0 Y0 Z0, with a depth of 100 mm and a pitch
of 5 mm using a threadcutting tool located in Z10.
G33 Z -100 L5
; Threading
M19
; Spindle orientation
G00 X3
; Cutter withdrawal
Z30
6.
Threading (G33)
; Positioning
PATH CONTROL
G90 G0 X Y Z
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
97
6.13
PATH CONTROL
6.
X...C 5.5
L 5.5
Thread pitch
Q 3.5
Optional. It indicates the spindle angular position (359.9999) of the thread's starting
point. If not programmed, a value of "0" is assumed.
K 5.5
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
98
P r o gr a m m i ng m a n u a l
After G52, program the desired axis as well as the target coordinate of the move.
Function G52 is not modal; therefore, it must be programmed every time this operation is to be
carried out.
Also, it assumes functions G01 and G40 modifying the program history. It is incompatible with
functions G00, G02, G03, G33, G34, G41, G42, G75 and G76.
6.
The axis will move towards the programmed target coordinate until running into something. If the
axis reaches the programmed target coordinate without running into the hardstop it will stop.
PATH CONTROL
6.14
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
99
6.15
6.
PATH CONTROL
In order for a greater value of "F" to indicate a greater feedrate, the value assigned to "F" is defined
as "Inverted function of time" and it is assumed as the activation of this feature.
"F" units: 1/min
Example: G32 X22 F4
indicates that the movement must be executed in 1/4 minute; i.e. in 0.25 minutes.
Function G32 is modal and incompatible with G94 and G95.
On power-up, after executing M02, M30 or after an Emergency or Reset, the CNC assumes G94
or G95 depending on the setting of general machine parameter "IFFED".
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
100
P r o gr a m m i ng m a n u a l
The path is defined by the axes of the active plane. The axis maintaining the orientation must be
a rotary rollover axis (A, B or C).
Programming format:
G45 Axis Angle
Axis
Angle
Indicates the angular position in degrees with respect to the path (359.9999). If not
programmed, "0" will be assumed.
6.
PATH CONTROL
6.16
To cancel this function, program G45 alone (without defining the axis).
Every time G45 (tangential control) is activated, the CNC acts as follows:
1. Positions the tangential axis, with respect to the first section in the programmed position.
2. The interpolation of the plane axes starts once the tangential axis has been positioned.
3. The orientation of the tangential axis is maintained in linear sections whereas in circular
interpolations the programmed orientation is maintained throughout the whole travel.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
101
4. If the joint of sections requires a new orientation of the tangential axis, the following takes place:
1 Ends the current section.
2 Orients the tangential axis with respect to the next section.
3 Resumes the execution.
PATH CONTROL
6.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
102
When working in round corner (G05), the tool orientation is not maintained at the corners since
it begins before ending the current section.
It is recommended to work in square corner (G07). However, to work in round corner (G05),
function G36 (automatic radius blend) should be used in order to also maintain tool orientation
at the corners.
4. To cancel this function, program G45 alone (without defining the axis).
Even when the tangential axis takes the same orientation by programming 90 or -270, the turning
direction in a direction change depends on the programmed value.
P r o gr a m m i ng m a n u a l
6.16.1
Tangential control, G45, is optional. It can only be executed in the main channel and is compatible
with:
Tool radius and length compensation (G40, 41, 42, 43, 44).
Mirror image (G10, 11, 12, 13 14).
Gantry axes , including the gantry axis associated with the tangential rotary axis.
The maximum feedrate while orienting the tangential axis is defined by machine parameter
MAXFEED for that axis.
Tangential control is canceled when jogging the axes with the jog keys (not in MDI). Once the
movement is over, tangential control is recovered.
Likewise, the following is NOT possible:
While in JOG mode, tangential control may be activated in MDI mode and the axes may be moved
by programming blocks in MDI.
6.
PATH CONTROL
While tangential control is active, tool inspection is also possible. When accessing tool inspection,
the tangential control is deactivated, the axes are free and when quitting tool inspection, tangential
control may be activated again.
To define as tangential axis, one of the plane axes, the longitudinal axis or any other axis which
is not rotary.
To jog the tangential axis in JOG mode or by program using another G code while tangential
control is active.
Inclined planes.
The TANGAN variable is read-only, from the CNC, PLC and DNC, associated with function G45.
It indicates the angular position, in degrees, referred to the programmed path.
Also, general logic output TANGACT (M5558) indicates to the PLC that function G45 is active.
Function G45 is modal and is canceled when executing G45 alone (without defining the axis), on
power-up, after executing an M02 or M30 or after an EMERGENCY or RESET.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
103
6.17
6.
PATH CONTROL
If no G45 has been programmed, G145 is ignored. If K is not programmed, K0 will be assumed.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
104
G145 K1
It resumes the tangential control of the axis with the angle it had before it was canceled. Then, G145
disappears from history.
ADDITIONAL PREPARATORY
FUNCTIONS
7.1
Function G04 is not modal, so it should be programmed whenever you wish to interrupt block
preparation.
It should be programmed on its own and in the block previous to the one in which the evaluation
in execution is required. Function G04 can be programmed as G4.
Every time G04 is programmed, active radius and length compensation are cancelled.
For this reason, care needs to be taken when using this function, because if it is introduced between
machining blocks which work with compensation, unwanted profiles may be produced.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
105
Example:
The following program blocks are performed in a section with G41 compensation.
...
N10
N15
/1 N17
N20
N30
...
7.
X50 Y80
G04
M10
X50 Y50
X80 Y50
Block N15 interrupts block preparation and the execution of block N10 will finish at point A.
Once the execution of block N15 has been carried out, the CNC continues preparing blocks starting
from block N17.
As the next point corresponding to the compensated path is point "B", the CNC will move the tool
to this point, executing path "A-B".
As you can see, the resulting path is not the required one, so we recommend avoiding the use of
function G04 in sections which work with compensation.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
106
P r o gr a m m i ng m a n u a l
Function
Description
G04
G04 K50
G04 K0 or G04 K
It interrupts block preparation and updates the CNC coordinates to the current
position.
(G4 K0 works in the CNC and PLC channel).
7.
G04 operation:
ADDITIONAL PREPARATORY FUNCTIONS
7.1.1
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
107
7.2
Dwell (G04 K)
A dwell can be programmed via function G04 K.
The dwell value is programmed in hundredths of a second via format K5 (1..99999).
Example:
G04 K50
G04 K200
7.
Dwell (G04 K)
Function G04 K is not modal, so it should be programmed whenever a dwell is required. Function
G04 K can be programmed as G4 K.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
108
P r o gr a m m i ng m a n u a l
7.3
7.3.1
The theoretical and real profile coincide, obtaining square corners, as seen in the figure.
Function G07 is modal and incompatible with G05, G50 and G51. Function G07 can be programmed
as G7.
On power-up, after executing M02, M30 or after EMERGENCY or RESET, the CNC assumes code
G05 or G07 depending on how the general machine parameter "ICORNER" is set.
7.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
109
7.3.2
7.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
110
Via this function round corners can be obtained, as shown in the figure.
The difference between the theoretical and real profiles depends on the programmed feedrate value
"F". The higher the feedrate, the greater the difference between both profiles.
Function G05 is modal and incompatible with G07, G50 and G51. Function G05 can be programmed
as G5.
On power-up, after executing M02, M30 or after EMERGENCY or RESET, the CNC assumes code
G05 or G07 depending on how the general machine parameter "ICORNER" is set.
P r o gr a m m i ng m a n u a l
Function G50 assures that the difference between the theoretical and actual paths stays smaller
than what was set by machine parameter "INPOSW2".
On the other hand, when working in G05, the difference between the theoretical and real profiles
depends on the programmed feedrate value "F". The higher the feedrate, the greater the difference
between both profiles.
Function G50 is modal and incompatible with G07, G05 and G51.
On power-up, after executing M02, M30 or after EMERGENCY or RESET, the CNC assumes code
G05 or G07 depending on how the general machine parameter "ICORNER" is set.
7.
G91 G01 G50 Y70 F100
X90
7.3.3
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
111
7.4
Look-ahead (G51)
Programs consisting of very small movement blocks (CAM, digitizing, etc.) tend to run very slowly.
Those programs may be executed at high machining speed using the "Look-Ahead" function.
The look-ahead function analyzes in advance the path to be machined (up to 75 blocks) in order
to calculate the maximum feedrate for each section of the path. This function provides smoother
and faster machining in programs with very small movements, even in the order of microns.
When operating with "Look-Ahead", it is a good idea to adjust the axes so their following error (lag)
is as small as possible because the contouring error will be at least equal to the minimum following
error.
Look-ahead (G51)
7.
Programming format:
The programming format is:
G51 [A] E B
A (0-255)
E (5.5)
B (0-180)
Block I
Block I+1
Parameter "A" permits using a standard working acceleration and another one to be used when
executing with Look-Ahead.
If parameter "B" is not programmed, the square corner management at the corners is canceled.
The square-corner management at the corners is valid for the look-ahead algorithm with jerk
management and for the look-ahead algorithm without jerk management.
CNC 8055
CNC 8055i
If any of the circumstances listed below occurs while executing with Look-Ahead, the CNC slows
down to "0" at the previous block and it recovers the machining conditions for Look-Ahead in the
next motion block.
Motionless block.
Execution of auxiliary functions (M, S, T).
Single block execution mode.
M & EN MODELS
SOFT: V01.4X
MDI mode.
Tool inspection mode.
If a Cycle Stop, Feed-Hold, etc. occurs while executing in Look-Ahead mode, the machine may not
stop at the current block, several additional blocks will be necessary to stop with the permitted
deceleration.
112
P r o gr a m m i ng m a n u a l
To prevent motionless blocks from causing a square-corner effect, change bit 0 of general machine
parameter MANTFCON (P189).
Function properties:
Function G51 is modal and incompatible with G05, G07 and G50. Should any of them be
programmed, function G51 will be canceled and the new one will be selected.
Function G51 must be programmed alone in a block and there must be no more information in that
block.
G33
Electronic threading.
G34
Variable-pitch threading.
G52
G95
Look-ahead (G51)
On the other hand, the CNC will issue Error 7 (Incompatible G functions) when programming any
of the following functions while G51 is active:
7.
ADDITIONAL PREPARATORY FUNCTIONS
On power-up, after executing an M02, M30, of after an EMERGENCY or RESET, the CNC will cancel
G51, if it was active, and it will assume G05 or G07 according to the setting of general machine
parameter "ICORNER".
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
113
7.4.1
Look-ahead (G51)
7.
Considerations
If there are no Fagor filters set by machine parameters in the axes of the main channel, activating
the advanced look-ahead algorithm will internally activate FIR filters of the 5th order and a
frequency of 30 Hz in all the axes of the channel.
If there are Fagor filters set by machine parameters, activating the advanced look-ahead
algorithm will keep the values of those filters as long as their frequency is not higher than 30Hz
If their frequency is higher than 30 Hz, it will assume the values of 5th order and a frequency
of 30 Hz.
If there are several filters defined in the axes of the channel, the one with the lowest frequency
will be assumed as long as it is not higher than 30Hz.
Even if the advanced look-ahead algorithm (using Fagor filters) is active with bit 15 of g.m.p.
LOOKATYP (P160), it will not start working in the following cases:
If g.m.p. IPOTIME (P73) = 1.
If a.m.p. SMOTIME (P58) of any of the axes of the main channel is other than 0.
If any of the axes of the main channel has defined by parameter a non-Fagor type filter, a.m.p.
TYPE (P71) is other than 2.
In these cases, when activating G51, the CNC will issue the corresponding error message.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
114
P r o gr a m m i ng m a n u a l
Programmed movement.
Real (actual) movement using Fagor filters.
Real (actual) movement without using Fagor
7.
Look-ahead (G51)
When machining circles, the error will be smaller when using Fagor filters than without using these
filters:
7.4.2
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
115
7.5
7.
G10:
G11:
G12:
G13:
G14:
Examples:
G14 W
G14 X Z A B
When the CNC works with mirror images, it executes the movements programmed in the axes that
have mirror image selected, with the sign changed.
of subroutine
of subroutine
of subroutine
of subroutine
;
;
;
;
;
;
;
;
Machines "a".
Mirror image on X axis.
Machines "b".
Mirror image on the Y axis.
Machines "c".
Mirror image on X and Y axes.
Machines "d".
End of program
Functions G11, G12, G13, and G14 are modal and incompatible with G10.
CNC 8055
CNC 8055i
G11, G12, and G13 can be programmed in the same block, because they are not incompatible with
each other. Function G14 must be programmed alone in the block.
If function G73 (pattern rotation) is also active in a mirror image program, the CNC first applies the
mirror image function and then the pattern rotation.
If while one of the mirror imaging functions (G11, G12, G13, and G14) is active, a new coordinate
origin (part zero) is preset with G92, this new origin will not be affected by the mirror imaging function.
M & EN MODELS
SOFT: V01.4X
116
On power-up, after executing M02, M30 or after EMERGENCY or RESET, the CNC assumes code
G10.
P r o gr a m m i ng m a n u a l
7.
7.6
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
117
7.6.1
Following G72 all coordinates programmed are multiplied by the value of the scaling factor defined
by S until a new G72 scaling factor definition is read or the definition is canceled.
Programming example (starting point X-30 Y10)
7.
X-19 Y0
X0 Y10 F150
X0 Y-10 I0 J-10
X-19 Y0
; Coordinate preset
(zero offset)
; Applies a scaling factor of 2
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
118
G90 G00 X0 Y0
N10 G91 G01 X20 Y10
Y10
X-10
N20 X-10 Y-20
; Scaling factor
G72 S0.5
; Repeats from block 10 to block 20
(RPT N10,20)
M30
Function G72 is modal and is cancelled when another scaling factor with a value of S1 is
programmed, or on power-up, after executing M02, M30 or after EMERGENCY or RESET.
P r o gr a m m i ng m a n u a l
7.6.2
After G72 the axis or axes and the required scaling factor are programmed.
All blocks programmed after G72 are treated by the CNC as follows :
1. The CNC calculates the movement of all the axes in relation to the programmed path and
compensation.
If, within the same program, both scaling factor types are applied, the one applied to all the axes
and the one for one or several axes, the CNC applies a scaling factor equal to the product of the
two scaling factors programmed for this axis to the axis or axes affected by both types.
Function G72 is modal and will be cancelled when the CNC is turned on, after executing M02, M30
or after an EMERGENCY or RESET.
This type of scaling factor is ignored when simulating without moving the axes.
Application of the scaling factor to a plane axis, working with tool radius compensation.
If the scaling factor is applied on one or more axes, the CNC will apply the scaling factor indicated
both to the movement of the corresponding axis or axes and to their feedrate.
7.
2. It then applies the scaling factor indicated to the calculated movement of the corresponding axis
or axes.
As it can be observed, the tool path does not coincide with the required path, as the scaling
factor is applied to the calculated movement.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
119
If a scaling factor equal to 360/2R is applied to a rotary axis, R being the radius of the cylinder on
which you wish to machine, this axis can be considered linear, and any figure with tool radius
compensation can be programmed on the cylindrical surface.
7.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
120
P r o gr a m m i ng m a n u a l
Where:
Indicates the rotation angle in degrees.
I, J
The are optional and define the abscissa and ordinate respectively of the rotation center. If
they are not defined, the coordinate origin will be taken as the rotation center.
The "I" and "J" values are defined in absolute coordinates and referred to the coordinate origin of
the work plane. These coordinates are affected by the active scaling factor and mirror images.
7.
Pattern rotation (G73)
7.7
You should remember that G73 is incremental i.e. the different Q values programmed add up.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
121
7.
; Coordinate rotation
; Repeat from block 10 to 20 seven times
; End of program
In a program which rotates the coordinate system, if any mirror image function is also active the CNC
first applies the mirror image function and then the turn.
The pattern rotation function can be cancelled either by programming G72 (on its own, without angle
value) or via G16, G17, G18, or G19, or on power-up, after executing M02, M30 or after
EMERGENCY or RESET.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
122
P r o gr a m m i ng m a n u a l
7.
Electronic axis coupling/uncoupling
By program. This enables electronic coupling and uncoupling between two or more axes,
through functions G77 and G78.
7.8
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
123
7.8.1
Where <Axis 2>, <Axis 3>, <Axis 4> and <Axis 5> will indicate the axes to be coupled to <Axis
1>. You have to define <Axis 1> and <Axis 2>, the programming of the rest of the axes being
optional.
7.
Example:
Electronic axis coupling/uncoupling
G77 X Y U
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
124
G77 V Z
You cannot couple one axis to two others at the same time.
G77 V Y
G77 X Y
G77 X U
G77 X Y
A pair of axes which are already coupled to each other cannot be coupled to another axis.
G77 Y U
G77 X Y
P r o gr a m m i ng m a n u a l
Example.
G77 X Y U
G77 V Z
G78 Y
G78
7.
Electronic axis coupling/uncoupling
G78
7.8.2
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
125
7.9
7.
With function G28 the axes can be toggled from one to the other in such way that after that instruction
all the movements associated with the first axis next to G28 will take place on the second axis next
to G28 and vice versa.
Programming format:
G28 (axis 1) (axis 2)
To cancel the toggle, execute function G29 followed by one of the axes to be toggled back. Up to
three pairs of axes may be toggled at the same time.
The main axes cannot be toggled while the C axis is active on a lathe.
On power-up, after executing an M30 or after an emergency or reset, the axes are toggled back as
long as G48 or G49 is not active.
Example. Let us suppose that the part program is defined for table 1.
1. Execute the part-program on table 1
2. G28 BC. Toggle the "B" and "C" axes
3. Zero offset for machining on table 2.
4. Execute the part-program.
It will be executed on table 2.
In the meantime, replace the part made on table 1 with a new one.
5. G29 B. Toggle the BC axes back.
6. Cancel zero offset to machine on table 1.
7. Execute the part-program.
It will be executed on table 1.
In the meantime, replace the part made on table 2 with a new one.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
126
TOOL COMPENSATION
The CNC has a tool offset table, its number of components being defined via the general machine
parameter "NTOFFSET". The following is specified for each tool offset:
Tool radius in work units in R5.5 format.
Tool length in work units in L5.5 format.
Wear of tool radius, in work units, in I5.5 format. The CNC adds this value to the theoretical
radius (R) to calculate the real radius (R+I).
Wear of tool length, in work units, in K5.5 format. The CNC adds this value to the theoretical
length (L) to calculate the real length (L+K).
When tool radius compensation is required (G41 or G42), the CNC applies the sum of R+I values
of the selected tool offset as the compensation value.
When tool length compensation is required (G43), the CNC applies the sum of L+K values of the
selected tool offset as the compensation value.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
127
8.1
8.
G41
The tool is to the left of the part, depending on the machining direction.
G42
The tool is to the right of the part, depending on the machining direction.
Tool values R, L, I, K should be stored in the tool offset table before starting machining, or should
be loaded at the beginning of the program via assignments to variables TOR, TOL, TOI, TOK.
Once the plane in which compensation will be applied has been chosen via codes G16, G17, G18,
or G19, this is put into effect by G41 or G42, assuming the value of the tool offset selected via code
D, or (in its absence) by the tool offset shown in the tool table for the selected tool (T).
Functions G41 and G42 are modal and incompatible to each other. They are cancelled by G40, G04
(interruption of block preparation), G53 (programming with reference to machine zero), G74 (home
search), machining canned cycles (G81, G82, G83, G84, G85, G86, G87, G88, G89) and also on
power-up, after executing M02, M30 or after EMERGENCY or RESET.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
128
P r o gr a m m i ng m a n u a l
If in that subroutine, a block is executed that contains function G53 (programming in machine
coordinates), the previously programmed G41 or G42 is canceled.
The selection of tool radius compensation (G41 or G42) can only be made when functions G00 or
G01 are active (straight-line movements).
If the compensation is selected while G02 or G03 are active, the CNC will display the corresponding
error message.
The following pages show different cases of starting tool radius compensation, in which the
programmed path is represented by a solid line and the compensated path with a dotted line.
8.
Tool radius compensation (G40, G41, G42)
When the new selected tool has function M06 associated with it and this, in turn, has an associated
subroutine, the CNC will first process the motion block of that subroutine as the starting block of
the compensation.
TOOL COMPENSATION
8.1.1
In this case, the compensation is applied in the current tool position; depending on the first movement
programmed in the plane, the tool moves perpendicular to the path on its starting point.
The first movement programmed in the plane may be either linear or circular.
Y
X
Y
X
G90
G01 Y40
G91 G40 Y0 Z10
G02 X20 Y20 I20 J0
(X0 Y0)
G90
G01 X-30 Y30
G01 G41 X-30 Y30 Z10
G01 X25
(X0 Y0)
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
129
STRAIGHT-STRAIGHT path
TOOL COMPENSATION
8.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
130
P r o gr a m m i ng m a n u a l
STRAIGHT-CURVED path
TOOL COMPENSATION
8.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
131
8.1.2
TOOL COMPENSATION
8.
The way the various paths are blended (joined) depends on the setting of machine parameter
COMPMODE.
If it is set to 0, the compensation method depends on the angle between paths.
With an angle between paths of up to 300, both paths are joined with straight sections. In the
rest of the cases, both paths are joined with arcs.
If it is set to 1, both paths are joined with arcs.
If it is set to 2, the compensation method depends on the angle between paths.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
132
With an angle between paths of up 300, it calculates the intersection. In the rest of the cases
it is compensated like COMPMODE = 0.
P r o gr a m m i ng m a n u a l
After cancelling the compensation, it could happen that the plane axes do not get involved in the
first motion block either because they have not been programmed or because the same point as
the tool position has been programmed or because a null incremental move has been programmed.
In this case, the compensation is canceled in the current tool position; depending on the last
movement executed in the plane, the tool moves to the end point without compensating the
programmed path.
(X0 Y0)
(X0 Y0)
8.
TOOL COMPENSATION
8.1.3
Y
X
G90
G01 X-30
G01 G40 X-30
G01 X25 Y-25
G90
G03 X-20 Y-20 I0 J-20
G91 G40 Y0
G01 X-20
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
133
STRAIGHT-STRAIGHT path
TOOL COMPENSATION
8.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
134
P r o gr a m m i ng m a n u a l
CURVED-STRAIGHT path
TOOL COMPENSATION
8.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
135
TOOL COMPENSATION
8.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
136
The programmed path is represented by a solid line and the compensated path by a dotted line.
Tool radius
10mm
Tool number
T1
D1
; Preset
G92 X0 Y0 Z0
; Tool, offset and spindle start at S100
G90 G17 S100 T1 D1 M03
; Begins compensation
G41 G01 X40 Y30 F125Y70
X90
Y30
X40
; Cancels compensation
G40 G00 X0 Y0
M30
P r o gr a m m i ng m a n u a l
Tool radius
10mm
Tool number
T1
D1
; Preset
G92 X0 Y0 Z0
; Tool, offset and spindle start at S100
G90 G17 F150 S100 T1 D1 M03
; Begins compensation
G42 G01 X30 Y30
X50
Y60
X80
X100 Y40
X140
X120 Y70
X30
Y30
; Cancels compensation
G40 G00 X0 Y0
M30
The programmed path is represented by a solid line and the compensated path by a dotted line.
TOOL COMPENSATION
8.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
137
TOOL COMPENSATION
8.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
138
The programmed path is represented by a solid line and the compensated path by a dotted line.
Tool radius
10mm
Tool number
T1
D1
; Preset
G92 X0 Y0 Z0
; Tool, offset and spindle start at S100
G90 G17 F150 S100 T1 D1 M03
; Begins compensation
G42 G01 X20 Y20
X50 Y30
X70
G03 X85Y45 I0 J15
G02 X100 Y60 I15 J0
G01 Y70
X55
G02 X25 Y70 I-15 J0
G01 X20 Y20
; Cancels compensation
G40 G00 X0 Y0 M5
M30
P r o gr a m m i ng m a n u a l
8.
The programmed paths are compensated each on its corresponding side. The change of sides
takes place at the intersection point of both paths.
TOOL COMPENSATION
8.1.4
CNC 8055
CNC 8055i
B
M & EN MODELS
SOFT: V01.4X
139
8.2
8.
TOOL COMPENSATION
When G43 is programmed, the CNC compensates the length in accordance with the value of the
tool offset selected with code D, or (in its absence) the tool offset shown in the tool table for the
selected tool (T).
Tool values R, L, I, K should be stored in the tool offset table before starting machining, or should
be loaded at the beginning of the program via assignments to variables TOR, TOL, TOI, TOK.
If no tool offset is selected, the CNC takes D0 with R0 L0 I0 K0.
Function G43 is modal and can be canceled via G44 and G74 (home search). If general machine
parameter "ILCOMP=0", it is also canceled on power-up, after executing M02, M30 or after
EMERGENCY or RESET.
G53 (programming with respect to machine zero) temporarily cancels G43 only while executing a
block which contains a G53.
Length compensation can be used together with canned cycles, although here care should be taken
to apply this compensation before starting the cycle.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
140
P r o gr a m m i ng m a n u a l
Tool length
-4mm
Tool number
T1
D1
; Preset
G92 X0 Y0 Z0
; Tool, offset ...
G91 G00 G05 X50 Y35 S500 M03
; Begins compensation
G43 Z-25 T1 D1
G01 G07 Z-12 F100
G00 Z12
X40
G01 Z-17
; Cancels compensation
G00 G05 G44 Z42 M5
G90 G07 X0 Y0
M30
It is assumed that the tool used is 4 mm shorter than the programmed one.
TOOL COMPENSATION
8.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
141
8.3
TOOL COMPENSATION
8.
When detecting a loop or a collision, the blocks that caused it will not be executed and a warning
will be issued for each loop or collision eliminated.
Possible cases: a step on a straight path, a step in a circular path and tool radius compensation too
large.
The information contained in the eliminated blocks, not being the moving in the active plane, will
be executed (including the movements of the axes).
Block detection is defined and activated with tool radius compensation functions G41 and G42. A
new parameter N (G41 N y G42 N) has been added to activate the feature and define the number
of blocks to analyze.
Possible values from N3 to N50. Without "N", or with N0, N1 and N2 , it behaves like in older versions.
In CAD generated programs that are made up of lots of very short blocks, it is recommended to use
very low N values (around 5) so as not to jeopardize block processing time.
When this function is active, the history of active G functions shows G41 N or G42 N.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
142
CANNED CYCLES
These canned cycles can be performed on any plane, the depth being along the axis selected as
longitudinal via function G15 or, in its absence, along the axis perpendicular to this plane.
The CNC offers the following machining canned cycles :
G69
G81
G82
G83
G84
G85
G86
G87
G88
G89
G210
G211
G212
It also offers the following functions that can be used with the machining canned cycles:
G79
G98
G99
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
143
9.1
9.
CANNED CYCLES
However, once a canned cycle has been defined in a block and following blocks, functions G02, G03,
G08 or G09 can be programmed.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
144
P r o gr a m m i ng m a n u a l
If, within the area of influence of a canned cycle, there is a block which does not contain any
movement, the machining operation corresponding to the defined canned cycle will not be
performed, except in the calling block.
G81...
G90 G1 X100
G91 X10 N3
9.
CANNED CYCLES
9.2
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
145
9.2.1
9.
CANNED CYCLES
Next 2 programming examples are shown assuming that the work plane is formed by the X and Y
axes, and that the longitudinal axis (perpendicular) is the Z axis:
T1
M6
; Starting point.
G00 G90 X0 Y0 Z60
; Defines drilling cycle. Drills in A.
G81 G99 G91 X15 Y25 Z-28 I-14
; Drills in B.
G98 G90 X25
; Modifies reference plane and machining depth.
G79 Z52
; Drills in C.
G99 X35
; Drills in D.
G98 X45
; Modifies reference plane and machining depth.
G79 Z32
; Drills in E.
G99 X55
; Drills in F.
G98 X65
M30
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
146
P r o gr a m m i ng m a n u a l
T1
M6
; Starting point.
G00 G90 X0 Y0 Z60
; Defines drilling cycle. Drills in A.
G81 G99 X15 Y25 Z32 I18
; Drills in B.
G98 X25
; Modifies reference plane.
G79 Z52
; Drills in C.
G99 X35
; Drills in D.
G98 X45
; Modifies reference plane.
G79 Z32
; Drills in E.
G99 X55
; Drills in F.
G98 X65
M30
CANNED CYCLES
9.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
147
9.3
CANNED CYCLES
9.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
148
P r o gr a m m i ng m a n u a l
Should it be required to apply a scaling factor when working with canned cycles, it is advisable
that this scale factor be common to all the axes involved.
The execution of a canned cycle cancels radius compensation (G41 and G42). It is equivalent
to G40.
If tool length compensation (G43) is to be used, this function must be programmed in the same
block or in the one before the definition of the canned cycle.
The CNC applies the tool length compensation when the longitudinal (perpendicular) axis starts
moving. Therefore, it is recommended to position the tool outside the canned cycle area when
defining function G43 for the canned cycle.
The execution of any canned cycle will alter the global parameter P299.
9.
Some general points to consider
Should a canned cycle be entered with the spindle stopped, it will start in a clockwise direction
(M03), and maintain the same turning direction until the cycle is completed.
CANNED CYCLES
9.4
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
149
9.5
CANNED CYCLES
9.
Machining depth coordinate. This is programmed in the cycle definition block. It can be
programmed in absolute coordinates or in incremental coordinates, in which case it will be
referred to the reference plane.
There are two functions which allow to select the type of withdrawal of the longitudinal axis after
machining.
G98: Selects the withdrawal of the tool as far as the initial plane, once the indicated machining
has been done.
G99: Selects the withdrawal of the tool as far as the reference plane, once the indicated
machining has been done.
These functions can be used both in the cycle definition block and the blocks which are under the
influence of the canned cycle. The initial plane will always be the coordinate which the longitudinal
axis had when the cycle was defined.
The structure of a canned cycle definition block is as follows:
G**
Machining point
Parameters
FSTDM
N****
It is possible to program the starting point in the canned cycle definition block (except the longitudinal
axis), both in polar coordinates and in Cartesian coordinates.
After defining the point at which it is required to carry out the canned cycle (optional), the functions
and parameters corresponding to the canned cycle will be defined, and afterwards, if required, the
complementary functions F S T D M are programmed.
When programming, at the end of the block, the number of times a block is to be executed "N", the
CNC performs the programmed move and the machining operation corresponding to the active
canned cycle the indicated number of times.
If "N0" is programmed, it will not execute the machining operation corresponding to the canned cycle.
The CNC will only carry out the programmed movement.
The general operation for all the cycles is as follows:
1. If the spindle was previously running, it maintains the turning direction. If it was not in movement,
it will start by turning clockwise (M03).
2. Positioning (if programmed) at the starting point for the programmed cycle.
3. Rapid movement of the longitudinal axis from the initial plane to the reference plane.
4. Execution of the programmed machining cycle.
5. Rapid withdrawal of the longitudinal axis to the initial plane or reference plane, depending on
whether G98 or G99 has been programmed.
The explanation of each cycle assumes that the work plane is formed by the X and Y axes, and
that the longitudinal axis (perpendicular) is the Z axis:
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
150
P r o gr a m m i ng m a n u a l
drilling depth.
In the following examples, the part surface has a 0 coordinate, the holes are 8 mm deep and the
reference coordinate is 2 mm above the surface.
Example 1:
G19
G1 X25 F1000 S1000 M3
G81 X30 Y20 Z2 I-8 K1
9.
Machining canned cycles
CANNED CYCLES
Example 2:
G19
G1 X-25 F1000 S1000 M3
G81 X25 Y15 Z-2 I8 K1
Example 3:
G18
G1 Y25 F1000 S1000 M3
G81 X30 Y10 Z2 I-8 K1
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
151
Example 4:
G18
G1 Y-25 F1000 S1000 M3
G81 X15 Y60 Z-2 I8 K1
CANNED CYCLES
9.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
152
P r o gr a m m i ng m a n u a l
9.6
The tool withdraws to the Initial Plane, once the hole has been drilled.
G99
The tool withdraws to the Reference Plane, once the hole has been drilled.
CANNED CYCLES
9.
CNC 8055
CNC 8055i
If not programmed, a value of 1 mm is assumed. If programmed with a 0 value, the CNC will display
the corresponding error message.
[ D5.5 ] Reference plane
M & EN MODELS
SOFT: V01.4X
Defines the distance between the reference plane and the surface of the part where the drilling is
to be done.
In the first drilling, this amount will be added to "B" drilling step. If not programmed, a value of 0 is
assumed.
153
9.
When not programmed or programmed with a "0" value, it returns to the position indicated by H (relief
position) after each drilling peck.
With "J" greater than 1, after each peck, the tool returns the distance indicated by "H" and every
"J" pecks to the reference plane (RP).
With J1, it will return to the reference plane (RP) after each peck .
With J0, it will return to the relief position indicated by H.
[ K5 ] Dwell
Defines the dwell, in hundredths of a second, after each drilling peck until the withdrawal begins.
If not programmed, the CNC will take the value of "K0".
[ L5.5 ] Minimum drilling peck (step)
It defines the minimum value for the drilling peck. This paramater is used with "R" values other than
1. If not programmed or programmed with a 0 value, it assumes 1 mm.
[ R5.5 ] Reduction factor for the drilling pecks.
Factor that reduces the drilling peck (step) "B". If it is not programmed or is programmed with a value
of "0", it assumes a value of "1".
If R =1, all the drilling pecks will be the same (the programmed "B" value).
If R is other than 1, the first drilling peck will be "B", the second one "R B", The third one "R (RB)"
and so on. In other words, from the second peck on, the new peck will be the product of the R factor
times the previous peck.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
154
If R is selected with a value other than 1, the CNC will not allow smaller steps than that programmed
in L.
P r o gr a m m i ng m a n u a l
Basic operation
1. If the spindle was previously running, it maintains the turning direction. If it was not in movement,
it will start by turning clockwise (M03).
2. Rapid movement of the longitudinal axis from the initial plane to the reference plane.
9.
CANNED CYCLES
9.6.1
3. First drilling operation. The drilling axis moves in G01 to the programmed incremental depth "B
+ D".
4. Drilling loop. The following steps will be repeated until the programmed machining depth "I" is
reached.
1 Dwell K, in hundredths of a second, if it has been programmed.
2 Withdrawal of the longitudinal axis in rapid (G00) as far as the reference plane, if the number
of drillings programmed in J were made, otherwise it withdraws the distance programmed
in "H".
3 Rapid approach (G00) of the longitudinal axis to a "C" distance from the next peck.
4 New drilling step. G1 move of the longitudinal axis to the next incremental depth "B and R".
This movement will be carried out either in G07 or G50 depending on the value assigned
to the longitudinal axis "INPOSW2(P51)"
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
155
The first drilling penetration is done in G07 or G50 depending on the value assigned to the parameter
of the longitudinal axis "INPOSW2 (P51)" and to parameter "INPOSW1 (P19)". This is important
to join a drilling operation with another one in multiple drilling so the tool path is faster and smoother.
If INPOSW2 < INPOSW1 in G07 (square corner).
If INPOSW2 >= INPOSW1 in G50 (controlled round corner).
If a scaling factor is applied to this cycle, it should be borne in mind that this scaling factor will only
affect the reference plane coordinates and drilling depth.
Therefore, and due to the fact that parameter "D" is not affected by the scaling factor, the surface
coordinate of the part will not be proportional to the programmed cycle.
CANNED CYCLES
9.
Programming example assuming that the work plane is formed by the X and Y axes, that the
Z axis is the longitudinal axis and that the starting point is X0 Y0 Z0:
; Tool selection.
T1
M6
; Starting point.
G0 G90 X0 Y0 Z0
; Canned cycle definition.
G69 G98 G91 X100 Y25 Z-98 I-52 B12 C2 D2 H5 J2 K150 L3 R0.8 F100 S500 M8
; Cancels the canned cycle.
G80
; Positioning.
G90 X0 Y0
; End of program.
M30
Tool withdrawal
While machining, the CNC lets withdraw the tool to the starting plane stopping the spindle when
the tool reaches the starting plane.
Activating PLC mark RETRACYC (M5065) stops the main axis and the tool is withdrawn without
stopping the spindle. The spindle stops when the tool is retracted, once it reaches the starting plane.
CNC 8055
CNC 8055i
It goes down in G0 with spindle running to 1 mm before the coordinate where the hole stopped. From
then on, it continues at the F and S programmed in the cycle.
M & EN MODELS
SOFT: V01.4X
156
P r o gr a m m i ng m a n u a l
CANNED CYCLES
9.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
157
9.7
CANNED CYCLES
9.
The tool withdraws to the Initial Plane, once the hole has been drilled.
G99
The tool withdraws to the Reference Plane, once the hole has been drilled.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
158
P r o gr a m m i ng m a n u a l
Basic operation
1. If the spindle was previously running, it maintains the turning direction. If it was not in movement,
it will start by turning clockwise (M03).
2. Rapid movement of the longitudinal axis from the initial plane to the reference plane.
3. Drill the hole. Movement of the longitudinal axis at work feedrate, to the bottom of the hole
programmed in "I".
4. Dwell K, in hundredths of a second, if it has been programmed.
Programming example assuming that the work plane is formed by the X and Y axes, that the Z axis
is the longitudinal axis and that the starting point is X0 Y0 Z0:
; Tool selection.
T1
M6
; Starting point.
G0 G90 X0 Y0 Z0
; Canned cycle definition.
G81 G98 G00 G91 X250 Y350 Z-98 I-22 F100 S500
; Polar coordinate origin.
G93 I250 J250
; Turn and canned cycle, 3 times
Q-45 N3
; Cancels the canned cycle.
G80
; Positioning.
G90 X0 Y0
; End of program.
M30
9.
5. Withdrawal at rapid feedrate (G00) of the longitudinal axis to the initial or reference plane,
depending on whether G98 or G99 has been programmed.
CANNED CYCLES
9.7.1
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
159
Tool withdrawal
While machining, the CNC lets withdraw the tool to the starting plane stopping the spindle when
the tool reaches the starting plane.
Activating PLC mark RETRACYC (M5065) stops the main axis and the tool is withdrawn without
stopping the spindle. The spindle stops when the tool is retracted, once it reaches the starting plane.
9.
CANNED CYCLES
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
160
P r o gr a m m i ng m a n u a l
9.8
The tool withdraws to the Initial Plane, once the hole has been drilled.
G99
The tool withdraws to the Reference Plane, once the hole has been drilled.
CANNED CYCLES
9.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
161
9.8.1
Basic operation
1. If the spindle was previously running, it maintains the turning direction. If it was not in movement,
it will start by turning clockwise (M03).
2. Rapid movement of the longitudinal axis from the initial plane to the reference plane.
3. Drill the hole. Movement of the longitudinal axis at work feedrate, to the bottom of the hole
programmed in "I".
4. Dwell time K in hundredths of a second.
9.
CANNED CYCLES
5. Withdrawal at rapid feedrate (G00) of the longitudinal axis to the initial or reference plane,
depending on whether G98 or G99 has been programmed.
Programming example assuming that the work plane is formed by the X and Y axes, that the Z axis
is the longitudinal axis and that the starting point is X0 Y0 Z0:
; Tool selection.
T1
M6
; Starting point.
G0 G90 X0 Y0 Z0
; Canned cycle definition. Three machining operations are carried out.
G82 G99 G91 X50 Y50 Z-98 I-22 K15 F100 S500 N3
; Positioning and canned cycle
G98 G90 G00 X500 Y500
; Cancels the canned cycle.
G80
; Positioning.
G90 X0 Y0
; End of program.
M30
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
162
Tool withdrawal
While machining, the CNC lets withdraw the tool to the starting plane stopping the spindle when
the tool reaches the starting plane.
Activating PLC mark RETRACYC (M5065) stops the main axis and the tool is withdrawn without
stopping the spindle. The spindle stops when the tool is retracted, once it reaches the starting plane.
P r o gr a m m i ng m a n u a l
CANNED CYCLES
9.
"To end the cycle, press START to skip to the next SKIPCYCL".
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
163
9.9
CANNED CYCLES
9.
The tool withdraws to the Initial Plane, once the hole has been drilled.
G99
The tool withdraws to the Reference Plane, once the hole has been drilled.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
164
P r o gr a m m i ng m a n u a l
CANNED CYCLES
9.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
165
9.9.1
Basic operation
1. If the spindle was previously running, it maintains the turning direction. If it was not in movement,
it will start by turning clockwise (M03).
2. Rapid movement of the longitudinal axis from the initial plane to the reference plane.
3. First drilling operation. The longitudinal axis moves in G01 to the programmed incremental depth
"I".
4. Drilling loop. The following steps will be repeated "J-1" times as in the previous step the first
programmed drilling was done.
9.
CANNED CYCLES
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
166
P r o gr a m m i ng m a n u a l
While machining, the CNC lets withdraw the tool to the starting plane stopping the spindle when
the tool reaches the starting plane.
Activating PLC mark RETRACYC (M5065) stops the main axis and the tool is withdrawn without
stopping the spindle. The spindle stops when the tool is retracted, once it reaches the starting plane.
Tool withdrawal
9.
CANNED CYCLES
; Tool selection.
T1
M6
; Starting point.
G0 G90 X0 Y0 Z0
; Canned cycle definition.
G83 G99 X50 Y50 Z-98 I-22 J3 F100 S500 M4
; Positioning and canned cycle
G98 G90 G00 X500 Y500
; Cancels the canned cycle.
G80
; Positioning.
G90 X0 Y0
; End of program.
M30
CNC 8055
CNC 8055i
In this case, a block must be selected and a standard repositioning must be done before resuming
the execution of the program.
After inspecting the tool, once repositioning is done, the following choices will be offered:
M & EN MODELS
SOFT: V01.4X
167
9.10
9.
CANNED CYCLES
General machine parameter "STOPAP(P116)" indicates whether general inputs /STOP, /FEEDHOL
and /XFERINH are enabled or not while executing function G84.
It is possible to program a dwell before each reversal of the spindle turning direction, i.e., at the
bottom of the thread hole and when returning to the reference plane.
Using parameters B and H, the threading may be done with relief for chip breakage.
The tapping with relief is done in successive approaches until the programmed total depth is
reached. After every approach, it withdraws for chip relief. In this case, the dwell (K) is only applied
on the last pass, not on the relief passes.
Working in Cartesian coordinates, the basic structure of the block is as follows:
G84 G98/G99 X Y Z I K R J B H
The tool withdraws to the Initial Plane, once the hole has tapped.
G99
The tool withdraws to the Reference Plane, once the hole has tapped.
CNC 8055
CNC 8055i
If not programmed, it assumes as reference plane the current position of the tool.
[ I5.5 ] Thread depth.
Defines tapping depth. It can be programmed in absolute coordinates or incremental coordinates
and in this case will be referred to the reference plane.
M & EN MODELS
SOFT: V01.4X
[ K5 ] Dwell
Defines the dwell, in hundredths of a second, after the tapping until the withdrawal begins. If not
programmed, the CNC will take the value of "K0".
168
P r o gr a m m i ng m a n u a l
[ R ] Type of tapping
Defines the type of tapping to be carried out.
Normal tapping.
R1
Rigid tapping. The CNC stops the spindle with M19 and orients it to begin tapping.
R2
Rigid tapping. If the spindle is turning in M3 or M4, the CNC does not stop it nor orient
it to begin tapping. This option does not allow thread repair, even if the part has not been
released because the thread start (entry) will coincide with the one machined earlier.
9.
When rigid tapping, the returning feedrate will be J times the tapping feedrate. When not
programmed or programmed J1, they will both be the same.
In order to execute a rigid tapping, the spindle must be ready to operate in closed loop; in other words,
that it must have a servo drive-motor system with rotary encoder.
When rigid tapping, the CNC interpolates the movement of the longitudinal axis with the spindle
rotation.
[ B5.5 ] Penetration step during tapping with relief.
It is optional and sets the penetration step during tapping with relief. This parameter is ignored when
programming R=0 or R=2. Tapping with relief is only possible when programming R=1.
CANNED CYCLES
R0
When not programmed, tapping will be done in a single pass. When programmed with a 0 value,
it issues the corresponding error.
[ H5.5 ] Withdrawal distance after each penetration step.
This withdrawal will be done at a speed that will take into consideration the factor programmed in
J. This parameter is ignored when programming R=0 or R=2, or if parameter B has not been
programmed.
If not programmed or programmed with a 0 value, the withdrawal will be done to the Z reference
plane coordinate.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
169
9.10.1
Basic operation
1. If the spindle was previously running, it maintains the turning direction. If it was not in movement,
it will start by turning clockwise (M03).
2. Rapid movement of the longitudinal axis from the initial plane to the reference plane.
3. Movement of the longitudinal axis and at the working feedrate, to the bottom of the machined
section, producing the threaded hole. The canned cycle will execute this movement and all later
movements at 100% of F feedrate and the programmed S speed.
If rigid tapping is selected (parameter R=1), the CNC will activate the general logic output
"RIGID" (M5521) to indicate to the PLC that a rigid tapping block is being executed.
CANNED CYCLES
9.
4. Spindle stop (M05). This will only be performed when the spindle machine parameter
"SREVM05" is selected and parameter "K" has a value other than "0"..
5. Dwell, if parameter "K" has been programmed.
6. Reverse the spindle turning direction.
7. Withdrawal, at J times the working feedrate, of the longitudinal axis to the reference plane. Once
this coordinate has been reached, the canned cycle will assume the selected FEEDRATE
OVERRIDE and the SPINDLE OVERRIDE.
If rigid tapping is selected (parameter R=1), the CNC will activate the general logic output
"RIGID" (M5521) to indicate to the PLC that a rigid tapping block is being executed.
8. Spindle stop (M05). This will only be performed if the spindle machine parameter "SREVM05"
is selected.
9. Dwell, if parameter "K" has been programmed.
10.Reverse the spindle turning direction restoring the initial turning direction.
11.Withdrawal, at rapid feedrate (G00), of the longitudinal axis as far as the initial plane if G98 has
been programmed.
Programming example assuming that the work plane is formed by the X and Y axes, that the Z axis
is the longitudinal axis and that the starting point is X0 Y0 Z0:
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
170
P r o gr a m m i ng m a n u a l
While machining, the CNC lets withdraw the tool to the starting plane stopping the spindle when
the tool reaches the starting plane.
Tool withdrawal
9.
CANNED CYCLES
; Tool selection.
T1
M6
; Starting point.
G0 G90 X0 Y0 Z0
; Canned cycle definition. Three machining operations are carried out.
G84 G99 G91 X50 Y50 Z-98 I-22 K150 F350 S500 N3
; Positioning and canned cycle
G98 G90 G00 X500 Y500
; Cancels the canned cycle.
G80
; Positioning.
G90 X0 Y0
; End of program.
M30
Activating PLC mark RETRACYC (M5065) stops the main axis and the spindle, the tool is withdrawn
changing the direction of the axis and spindle while keeping the machining F and S values. This
withdrawal will be to the starting plane.
The stopping and starting sequence of the spindle and the axis when tapping keeps the same
synchronism and dwells as during the execution of the canned cycle.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
171
9.
CANNED CYCLES
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
172
P r o gr a m m i ng m a n u a l
9.11
CANNED CYCLES
9.
The tool withdraws to the Initial Plane, once the hole has been reamed.
G99
The tool withdraws to the Reference Plane, once the hole has been reamed.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
173
9.11.1
Basic operation
1. If the spindle was previously running, it maintains the turning direction. If it was not in movement,
it will start by turning clockwise (M03).
2. Rapid movement of the longitudinal axis from the initial plane to the reference plane.
3. Movement at the working feedrate (G01) of the longitudinal axis to the bottom of the machined
hole, and reaming.
4. Dwell, if parameter "K" has been programmed.
9.
CANNED CYCLES
5. Withdrawal at working feedrate, of the longitudinal axis as far as the reference plane.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
174
6. Withdrawal, at rapid feedrate (G00), of the longitudinal axis as far as the initial plane if G98 has
been programmed.
Programming example assuming that the work plane is formed by the X and Y axes, that the Z axis
is the longitudinal axis and that the starting point is X0 Y0 Z0:
; Tool selection.
T1
M6
; Starting point.
G0 G90 X0 Y0 Z0
; Canned cycle definition.
G85 G98 G91 X250 Y350 Z-98 I-22 F100 S500
; Cancels the canned cycle.
G80
; Positioning.
G90 X0 Y0
; End of program.
M30
P r o gr a m m i ng m a n u a l
9.12
M03
M04
M03
M04
G98
G99
I
K
M05
CANNED CYCLES
G00
G01
9.
G86 G98/G99 X Y Z I K Q D E
Q
D
The tool withdraws to the Initial Plane, once the hole has been bored.
G99
The tool withdraws to the Reference Plane, once the hole has been bored.
CNC 8055
CNC 8055i
[ K5 ] Dwell
Defines the dwell, in hundredths of a second, after boring until the withdrawal begins. If not
programmed, the CNC will take the value of "K0".
[ Q5.5 ] Spindle position for the withdrawal
M & EN MODELS
SOFT: V01.4X
Defines the spindle position in degrees, to separate the cutter from the wall of the hole.
If not programmed, the withdrawal will be done without separating the cutter from the wall of the
hole, with the spindle stopped and at rapid feedrate.
175
[ D5.5 ] Gap between the cutter and the wall of the hole on the X axis
Defines the gap between the cutter and the wall of the hole on the X axis for the withdrawal.
If not programmed there will be no gap between the cutter and the wall of the hole on the X axis.
Both Q and D must be programmed for the cutter to separate from the wall of the hole.
[ E5.5 ] Gap between the cutter and the wall of the hole on the Y axis
Defines the gap between the cutter and the wall of the hole on the Y axis for the withdrawal.
9.
If not programmed there will be no gap between the cutter and the wall of the hole on the Y axis.
CANNED CYCLES
Both Q and E must be programmed for the cutter to separate from the wall of the hole.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
176
P r o gr a m m i ng m a n u a l
9.12.1
Basic operation
1. If the spindle was previously running, it maintains the turning direction. If it was not in movement,
it will start by turning clockwise (M03).
2. Rapid movement of the longitudinal axis from the initial plane to the reference plane.
3. Movement at the working feedrate (G01) of the longitudinal axis to the bottom of the machined
hole, and boring.
4. Dwell, if parameter "K" has been programmed.
7. Rapid tool withdrawal (G00) to the initial plane or reference plane, depending on whether G98
or G99 has been programmed.
8. Rapid interpolated tool movement in the amounts programmed in parameters D and E, but in
the opposite direction (undoing the movement made in step 6).
9. When spindle withdrawal has been completed, it will start in the same direction in which it was
turning before.
Programming example assuming that the work plane is formed by the X and Y axes, that the Z axis
is the longitudinal axis and that the starting point is X0 Y0 Z0:
; Tool selection.
T1
M6
; Starting point.
G0 G90 X0 Y0 Z0
; Canned cycle definition.
G86 G98 G91 X250 Y350 Z-98 I-22 K20 F100 S500
; Cancels the canned cycle.
G80
; Positioning.
G90 X0 Y0
; End of program.
M30
CANNED CYCLES
9.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
177
9.13
9.
G87 G98/G99 X Y Z I J K B C D H L V
The tool withdraws to the Initial Plane, once the pocket has been made.
G99
The tool withdraws to the Reference Plane, once the pocket has been made.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
178
P r o gr a m m i ng m a n u a l
[ K5.5 ] Half the width of the pocket along the ordinate axis
Defines the distance from the center to the edge of the pocket according to the ordinate axis.
CANNED CYCLES
9.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
If not programmed, it assumes a value of 3/4 of the diameter of the selected tool.
179
If programmed with a value greater than the tool diameter, the CNC issues the relevant error
message.
If programmed with a 0 value, the CNC will display the corresponding error message.
[ D5.5 ] Reference plane
Defines the distance between the reference plane and the surface of the part where the pocket is
to be made.
During the first deepening operation this amount will be added to incremental depth "B". If not
programmed, a value of 0 is assumed.
CANNED CYCLES
9.
If not programmed or programmed with a 0 value, it does not run the finishing pass.
[ V.5.5 ] Tool penetrating feedrate.
Defines the tool penetrating feedrate.
If not programmed or programmed with a 0 value, it assumes 50% of the feedrate in the plane (F).
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
180
P r o gr a m m i ng m a n u a l
Basic operation
1. If the spindle was previously running, it maintains the turning direction. If it was not in movement,
it will start by turning clockwise (M03).
2. Rapid movement (G0) of the longitudinal axis from the starting plane to the reference plane.
3. First penetrating operation. Movement of longitudinal axis at the feedrate indicated by "V" to the
incremental depth programmed in "B+D".
4. Milling of the pocket surface at work feedrate in the passes defined by "C" up to a distance "L"
(finishing pass) from the pocket wall.
6. Once the finishing pass has been completed, the tool withdraws at the rapid feedrate (G00) to
the center of the pocket, the longitudinal axis being separated 1 mm (0.040 inch) from the
machined surface.
9.
9.13.1
7. New milling surfaces until reaching the total depth of the pocket.
1 Movement of the longitudinal axis at the feedrate indicated by "V", up to a distance "B" from
the previous surface.
2 Milling of the new surface following the steps indicated in points 4, 5 and 6.
8. Withdrawal at rapid feedrate (G00) of the longitudinal axis to the initial or reference plane,
depending on whether G98 or G99 has been programmed.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
181
Programming example 1
Let us suppose a work plane formed by the X and Y axis, Z being the longitudinal axis and the starting
point X0 Y0 Z0.
CANNED CYCLES
9.
; Tool selection.
(TOR1=6, TOI1=0)
T1 D1
M6
; Starting point
G0 G90 X0 Y0 Z0
; Canned cycle definition
G87 G98 X90 Y60 Z-48 I-90 J52.5 K37.5 B12 C10 D2 H100 L5 V100 F300 S1000 M03
; Cancels the canned cycle
G80
; Positioning
G90 X0 Y0
; End of program
M30
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
182
P r o gr a m m i ng m a n u a l
Programming example 2
Let us suppose a work plane formed by the X and Y axis, Z being the longitudinal axis and the starting
point X0 Y0 Z0.
; Tool selection.
(TOR1=6, TOI1=0)
T1 D1
M6
; Starting point
G0 G90 X0 Y0 Z0
; Work plane.
G18
; Canned cycle definition
N10 G87 G98 X200 Y-48 Z0 I-90 J52.5 K37.5 B12 C10 D2 H100 L5 V50 F300
; Coordinate rotation
N20 G73 Q45
; Repeats the select blocks 7 times.
(RPT N10,N20) N7
; Cancels the canned cycle.
G80
; Positioning
G90 X0 Y0
; End of program
M30
CANNED CYCLES
9.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
183
9.14
CANNED CYCLES
9.
The tool withdraws to the Initial Plane, once the pocket has been made.
G99
The tool withdraws to the Reference Plane, once the pocket has been made.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
184
P r o gr a m m i ng m a n u a l
CANNED CYCLES
9.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
185
CANNED CYCLES
9.
[ H5.5 ] Feedrate for the finishing pass
Defines the working feedrate during the finishing pass.
If not programmed or programmed with a 0 value, it assumes the value of the machining feedrate.
[ L5.5 ] Finishing stock
Defines the value of the finishing pass, along the main plane.
If not programmed or programmed with a 0 value, it does not run the finishing pass.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
186
P r o gr a m m i ng m a n u a l
CANNED CYCLES
9.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
187
9.14.1
Basic operation
1. If the spindle was previously running, it maintains the turning direction.
If it was not in movement, it will start by turning clockwise (M03).
2. Rapid movement (G0) of the longitudinal axis from the starting plane to the reference plane.
3. First penetrating operation. Movement of longitudinal axis at the feedrate indicated by "V" to the
incremental depth programmed in "B+D".
4. Milling of the pocket surface at work feedrate in the passes defined by "C" up to a distance "L"
(finishing pass) from the pocket wall.
9.
CANNED CYCLES
7. New milling surfaces until reaching the total depth of the pocket.
1 Movement of the longitudinal axis at the feedrate indicated by "V", up to a distance "B" from
the previous surface.
2 Milling of the new surface following the steps indicated in points 4, 5 and 6.
8. Withdrawal at rapid feedrate (G00) of the longitudinal axis to the initial or reference plane,
depending on whether G98 or G99 has been programmed.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
188
P r o gr a m m i ng m a n u a l
Programming example 1
Let us suppose a work plane formed by the X and Y axis, Z being the longitudinal axis and the starting
point X0 Y0 Z0.
CANNED CYCLES
9.
; Tool selection.
(TOR1=6, TOI1=0)
T1 D1
M6
; Starting point
G0 G90 X0 Y0 Z0
; Canned cycle definition
G88 G98 G00 G90 X90 Y80 Z-48 I-90 J70 B12 C10 D2 H100 L5 V100 F300 S1000 M03
; Cancels the canned cycle.
G80
; Positioning
G90 X0 Y0
; End of program
M30
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
189
9.15
CANNED CYCLES
9.
The tool withdraws to the Initial Plane, once the hole has been bored.
G99
The tool withdraws to the Reference Plane, once the hole has been bored.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
190
P r o gr a m m i ng m a n u a l
9.15.1
Basic operation
1. If the spindle was previously running, it maintains the turning direction. If it was not in movement,
it will start by turning clockwise (M03).
2. Rapid movement of the longitudinal axis from the initial plane to the reference plane.
3. Movement at the working feedrate (G01) of the longitudinal axis to the bottom of the machined
hole, and boring.
4. Dwell, if parameter "K" has been programmed.
Let us suppose a work plane formed by the X and Y axis, Z being the longitudinal axis and the starting
point X0 Y0 Z0.
; Tool selection.
T1 D1
M6
; Starting point
G0 G90 X0 Y0 Z0
; Canned cycle definition
G89 G98 G91 X250 Y350 Z-98 I-22 K20 F100 S500
; Cancels the canned cycle.
G80
; Positioning
G90 X0 Y0
; End of program
M30
CANNED CYCLES
Programming example 1
9.
5. Withdrawal at working feedrate, of the longitudinal axis as far as the reference plane.
6. Withdrawal, at rapid feedrate (G00), of the longitudinal axis as far as the initial plane if G98 has
been programmed.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
191
9.16
M03
G01
M04
G98
CANNED CYCLES
9.
G00
G99
K
J
The tool withdraws to the Initial Plane, once the hole has been milled.
G99
The tool withdraws to the Reference Plane, once the hole has been milled.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
If not programmed or programmed with a value smaller than the diameter of the active tool, the CNC
issues the relevant error message.
[ K5.5 ] Pre-drilling diameter
Starting with a hole previously drilled, this parameter defines the diameter of that hole. If not
programmed or programmed with a 0 value, it means that no hole has been previously drilled.
192
P r o gr a m m i ng m a n u a l
CANNED CYCLES
If not programmed or programmed with a 0 value, the CNC will display the corresponding error
message.
9.
With a negative sign, it will not mill the bottom of the hole.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
193
9.16.1
Basic operation
1. Rapid movement to the center of the hole (X, Y).
2. Rapid movement to the reference plane (Z).
3. Rapid movement to the tangential entry coordinate along the longitudinal axis.
4. Tangential entry to the helical path of the drilling.
5. Helical movement, with the pitch given by parameter B and in the direction given by parameter
J, down to the bottom of the hole.
9.
6. Milling of the bottom of the hole (this step is only carried out if parameter B has a positive sign).
CANNED CYCLES
7. Tangential exit movement to the helical path of the drilling to the center of the hole.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
194
8. Rapid movement to the reference plane (G99) or to the starting plane (G98).
P r o gr a m m i ng m a n u a l
9.17
M03
G01
M04
9.
G98
Z
G99
CANNED CYCLES
G00
The tool withdraws to the Initial Plane, once the hole has been milled.
G99
The tool withdraws to the Reference Plane, once the hole has been milled.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
195
9.
CANNED CYCLES
If not programmed or programmed with a 0 value, the CNC will display the corresponding error
message.
[ C1 ] Type of tapping
Defines the type of tapping to be carried out. This parameter depends on the type of tool being used.
When programming C= 0, the threading will be done in a single pass.
When programming C=1, it will make one thread per each pass (single-edge cutter).
When programming C=n (where n is the number of cutting edges of the cutter), it will make n
threads per each pass.
If not programmed, a value of C=1 is assumed.
C=0
C=1
C>1
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
196
P r o gr a m m i ng m a n u a l
Basic operation
1. Rapid movement to the center of the hole (X, Y).
2. Rapid movement to the reference plane (Z).
3. Rapid movement of the plane axes to the thread entry point (it only makes this movement if
parameter E has been programmed).
4. Rapid movement to the thread entry point coordinate along the longitudinal axis.
5. Thread entry with a helical movement tangent to the first helical threading path.
If C=0:
1 Helical movement, in the direction indicated in parameter J, to the bottom of the thread
(the movement will only be one revolution).
2 Helical thread exiting movement, tangent to the previous helical path. If parameter E has
not been programmed, the exit point will correspond with the coordinates of the hole
center.
It must be borne in mind that in the exit tangent to the helical path, the exit point will exceed
the coordinate of the bottom of the thread along the longitudinal axis.
If C=1:
1 Helical movement, with the pitch and direction given in parameter J, to the bottom of the
thread.
9.
9.17.1
2 Helical thread exiting movement, tangent to the previous helical path. If parameter E has
not been programmed, the exit point will correspond with the coordinates of the hole
center.
It must be borne in mind that in the exit tangent to the helical path, the exit point will exceed
the coordinate of the bottom of the thread along the longitudinal axis.
If C=n:
1 Helical movement, with the pitch and direction given in parameter J, (the movement will
be one revolution).
2 Helical thread exiting movement, tangent to the previous helical path. If parameter E has
not been programmed, the exit point will correspond with the coordinates of the hole
center.
3 Rapid movement to the thread entry point of the next threading path.
4 Rapid movement to the Z coordinate of the thread entry point of the next threading path.
5 Repetition of the previous 3 steps until reaching the bottom of the thread. It must be borne
in mind that in the last helical exit, the exit point will exceed the coordinate of the bottom
of the thread along the longitudinal axis.
7. Rapid movement to the center of the hole (X, Y).
8. Rapid movement to the thread entry coordinate along the longitudinal axis.
9. Repetition of steps 3 to 8 until reaching the depth of the finishing stock.
10.Repetition of steps 3 to 8 until reaching the bottom of the thread.
11.Rapid movement to the reference plane (G99) or to the starting plane (G98).
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
197
9.18
9.
CANNED CYCLES
G00
M03
G01
M04
G98
G99
The tool withdraws to the Initial Plane, once the hole has been milled.
G99
The tool withdraws to the Reference Plane, once the hole has been milled.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
198
P r o gr a m m i ng m a n u a l
When programming C=1, it will make one thread per each pass (single-edge cutter).
When programming C=n (where n is the number of cutting edges of the cutter), it will make n
threads per each pass.
If not programmed, a value of C=1 is assumed.
C=0
C=1
C>1
CANNED CYCLES
9.
Defines the type of tapping to be carried out. This parameter depends on the type of tool being used.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
199
9.18.1
Basic operation
1. Rapid movement to the center of the hole (X, Y).
2. Rapid movement to the reference plane (Z).
3. Rapid movement of the plane axes to the thread entry point (it only makes this movement if
parameter E has been programmed).
4. Rapid movement to the thread entry point coordinate along the longitudinal axis.
5. Rapid movement to the thread entry point (movement interpolated in 3 axes).
9.
6. Thread entry with a helical movement tangent to the first helical threading path.
CANNED CYCLES
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
200
MULTIPLE MACHINING
10
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
201
10.1
XI
XK
IK
PQRSTUV
MULTIPLE MACHINING
10.
CNC 8055
CNC 8055i
The programming order for these parameters is P Q R S T U V, it also being necessary to maintain
the order in which the points assigned to these are numbered, i.e., the numbering order of the points
assigned to Q must be greater than that assigned to P and less than that assigned to R.
Example:
M & EN MODELS
SOFT: V01.4X
202
Correct programming
Wrong programming
If these parameters are not programmed, the CNC understands that it must perform machining at
all the points along the programmed path.
P r o gr a m m i ng m a n u a l
10.1.1
Basic operation
1. Multiple machining calculates the next point of those programmed where it is wished to machine.
2. Rapid traverse (G00) to this point.
3. Multiple machining will perform the canned cycle or modal subroutine selected after this
movement.
4. The CNC will repeat steps 1-2-3 until the programmed path has been completed.
After completing multiple machining, the tool will be positioned at the last point along the
programmed path where machining was performed.
10.
MULTIPLE MACHINING
Programming example assuming that the work plane is formed by the X and Y axes, that the Z axis
is the longitudinal axis and that the starting point is X0 Y0 Z0:
It is also possible to write the multiple machining definition block in the following ways:
G60 A30 X1200 K13 P2.003 Q6 R12
G60 A30 I100 K13 P2.003 Q6 R12
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
203
10.2
XI
XK
IK
YJ
YD
JD
PQRSTUV
MULTIPLE MACHINING
10.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
Defines the total number of machining operations in the ordinate axis, including the machining
definition point.
Due to the fact that machining may be defined according to the ordinate axis with any two points
of the Y J D group, the CNC allows the following definition combinations: YJ, YD, JD.
Nevertheless, if format YJ is defined, care should be taken to ensure that the number of machining
operations is an integer number, otherwise the CNC will show the corresponding error code.
204
P r o gr a m m i ng m a n u a l
Correct programming
Wrong programming
If these parameters are not programmed, the CNC understands that it must perform machining at
all the points along the programmed path.
Example:
10.
MULTIPLE MACHINING
The programming order for these parameters is P Q R S T U V, it also being necessary to maintain
the order in which the points assigned to these are numbered, i.e., the numbering order of the points
assigned to Q must be greater than that assigned to P and less than that assigned to R.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
205
10.2.1
Basic operation
1. Multiple machining calculates the next point of those programmed where it is wished to machine.
2. Rapid traverse (G00) to this point.
3. Multiple machining will perform the canned cycle or modal subroutine selected after this
movement.
4. The CNC will repeat steps 1-2-3 until the programmed path has been completed.
MULTIPLE MACHINING
10.
After completing multiple machining, the tool will be positioned at the last point along the
programmed path where machining was performed.
Programming example assuming that the work plane is formed by the X and Y axes, that the Z axis
is the longitudinal axis and that the starting point is X0 Y0 Z0:
It is also possible to write the multiple machining definition block in the following ways:
G61 X700 K8 J60 D4 P2.005 Q9.011
G61 I100 K8 Y180 D4 P2.005 Q9.011
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
206
P r o gr a m m i ng m a n u a l
10.3
XI
XK
IK
YJ
YD
JD
PQRSTUV
MULTIPLE MACHINING
10.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
Nevertheless, if format YJ is defined, care should be taken to ensure that the number of machining
operations is an integer number, otherwise the CNC will show the corresponding error code.
207
MULTIPLE MACHINING
10.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
208
When it is required to define a group of points (Q10.013), care should be taken to define the final
point with three digits, as if Q10.13 is programmed, multiple machining understands Q10.130.
The programming order for these parameters is P Q R S T U V, it also being necessary to maintain
the order in which the points assigned to these are numbered, i.e., the numbering order of the points
assigned to Q must be greater than that assigned to P and less than that assigned to R.
Example:
Correct programming
Wrong programming
If these parameters are not programmed, the CNC understands that it must perform machining at
all the points along the programmed path.
P r o gr a m m i ng m a n u a l
10.3.1
Basic operation
1. Multiple machining calculates the next point of those programmed where it is wished to machine.
2. Rapid traverse (G00) to this point.
3. Multiple machining will perform the canned cycle or modal subroutine selected after this
movement.
4. The CNC will repeat steps 1-2-3 until the programmed path has been completed.
After completing multiple machining, the tool will be positioned at the last point along the
programmed path where machining was performed.
10.
MULTIPLE MACHINING
Programming example assuming that the work plane is formed by the X and Y axes, that the Z axis
is the longitudinal axis and that the starting point is X0 Y0 Z0:
It is also possible to write the multiple machining definition block in the following ways:
G62 X700 K8 J60 D4 P2.005 Q9.011 R15.019
G62 I100 K8 Y180 D4 P2.005 Q9.011 R15.019
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
209
10.4
I
K
CFPQRSTUV
MULTIPLE MACHINING
10.
[ X5.5 ] Distance from the first machining point to the center along the abscissa axis
Defines the distance from the starting point to the center along the abscissa axis.
[ Y5.5 ] Distance from the first machining point to the center along the ordinate axis
Defines the distance from the starting point to the center along the ordinate axis.
With parameters X and Y the center of the circle is defined in the same way that I and J do this in
circular interpolations (G02, G03).
[ I5.5 ] Angular pass between machining operations
Defines the angular pass between machining operations. When moving from point to point in G00
or G01, the sign indicates the direction, "+" counterclockwise, "-" clockwise.
[ K5 ] Total number of machining operations
Defines the total number of machining operations along the circle, including the machining definition
point.
It will be enough to program I or K in the multiple machining definition block. Nevertheless, if K is
programmed in a multiple machining operation in which movement between points is made in G00
or G01, machining will be done counterclockwise.
[ C 0/1/2/3 ] Type of move from point to point
Indicates how movement is made between machining points. If it is not programmed, the value C=0
will be taken.
CNC 8055
CNC 8055i
C=0:
C=1:
C=2:
C=3:
M & EN MODELS
SOFT: V01.4X
210
P r o gr a m m i ng m a n u a l
Correct programming
Wrong programming
If these parameters are not programmed, the CNC understands that it must perform machining at
all the points along the programmed path.
Example:
10.
MULTIPLE MACHINING
The programming order for these parameters is P Q R S T U V, it also being necessary to maintain
the order in which the points assigned to these are numbered, i.e., the numbering order of the points
assigned to Q must be greater than that assigned to P and less than that assigned to R.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
211
10.4.1
Basic operation
1. Multiple machining calculates the next point of those programmed where it is wished to machine.
2. Movement at the feedrate programmed by "C" (G00,G01,G02 or G03) to this point.
3. Multiple machining will perform the canned cycle or modal subroutine selected after this
movement.
4. The CNC will repeat steps 1-2-3 until the programmed path has been completed.
MULTIPLE MACHINING
10.
After completing multiple machining, the tool will be positioned at the last point along the
programmed path where machining was performed.
Programming example assuming that the work plane is formed by the X and Y axes, that the Z axis
is the longitudinal axis and that the starting point is X0 Y0 Z0:
It is also possible to write the multiple machining definition block in the following ways:
G63 X200 Y200 K12 C1 F200 P2.004 Q8
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
212
P r o gr a m m i ng m a n u a l
10.5
I
K
CFPQRSTUV
[ X5.5 ] Distance from the first machining point to the center along the abscissa axis
Defines the distance from the starting point to the center along the abscissa axis.
MULTIPLE MACHINING
10.
[ Y5.5 ] Distance from the first machining point to the center along the ordinate axis
Defines the distance from the starting point to the center along the ordinate axis.
With parameters X and Y the center of the circle is defined in the same way that I and J do this in
circular interpolations (G02, G03).
[ B5.5 ] Angular travel
Defines the angular stroke of the machining path and is expressed in degrees.
[ I5.5 ] Angular pass between machining operations
Defines the angular pass between machining operations. When moving from point to point in G00
or G01, the sign indicates the direction, "+" counterclockwise, "-" clockwise.
[ K5 ] Total number of machining operations
Defines the total number of machining operations along the circle, including the machining definition
point.
It will be enough to program I or K in the multiple machining definition block. Nevertheless, if K is
programmed in a multiple machining operation in which movement between points is made in G00
or G01, machining will be done counterclockwise.
[ C 0/1/2/3 ] Type of move from point to point
Indicates how movement is made between machining points. If it is not programmed, the value C=0
will be taken.
C=0:
C=1:
C=2:
C=3:
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
213
MULTIPLE MACHINING
10.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
214
When it is required to define a group of points (Q10.013), care should be taken to define the final
point with three digits, as if Q10.13 is programmed, multiple machining understands Q10.130.
The programming order for these parameters is P Q R S T U V, it also being necessary to maintain
the order in which the points assigned to these are numbered, i.e., the numbering order of the points
assigned to Q must be greater than that assigned to P and less than that assigned to R.
Example:
Correct programming
Wrong programming
If these parameters are not programmed, the CNC understands that it must perform machining at
all the points along the programmed path.
P r o gr a m m i ng m a n u a l
10.5.1
Basic operation
1. Multiple machining calculates the next point of those programmed where it is wished to machine.
2. Movement at the feedrate programmed by "C" (G00,G01,G02 or G03) to this point.
3. Multiple machining will perform the canned cycle or modal subroutine selected after this
movement.
4. The CNC will repeat steps 1-2-3 until the programmed path has been completed.
After completing multiple machining, the tool will be positioned at the last point along the
programmed path where machining was performed.
10.
MULTIPLE MACHINING
Programming example assuming that the work plane is formed by the X and Y axes, that the Z axis
is the longitudinal axis and that the starting point is X0 Y0 Z0:
It is also possible to write the multiple machining definition block in the following ways:
G64 X200 Y200 B225 K6 C3 F200 P2
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
215
10.6
A
I
CF
MULTIPLE MACHINING
10.
[ X5.5 ] Distance from the first machining point to the center along the abscissa axis
Defines the distance from the starting point to the center along the abscissa axis.
[ Y5.5 ] Distance from the first machining point to the center along the ordinate axis
Defines the distance from the starting point to the center along the ordinate axis.
With parameters X and Y the center of the circle is defined in the same way that I and J do this in
circular interpolations (G02, G03).
[ A5.5 ] Angle of the chord
Defines the angle formed by the perpendicular bisector of the chord with the abscissa axis and is
expressed in degrees.
[ I5.5 ] Angular pass between machining operations
Defines the chord length. When moving from point to point in G00 or G01, the sign indicates the
direction, "+" counterclockwise, "-" clockwise.
[ C0/1/2/3 ] Type of move from point to point
Indicates how movement is made between machining points. If it is not programmed, the value C=0
will be taken.
C=0:
C=1:
C=2:
C=3:
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
216
Defines the feedrate that is used for moving from point to point. Obviously, it will only apply for "C"
values other than zero. If it is not programmed, the value F0 will be taken, maximum feedrate selected
by the "MAXFEED" axis machine parameter.
P r o gr a m m i ng m a n u a l
10.6.1
Basic operation
1. Multiple machining calculates the next point of those programmed where it is wished to machine.
2. Movement at the feedrate programmed by "C" (G00,G01,G02 or G03) to this point.
3. Multiple machining will perform the canned cycle or modal subroutine selected after this
movement.
After completing multiple machining, the tool will be positioned at the programmed point.
Programming example assuming that the work plane is formed by the X and Y axes, that the Z axis
is the longitudinal axis and that the starting point is X0 Y0 Z0:
MULTIPLE MACHINING
444
.7
10.
It is also possible to write the multiple machining definition block in the following ways:
G65 X-280 Y-40 I444.75 C1 F200
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
217
MULTIPLE MACHINING
10.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
218
11
There are two types of pockets with islands, namely 2D and 3D pockets.
2D pocket:
In a 2D pocket, all the walls of the outside profile and of the islands are vertical. To define the contours
of a 2D pocket, the plane profile for all the contours must be defined.
3D pocket:
In a 3D pocket, one, several or all the walls of the outside pocket and/or of the islands are not vertical.
To define the contours of a 2D pocket, the plane profile and the depth profile for all the contours
must be defined (even if they are vertical).
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
219
11.
(A) Plane profile.
Machining operation
2D
G67
Roughing operation.
2D / 3D
G67
Semi-finishing operation.
3D
G68
Finishing operation.
2D / 3D
G66 defines the operations that make up the machining of the pocket and where they are defined
in the program. This function also indicates where the various profiles of the pocket are defined.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
220
P r o gr a m m i ng m a n u a l
11.1
2D pockets
The G66 function is not modal, therefore it must be programmed whenever it is required to perform
a 2D pocket. In a block defining an irregular pocket canned cycle, no other function can be
programmed, its structure definition being:
G66 D H R I F K S E Q
2D pockets
11.
Label number of the first block (S) and last block (E) defining the geometry of the profiles forming
the pocket. Both parameters must be set.
Q (0-999999) Program that contains the definition of the geometrical description of the profiles
Number of the program containing the geometry definition, parameters S and E. If it is in the same
program, (Q) need not be defined.
Programming example:
; Initial positioning.
G00 G90 X100 Y200 Z50 F5000 T1 D2
M06
; Definition of irregular pocket canned cycle.
G66 D100 R200 I210 F300 S400 E500
; End of program.
M30
; Defines the drilling operation.
N100 G81...
; Roughing operation.
N200...
G67...
N210 ...
; Finishing operation.
N300 G68...
; Geometrical description.
N400 G0 G90 X300 Y50 Z3
...
...
N500 G2 G6 X300 Y50 I150 J0
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
221
Basic operation
1. Drilling operation. Only if it has been programmed.
After analyzing the geometry of the pocket with islands, the tool radius and the angle of the path
programmed in the roughing operation, the CNC will calculate the coordinates of the point where
the selected drilling operation must be performed.
2. Roughing operation. Only if it has been programmed.
2D pockets
11.
It consists of several surface milling passes, until the total depth programmed has been reached.
On each surface milling pass, the steps below will be followed depending on the type of
machining that has been programmed:
Case A:
When the machining paths are linear and maintain a certain angle with the abscissa axis.
It first contours the external profile of the part. If the finishing operation has been selected on
the cycle call, this contouring is performed leaving the finishing stock programmed for the
finishing pass.
Next the milling operation, with the programmed feed and steps. If, while milling, an island is run
into for the first time, it will be contoured.
After the contouring and the remaining times, the tool will pass over the island, withdrawing along
the longitudinal axis, to the reference plane, and will continue machining once the island has
been cleared.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
222
P r o gr a m m i ng m a n u a l
Case B:
When the machining paths are concentric.
The roughing operation is carried out along paths concentric to the profile. The machining will
be done as fast as possible avoiding (when possible) going over the islands.
Reference coordinates:
In the pocket canned cycle with islands, there are four coordinates along the longitudinal axis
(selected with G15), which, due to their importance, are discussed below:
2D pockets
11.
1. Initial plane coordinate. This coordinate is given by the position which the tool occupies when
the cycle is called.
2. Coordinate of the reference plane. This represents an approach coordinate to the part, and must
be programmed in absolute coordinates.
3. Part surface coordinate. This is programmed in absolute coordinates and in the first profile
definition block.
4. Machining depth coordinate. It must be programmed in absolute values.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
223
11.1.1
Drilling operation
This operation is optional and in order to be executed it is necessary to also program a roughing
operation.
It is mainly used when the tool programmed in the roughing operation does not machine along the
longitudinal axis, allowing, by means of this operation, the access of this tool to the surface to be
roughed off.
2D pockets
11.
It will be programmed in a block which will need to bear a label number in order to indicate to the
canned cycle the block where the drilling operation is defined.
; Definition of irregular pocket canned cycle.
G66 D100 R200 F300 S400 E500
; Defines the drilling operation.
N100 G81...
G81
G82
G83
When defining the drilling operation, the corresponding definition parameters must be programmed
together with the required function.
In a block of this type, only cycle definition parameters must be programmed, without defining XY
positioning, as the canned cycle itself will calculate the coordinate of the point or points to be drilled
according to the programmed profile and the roughing angle.
After the definition parameters, auxiliary F S T D M functions can be programmed, if so wished. No
M function can be programmed if it has an associated subroutine.
It is possible to program the M06 function in this block (if it does not have an associated subroutine),
to make the tool change. Otherwise, the CNC will show the corresponding error. If the M06 has an
associated subroutine, the drilling tool "T" must be selected before calling the cycle.
N100
N120
N220
N200
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
224
G69
G81
G82
G83
G98
G99
G99
G98
G91
G91
G91
G91
Z-4
Z-5
Z-5
Z-4
P r o gr a m m i ng m a n u a l
11.1.2
Roughing operation
This is the main operation in the machining of an irregular pocket, and its programming is optional.
This operation will be performed keeping the square corner mode (G07) or round corner mode (G05)
that is currently active. However, the canned cycle will assign the G07 format to the necessary
movements.
It will be programmed in a block which will need to bear a label number in order to indicate to the
canned cycle the block where the roughing operation is defined.
G67 A B C I R K V Q F S T D M
2D pockets
The function for the roughing operation is G67 and its programming format:
11.
IRREGULAR POCKET CANNED CYCLE
If parameter "A" is not programmed, the roughing operation is carried out following concentric paths.
It will be machined as fast as possible since it does not have to go over the islands.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
225
2D pockets
11.
[ C5.5 ] Milling pass
Defines the milling pass in roughing along the main plane, the entire pocket being performed with
the given pass, and the canned cycle adjusts the last milling pass.
If not programmed or programmed with a 0 value, it assumes a value of 3/4 of the diameter of the
selected tool. If programmed with a value greater than the tool diameter, the CNC issues the relevant
error message.
[ I5.5 ] Pocket depth
Defines the total depth of the pocket and is programmed in absolute coordinates. It must be
programmed.
[ R5.5 ] Reference plane
Defines the reference plane coordinate and is programmed in absolute coordinates. It must be
programmed.
CNC 8055
CNC 8055i
K=1
If not programmed, a value of 0 is assumed. Both types of intersection are described later on.
M & EN MODELS
SOFT: V01.4X
226
P r o gr a m m i ng m a n u a l
2D pockets
If not programmed or programming the value of 90, it means that the penetration is vertical. When
programming a value lower than 0 or greater than 90, it issues the error "wrong parameter value
in canned cycle".
11.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
227
11.1.3
Finishing operation
2D pockets
11.
The function for the finishing operation is G68 and its programming format:
G68 B L Q I R K V F S T D M
If programmed with a positive value, the finishing pass will be carried out in square corner (G07).
If a negative value is programmed, the finishing pass will be carried out in G5 (round corner).
If not programmed or programmed with a 0 value, the cycle does not run the finishing pass.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
The finishing pass is carried out in the same direction as the outside profile was
programmed.
Q=1
The finishing pass is carried out in the opposite direction to the one programmed.
Q=2
Reserved.
Any other value will generate the corresponding error message. If parameter "Q" is not programmed,
the cycle assumes Q0.
228
P r o gr a m m i ng m a n u a l
K=1
If the island has a roughing operation, it is not necessary to define this parameter since it has
been programmed in that operation. However, if programmed in both operations, the canned
cycle will assume the particular depth indicated for each operation.
2D pockets
11.
If the island has a roughing operation, it is not necessary to define this parameter since it has been
programmed in that operation. However, if programmed in both operations, the canned cycle will
assume the one defined for the roughing operation.
If no roughing operation has been defined and this parameter is not programmed, the canned cycle
will assume a K0 value. Both types of intersection are described later on.
[ V5.5 ] Penetration feedrate
Defines the tool penetrating feedrate.
If not programmed or programmed with a 0 value, it assumes 50% of the feedrate in the plane (F).
[ F5.5 ] Machining feedrate
Optional. It sets the machining feedrate in the plane.
[ S5.5 ] Spindle speed
Optional. It sets the spindle speed.
[ T4 ] Tool number
Defines the tool used for the roughing operation. It must be programmed.
[ D4 ] Tool offset
Optional. Defines the tool offset number.
[ M ] Auxiliary (miscellaneous) functions
CNC 8055
CNC 8055i
229
11.1.4
When outside and inside profiles of an irregular pocket are programmed the following programming
rules must be followed: The canned cycle will verify all these geometry rules before beginning to
make the pocket adapting the profile of the pocket to them and displaying the error message when
necessary.
All types of programmed profiles must be closed. The following examples cause a geometry
error.
2D pockets
11.
No profile must intersect itself. The following examples cause a geometry error.
When more than one outside profile has been programmed, the canned cycle assumes the one
occupying the largest surface.
It is not required to program inside profiles. Should these be programmed, they must be partially
or totally internal with respect to the outside profile. Some examples are given below.
An internal profile totally contained within another internal profile cannot be programmed. In this
case, only the most external profile will be considered.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
230
P r o gr a m m i ng m a n u a l
11.1.5
Profile intersection
In order to facilitate the programming of profiles, the canned cycle allows the profiles to intersect
one another and the external profile.
The two available types of intersection can be selected by parameter "K"
The intersection between an internal and an external profile generates a new external profile
as a result of the difference between the external and the internal profiles.
The intersection of islands generates a new inside profile which is their Boolean union.
2D pockets
11.
When selecting this type, the following profile intersecting rules are to be followed:
If there is an inside profile which has an intersection with another inside profile and with the
external profile, the canned cycle first makes the intersection between the inside profiles and
then the intersection of these with the external profile.
As a result of the intersection of the inside profiles with the outside one, a single pocket will be
obtained which corresponds to the outside profile having the largest surface. The rest will be
ignored.
If the finishing operation has been programmed, the profile of the resulting pocket must comply
with all the tool compensation rules, since if a profile is programmed which cannot be machined
by the programmed finishing tool, the CNC will show the corresponding error.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
231
2D pockets
11.
This type of profile intersection selects in each contour the group of lines where the profile
defining point is included.
The following example shows the explained selection process. The solid lines indicate the lines
external to the other contour and the dashes indicate the internal lines. The initial point of each
contour is indicated with an "x".
Boolean subtraction
Boolean intersection
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
232
P r o gr a m m i ng m a n u a l
2. The programming sequence for the different profiles is determinant when having an intersection
of more than 3 profiles.
The profile intersection process is performed according to the order in which the profiles have
been programmed. This way, the result of the intersection between the first two will be intersected
with the third one and so forth.
The initial point of the resulting profiles always coincides with the initial point that defined the
first profile.
2D pockets
11.
Resulting profile
Once the profiles of the pocket and islands have been obtained, the canned cycle calculates the
remaining profiles according to the radius of the roughing tool and the programmed finishing stock.
It may occur that in this process intersections are obtained which do not appear among the
programmed profiles.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
If there is an area in which the roughing tool cannot pass, when the intersection is made between
the offset of the profiles, several pockets will be obtained as a result, all of which will be machined.
233
2D pockets
11.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
234
P r o gr a m m i ng m a n u a l
11.1.6
The outside profile and the inside profiles or islands which are programmed must be defined by
simple geometrical elements such as straight lines or arcs.
The first definition block (where the external profile starts) and the last (where the last profile defined
ends) must be provided with the block label number. These label numbers will indicate the beginning
and end of the profile geometry definition for the profiles that make up the pocket.
The external profile must begin in the first definition block of the geometric description of the part
profiles. This block will be assigned a label number in order to indicate canned cycle G66 the
beginning of the geometric description.
The part surface coordinate will be programmed in this block.
All the internal profiles which are required may be programmed, one after the other. Each of these
must commence with a block containing the G00 function (indicating the beginning of the profile).
Care must be taken to program G01, G02 or G03 in the block following the definition of the beginning,
as G00 is modal, thus preventing the CNC from interpreting the following blocks as the beginnings
of a new profile.
2D pockets
11.
IRREGULAR POCKET CANNED CYCLE
Once the definition of the profiles has been completed, a label number must be assigned to the
last block programmed, in order to indicate the canned cycle G66 the end of the geometric
description.
G0 G17 G90 X-350 Y0 Z50
; Definition of irregular pocket canned cycle.
G66 D100 R200 F300 S400 E500
G0 G90 X0 Y0 Z50
M30
; Defines the first profile.
N400 G0 G90 X-260 Y-190 Z4.5
--- --- --- --; Defines another profile.
G0 X230 Y170
G1 --- ----- --- --- --; Defines another profile.
G0 X-120 Y90
G2 --- ----- --- --- --; End of geometric description.
N500 G1 X-120 Y90
Profiles are described as programmed paths, it being possible to include corner rounding,
chamfers, etc., following the syntax rules defined for this purpose.
The profile description must not contain: mirror images, scaling factor changes, pattern rotation,
zero offsets, etc.
CNC 8055
CNC 8055i
It must not contain high level blocks such as jumps, calls to subroutines or parametric
programming.
It must not contain other canned cycles.
M & EN MODELS
SOFT: V01.4X
235
In addition to the G00 function, which has a special meaning, the irregular pocket canned cycle
allows the use of the following functions for the definition of profiles.
2D pockets
11.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
236
G01
Linear interpolation.
G02
G03
G06
G08
G09
G36
G39
Chamfer.
G53
G70
Programming in inches.
G71
Programming in millimeters.
G90
Absolute programming.
G91
Incremental programming.
G93
P r o gr a m m i ng m a n u a l
11.1.7
Errors
11.
A step has been programmed that is larger than the tool diameter
When parameter "C" of the roughing operation is greater than the diameter of the roughing tool.
ERROR 1041
ERROR 1025
2D pockets
ERROR 1024
It comes up when any of the plane profiles of the programmed contours intersects itself.
ERROR 1046
It comes up when calling the G66 cycle if the tool is positioned between the reference plane and
the depth coordinate (bottom) of any of the operations.
ERROR 1047
It comes up when any of the programmed contours does not begin and end at the same point. It
may be because G1 has not been programmed after the beginning, with G0, on any of the profiles.
ERROR 1048
It comes up when the first point of the geometry does not include the pocket top coordinate.
ERROR 1049
It comes up when the coordinate of the reference plane is located between the part's "top" and
"bottom" in any of the operations.
ERROR 1084
It comes up when any of the paths programmed in the geometry definition of the pocket is wrong.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
237
ERROR 1227
2D pockets
11.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
238
P r o gr a m m i ng m a n u a l
11.1.8
Programming examples
Programming example 1
Programming example, without automatic tool changer
; Tool dimensions.
(TOR1=5, TOI1=0, TOL1=25, TOK1=0)
(TOR2=3, TOI2=0, TOL2=20, TOK2=0)
(TOR3=5, TOI3=0, TOL3=25, TOK3=0)
2D pockets
11.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
239
Programming example 2
Programming example, with automatic tool changer. The "x" of the figure indicates the initial points
of each profile:
2D pockets
11.
; Tool dimensions.
(TOR1=9, TOI1=0, TOL1=25, TOK1=0)
(TOR2=3.6, TOI2=0, TOL2=20, TOK2=0)
(TOR3=9, TOI3=0, TOL3=25, TOK3=0)
; Initial positioning and programming of a pocket with islands.
G0 G17 G43 G90 X0 Y0 Z25 S800
G66 D100 R200 F300 S400 E500
M30
; Definition of drilling operation.
N100 G81 Z5 I-40 T3 D3 M6
; Definition of roughing operation.
N200 G67 B10 C5 I-40 R5 K1 V100 F500 T1 D1 M6
; Definition of finishing operation.
N300 G68 B0 L0.5 Q1 V100 F300 T2 D2 M6
; Definition of pocket profiles.
N400 G0 G90 X-300 Y50 Z3
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
240
; External contour.
G1 Y190
G2 G6 X-270 Y220 I-270 J190
G1 X170
X300 Y150
Y50
G3 G6 X300 Y-50 I300 J0
G1 G36 R50 Y-220
X -30
G39 R50 X-100 Y-150
X-170 Y-220
X-270
G2 G6 X-300 Y-190 I-270 J-190
G1 Y-50
X-240
Y50
X-300
P r o gr a m m i ng m a n u a l
2D pockets
11.
IRREGULAR POCKET CANNED CYCLE
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
241
11.2
3D pockets
The cycle calling function G66 is not modal; therefore, it must be programmed every time a 3D pocket
is to be executed.
In a block defining an irregular pocket canned cycle, no other function can be programmed, its
structure definition being:
G66 R I C J F K S E
3D pockets
11.
Programming example:
; Initial positioning.
G00 G90 X100 Y200 Z50 F5000 T1 D2
M06
; Definition of irregular pocket canned cycle.
G66 R100 C200 J210 F300 S400 E500
; End of program.
M30
; Roughing operation.
N100 G67...
; Semi-finishing operation.
N200...
G67...
N210 ...
; Finishing operation.
N300 G68...
; Geometrical description.
N400 G0 G90 X300 Y50 Z3
...
...
N500 G2 G6 X300 Y50 I150 J0
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
242
P r o gr a m m i ng m a n u a l
Basic operation
1. Roughing operation. Only if it has been programmed.
It consists of several surface milling passes, until the total depth programmed has been reached.
On each surface milling pass, the steps below will be followed depending on the type of
machining that has been programmed:
Case A:
Next the milling operation, with the programmed feed and steps. If, while milling, an island is run
into for the first time, it will be contoured.
It first contours the external profile of the part. If the finishing operation has been selected on
the cycle call, this contouring is performed leaving the finishing stock programmed for the
finishing pass.
3D pockets
11.
When the machining paths are linear and maintain a certain angle with the abscissa axis.
After the contouring and the remaining times, the tool will pass over the island, withdrawing along
the longitudinal axis, to the reference plane, and will continue machining once the island has
been cleared.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
243
Case B:
When the machining paths are concentric.
The roughing operation is carried out along paths concentric to the profile. The machining will
be done as fast as possible avoiding (when possible) going over the islands.
3D pockets
11.
With the semi-finishing operation, it is possible to minimize these ridges by running several
contouring passes at different depths.
The CNC will machine both the external profile and the islands, making tangential approaches
and exits to these with a constant surface speed.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
244
P r o gr a m m i ng m a n u a l
Reference coordinates:
In the pocket canned cycle with islands, there are four coordinates along the longitudinal axis
(selected with G15), which, due to their importance, are discussed below:
3. Part surface coordinate. This is programmed in absolute coordinates and in the first profile
definition block.
4. Machining depth coordinate. It must be programmed in absolute values.
2. Coordinate of the reference plane. This represents an approach coordinate to the part, and must
be programmed in absolute coordinates.
3D pockets
11.
1. Initial plane coordinate. This coordinate is given by the position which the tool occupies when
the cycle is called.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
245
11.2.1
Roughing operation
This is the main operation in the machining of an irregular pocket, and its programming is optional.
It will be programmed in a block which will need to bear a label number in order to indicate to the
canned cycle the block where the roughing operation is defined.
3D pockets
11.
The function for the roughing operation is G67 and it cannot be executed independently from the
G66.
Its programming format is:
G67 A B C I R V F S T D M
If parameter "A" is not programmed, the roughing operation is carried out following concentric paths.
It will be machined as fast as possible since it does not have to go over the islands.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
If programmed with a positive sign, all the roughing will be performed with the same machining
pass, and the canned cycle calculates a pass equal to or smaller than the programmed pass.
246
P r o gr a m m i ng m a n u a l
If programmed with a negative sign, all the roughing will be performed with the programmed
pass, and the canned cycle will adjust the last pass to obtain the total programmed depth.
If done with B(+), the ridges will appear only on the pocket walls; but, if done with B(-), they could
also show up above the islands.
Defines the milling pass in roughing along the main plane, the entire pocket being performed with
the given pass, and the canned cycle adjusts the last milling pass.
3D pockets
11.
If not programmed or programmed with a 0 value, it assumes a value of 3/4 of the diameter of the
selected tool.
If programmed with a value greater than the tool diameter, the CNC issues the relevant error
message.
[ I5.5 ] Pocket depth
Defines the total depth of the pocket and is programmed in absolute coordinates. It must be
programmed.
[ R5.5 ] Reference plane
Defines the reference plane coordinate and is programmed in absolute coordinates. It must be
programmed.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
247
[ T4 ] Tool number
Defines the tool used for the roughing operation. It must be programmed.
[ D4 ] Tool offset
Optional. Defines the tool offset number.
[ M ] Auxiliary (miscellaneous) functions
3D pockets
11.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
248
P r o gr a m m i ng m a n u a l
11.2.2
Semi-finishing operation
3D pockets
Both the roughing and the semi-finishing operations are defined with G67; but, in different blocks.
It is function G66 who indicates which is which by means of parameters "R" and "C".
The function for the semi-finishing operation is G67 and it cannot be executed independently from
the G66.
11.
If programmed with a positive sign, the whole semi-finish operation will be carried out with the
same machining pass and the canned cycle will calculate a pass equal or smaller than the one
programmed.
If programmed with a negative sign, the whole semi-finish operation will be run with the
programmed pass. The canned cycle will adjust the last pass to obtain the total programmed
depth.
[ I5.5 ] Pocket depth
Defines the total depth of the pocket and is programmed in absolute coordinates.
If there is a roughing operation and it is not programmed, the CNC takes the value defined for the
roughing operation.
If there is no roughing operation, it must be programmed.
[ R5.5 ] Reference plane
Defines the reference plane coordinate and is programmed in absolute coordinates.
If there is a roughing operation and it is not programmed, the CNC takes the value defined for the
roughing operation.
If there is no roughing operation, it must be programmed.
[ V5.5 ] Penetration feedrate
Defines the tool penetrating feedrate.
CNC 8055
CNC 8055i
If not programmed or programmed with a 0 value, it assumes 50% of the feedrate in the plane (F).
[ F5.5 ] Machining feedrate
Optional. It sets the machining feedrate in the plane.
M & EN MODELS
SOFT: V01.4X
249
3D pockets
11.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
250
P r o gr a m m i ng m a n u a l
11.2.3
Finishing operation
G68 B L Q J I R V F S T D M
3D pockets
The function for the finishing operation is G68 and it cannot be executed independently from the G66.
11.
All the passes will be inward from the top of the pocket to its bottom
Q= 2:
All the passes will be outward from the bottom of the pocket to the top.
Q=0:
Any other value will generate the corresponding error message. If parameter "Q" is not programmed,
the cycle assumes Q0.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
251
If J is not programmed or J = 0.
SPHERICAL If J = R.
TORIC
3D pockets
11.
CNC 8055
CNC 8055i
[ T4 ] Tool number
Defines the tool used for the finishing operation. It must be programmed.
[ D4 ] Tool offset
M & EN MODELS
SOFT: V01.4X
252
P r o gr a m m i ng m a n u a l
This operation allows M06 with an associated subroutine to be defined, and the tool change is
performed before beginning the finishing operation.
3D pockets
11.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
253
11.2.4
To define the contours of a 2D pocket, the plane profile (3) and the depth profile (4) for all the contours
must be defined (even if they are vertical).
3D pockets
11.
Since the canned cycle applies the same depth profile to the whole contour, the same start point
must be used to define the plane profile as for the depth profile.
3D contours with more than one depth profile are also possible. These contours are called
"composite 3D profiles" and will be described later on.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
254
P r o gr a m m i ng m a n u a l
11.2.5
When programming inside or outside contours of an irregular 3D pocket (with islands) , the following
rules must be complied with:
1. The profile in the main plane indicates the shape of the contour.
Since a 3D contour has an infinite number of different profiles (1 per each depth coordinate),
the following must be programmed:
For the outside contour of the pocket, the one for the surface coordinate (1).
2. The profile in the plane must be closed (same starting and end points) and it must not intersect
itself. Examples:
3D pockets
11.
For the inside contours: the one corresponding to the base or bottom (2).
3. The depth profile (vertical cross section) must be programmed with any of the axes of the active
plane. If the active plane is the XY and the perpendicular axis is the Z axis, one must program:
G16XZ or G16YZ.
All profiles, plane and depth, must start with the definition of the plane containing it.
G16
;-G16
;--
G16
;-G16
;--
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
255
4. The depth profile must be defined after having defined the plane profile.
The beginning points of the plane profile and depth profile must be the same one.
Nevertheless, the depth profile must be programmed:
For the outside contour of the pocket starting from the top or surface coordinate (1).
For the inside contours, islands, starting from the bottom or base coordinate (2).
3D pockets
11.
5. The depth profile must be open and without direction changes along its path. In other words,
it cannot zig-zag.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
256
P r o gr a m m i ng m a n u a l
(TOR1=2.5,TOL1=20,TOI1=0,TOK1=0)
G17 G0 G43 G90 Z50 S1000 M4
G5
; Defines the 3D pocket.
G66 R200 C250 F300 S400 E500
M30
; Roughing operation.
N200 G67 B5 C4 I-30 R5 V100 F400 T1 D1 M6
; Semi-finishing operation.
N250 G67 B2 I-30 R5 V100 F550 T2 D1 M6
; Finishing operation.
N300 G68 B1.5 L0.75 Q0 I-30 R5 V80 F275 T3 D1 M6
3D pockets
11.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
257
3D pockets
11.
; Depth profile
G16 YZ
G0 G90 Y4 Z4
G1 Y17 Z35
Conic island
; Plane profile
G17
G0 G90 X35 Y8
G2 X35 Y8 I0 J27
; Depth profile
G16 YZ
G0 G90 Y8 Z14
G1 Y35 Z55
Semi-spherical island
; Plane profile
G17
G0 G90 X35 Y8
G2 X35 Y8 I0 J27
; Depth profile
G16 YZ
G0 G90 Y8 Z14
G2 Y35 Z41 R27
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
258
P r o gr a m m i ng m a n u a l
(TOR1=2.5,TOL1=20,TOI1=0,TOK1=0)
G17 G0 G43 G90 Z50 S1000 M4
G5
; Defines the 3D pocket.
G66 R200 C250 F300 S400 E500
M30
; Roughing operation.
N200 G67 B5 C4 I9 R25 V100 F400 T1D1 M6
; Semi-finishing operation.
N250 G67 B2 I9 R25 V100 F550 T2D1 M6
; Finishing operation.
N300 G68 B1.5 L0.75 Q0 I9 R25 V50 F275 T3D1 M6
; Definition of pocket geometry.
N400 G17
; External contour. Plane profile.
G90 G0 X10 Y30 Z24
G1 Y50
X70
Y10
X10
Y30
; Depth profile.
G16 XZ
G0 X10 Z24
G1 X15 Z9
; Island definition. Plane profile.
G17
G90 G0 X30 Y30
G2 X30 Y30 I10 K0
; Depth profile.
G16 XZ
G90 G0 X30 Z9
N500 G1 X35 Z20
3D pockets
11.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
259
11.2.6
Composite 3D profiles
3D pockets
11.
It is defined by means of the intersection of several contours with different depth profiles.
Each contour is defined by a profile in the plane and a depth profile. All the contours must meet the
following conditions:
The plane profile must contain the corresponding sides completely.
Only a depth profile per contour must be defined.
The plane profile and the depth profile of the contour gathering several sides must start at the
same point.
The resulting plane profile will be formed by the intersection of the plane profiles of each element
or contour.
Each wall of the resulting profile will assume the corresponding depth profile.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
260
P r o gr a m m i ng m a n u a l
Boolean addition
3D pockets
11.
The following example shows the explained selection process. The solid lines indicate the lines
external to the other contour and the dashes indicate the internal lines.
Boolean subtraction
Boolean intersection
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
261
2. The programming sequence for the different profiles is determinant when having an intersection
of more than 3 profiles.
The profile intersection process is performed according to the order in which the profiles have
been programmed. This way, the result of the intersection between the first two will be intersected
with the third one and so forth.
The initial point of the resulting profiles always coincides with the initial point that defined the
first profile.
3D pockets
11.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
262
P r o gr a m m i ng m a n u a l
11.2.7
Profile stacking
When 2 or more profiles stack on top of each other, the following considerations must be taken into
account.
If there is a gap between them, the cycle will consider that they are 2 different profiles and it will
eliminate the top profile when executing the bottom one.
3D pockets
The base coordinate of the top profile (2) must coincide with the surface coordinate of the bottom
profile (1).
11.
If the profiles mix, the canned cycle will make a groove around the top profile when running the
finishing pass.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
263
11.2.8
The outside profile and the inside profiles or islands which are programmed must be defined by
simple geometrical elements such as straight lines or arcs.
The first definition block (where the external profile starts) and the last (where the last profile defined
ends) must be provided with the block label number. These label numbers will indicate the beginning
and end of the profile geometry definition for the profiles that make up the pocket.
3D pockets
11.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
264
P r o gr a m m i ng m a n u a l
Profiles are described as programmed paths, it being possible to include corner rounding,
chamfers, etc., following the syntax rules defined for this purpose.
The profile description must not contain: mirror images, scaling factor changes, pattern rotation,
zero offsets, etc.
It must not contain high level blocks such as jumps, calls to subroutines or parametric
programming.
It must not contain other canned cycles.
In addition to the G00 function, which has a special meaning, the irregular pocket canned cycle
allows the use of the following functions for the definition of profiles.
G02
G03
G06
G08
G09
G16
G17
G18
G19
G36
G39
Chamfer.
G53
G70
Programming in inches.
G71
Programming in millimeters.
G90
Absolute programming.
G91
Incremental programming.
G93
11.
3D pockets
Linear interpolation.
IRREGULAR POCKET CANNED CYCLE
G01
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
265
11.2.9
Programming examples
Programming example 1
3D pockets
11.
In this example, the island has 3 types of depth profiles: A, B and C. 3 contours are used to define
the island: A-type contour, B-type contour and C-type contour.
; Tool dimensions.
(TOR1=2.5,TOL1=20,TOI1=0,TOK1=0)
; Initial positioning and definition of the 3D pocket.
G17 G0 G43 G90 Z50 S1000 M4
G5
G66 R200 C250 F300 S400 E500
M30
; Definition of roughing operation.
N200 G67 B5 C4 I-20 R5 V100 F400 T1D1 M6
; Definition of the semi-finishing operation
N250 G67 B2 I-20 R5 V100 F550 T2D1 M6
; Definition of finishing operation.
N300 G68 B1.5 L0.75 Q0 I-20 R5 V80 F275 T3 D1 M6
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
266
P r o gr a m m i ng m a n u a l
; Depth profile.
G16 YZ
G0 G90 Y90 Z0
G1 Z-20
3D pockets
; Depth profile.
G16 XZ
G0 G90 X10 Z0
G1 X20 Z-20
11.
IRREGULAR POCKET CANNED CYCLE
; Depth profile.
G16 XZ
G0 G90 X90 Z0
N500 G2 X70 Z-20 I-20 K0
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
267
Programming example 2
3D pockets
11.
In this example, the island has 3 types of depth profiles: A, B and C. 3 contours are used to define
the island: A-type contour, B-type contour and C-type contour.
; Tool dimensions.
(TOR1=7.5,TOI1=0,TOR2=5,TOI2=0,TOR3=2.5,TOI3=0)
; Initial positioning and definition of the 3D pocket.
G17 G0 G43 G90 Z50 S1000 M4
G5
G66 R200 C250 F300 S400 E500
M30
; Definition of roughing operation.
N200 G67 B7 C14 I-25 R3 V100 F500 T1 D1 M6
; Definition of the semi-finishing operation
N250 G67 B3 I-25 R3 V100 F625 T2 D2 M6
; Definition of finishing operation.
N300 G68 B1 L1 Q0 J0 I-25 R3 V100 F350 T3 D3 M6
; Definition of pocket geometry. Blocks N400 through N500.
N400 G17
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
268
P r o gr a m m i ng m a n u a l
; Depth profile.
G16 XZ
G0 G90 X40 Z-25
G1 Z-5
3D pockets
11.
IRREGULAR POCKET CANNED CYCLE
; Depth profile.
G16 YZ
G0 G90 Y30 Z-25
G2 Y50 Z-5 J20 K0
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
269
Programming example 3
3D pockets
11.
In this example, the island has 3 types of depth profiles: A, B and C. 3 contours are used to define
the island: A-type contour, B-type contour and C-type contour.
; Tool dimensions.
(TOR1=4,TOI1=0,TOR2=2.5,TOI2=0)
; Initial positioning and definition of the 3D pocket.
G17 G0 G43 G90 Z25 S1000 M3
G66 R200 C250 F300 S400 E500
M30
; Definition of roughing operation.
N200 G67 B5 C4 I-20 R5 V100 F700 T1 D1 M6
; Definition of the semi-finishing operation
N250 G67 B2 I-20 R5 V100 F850 T1 D1 M6
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
270
P r o gr a m m i ng m a n u a l
; Depth profile.
G16 YZ
G0 Y19 Z-20
G1 Z-16
G2 Y31 Z-4 R12
; Definition of B-type contour. Plane profile.
G17
G90 G0 X60 Y37
G1 X75
Y25
X40
Y37
3D pockets
11.
; Depth profile.
G16 YZ
G0 Y37 Z-20
G1 Z-13
G3 Y34 Z-10 J-3 K0
; Definition of C-type contour. Plane profile.
G17
G0 X70 Y31
G1 Y40
X80
Y20
X70
Y31
; Depth profile.
G16 XZ
G0 X70 Z-20
N500 G1 X65 Z-10
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
271
Programming example 4
3D pockets
11.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
272
P r o gr a m m i ng m a n u a l
; Tool dimensions.
(TOR1=4,TOI1=0,TOR2=2.5,TOI2=0)
3D pockets
11.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
273
; Definition of contour 2.
G17
G0 X27.5 Y-25
G1 G91 Y31
G1 X-2
Y-62
X2
Y31
3D pockets
11.
; Depth profile.
G16 XZ
G0 G90 X27.5 Z-30
G1 Z0
; Definition of contour 3.
G17
G0 X57.5 Y-25
G1 G91 Y-31
X2
Y62
X-2
Y-31
; Depth profile.
G16 XZ
G0 G90 X57.5 Z-30
G1 Z0
; Definition of contour 4.
G17
G0 X0 Y-75
G1 G91 X-31
Y-2
X62
Y2
X-31
; Depth profile.
G16 YZ
G0 G90 Y-75 Z-30
G1 Z0
; Definition of contour 5.
G17
G0 X-30 Y-60
G1 G91 Y-16
X60
Y32
X-60
Y-16
; Depth profile.
G16 XZ
G0 G90 X-30 Z-30
G2 X0 Z0 I30 K0
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
274
; Definition of contour 6.
G17
G0 X0 Y-45
G1 G91 X31
Y2
X-62
Y-2
X31
P r o gr a m m i ng m a n u a l
; Depth profile.
G16 YZ
G0 G90 Y-45 Z-30
G1 Z0
; Definition of contour 8.
G17
G0 X-42.5 Y5
G1 G91 X-16
Y-60
X32
Y60
X-16
3D pockets
; Depth profile.
G16 XZ
G0 G90 X-57.5 Z-30
G1 Z0
11.
IRREGULAR POCKET CANNED CYCLE
; Definition of contour 7.
G17
G0 X-57.5 Y-25
G1 G91 Y31
X-2
Y-62
X2
Y31
; Depth profile.
G16 YZ
G0 G90 Y5 Z-30
G3 Y-25 Z0 J-30 K0
; Definition of contour 9.
G17
G0 X-27.5 Y-25
G1 G91 Y-31
X2
Y62
X-2
Y-31
; Depth profile.
G16 XZ
G0 G90 X27.5 Z-30
G1 Z0
; Definition of contour 10.
G17
G0 X0 Y0
G1 X-28
Y-50
X28
Y0
X0
; Depth profile.
G16 YZ
G0 Y0 Z-30
N500 G3 Y-25 Z-5 J-25 K0
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
275
Programming example 5
3D pockets
11.
In this example, the island has 2 types of depth profiles: A and B. 2 contours are used to define the
island: the low contour (A-type) and the high contour (B-type).
; Tool dimensions.
(TOR1=2.5,TOL1=20,TOI1=0,TOK1=0)
; Initial positioning and definition of the 3D pocket.
G17 G0 G43 G90 Z50 S1000 M4
G5
G66 R200 C250 F300 S400 E500
M30
; Definition of roughing operation.
N200 G67 B5 C4 I-25 R5 V100 F400 T1 D1 M6
; Definition of the semi-finishing operation
N250 G67 B2 I-25 R5 V100 F550 T2 D1 M6
; Definition of finishing operation.
N300 G68 B1.5 L0.75 Q0 I-25 R5 V100 F275 T3 D1 M6
; Definition of pocket geometry. Blocks N400 through N500.
N400 G17
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
276
P r o gr a m m i ng m a n u a l
; Depth profile.
G16 YZ
G0 Y-16 Z-11
G1 Y-16 Z-5
N500 G3 Y-21 Z0 J-5 K0
3D pockets
11.
IRREGULAR POCKET CANNED CYCLE
; Depth profile.
G16 XZ
G0 X30 Z-25
G1 Z-20
G2 X39 Z-11 I9 K0
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
277
11.2.10 Errors
The CNC will issue the following errors:
ERROR 1025
It comes up when using a tool with "0" radius while machining a 3D pocket.
ERROR 1026
3D pockets
11.
A step has been programmed that is larger than the tool diameter
When parameter "C" of the roughing operation is greater than the diameter of the roughing tool.
ERROR 1041
It comes up when any of the plane profiles of the programmed contours intersects itself.
ERROR 1046
It comes up when calling the G66 cycle if the tool is positioned between the reference plane and
the depth coordinate (bottom) of any of the operations.
ERROR 1047
It comes up when any of the programmed contours does not begin and end at the same point. It
may be because G1 has not been programmed after the beginning, with G0, on any of the profiles.
ERROR 1048
It comes up when the first point of the geometry does not include the pocket top coordinate.
ERROR 1049
CNC 8055
CNC 8055i
It comes up when the coordinate of the reference plane is located between the part's "top" and
"bottom" in any of the operations.
ERROR 1084
It comes up when any of the paths programmed in the geometry definition of the pocket is wrong.
M & EN MODELS
SOFT: V01.4X
ERROR 1227
278
P r o gr a m m i ng m a n u a l
When the initial points of two profiles in the main plane coincide (drawing on the right).
3D pockets
11.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
279
3D pockets
11.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
280
PROBING
12
The CNC has two probe inputs, one for TTL-type 5Vdc signals and another for 24 Vdc signals.
The connection of the different types of probes to these inputs are explained in the appendix to the
Installation manual.
This control allows the following operations to be performed, by using probes:
Programming probing blocks with functions G75 and G76.
Execution of the various tool calibration, part-measurement and part centering cycles by means
of high-level language programming.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
281
12.1
PROBING
12.
After G75 or G76, the required axis or axes will be programmed, as well as the coordinates of these
axes that will define the end point of the programmed movement.
The machine will move according to the programmed path until it receives the signal from the probe
(G75) or until it no longer receives the probe signal (G76). At this time, the CNC will consider the
block finished, taking as the theoretical position of the axes the real position they have at that time.
If the axes reach the programmed position before receiving or while receiving the external signal
from the probe, the CNC will stop the movement of the axes.
This type of movement with probing blocks are very useful when it is required to generate
measurement or verification programs for tools and parts.
Functions G75 and G76 are not modal and, therefore, must be programmed whenever it is wished
to probe.
Functions G75 and G76 are incompatible with each other and with G00, G02, G03, G33, G34, G41
and G42 functions. In addition, once this has been performed, the CNC will assume functions G01
and G40.
During G75 or G76 moves, the operation of the feedrate override switch depends on the setting of
OEM machine parameter FOVRG75.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
282
P r o gr a m m i ng m a n u a l
12.
12.2
Canned cycles will be programmed by means of the high level mnemonic, PROBE, which has the
following programming format:
(PROBE (expression), (assignment instruction),...)
This instruction PROBE calls the probing cycle indicated by means of a number or any expression
which results in a number. Besides, it allows the parameters of this cycle to be initialized with the
values required to perform it, by means of assignment instructions.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
283
12.3
PROBING
12.
Indicates the minimum coordinate occupied by the probe along the X axis.
PRBXMAX
Indicates the maximum coordinate occupied by the probe along the X axis.
PRBYMIN
Indicates the minimum coordinate occupied by the probe along the Y axis.
PRBYMAX
Indicates the maximum coordinate occupied by the probe along the Y axis.
PRBZMIN
Indicates the minimum coordinate occupied by the probe along the Z axis.
PRBZMAX
Indicates the maximum coordinate occupied by the probe along the Z axis.
If it is the first time that the tool length has been calibrated, it is advisable to include an approximate
value of its length (L) in the tool offset table.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
284
P r o gr a m m i ng m a n u a l
Programming format
The programming format for this cycle is.
(PROBE 1, B, I, F, J, K, L, C, D, E, S, M, C, N, X, U, Y, V, Z, W)
Certain parameters are only relevant in certain type of measurement. Later sections describe the
various options of this cycle and the parameters to be set in each one.
Parameters X, U, Y, V, Z, W.
The CNC does not modify the machine parameters. The CNC only takes into account the
coordinates indicated in X, U, Y, V, Z, W during this calibration. If any of the X, U, Y, V, Z, W fields
is left out, the CNC takes the value assigned to the corresponding machine parameter.
12.
PROBING
Define the probe position. They are optional parameters that usually need not be defined. In certain
machines, due to lack of repeatability in the mechanical positioning of the probe, the probe must
be calibrated again before each calibration.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
285
12.3.1
The type of operation (calibration or measurement) is selected when calling the cycle.
The calibration or measurement may be done on the tool shaft or on its tip. It is selected when calling
the canned cycle.
The programming format depends on the operation to carry out:
Tool length calibration along its shaft.
PROBING
12.
Calibration of the tool length or measurement of the tool length wear along its
shaft.
I=1
Calibration of the tool length or measurement of the tool length wear on its tip.
CNC 8055
CNC 8055i
Tool calibration.
J=1
Wear measurement.
When set to 0, the tool is not rejected due to length wear. The tool is rejected when measuring a
wear greater than the one defined.
Only if J1 has been defined and tool life monitoring is being used. If not programmed, the canned
cycle will assume the L0 value.
286
P r o gr a m m i ng m a n u a l
C=1
The cycle replaces the tool with another one of the same family.
PROBING
12.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
287
PROBING
12.
P299
Measured length.
0.
C1
The cycle replaces the tool with another one of the same family. It sets the "rejected
tool" indicator (Status = R) It activates the general logic output PRTREJEC (M5564).
If tool life monitoring is not available or the measuring difference does not exceed the maximum
allowed.
In this case, it updates global arithmetic parameter P299 and the length wear value of the tool
offset selected in the tool offset table.
P299
If the dimension of each cutting edge was requested ("N" parameter) the measured values are
assigned to global arithmetic parameters P271 and on.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
288
P r o gr a m m i ng m a n u a l
12.3.2
The type of operation (calibration or measurement) is selected when calling the cycle.
The programming format depends on the operation to carry out:
Tool radius Calibration.
(PROBE 1, B, I2, F, J0, K, E, S, N, X, U, Y, V, Z, W)
Tool calibration.
J=1
Wear measurement.
PROBING
12.
Side X+.
K=1
Side X-.
K=2
Side Y+.
K=3
Side Y-.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
Only if J1 has been defined and tool life monitoring is being used. If not programmed, a value of
M0 will be assumed.
289
C=1
The cycle replaces the tool with another one of the same family.
PROBING
12.
When set to zero, it only takes one measurement. If not programmed, the cycle will assume the N0
value.
To measure each cutting edge when the spindle has feedback and s.m.p. M19TYPE (P43) =1.
[ X U Y V Z W ] Probe position
Optional parameters. See "Programming format" on page 285.
Measured radius.
0.
C1
The cycle replaces the tool with another one of the same family. It sets the "rejected
tool" indicator (Status = R) It activates the general logic output PRTREJEC (M5564).
If tool life monitoring is not available or the measuring difference does not exceed the maximum
allowed.
In this case, it updates global arithmetic parameter P298 and the radius wear value of the tool
offset selected in the tool offset table.
P298
If the dimension of each cutting edge was requested ("N" parameter) the measured values are
assigned to global arithmetic parameters P251 and on.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
290
P r o gr a m m i ng m a n u a l
12.3.3
Measure or calibrate the tool radius wear and tool length wear.
The type of operation (calibration or measurement) is selected when calling the cycle.
The programming format depends on the operation to carry out:
Tool radius Calibration.
(PROBE 1, B, I3, F, J0, K, D, E, S, N, X, U, Y, V, Z, W)
Measure or calibrate the tool radius wear and tool length wear.
Tool calibration.
J=1
Wear measurement.
PROBING
12.
Side X+.
K=1
Side X-.
K=2
Side Y+.
K=3
Side Y-.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
291
PROBING
12.
When set to 0, the tool is not rejected due to radius wear. The tool is rejected when measuring a
wear greater than the one defined.
Only if J1 has been defined and tool life monitoring is being used. If not programmed, a value of
M0 will be assumed.
[ C ] Behavior when exceeding the amount of wear allowed
Only if "M" or "L" has been set to other than zero.
C=0
C=1
The cycle replaces the tool with another one of the same family.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
292
P r o gr a m m i ng m a n u a l
P299
Measured radius.
Measured length.
0.
0.
C1
The cycle replaces the tool with another one of the same family. It sets the "rejected
tool" indicator (Status = R) It activates the general logic output PRTREJEC (M5564).
If tool life monitoring is not available or the measuring difference does not exceed the maximum
allowed.
In this case, it updates global arithmetic parameters P298 and P299 as well as the radius wear
and length wear value of the tool offset selected in the tool offset table.
P298
P299
12.
PROBE 1. Tool length calibrating canned cycle
PROBING
P298
If the dimension of each cutting edge was requested, parameter "N", the lengths are assigned
to global arithmetic parameters P271 and on; the radii are assigned to global arithmetic
parameters P251 and on.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
293
12.4
PROBING
12.
The CNC will treat each measuring probe used as just one more tool. The tool offset table fields
corresponding to each probe will have the following meaning:
R
Probe ball radius. This value will be loaded into the table manually.
Probe length. This value will be indicated by the tool length calibration cycle.
Deviation of the probe ball shaft with respect to the tool holder along the abscissa axis.
This value will be indicated by the cycle.
Deviation of the probe ball shaft with respect to the tool holder along the ordinate axis.
This value will be indicated by the cycle.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
294
P r o gr a m m i ng m a n u a l
Defines the real diameter of the hole. Must be programmed with a positive value and over 0.
[ E5.5 ] Withdrawal distance
Defines the distance which the probe moves back after initial probing. Must be programmed with
a positive value and over 0.
[ H5.5 ] Initial probing feedrate
Defines the feedrate for the initial probing movement. It must be programmed in mm/minute or
inches/minute.
[ F5.5 ] Probing feedrate
It sets the probing feedrate. It must be programmed in mm/minute or inches/minute.
PROBING
12.
Defines the safety distance. Must be programmed with a positive value and over 0.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
295
12.4.1
Basic operation
PROBING
12.
1. Approach movement.
Movement of the probe in rapid (G00) from the point where the cycle is called to the center of
the hole.
The approaching movement is made in two stages:
1 Movement in the main work plane.
2 Movement along the longitudinal axis.
2. Probing.
This movement consists of:
1 Movement of the probe along the ordinate axis at the indicated feedrate (H), until the probe
signal is received.
The maximum distance to be traveled in the probing movement is "B+(J/2)"; if, after travelling
that distance, the CNC does not receive the probe signal, it will display the corresponding
error code and stop the movement of the axes.
2 Return of the probe in rapid (G00) the distance indicated in (E).
3 Movement of the probe along the ordinate axis at the indicated feedrate (F), until the probe
signal is received.
3. Withdrawal.
Movement of the probe in rapid (G00) from the point where it probed to the real center of the hole.
4. Second probing movement.
Same as above.
5. Withdrawal.
Movement of the probe in rapid (G00) from the point where it probed to the real center of the
hole along the ordinate axis.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
296
P r o gr a m m i ng m a n u a l
1 Movement of the probe in rapid (G00) from the point where it probed to the real center of
the hole.
2 Movement along the longitudinal axis to the coordinate of the point (along this axis) from
where the cycle was called.
3 Movement in the main work plane to the point where the cycle is called.
PROBING
The cycle returns in arithmetic parameter P299 the best value to be assigned to general machine
parameter PRODEL.
12.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
297
12.5
PROBING
12.
This cycle allows correcting the value of the tool offset of the tool that has been used in the surface
machining process. This correction will be used only when the measurement error exceeds a
programmed value.
The programming format for this cycle is:
(PROBE 3, X, Y, Z, B, K, F, C, D, L)
[ X5.5 ] Theoretical coordinate, along the X axis, of the point over which it is required to
measure.
[ Y5.5 ] Theoretical coordinate, along the Y axis, of the point over which it is required to
measure.
[ Z5.5 ] Theoretical coordinate, along the Z axis, of the point over which it is required to measure.
[ B5.5 ] Safety distance
Defines the safety distance. Must be programmed with a positive value and over 0.
The probe must be placed, with respect to the point to be measured, at a distance greater than this
value when the cycle is called.
[ K ] Probing axis
Defines the axis with which it is required to measure the surface and will be defined by means of
the following code:
K=0
K=1
K=2
If this is not programmed, the canned cycle will take the value of K0.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
Will return to the same point where the call to the cycle was made.
C=1
The cycle will finish over the measured point returning the longitudinal axis to the
cycle calling point.
If not programmed, the canned cycle will take the value of "C0".
298
P r o gr a m m i ng m a n u a l
[ D4 ] Tool offset
Defines the number of the tool offset to be corrected, once the measurement cycle is completed.
If this is not programmed or is programmed with a value of 0, the CNC will understand that it is not
required to make this correction.
[ L5.5 ] Error tolerance
Defines the tolerance that will be applied to the error measured. It will be programmed with an
absolute value and the tool offset will be corrected only when the error exceeds this value.
PROBING
12.
If this is not programmed, the canned cycle will take the value of 0.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
299
12.5.1
Basic operation
PROBING
12.
1. Approach movement.
Movement of the probe in rapid (G00) from the point where the cycle is called to the approach
point.
This point is located in front of the point to be measured, at a safety distance (B) from it and along
the probing axis (K).
The approaching movement is made in two stages:
1 Movement in the main work plane.
2 Movement along the longitudinal axis.
2. Probing.
Movement of the probe along the selected axis (K) at the indicated feedrate (F), until the probe
signal is received.
The maximum distance to be traveled in the probing movement is 2B; if, after travelling that
distance, the CNC does not receive the probe signal, it will display the corresponding error code
and stop the movement of the axes.
Once probing has been made, the CNC will assume as their theoretical position the real position
of the axes when the probe signal is received .
3. Withdrawal.
Movement of the probe in rapid (G00) from the point where it probed to the point where the cycle
was called.
The withdrawal movement is made in three stages:
1 Movement along the probing axis to the approach point.
2 Movement along the longitudinal axis to the coordinate of the point (along this axis) from
where the cycle was called.
3 When (C0) is programmed, movement is made in the main work plane to the point where
the cycle is called.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
300
Once the cycle has been completed, the CNC will return the real values obtained after
measurement, in the following global arithmetic parameters.
P298
P299
Error detected. Difference between the real coordinate of the surface and the
theoretical programmed coordinate.
P r o gr a m m i ng m a n u a l
PROBING
12.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
301
12.6
PROBING
12.
(PROBE 4, X, Y, Z, B, F)
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
302
P r o gr a m m i ng m a n u a l
Basic operation
1. Approach movement.
Movement of the probe in rapid (G00) from the point where the cycle is called to the first approach
point, situated at a distance (B) from the first face to be probed.
The approaching movement is made in two stages:
1 Movement in the main work plane.
2 Movement along the longitudinal axis.
2. Probing.
12.
PROBING
12.6.1
Movement of the probe along the abscissa axis at the indicated feedrate (F), until the probe signal
is received.
The maximum distance to be traveled in the probing movement is 2B; if, after travelling that
distance, the CNC does not receive the probe signal, it will display the corresponding error code
and stop the movement of the axes.
3. Withdrawal.
Movement of the probe in rapid (G00) from the point where it probed to the first approach point
4. Second approach.
Movement of the probe in rapid (G00) from the first approach point to the second.
The approaching movement is made in two stages:
1 Movement along the ordinate plane.
2 Movement along the abscissa axis.
5. Second probing movement.
Movement of the probe along the abscissa axis at the indicated feedrate (F), until the probe signal
is received.
The maximum distance to be traveled in the probing movement is 2B; if, after travelling that
distance, the CNC does not receive the probe signal, it will display the corresponding error code
and stop the movement of the axes.
6. Withdrawal.
Movement of the probe in rapid (G00) from the point where it probed for the second time to the
point where the cycle was called.
The withdrawal movement is made in three stages:
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
303
PROBING
12.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
304
P296
P297
P298
Error detected along the abscissa axis. Difference between the real coordinate of the
corner and the theoretical programmed coordinate.
P299
Error detected along the ordinate axis. Difference between the real coordinate of the
corner and the theoretical programmed coordinate.
P r o gr a m m i ng m a n u a l
12.7
PROBING
12.
Defines the safety distance. Must be programmed with a positive value and over 0.
The probe must be placed, with respect to the point to be measured, at a distance greater than this
value when the cycle is called.
[ F5.5 ] Probing feedrate
It sets the probing feedrate. It must be programmed in mm/minute or inches/minute.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
305
12.7.1
Basic operation
PROBING
12.
1. Approach movement.
Movement of the probe in rapid (G00) from the point where the cycle is called to the first approach
point, situated at a distance (B) from both faces to be probed.
The approaching movement is made in two stages:
1 Movement in the main work plane.
2 Movement along the longitudinal axis.
2. Probing.
Movement of the probe along the abscissa axis at the indicated feedrate (F), until the probe signal
is received.
The maximum distance to be traveled in the probing movement is 2B; if, after travelling that
distance, the CNC does not receive the probe signal, it will display the corresponding error code
and stop the movement of the axes.
3. Withdrawal.
Movement of the probe in rapid (G00) from the point where it probed to the approach point
4. Second probing movement.
Movement of the probe along the abscissa axis at the indicated feedrate (F), until the probe signal
is received.
The maximum distance to be traveled in the probing movement is 2B; if, after travelling that
distance, the CNC does not receive the probe signal, it will display the corresponding error code
and stop the movement of the axes.
5. Withdrawal.
Movement of the probe in rapid (G00) from the point where it probed for the second time to the
point where the cycle was called.
The withdrawal movement is made in three stages:
1 Movement along the probing axis to the approach point.
2 Movement along the longitudinal axis to the coordinate of the point (along this axis) from
where the cycle was called.
3 Movement in the main work plane to the point where the cycle is called.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
306
P r o gr a m m i ng m a n u a l
P297
P298
Error detected along the abscissa axis. Difference between the real coordinate of the
corner and the theoretical programmed coordinate.
P299
Error detected along the ordinate axis. Difference between the real coordinate of the
corner and the theoretical programmed coordinate.
12.
PROBE 5. Inside corner measuring canned cycle.
PROBING
P296
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
307
12.8
PROBING
12.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
308
(PROBE 6, X, Y, Z, B, F)
[ X5.5 ] Theoretical coordinate, along the X axis, of the vertex of the angle to be measured.
[ Y5.5 ] Theoretical coordinate, along the Y axis, of the vertex of the angle to be measured
[ Z5.5 ] Theoretical coordinate, along the Z axis, of the vertex of the angle to be measured.
[ B5.5 ] Safety distance
Defines the safety distance. Must be programmed with a positive value and over 0.
The probe must be placed, with respect to the point to be measured, at a distance greater than
double this value when the cycle is called.
[ F5.5 ] Probing feedrate
It sets the probing feedrate. It must be programmed in mm/minute or inches/minute.
P r o gr a m m i ng m a n u a l
Basic operation
1. Approach movement.
Movement of the probe in rapid (G00) from the point where the cycle is called to the first approach
point, situated at a distance (B) from the programmed vertex and at (2B) from the face to be
probed.
12.
PROBING
12.8.1
CNC 8055
CNC 8055i
2 Movement along the longitudinal axis to the coordinate of the point (along this axis) from
where the cycle was called.
3 Movement in the main work plane to the point where the cycle is called.
M & EN MODELS
SOFT: V01.4X
309
Inclination angle which the part has in relation to the abscissa axis.
PROBING
12.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
310
P r o gr a m m i ng m a n u a l
12.9
If it is an inside corner, the probe must be placed within the pocket before calling the cycle.
PROBING
12.
[ K ] Type of corner
Defines the type of corner to be measured:
K = 0:
K = 1:
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
311
12.9.1
PROBING
12.
1. Approach movement.
Movement of the probe in rapid (G00) from the point where the cycle is called to the first approach
point, situated at a distance (2B) from the first side to be probed.
The approaching movement is made in two stages:
1 Movement in the main work plane.
2 Movement along the longitudinal axis.
2. Probing.
Movement of the probe along the abscissa axis at the indicated feedrate (F), until the probe signal
is received.
The maximum distance to be traveled in the probing movement is 3B; if, after travelling that
distance, the CNC does not receive the probe signal, it will display the corresponding error code
and stop the movement of the axes.
3. Withdrawal.
Movement of the probe in rapid (G00) from the point where it probed to the first approach point
4. Second approach.
Movement of the probe in rapid (G00) from the first approach point to the second, situated at
a distance (2B) from the second side to be probed.
The approaching movement is made in two stages:
1 Movement along the ordinate plane.
2 Movement along the abscissa axis.
5. Second probing movement.
Movement of the probe along the abscissa axis at the indicated feedrate (F), until the probe signal
is received.
The maximum distance to be traveled in the probing movement is 3B; if, after travelling that
distance, the CNC does not receive the probe signal, it will display the corresponding error code
and stop the movement of the axes.
6. Withdrawal.
CNC 8055
CNC 8055i
Movement of the probe in rapid (G00) from the point where it probed to the second point of
approach.
7. Third approach.
Movement of the probe in rapid (G00) from the second approach point to the third. It is at a
distance (B) from the previous one.
M & EN MODELS
SOFT: V01.4X
312
P r o gr a m m i ng m a n u a l
2 Movement along the longitudinal axis to the coordinate of the point (along this axis) from
where the cycle was called.
3 Movement in the main work plane to the point where the cycle is called.
Inclination angle which the part has in relation to the abscissa axis.
P296
P297
P298
Error detected along the abscissa axis. Difference between the real coordinate of the
corner and the theoretical programmed coordinate.
P299
Error detected along the ordinate axis. Difference between the real coordinate of the
corner and the theoretical programmed coordinate.
PROBING
12.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
313
12.9.2
PROBING
12.
4
8
7 5
3
2
6
9
B
B
1. Approach movement.
Movement of the probe in rapid (G00) from the point where the cycle is called to the approach
point, situated at a distance (B) from the first face to be probed.
The approaching movement is made in two stages:
1 Movement in the main work plane.
2 Movement along the longitudinal axis.
2. Probing.
Movement of the probe along the abscissa axis at the indicated feedrate (F), until the probe signal
is received.
The maximum probing distance is 2B. If the CNC does not receive the probe signal before
reaching moving this probing distance, it displays the relevant error message and stops the axes.
3. Withdrawal.
Movement of the probe in rapid (G00) from the point where it probed to the first approach point
4. Second probing movement.
Movement of the probe along the abscissa axis at the indicated feedrate (F), until the probe signal
is received.
The maximum probing distance is 2B. If the CNC does not receive the probe signal before
reaching moving this probing distance, it displays the relevant error message and stops the axes.
5. Withdrawal.
Movement of the probe in rapid (G00) from the second probing point to the first approach point
6. Second approach.
Movement of the probe in rapid (G00) from the first approach point to the second. It is at a
distance (B) from the previous one.
7. Third probing movement.
Movement of the probe along the abscissa axis at the indicated feedrate (F), until the probe signal
is received.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
314
The maximum distance to be traveled in the probing movement is 3B; if, after travelling that
distance, the CNC does not receive the probe signal, it will display the corresponding error code
and stop the movement of the axes.
P r o gr a m m i ng m a n u a l
8. Withdrawal.
Movement of the probe in rapid (G00) from the third probing point to the point where the cycle
was called.
The withdrawal movement is made in three stages:
1 Movement along the probing axis to the second approach point.
2 Movement along the longitudinal axis to the coordinate of the point (along this axis) from
where the cycle was called.
3 Movement in the main work plane to the point where the cycle is called.
P295
Inclination angle which the part has in relation to the abscissa axis.
P296
P297
P298
Error detected along the abscissa axis. Difference between the real coordinate of the
corner and the theoretical programmed coordinate.
P299
Error detected along the ordinate axis. Difference between the real coordinate of the
corner and the theoretical programmed coordinate.
PROBING
Once the cycle has been completed, the CNC will return the real values obtained after
measurement, in the following global arithmetic parameters.
12.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
315
12.10
A probe placed in the spindle will be used, which must be previously calibrated by means of canned
cycles:
Tool length calibrating canned cycle.
Probe calibrating canned cycle.
The programming format for this cycle is:
PROBING
12.
(PROBE 8, X, Y, Z, B, J, E, C, H, F)
Will return to the same point where the call to the cycle was made.
C=1
If not programmed, the canned cycle will take the value of "C0".
[ H5.5 ] Initial probing feedrate
Defines the feedrate for the initial probing movement. It must be programmed in mm/minute or
inches/minute.
[ F5.5 ] Probing feedrate
It sets the probing feedrate. It must be programmed in mm/minute or inches/minute.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
316
P r o gr a m m i ng m a n u a l
1. Approach movement.
PROBING
12.
Movement of the probe in rapid (G00) from the point where the cycle is called to the center of
the hole.
The approaching movement is made in two stages:
1 Movement in the main work plane.
2 Movement along the longitudinal axis.
2. Probing.
This movement consists of:
1 Movement of the probe along the ordinate axis at the indicated feedrate (H), until the probe
signal is received.
The maximum distance to be traveled in the probing movement is "B+(J/2)"; if, after travelling
that distance, the CNC does not receive the probe signal, it will display the corresponding
error code and stop the movement of the axes.
2 Return of the probe in rapid (G00) the distance indicated in (E).
3 Movement of the probe along the abscissa axis at the indicated feedrate (F), until the probe
signal is received.
3. Withdrawal.
Movement of the probe in rapid (G00) from the point where it probed to the theoretical center
of the hole.
4. Second probing movement.
Same as above.
5. Withdrawal.
Movement of the probe in rapid (G00) from the point where it probed to the real center
(calculated) of the hole along the ordinate axis.
6. Third probing movement.
Same as above.
CNC 8055
CNC 8055i
7. Withdrawal.
Movement of the probe in rapid (G00) from the point where it probed to the theoretical center
of the hole.
8. Fourth probing movement.
M & EN MODELS
SOFT: V01.4X
Same as above.
317
9. Withdrawal.
This movement consists of:
1 Movement of the probe in rapid (G00) from the point where it probed to the real center
(calculated) of the hole.
2 Should (C0) be programmed, the probe will be moved to the point where the cycle was called.
Movement along the longitudinal axis to the coordinate of the point (along this axis) from
where the cycle was called.
PROBING
12.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
318
Movement in the main work plane to the point where the cycle is called.
Hole diameter.
P295
Hole diameter error. Difference between the real diameter and programmed
diameter.
P296
P297
P298
Error detected along the abscissa axis. Difference between the real coordinate of the
center and the programmed theoretical coordinate.
P299
Error detected along the ordinate axis. Difference between the real coordinate of the
center and the programmed theoretical coordinate.
P r o gr a m m i ng m a n u a l
12.11
A probe placed in the spindle will be used, which must be previously calibrated by means of canned
cycles:
Tool length calibrating canned cycle.
Probe calibrating canned cycle.
The programming format for this cycle is:
(PROBE 9, X, Y, Z, B, J, E, C, H, F)
PROBING
12.
Will return to the same point where the call to the cycle was made.
C=1
The cycle will ends by positioning the probe over the center of the boss, at a (B)
distance from the programmed theoretical coordinate.
If not programmed, the canned cycle will take the value of "C0".
[ H5.5 ] Initial probing feedrate
Defines the feedrate for the initial probing movement. It must be programmed in mm/minute or
inches/minute.
[ F5.5 ] Probing feedrate
It sets the probing feedrate. It must be programmed in mm/minute or inches/minute.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
319
PROBING
12.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
320
P r o gr a m m i ng m a n u a l
Boss diameter.
P295
Boss diameter error. Difference between the real diameter and programmed
diameter.
P296
P297
P298
Error detected along the abscissa axis. Difference between the real coordinate of the
center and the programmed theoretical coordinate.
P299
Error detected along the ordinate axis. Difference between the real coordinate of the
center and the programmed theoretical coordinate.
PROBING
Movement in the main work plane to the point where the cycle is called.
12.
Movement along the longitudinal axis to the coordinate of the point (along this axis) from
where the cycle was called.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
321
12.12
Cycle that, with a digital probe, minimizes the preparation time of rectangular part calculating the
real coordinates of the center, of the surface and of the part inclination.
(PROBE 10, I, J, X, Y, Z, K, L, B, D, E, H, F, Q)
Initial conditions
The probe must properly calibrated in radius and length.
PROBING
12.
The probe position before the first probing movement must be as centered as possible in X and Y.
Parameters
[ X5.5 ] X coordinate where probing will begin
X coordinate of the probe position where the first probing move will start.
If not programmed, it will assume the current X position of the probe.
[ Y5.5 ] Y coordinate where probing will begin
Y coordinate of the probe position where the first probing move will start.
If not programmed, it will assume the current Y position of the probe.
[ Z5.5 ] Z coordinate where probing will begin
Z coordinate of the probe position where the first probing move will start.
If not programmed, it will assume the current Z position of the probe.
[ I5.5 ] X length of the rectangular part.
If not programmed or programmed with a 0 value, it generates the corresponding error message.
[ J5.5 ] Y length of the rectangular part.
If not programmed or programmed with a 0 value, it generates the corresponding error message.
[ K1 ] Axis and direction of the first probing movement.
The values are:
For X+ : 0
For X- : 1
For Y+ : 2
CNC 8055
CNC 8055i
For Y- : 3
If not programmed, it assumes 0.
[ L1 ] It indicates whether the part surface is measured or not
0 Value: It is not measured
M & EN MODELS
SOFT: V01.4X
322
1 Value: It is measured
If not programmed, it assumes 0
P r o gr a m m i ng m a n u a l
If not programmed or programmed with a 0 value, it generates the corresponding error message.
[ F5 ] Probe's measuring feedrate
If not programmed or programmed with a 0 value, it generates the corresponding error message.
[ Q5] Probe feedrate when going to the approach points
Probe feedrate when going to the approach points. If not programmed, it assumes rapid traverse
(G0).
[ T ] Probe's tool number.
[ D ] Tool offset number.
If not programmed, it assumes the offset number assigned to T in the tool table.
PROBING
12.
Distance the probe retracts after finding the part, to make the measurement. If not programmed or
programmed with a 0 value, it generates the corresponding error message.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
323
PROBING
12.
4. Probing movement (at the feedrate given in F) until touching the same side again.
5. Withdrawal to the starting position.
6. Movement parallel to the probed side to touch a different point of the same side.
7. Probing movement (at the feedrate given in F), in the given axis and direction until touching the
first side again. This calculates the part inclination angle with respect to the table and it is saved
in parameter P296.
8. Rapid up movement in Z (distance given in D) up to the Safety Z coordinate.
9. Movement (according to the value given in Q) up to the approach point of the opposite side
considering the length of the part, the calculated inclination angle and the value of parameter B.
10.Probing movement (at the feedrate given in H) to go down to the probing Z coordinate. If it
touches the part, the probe goes back up to the safety Z position and moves the distance
indicated by parameter B (in the same direction) until clearing the part.
11.Probing movement (at the feedrate given in H), considering the calculated inclination angle until
touching that side.
12.Withdrawal (distance given in E) for the measuring probing movement.
13.Probing movement (at the feedrate given in F) until touching the same side again.
14.Rapid up movement to the safety Z coordinate.
15.Movement (according to the value given in Q) up to approach point in the middle of one of the
remaining sides considering half the lengths and the calculated inclination angle.
16.Probing movement (at the feedrate given in H) to go down to the probing Z coordinate. If it
touches the part, the probe goes back up to the safety Z position and moves the distance
indicated by parameter B (in the same direction) until clearing the part.
17.Probing movement (at the feedrate given in H), considering the calculated inclination angle until
touching that side.
18.Withdrawal (distance given in E) for the measuring probing movement.
19.Probing movement (at the feedrate given in F) until touching the same side again.
20.Rapid up movement to the safety Z coordinate.
21.If part surface measuring has not been programmed, it goes on to point 26; and if it has been
programmed, movement (according to the value given in Q) up to the center of the part.
22.Probing movement (at the feedrate given in H) until touching the surface of the part.
23.Withdrawal (distance given in E) for the measuring probing movement.
24.Probing movement (at the feedrate given in F) until touching the surface of the part again. This
measures the coordinate of the part surface and it is saved in parameter P297.
25.Rapid up movement to the safety Z coordinate.
26.Movement (according to the value given in Q) up to the approach point of the opposite side
considering the length of the part, the calculated inclination angle.
CNC 8055
CNC 8055i
27.Probing movement (at the feedrate given in H) to go down to the probing Z coordinate. If it
touches the part, the probe goes back up to the safety Z position and moves the distance
indicated by parameter B (in the same direction) until clearing the part.
28.Probing movement (at the feedrate given in H), considering the calculated inclination angle until
touching that side.
29.Withdrawal (distance given in E) for the measuring probing movement.
M & EN MODELS
SOFT: V01.4X
30.Probing movement (at the feedrate given in F) until touching the same side again. This calculates
the real center of the rectangular part and it is saved in parameters P298 and P299.
31.Rapid up movement to the safety Z coordinate.
32.Rapid movement up to the calculated center.
324
P r o gr a m m i ng m a n u a l
12.13
Cycle that, with a digital probe, minimizes the preparation time of circular part calculating the real
coordinates of the center and of the surface of the part.
(PROBE 11, J, X, Y, Z, K, L, B, D, E, H, F, Q)
Initial conditions
The probe must properly calibrated in radius and length.
After the probing movements, the probe withdraws from the part in G0 before moving to the safety
Z position.
Depending on the PRBMOD variable, no error is issued in the following cases, even if machine
parameter PROBERR=YES.
When a G75 probing move finishes before the probe has touched part.
When a G76 probing move finishes but the probe is still touching the part.
Parameters
[ X5.5 ] X coordinate where probing will begin
X coordinate of the probe position where the first probing move will start.
If not programmed, it will assume the current X position of the probe.
PROBING
12.
The probe position before the first probing movement must be as centered as possible in X and Y.
CNC 8055
CNC 8055i
1 Value: It is measured
If not programmed, it assumes 0
[ B5.5 ] Part approaching distance in each probing movement.
If not programmed or programmed as 0, it assumes the approach distance value from the probe
starting position to the part.
M & EN MODELS
SOFT: V01.4X
325
PROBING
12.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
326
P r o gr a m m i ng m a n u a l
7. Probing movement (at the feedrate given in H) to go down to the probing Z coordinate. If it touches
the part, the probe goes back up to the safety Z position and moves the distance indicated by
parameter B (in the same direction) until clearing the part.
8. Probing movement (at the feedrate given in H) until touching the part.
9. Withdrawal (distance given in E) for the measuring probing movement.
10.Probing movement (at the feedrate given in F) until touching the part again. This calculates one
of the coordinates of the real center of the part.
11.Rapid up movement to the safety Z coordinate.
12.Movement (according to the value given in Q) up to the approach point of the remaining axis
considering the calculated center coordinate.
13.Probing movement (at the feedrate given in H) to go down to the probing Z coordinate. If it
touches the part, the probe goes back up to the safety Z position and moves the distance
indicated by parameter B (in the same direction) until clearing the part.
14.Probing movement (at the feedrate given in H) until touching the part.
PROBING
6. Movement (according to the value given in Q) up to the opposite approach point considering the
diameter of the part.
12.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
327
12.14
This cycle makes it easier to calibrate the probe reducing machine preparation time.
Initial conditions
PROBING
12.
The tool used for calibration must properly calibrated in radius and length.
The values of the machine parameters of the probe must be close to their real values. These
parameters are the following:
G.m.p. PRBXMIN (P40).
G.m.p. PRBXMAX (P41).
G.m.p. PRBYMIN (P42).
G.m.p. PRBYMAX (P43).
G.m.p. PRBZMIN (P44).
G.m.p. PRBZMAX (P45).
Initial considerations.
Measuring on the Z axis:
If the Z coordinate of the tool before running the cycle is greater than or equal to the maximum
Z coordinate of the probe, the Z side of the probe that will be measured will correspond with its
maximum Z coordinate.
If the Z coordinate of the tool before running the cycle is lower than or equal to the minimum Z
coordinate of the probe, the Z side of the probe that will be measured will correspond with its
minimum Z coordinate.
If the Z coordinate of the tool before running the cycle is between the maximum and minimum
Z coordinates of the probe, the CNC will issue the relevant error message.
Measuring on the X axis:
If the X coordinate of the tool before running the cycle is greater than half the maximum and
minimum X coordinates of the probe, the X side of the probe where the measuring will begin
will correspond with its maximum X coordinate.
If the X coordinate of the tool before running the cycle is lower than or equal to half the maximum
and minimum X coordinates of the probe, the X side of the probe where the measuring will begin
will correspond with its minimum X coordinate.
Initial positioning move:
If the Z coordinate of the tool before running the cycle is located separated from the Z side of
the probe to be measured by a distance smaller than the approach distance (B), the initial
positioning move of the tool will be carried out first on the Z axis up to that approach distance
and, then, in XY up to the approach distance from the X side of the corresponding probe.
If the Z coordinate of the tool before running the cycle is located separated from the Z side of
the probe to be measured by a distance greater than or equal to the approach distance (B), the
initial positioning move of the tool will be carried out first in XY up to the approach distance from
the X side of the corresponding probe and then in Z up to that approach distance from the Z
side of the corresponding probe.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
328
P r o gr a m m i ng m a n u a l
B
Z
Y
PROBING
12.
Simple calibration: The calibration is carried out in the 4 quadrants of the probe with the
spindle that holds the tool oriented at 0.
I=1
Double calibration: The calibration is carried out twice in the 4 quadrants of the probe,
one with the spindle positioned at 0 and the other with the spindle positioned at 180.
This prevents tool eccentricity errors.
CNC 8055
CNC 8055i
[ U5.5 ] Approximate X axis coordinate of the most positive side of the probe
Approximate coordinate of the most positive side of the probe, along the abscissa axis. If not
programmed, it will assume the value of general machine parameter PRBXMAX (P41).
[ Y5.5 ] Approximate Y axis coordinate of the least positive side of the probe
M & EN MODELS
SOFT: V01.4X
Approximate coordinate of the least positive side of the probe, along the ordinate axis. If not
programmed, it will assume the value of general machine parameter PRBYMIN (P42).
329
[ V5.5 ] Approximate Y axis coordinate of the most positive side of the probe
Approximate coordinate of the most positive side of the probe, along the ordinate axis. If not
programmed, it will assume the value of general machine parameter PRBYMAX (P43).
[ Z5.5 ] Approximate Z axis coordinate of the least positive side of the probe
Approximate coordinate of the least positive side of the probe, along the Z axis. If not programmed,
it will assume the value of general machine parameter PRBZMIN (P44).
PROBING
12.
[ W5.5 ] Approximate Z axis coordinate of the most positive side of the probe
Approximate coordinate of the most positive side of the probe, along the Z axis. If not programmed,
it will assume the value of general machine parameter PRBZMAX (P45).
Operation
1. Spindle orientation at 0 (only for double calibration).
2. Initial positioning movement to the initial approach coordinates.
3. Probing movement (at the feedrate given in H) up to the Z probing coordinate (in the middle of
the probe). If it touches the part, the CNC issues the corresponding error.
4. Probing movement (at the feedrate given in H), in the X axis and in the given direction until
touching the first side.
5. Rapid withdrawal along the X axis (distance given in E) for the measuring probing move.
6. Probing movement (at the feedrate given in F) until touching the same side again.
7. Rapid withdrawal up to the X approach coordinate.
8. Rapid withdrawal in Z up to the Z approach coordinate.
9. Rapid X axis movement up to the approach point of the other side considering the theoretical
length of the probe on the X axis and the value of parameter B.
10.Probing movement (at the feedrate given in H) to go down to the probing Z coordinate. If it
touches the probe, it goes back up to the approach coordinate and moves the safety distance
indicated in the same direction. This movement is repeated until clearing the probe.
11.Probing movement on X (at the feedrate given in H) until touching that side.
12.Rapid withdrawal along the X axis (distance given in E) for the measuring probing move.
13.Probing movement on X (at the feedrate given in F) until touching the same side again.
14.Rapid withdrawal up to the X approach coordinate.
15.Rapid movement along the Z axis up to the Z approach coordinate.
16.Rapid movement up to the approach coordinate to the minimum Y side of the probe (the X
approach coordinate corresponds to the real center of the probe).
17.Probing movement (at the feedrate given in H) to go down to the probing Z coordinate. If it
touches the probe, it goes back up to the approach coordinate and moves the safety distance
indicated in the same direction. This movement is repeated until clearing the probe.
18.Probing movement on Y (at the feedrate given in H) until touching that side.
19.Rapid withdrawal along the Y axis (distance given in E) for the measuring probing move.
20.Probing movement on Y (at the feedrate given in F) until touching the same side again.
21.Rapid withdrawal up to the Y approach coordinate.
22.Rapid movement in Z up to the Z approach coordinate.
CNC 8055
CNC 8055i
23.Rapid movement along the Y axis up to the theoretical center of the probe.
24.Probing movement on Z (at the feedrate given in H) until touching the Z side of the probe.
25.Rapid withdrawal along the Z axis (distance given in E) for the measuring probing move.
26.Probing movement on Z (at the feedrate given in F) until touching the same side again.
27.Rapid movement along the Z axis up to the Z approach coordinate.
M & EN MODELS
SOFT: V01.4X
28.Rapid Y axis movement up to the approach point of the other side considering the theoretical
length of the probe on the Y axis and the value of parameter B.
29.Probing movement (at the feedrate given in H) to go down to the probing Z coordinate. If it
touches the probe, it goes back up to the approach coordinate and moves the safety distance
indicated in the same direction. This movement is repeated until clearing the probe.
330
P r o gr a m m i ng m a n u a l
30.Probing movement (at the feedrate given in H) until touching that side.
31.Rapid withdrawal (distance given in E) for the measuring probing movement.
32.Probing movement (at the feedrate given in F) until touching the same side again.
33.Rapid withdrawal on the Y axis up to the approach position.
34.Rapid withdrawal in Z up to the Z approach coordinate.
35.Rapid movement up to the starting XY point.
36.Rapid withdrawal in Z up to the Z starting coordinate.
37.If it is a double calibration, orient the spindle at 180 and repeat steps 2 through 36.
Once the cycle has been completed, the CNC will return the real values obtained after
measurement, in the following global arithmetic parameters.
P295 Real coordinate of the least positive side of the probe, along the abscissa axis.
P296 Real coordinate of the most positive side of the probe, along the abscissa axis.
P297 Real coordinate of the least positive side of the probe, along the ordinate axis.
P298 Real coordinate of the most positive side of the probe, along the ordinate axis.
P299 Real coordinate of the measured probe side along the longitudinal axis.
PROBING
12.
38.Setting the relevant parameters with the real values of the sides of the calibrated probe.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
331
PROBING
12.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
332
HIGH-LEVEL LANGUAGE
PROGRAMMING
13.1
13
Lexical description
All the words that make up the high-level language of the numerical control must be written in capital
letters except for associated texts which may be written in upper and lower case letters.
The following elements are available for high-level programming:
Reserved words.
Numerical constants.
Symbols.
Reserved words
Reserved words are those that the CNC uses in high-level programming for naming system
variables, operators, control instructions, etc.
All the letters of the alphabet A-Z are also reserved words, as they can make up a high-level language
word when used alone.
Numerical constants
Blocks programmed in high-level language admit numbers in decimal format and in hexadecimal
format.
The numbers in decimal format must not exceed the 6.5 format (6 digits to the left of the decimal
point and 5 decimals).
The numbers in hexadecimal format must be preceded by the $ symbol and they must not have
more than 8 digits.
A constant higher than the format 6,5 must be assigned to a variable by means of arithmetic
parameters by means of arithmetic expressions or by means of constants in hexadecimal format.
To assign the value 100000000 to the variable "TIMER", It can be done in one of the following
ways:
(TIMER = $5F5E100)
(TIMER = 10000 * 10000)
(P100 = 10000 * 10000)
(TIMER = P100)
If the CNC operates in the metric system (millimeters), the resolution is a tenth of a micron and the
figures will be programmed in the 5.4 format (positive or negative with 5 digits to the left of the
decimal point and 4 decimals).
If the CNC operates in inches, the resolution is a hundred-thousandths of an inch (ten millionths
of an inch) and the figures will be programmed in the 4.5 format (positive or negative with 4 digits
to the left of the decimal point and 5 decimals).
For the convenience of the programmer, this control always allows the format 5.5 (positive or
negative, with 5 integers and 5 decimals), adjusting each number appropriately to the working units
every time they are used.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
333
Symbols
The symbols used in high-level language are:
()=+-*/,
Lexical description
13.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
334
P r o gr a m m i ng m a n u a l
Variables
The CNC has a number of internal variables that may be accessed from the user program, from
the PLC program or via DNC. Depending on how they are used, these variables may be read-only
or read-write.
These variables may be accessed from the user program using high-level commands. Each one
of these variables is referred to by its mnemonic that must be written in upper-case (capital) letters.
Mnemonics ending in (X-C)indicate a set of 9 elements formed by the corresponding root
followed by X, Y, Z, U, V, W, A, B and C.
ORGY
ORGZ
ORGU
ORGV
ORGW
ORGA
ORGB
ORGC
Mnemonics ending in n indicate that the variables are grouped in tables. To access an element
of any of these tables, indicate the field of the desired table using the relevant mnemonic followed
by the desired element.
TORn ->
TOR1
TOR3
TOR11
13.
Variables
13.2
X50 Y80
(P100 = POSX); Assigns the value of the real coordinate in X to parameter P100
X50 Y50
X80 Y50
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
335
13.2.1
General purpose variables are referred to with the letter "P" followed by an integer number. The CNC
has four types of general purpose variables.
Variables
13.
Parameter type
Range
Local parameters
P0-P25
Global parameters
P100-P299
User parameters
P1000-P1255
P2000-P2255
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.
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)
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.
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.
CNC 8055
CNC 8055i
User parameters
These parameters are an expansion of the global parameters but they are not used by the CNC
cycles.
M & EN MODELS
SOFT: V01.4X
336
P r o gr a m m i ng m a n u a l
If the execution mode is abandoned after interrupting the execution of the program, the CNC will
update the parameter tables with values corresponding to the block that was being executed.
When accessing the local parameter and global parameter table, the value assigned to each
parameter may be expressed in decimal notation (4127.423) or in scientific notation (0.23476 E-3).
The CNC will update the parameter table after processing the operations indicated in the block that
is in preparation. This operation is always done before executing the block and for this reason, the
values shown in the table do not necessarily have to correspond to the block being executed.
Variables
13.
Up to 26 (P0-P25) local parameters may be assigned to a subroutine. These parameters, that will
be unknown for blocks outside the subroutine, may be referred to by the blocks that make up the
subroutine.
Local parameters may be assigned to more than one subroutine up to 6 parameter nesting levels
within the 15 subroutine nesting levels.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
337
13.2.2
These variables are associated with the tool offset table, tool table and tool magazine table, so the
values which are assigned to or read from these fields will comply with the formats established for
these tables.
Tool Offset table
The radius (R), length (L) and wear offset (I, K) values of the tool are given in the active units.
If G70, in inches (within 3937.00787).
Variables
13.
if it is a normal tool.
200 to 255
if it is a special tool.
Tool number.
-1
Position number.
-1
-2
Read-only variables
TOOL
Returns the number of the active tool.
(P100=TOOL)
Assigns the number of the active tool to parameter P100.
TOD
Returns the number of the active tool offset.
CNC 8055
CNC 8055i
NXTOOL
Returns the next tool number, which is selected but is awaiting the execution of M06 to be active.
NXTOD
M & EN MODELS
SOFT: V01.4X
Returns the number of the tool offset corresponding to the next tool, which is selected but is awaiting
the execution of M06 to be active.
TMZPn
Returns the position occupied in the tool magazine by the indicated tool (n).
338
P r o gr a m m i ng m a n u a l
HTOR
The HTOR variable indicates the tool radius being used by the CNC to do the calculations.
Being a variable that can be read and written by the CNC and read-only from the PLC and DNC,
its value may be different from the one assigned in the table (TOR).
On power-up, after a T function, after a RESET or after an M30 function, it assumes the value of
the table (TOR).
Application example
Variables
13.
To machine a profile with a residual stock of 0.5 mm running 0.1mm-passes with a tool whose radius
is 10 mm.
Read-and-write variables
TORn
This variable allows the value assigned to the radius of the indicated tool offset (n) in the tool offset
table to be read or modified.
(P110=TOR3)
Assigns the radius value of tool offset 3 to parameter P110.
(TOR3=P111)
Assigns the value indicated in parameter P111 to the radius of tool offset 3.
TOLn
This variable allows the value assigned to the length of the indicated tool offset (n) to be read or
modified in the tool offset table.
TOIn
This variable allows the value assigned to the wear in radius (I) of the indicated tool offset (n) to be
read or modified in the tool offset table.
TOKn
This variable allows the value assigned to the wear in length (K) of the indicated tool offset (n) to
be read or modified in the tool offset table.
CNC 8055
CNC 8055i
TLFDn
This variable allows the tool offset number of the indicated tool (n) to be read or modified in the tool
table.
TLFFn
M & EN MODELS
SOFT: V01.4X
This variable allows the family code of the indicated tool (n) to be read or modified in the tool table.
339
TLFNn
This variable allows the value assigned as the nominal life of the indicated tool (n) to be read or
modified in the tool table.
TLFRn
This variable allows the value corresponding to the real life of the indicated tool (n) to be read or
modified in the tool table.
Variables
13.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
340
TMZTn
This variable allows the contents of the indicated position (n) to be read or modified in the tool
magazine table.
P r o gr a m m i ng m a n u a l
13.2.3
These variables are associated with the zero offsets and may correspond to the table values or to
those currently preset either by means of function G92 or manually in the JOG mode.
The possible zero offsets in addition to the additive offset indicated by the PLC, are G54, G55, G56,
G57, G58 and G59.
The values for each axis are given in the active units:
If G70, in inches (within 3937.00787).
Although there are variables which refer to each axis, the CNC only allows those referring to the
axes selected at the CNC. Thus, if the CNC controls axes X, Y, Z, U and B, it only allows the variables
ORGX, ORGY, ORGZ,. ORGU and ORGB in the case of ORG(X-C).
Read-only variables
ORG(X-C)
Returns the value of the active zero offset in the selected axis. The value of the additive offset
indicated by the PLC or by the additive handwheel is not included in this value.
(P100=ORGX)
It assigns to P100 the X value of the part zero active for the X axis. This value could have
been set either manually, by means of function G92 or by the variable "ORG(X-C)n".
Variables
13.
PORGF
Returns the abscissa value of the polar coordinate origin with respect to the Cartesian origin.
PORGS
Returns the ordinate value of the polar coordinate origin with respect to the Cartesian origin.
ADIOF(X-C)
It returns the value of the zero offset generated by the additive handwheel in the selected axis.
Read-and-write variables
ORG(X-C)n
This variable allows the value of the selected axis to be read or modified in the table corresponding
to the indicated zero offset (n).
(P110=ORGX 55)
Loads parameter P100 with the X value of G55 in the zero offset table.
(ORGY 54=P111)
It assigns parameter P111 to the Y axis in the table for the G54 offset.
PLCOF(X-C)
This variable allows the value of the selected axis to be read or modified in the table of additive offsets
indicated by the PLC.
CNC 8055
CNC 8055i
Accessing any of the PLCOF(X-C) variables interrupts block preparation and the CNC waits for that
command to be executed before resuming block preparation.
M & EN MODELS
SOFT: V01.4X
341
13.2.4
With function G49, it is possible to define a coordinate transformation or, in other words, the inclined
plane resulting from that transformation.
The values for each axis are given in the active units:
If G70, in inches (within 3937.00787).
If G71, in millimeters (within 99999.9999).
Variables
13.
ORGROY
ORGROZ
ORGROB
ORGROK
ORGROC
ORGROQ
ORGROI
ORGROR
3 = Type G49 T X Y Z S
1 = Type G49 X Y Z A B C
4 = Type G49 X Y Z I J K R S
2 = Type G49 X Y Z Q R S
Every time G49 is programmed, the CNC updates the values of the parameters that have been
defined.
For example when programming G49 XYZ ABC, the CNC updates the variables.
ORGROX, ORGROY, ORGROZ
ORGROA, ORGROB, ORGROC
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
342
P r o gr a m m i ng m a n u a l
TOOROS
It indicates the position to be occupied by the spindle's secondary rotary axis in order to orient the
spindle perpendicular to the indicated inclined plane.
It indicates the position to be occupied by the spindle's main rotary axis in order to orient the spindle
perpendicular to the indicated inclined plane.
Variables
13.
TOOROF
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
343
13.2.5
These variables associated with machine parameters are read-only variables. These variables may
be read and written when executed inside an OEM program or subroutine.
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.
The coordinate and feedrate values are given in the active units:
If G70, in inches (within 3937.00787).
Variables
13.
Read-only variables
MPGn
Returns the value assigned to general machine parameter (n).
(P110=MPG8)
It assigns the value of the general machine parameter P8 "INCHES" to parameter P110,
if millimeters P110=0 and if inches P110=1.
MP(X-C)n
Returns the value assigned to the machine parameter (n) of the indicated axis (X-C).
(P110=MPY 1)
Assigns the value of Y axis machine parameter P1 "DFORMAT" to parameter P110.
MPSn
Returns the value assigned to the indicated machine parameter (n) of the main spindle.
MPSSn
Returns the value assigned to the indicated machine parameter (n) of the second spindle.
MPASn
Returns the value of the indicated machine parameter (n) of the auxiliary spindle.
MPLCn
Returns the value assigned to the indicated machine parameter (n) of the PLC.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
344
P r o gr a m m i ng m a n u a l
13.2.6
Read-only variables
FZONE
It returns the status of work zone 1.
FZLO(X-C)
FZUP(X-C)
(P101=FZOLOX)
(P102=FZUPZ)
SZONE
SZLO(X-C)
0 = Disabled.
Variables
13.
The status of the work zones are defined according to the following code:
SZUP(X-C)
TZLO(X-C)
TZUP(X-C)
FOZLO(X-C)
FOZUP(X-C)
FIZLO(X-C)
FIZUP(X-C)
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
345
13.2.7
Variables
13.
(P100=FREAL)
It assigns the real feedrate value of the CNC to parameter P100.
FREAL(X-C)
It returns the actual (real) CNC feedrate of the selected axis.
FTEO(X-C)
It returns the theoretical CNC feedrate of the selected axis.
CNC 8055
CNC 8055i
DNCFPR
It returns the feedrate, in mm/turn or inches/turn selected by DNC. If it has a value of 0 it means
that it is not selected.
PLCFPR
M & EN MODELS
SOFT: V01.4X
It returns the feedrate, in mm/turn or inches/turn selected by PLC. If it has a value of 0 it means that
it is not selected.
PRGFPR
It returns the feedrate, in mm/turn or inches/turn selected by program.
346
P r o gr a m m i ng m a n u a l
It returns the feedrate override (%) currently selected at the CNC. It is given in integer values between
0 and "MAXFOVR" (maximum 255).
This feedrate percentage may be indicated by program, by PLC, by DNC or by the front panel; the
CNC selects one of them and the priority (from the highest to the lowest) is: by program, by DNC,
by PLC and from the front panel switch.
DNCFRO
It returns the feedrate override % currently selected by the DNC. If it has a value of 0 it means that
it is not selected.
PLCFRO
It returns the feedrate override % currently selected by the PLC. If it has a value of 0 it means that
it is not selected.
FRO
Variables
13.
CNCFRO
It returns the feedrate override % currently selected by the switch.
PLCCFR
It returns the feedrate percentage currently selected by the PLC's execution channel.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
347
13.2.8
The coordinate values for each axis are given in the active units:
If G70, in inches (within 3937.00787).
If G71, in millimeters (within 99999.9999).
If rotary axis in degrees (within 99999.9999).
Variables
13.
Read-only variables
Accessing any of the variables POS(X-C), TPOS(X-C), APOS(X-C), ATPOS(X-C), DPOS(X-C),
FLWE(X-C), DEFLEX, DEFLEY or DEFLEZ interrupts block preparation and the CNC waits for that
command to be executed before resuming block preparation.
PPOS(X-C)
Returns the programmed theoretical coordinate of the selected axis.
(P110=PPOSX)
It assigns to P100 the programmed theoretical position of the X axis.
POS(X-C)
It returns the real tool base position value referred to machine reference zero (home).
On limit-less rotary axes, this variable takes into account the value of the active zero offset. The
values of the variable are between the active zero offset and 360 (ORG* 360).
If ORG* = 20
If ORG* = -60
it displays between -60 and 300 / displays between -420 and -60
TPOS(X-C)
It returns the theoretical position value (real coordinate + following error) of the tool base referred
to machine reference zero (home).
On limit-less rotary axes, this variable takes into account the value of the active zero offset. The
values of the variable are between the active zero offset and 360 (ORG* 360).
If ORG* = 20
If ORG* = -60
it displays between -60 and 300 / displays between -420 and -60
APOS(X-C)
It returns the real tool base position value, referred to part zero, of the selected axis.
ATPOS(X-C)
It returns the theoretical position value (real coordinate + following error) of the tool base referred
to part zero.
DPOS(X-C)
The CNC updates this variable whenever probing operations G75, G76 and probing cycles PROBE
and DIGIT are carried out.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
348
When the digital probe communicates with the CNC via infrared beams, there could be some delay
(milliseconds) from the time the probe touches the part to the instant the CNC receives the probe
signal.
P r o gr a m m i ng m a n u a l
Actual position of the probe when the CNC receives the probe signal.
DPOS(X-C)
Theoretical position of the probe when the probe touched the part.
FLWE(X-C)
It returns the following error of the selected axis.
DEFLEX
DEFLEY
DEFLEZ
They return the amount of deflection obtained at the time by the Renishaw probe SP2 on each axis
X, Y, Z.
DPLY(X-C)
It returns the position value (coordinate) shown on the screen for the selected axis.
Variables
TPOS(X-C)
13.
HIGH-LEVEL LANGUAGE PROGRAMMING
Although the probe keeps moving until the CNC receives the probing signal, the CNC takes into
account the value assigned to general machine parameter PRODEL and provides the following
information in the variables TPOS(X-C) and DPOS(X-C).
DRPO(X-C)
It returns the position indicated by the Sercos drive of the selected axis (variable PV51 or PV53 of
the drive).
GPOS(X-C)n p
Programmed coordinate for a particular axis in the indicated (n) block of the (p) program.
(P80=GPOSX N99 P100)
It assigns to parameter P88 the value of the coordinate programmed for the X axis in
the block having the label N99 and located in program P100.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
349
Read-and-write variables
DIST(X-C)
These variables may be used to read or modify the distance traveled by the selected axis. This value
is accumulative and is very useful when it is required to perform an operation which depends on
the distance traveled by the axes, their lubrication for example.
Variables
13.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
350
(P110=DISTX)
It assigns to P110 the distance traveled by the X axis
(DISTX=P111)
It presets the variable indicating the distance traveled by the Z axis with the value of
arithmetic parameter P111.
Accessing any of the DIST(X-C) variables interrupts block preparation and the CNC waits for that
command to be executed before resuming block preparation.
LIMPL(X-C)
LIMMI(X-C)
With these variables, it is possible to set a second travel limit for each axis: LIMPL for the upper limit
and LIMMI for the lower one.
Since the second limits are activated or deactivated from the PLC, through general logic input
ACTLIM2 (M5052), besides setting the limits, an auxiliary M code must be executed to let it know.
It is also recommended to execute function G4 after the change so the CNC executes the following
blocks with the new limits.
The second travel limit will be taken into account if the first one has been set using axis machine
parameters LIMIT+ (P5) and LIMIT- (P6).
P r o gr a m m i ng m a n u a l
13.2.9
Read-only variables
HANPS
HANPT
HANPFO
They return the pulses of the first (HANPF), second (HANPS), third (HANPT) or fourth (HANPFO)
handwheel received since the CNC was turned on. It is irrelevant to have the handwheel connected
to the feedback inputs or to the PLC inputs.
For handwheels with axis selector button, it indicates whether that button has been pressed or not.
A value of 0 means that it has not been pressed.
HANFCT
It returns the multiplying factor set by PLC for each handwheel.
It must be used when using several electronic handwheels or when using a single handwheel but
different multiplying factors (x1, x10, x100) are to be applied to each axis.
C
c
B
a
A
a
W
a
V
a
U
a
Z
a
Y
a
lsb
Once the switch has been turned to one of the handwheel positions, the CNC checks this variable
and, depending on the values assigned to each axis bit (c, b, a) it applies the multiplying factor
selected for each one of them.
c
x1 factor
x10 factor
x100 factor
HANDSE
13.
Variables
HANPF
If there are more than one bit set to "1" for an axis, the least significant bit will be considered. Thus:
c
x1 factor
x10 factor
HBEVAR
It must be used when having a Fagor HBE handwheel.
It indicates whether the HBE handwheel is enabled or not, the axis to be jogged and the multiplying
factor to be applied (x1, x10, x100).
C
* ^
c b a c b a c b a c b a c b a c b a c b a c b a c b a
lsb
CNC 8055
CNC 8055i
(*) Indicates whether the HBE handwheel pulses will be taken into account or not in jog mode.
0=
1=
M & EN MODELS
SOFT: V01.4X
351
(^) When the machine has a general handwheel and individual handwheels (associated with an
axis), it indicates which handwheel has priority when both are turned at the same time.
0=
The individual handwheel has priority. The relevant axis ignores the pulses from the
general handwheel, the rest of the axes dont.
1=
The general handwheel has priority. It ignores the pulses from the individual handwheel.
(a, b, c) Indicate the axis to be moved and the selected multiplying factor.
Variables
13.
x1 factor
x10 factor
x100 factor
x1 factor
x10 factor
The HBE handwheel has priority. That is, regardless of the mode selected at the CNC switch
(continuous or incremental JOG, handwheel), HBEVAR is set to other than "0", the CNC goes into
handwheel mode.
It shows the selected axis in reverse video and the multiplying factor selected by the PLC. When
the HBEVAR variable is set to "0", it shows the mode selected by the switch again.
Read-and-write variables
MASLAN
It must be used when the path-handwheel or the path-jog is selected. Indicates the angle of the linear
path.
MASCFI
MASCSE
They must be used when the path-handwheel or the path-jog is selected. On circular paths (arcs),
they indicate the center coordinates.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
352
P r o gr a m m i ng m a n u a l
BSINS
"B" signal of the CNC's sinusoidal feedback for the spindle.
SASINS
"A" signal of the CNC sinusoidal feedback for the second spindle.
SBSINS
"B" signal of the CNC sinusoidal feedback for the second spindle.
Variables
13.
ASINS
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
353
Variables
13.
Read-only variables
SREAL
Returns the real main spindle turning speed in revolutions per minute. It interrupts block preparation.
(P100=SREAL)
It assigns to P100 the real turning speed of the main spindle.
FTEOS
It returns the theoretical turning speed of the main spindle.
SPEED
Returns, in revolutions per minute, the main spindle speed selected at the CNC.
This turning speed may be indicated by program, by PLC or by DNC; the CNC selects one of them,
the one indicated by DNC has the highest priority and the one indicated by program has the lowest
priority.
DNCS
Returns the turning speed in revolutions per minute, selected by DNC. If it has a value of 0 it means
that it is not selected.
PLCS
Returns the turning speed in revolutions per minute selected by PLC. If it has a value of 0 it means
that it is not selected.
PRGS
Returns the turning speed in revolutions per minute, selected by program.
SSO
It returns the turning speed override (%) of the main spindle currently selected at the CNC. It is given
in integer values between 0 and "MAXFOVR" (maximum 255).
This turning speed percentage of the main spindle may be indicated by program, by PLC, by DNC
or by the front panel; the CNC selects one of them and the priority (from the highest to the lowest)
is: by program, by DNC, by PLC and from the front panel.
DNCSSO
It returns the turning speed override % of the main spindle currently selected via DNC. If it has a
value of 0 it means that it is not selected.
PLCSSO
CNC 8055
CNC 8055i
It returns the turning speed override % of the main spindle currently selected by PLC. If it has a value
of 0 it means that it is not selected.
CNCSSO
It returns the turning speed override % of the main spindle currently selected from the front panel.
M & EN MODELS
SOFT: V01.4X
SLIMIT
It returns the value set in rpm at the CNC for the turning speed limit of the main spindle.
354
P r o gr a m m i ng m a n u a l
This limit may be indicated by program, by PLC or by DNC; the CNC selects one of them, the one
indicated by DNC has the highest priority and the one indicated by program has the lowest priority.
DNCSL
It returns the speed limit of the main spindle in rpm currently selected via DNC. If it has a value of
0 it means that it is not selected.
PLCSL
It returns the speed limit of the main spindle in rpm currently selected by PLC. If it has a value of
0 it means that it is not selected.
MDISL
Maximum machining spindle speed. This variable is also updated (refreshed) when programming
function G92 via MDI.
POSS
It returns the real position of the main spindle. Its value may be within 99999.9999. It interrupts
block preparation.
RPOSS
It returns the real position of the main spindle. Its value is given in 0.0001 degree units (between
-360 and 360). It interrupts block preparation.
Variables
It returns the speed limit of the main spindle in rpm currently selected by program.
13.
HIGH-LEVEL LANGUAGE PROGRAMMING
PRGSL
TPOSS
It returns the theoretical position of the main spindle (real position + lag). Its value may be within
99999.9999. It interrupts block preparation.
RTPOSS
It returns the theoretical position of the main spindle (real position + lag) in 360 module. Its value
may be between 0 and 360. It interrupts block preparation.
DRPOS
Position indicated by the Sercos drive of the main spindle.
PRGSP
Position programmed in M19 via program for the main spindle. This variable may be read from the
CNC, from the PLC and from DNC.
FLWES
It returns the main spindle's following error in degrees (within 99999.9999). It interrupts block
preparation.
SYNCER
It returns, in degrees (within 99999.9999), the following error of the second spindle with respect
to the main spindle when they are synchronized in position.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
355
Read-and-write variables
PRGSSO
This variable may be used to read or modify the speed override percentage of the main spindle
currently selected by program. It is given in integer values between 0 and "MAXFOVR" (maximum
255). If it has a value of 0 it means that it is not selected.
Variables
13.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
356
(P110=PRGSSO)
It assigns to P110 the % of the main spindle speed selected by program.
(PRGSSO=P111)
It sets the value indicating the main spindle speed % selected by program to the value
of arithmetic parameter P111.
P r o gr a m m i ng m a n u a l
Read-only variables
(P100=SSREAL)
It assigns to P100 the real turning speed of the second spindle.
If this variable is accessed, block preparation is interrupted and the CNC waits for this command
to be executed to resume block preparation.
SFTEOS
It returns the theoretical turning speed of the second spindle.
SSPEED
Returns, in revolutions per minute, the 2nd spindle speed selected at the CNC.
This turning speed may be indicated by program, by PLC or by DNC; the CNC selects one of them,
the one indicated by DNC has the highest priority and the one indicated by program has the lowest
priority.
Returns the real 2nd spindle turning speed in revolutions per minute.
Variables
13.
SSREAL
SDNCS
Returns the turning speed in revolutions per minute, selected by DNC. If it has a value of 0 it means
that it is not selected.
SPLCS
Returns the turning speed in revolutions per minute selected by PLC. If it has a value of 0 it means
that it is not selected.
SPRGS
Returns the turning speed in revolutions per minute, selected by program.
SSSO
It returns the turning speed override (%) of the second spindle currently selected at the CNC. It is
given in integer values between 0 and "MAXFOVR" (maximum 255).
This turning speed percentage of the second spindle may be indicated by program, by PLC, by DNC
or by the front panel; the CNC selects one of them and the priority (from the highest to the lowest)
is: by program, by DNC, by PLC and from the front panel.
SDNCSO
It returns the turning speed override % of the second spindle currently selected via DNC. If it has
a value of 0 it means that it is not selected.
SPLCSO
It returns the turning speed override % of the second spindle currently selected by PLC. If it has a
value of 0 it means that it is not selected.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
357
SCNCSO
It returns the turning speed override % of the second spindle currently selected from the front panel.
SSLIMI
It returns the value set in rpm at the CNC for the turning speed limit of the second spindle.
This limit may be indicated by program, by PLC or by DNC; the CNC selects one of them, the one
indicated by DNC has the highest priority and the one indicated by program has the lowest priority.
Variables
13.
SDNCSL
It returns the speed limit of the second spindle in rpm currently selected via DNC. If it has a value
of 0 it means that it is not selected.
SPLCSL
It returns the speed limit of the second spindle in rpm currently selected by PLC. If it has a value
of 0 it means that it is not selected.
SPRGSL
It returns the speed limit of the second spindle in rpm currently selected by program.
SPOSS
It returns the real position of the second spindle. Its value may be within 99999.9999.
SRPOSS
It returns the real position of the second spindle. Its value is given in 0.0001 degree units (between
-360 and 360).
STPOSS
It returns the theoretical position of the second spindle (real position + lag). Its value may be within
99999.9999.
SRTPOS
Returns the second spindle's theoretical position value (real coordinate+ following error) in a 360
module. Its value may be between 0 and 360.
SDRPOS
Position indicated by the Sercos drive of the second spindle.
SPRGSP
Position programmed in M19 via program for the second spindle. This variable may be read from
the CNC, from the PLC and from DNC.
SFLWES
It returns the second spindle's following error in degrees (within 99999.9999).
When accessing one of these variables SPOSS, SRPOSS, STPOSS, SRTPOSS or SFLWES, block
preparation is interrupted and the CNC waits for that command to be executed before resuming block
preparation.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
358
P r o gr a m m i ng m a n u a l
Read-and-write variables
SPRGSO
This variable may be used to read or modify the speed override percentage of the second spindle
currently selected by program. It is given in integer values between 0 and "MAXFOVR" (maximum
255). If it has a value of 0 it means that it is not selected.
Variables
13.
HIGH-LEVEL LANGUAGE PROGRAMMING
(P110=SPRGSO)
It assigns to P110 the % of the second spindle speed selected by program.
(SPRGSO=P111)
It sets the value indicating the second spindle speed % selected by program to the value
of arithmetic parameter P111.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
359
Read-only variables
ASPROG
It must be used inside the subroutine associated with function M45.
Variables
13.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
360
It returns the rpm programmed by M45 S. When programming M45 alone, the variable takes the
value of "0".
The ASPROG variable is updated just before executing the M45 function so it is already updated
when executing its associated subroutine.
P r o gr a m m i ng m a n u a l
Outputs.
M1 thru M5957)
Marks.
32-bit registers.
13.
If any variable is accessed which allows the status of a PLC variable to be read or modified
(I,O,M,R,T,C), block preparation is interrupted and the CNC waits for this command to be executed
in order to restart block preparation.
Read-only variables
PLCMSG
Returns the number of the active PLC message with the highest priority and will coincide with the
number displayed on screen (1128). If there is none, it returns 0.
(P110=PLCMSG)
It assigns to P100 the number of the active PLC message with the highest priority.
Variables
Inputs.
Read-and-write variables
PLCIn
This variable allows 32 PLC inputs to be read or modified starting with the one indicated (n).
The value of the inputs which are used by the electrical cabinet cannot be modified as their values
are determined by it. Nevertheless, the status of the remaining inputs can be modified.
PLCOn
This variable allows 32 PLC outputs to be read or modified starting from the one indicated (n).
(P110=PLCO 22)
It assigns to parameter P110 the value of outputs O22 through O53 (32 outputs) of the
PLC.
(PLCO 22=$F)
It sets outputs O22 through O25 to "1" and outputs O26 through O53 to "0".
Bit
Output
31
30
29
28
27
26
25
24
23
22
...
....
53
52
51
50
49
48
47
46
45
44
....
27
26
25
24
23
22
PLCMn
This variable allows 32 PLC marks to be read or modified starting from the one indicated (n).
PLCRn
CNC 8055
CNC 8055i
This variable allows the status of 32 register bits to be read or modified starting from the one indicated
(n).
PLCTn
This variable allows the timer count to be read or modified starting from the one indicated (n).
M & EN MODELS
SOFT: V01.4X
PLCCn
This variable allows the counter count to be read or modified starting from the one indicated (n).
361
PLCMMn
This variable permits reading or modifying the PLC mark (n).
(PLMM4=1)
It sets mark M4 to 1 and leaves the rest untouched.
(PLCM4=1)
It sets mark M4 to 1 and the following 31 marks (M5, through M35) to 0
Variables
13.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
362
P r o gr a m m i ng m a n u a l
Read-only variables
The information will be given in the 26 least significant bits (bits 025), each of these corresponding
to the local parameter of the same number; thus bit 12 corresponds to P12.
Each bit will indicate whether the corresponding local parameter has been defined (=1) or not (0).
Bit
31
30
29
28
27
26
25
24
23
22
...
...
Example:
;Call to subroutine 20.
(PCALL 20, P0=20, P2=3, P3=5)
...
...
;Beginning of subroutine 20.
( SUB 20)
(P100 = CALLP)
...
...
Allows us to know which local parameters have been defined and which have not, in the call to the
subroutine by means of the PCALL or MCALL mnemonic.
Variables
13.
CALLP
0000
0000
0000
0000
0000
0000
1101
LSB
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
363
Read-only variables
Variables
13.
TSVAR(X-C)
TSVARS
TSSVAR
It returns the third attribute of the Sercos variable corresponding to the "identifier". The third attribute
is used in particular software applications and its information is coded according to the Sercos
standard.
TSVAR(X-C) Identifier
TSVARS
Identifier
TSSVAR
Identifier
(P110=SVARX 40)
It assigns to parameter P110 the third attribute of the Sercos variable of identifier 40
of the X axis which corresponds to "VelocityFeedback"
Write variables
SETGE(X-C)
SETGES
SSETGS
The drive may have up to 8 gear ratios (0 through 7). Sercos identifier 218, GearRatioPreselection.
I t m ay a l s o h ave u p t o 8 p a r a m e t e r s e t s ( 0 t h r o u g h 7 ) . S e r c o s i d e n t i f i e r 2 1 7 ,
ParameterSetPreselection.
With these variables the work range or gear ratio and the parameter set of each drive may be
modified.
SETGE(X-C) ... for the axes,
SETGES
SSETGS
The 4 least significant bits of these variables indicate the gear ratio and the other 4 the parameter
set to be selected.
Read-and-write variables
SVAR(X-C)
SVARS
SSVARS
They permit reading or modifying the value of the Sercos variable corresponding to the axis identifier.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
364
SVAR(X-C)
Identifier
SVARS
Identifier
SSVARS
Identifier
P r o gr a m m i ng m a n u a l
Read-only variables
HARCON
It indicates, with bits, the CNC's hardware configuration. The bit will be "1" when the relevant
configuration is available.
Meaning
4,3,2,1
0000
0010
Axes module.
10,9,8
001
010
011
100
14
15
18,17,16
20.19
23,22,21
1xx
CPU PPC5200.
26,25,24
000
001
30
31
8055 FL model.
8055 Power model.
Bit
Variables
13.
CNC8055 model:
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
365
CNC8055i model:
Meaning
4, 3, 2, 1
0100
0110
Reserved.
9, 8, 7
000
001
010
011
101
110
111
Variables
13.
Bit
8055i FL model.
8055i Power model.
10
12, 11
Reserved.
14, 13
Reserved.
15
18,17,16
20.19
23,22,21
1xx
CPU PPC5200.
26,25,24
000
001
30
Ethernet..
31
HARCOA
It indicates, with bits, the CNC's hardware configuration. The bit will be "1" when the relevant
configuration is available.
CNC8055 model:
Bit
Meaning
Axis module 2.
10
Bit 1 only indicates whether the hardware has a connector for the compact flash or not, it does not
indicate whether the compact flash is inserted or not.
CNC8055i model:
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
Bit
Meaning
10
Bit 1 only indicates whether the hardware has a connector for the compact flash or not, it does not
indicate whether the compact flash is inserted or not.
366
P r o gr a m m i ng m a n u a l
IDHARH
IDHARL
They return, in BCD code, the hardware identification number corresponding to the KeyCF. It is the
number appearing on the software diagnosis screen.
Since the identification number has 12 digits, the IDHARL variable shows the 8 least significant bits
and the IDHARH the 4 most significant bits.
Example:
IDHART
EE020102
IDHARL
13.
SOFCON
They return the software version numbers for the CNC and the hard disk.
Bits 15-0 return the CNC software version (4 digits)
Bits 31-16 return the software version of the hard disk (HD) (4 digits)
... 31
30
29
...
18
17
16
15
14
13
...
0
LSB
HD Software
CNC Software
0101
0311
29ADEE020102
Variables
000029AD
HDMEGA
It returns the size of the hard disk (in megabytes).
KEYIDE
Keyboard code, according to the auto-identification system.
KEYIDE
CUSTOMY (P92)
Keyboard
---
130
254
131
254
132
254
133
254
134
254
135
252
136
137
138
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
367
Read-only variables
HARSWA
Variables
13.
HARSWB
They return, in 4 bits, the central unit configuration, a value of "1" if it is present and "0" if not. Logic
address (device select) set on each board with the dip-switches (see installation manual).
HARSWA
HARSWB
Bits
Board
Bits
31 - 28
Large sercos
31 - 28
27 - 24
I/O 4
27 - 24
23 - 20
I/O 3
23 - 20
19 - 16
I/O 2
19 - 16
15 - 12
I/O 1
15 - 12
11- 8
Axes:
11- 8
Small sercos
7 -4
3 - 0 (LSB)
CPU
Board
7 -4
3 - 0 (LSB)
HD
The CPU board must be present in all the configurations and set to "0". In the rest of cases, it returns
a "0" if the board is missing.
There could be a large Sercos card (that takes up the whole module) or the small board that is
installed in the CPU module.
There may be two types of CAN boards (value of 0001 if it is an SJ1000 type and value of 0010
if it is an OKI9225 type).
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
368
P r o gr a m m i ng m a n u a l
HARTST
It returns the result of the hardware test. The data comes at the least significant bits with a "1" if it
failed and with a "0" if OK or if the relevant board is missing.
Bits
13
Inside temperature
12
I/O 3
(Board voltage)
11
I/O 2
(Board voltage)
10
I/O 1
(Board voltage)
Axes:
(Board voltage)
+3.3 V
(Power supply)
GND
(Power supply)
GNDA
(Power supply)
- 15 V
(Power supply)
+ 15 V
(Power supply)
Battery
(Power supply)
-5V
(Power supply)
0 (LSB)
+5V
(Power supply)
13.
Variables
14
MEMTST
It returns the result of the memory test. Each data uses 4 bits that will be at "1" if the test is OK and
will have a value other than "1" if there is an error.
Bits
Test
Bits
Test
30
Test status
15 - 12
Sdram
...
...
11- 8
HD
...
...
7 -4
Flash
19 - 16
Cach
3 - 0 (LSB)
Ram
CNC 8055
CNC 8055i
IOSLOC
They may be used to read the number of local digital I/O available.
Bit
Meaning
0 - 15
Number of inputs.
16 - 31
Number of outputs.
M & EN MODELS
SOFT: V01.4X
369
IOSREM
They may be used to read the number of remote digital I/O available.
Variables
13.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
370
Bit
Meaning
0 - 15
Number of inputs.
16 - 31
Number of outputs.
P r o gr a m m i ng m a n u a l
10 = Automatic execution.
Variables
13.
0 = Main menu.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
60 = Utilities.
371
70 = DNC status.
71 = CNC status.
80 = PLC file editing.
81 = PLC program compilation.
82 = PLC monitoring.
83 = Active PLC messages.
Variables
13.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
30 = Cycle editing.
40 = In Jog mode (standard screen).
45 = In tool calibration mode.
60 = Managing parts. PPROG mode.
372
P r o gr a m m i ng m a n u a l
OPMODA
Indicates the operating mode currently selected when working with the main channel.
Use the OPMODE variable to know at any time the selected operating mode (main channel, user
channel, PLC channel).
This information is given at the least significant bits with a "1" when active and with a "0" when not
active or when it is not available in the current version.
Bit 1
Program in simulation.
Bit 2
Bit 3
Repositioning in progress.
Bit 4
Bit 5
Bit 6
Repositioning interrupted.
Bit 7
In tool inspection.
Bit 8
Bit 9
Bit 10
Bit 11
CNC ready to receive the CYCLE START command: execution, simulation and
MDI modes.
Bit 12
The CNC is not ready to execute anything involving axis or spindle movement.
Bit 13
13.
Variables
Program in execution.
Bit 0
OPMODB
Indicates the type of simulation currently selected. This information is given at the least significant
bits indicating with a "1" the one currently selected.
Bit 0
Theoretical path.
Bit 1
G functions.
Bit 2
G M S T functions.
Bit 3
Main plane.
Bit 4
Rapid.
Bit 5
Rapid (S=0).
OPMODC
Indicates the axes selected by handwheel. This information is given at the least significant bits
indicating with a "1" the one currently selected.
Bit 0
Axis 1.
Bit 1
Axis 2.
Bit 2
Axis 3.
Bit 3
Axis 4.
Bit 4
Axis 5.
Bit 5
Axis 6.
Bit 6
Axis 7.
Bit 7
CNC 8055
CNC 8055i
Bit 8
The axis name corresponds to the number according to the programming order for them.
Example: If the CNC controls axes X, Y, Z, U, B, C, axis 1=X, axis2=Y, axis3=Z, axis4=U, axis5=B,
axis6=C.
M & EN MODELS
SOFT: V01.4X
373
Read-only variables
NBTOOL
Variables
13.
Indicates the tool number being managed. This variable can only be used within the tool change
subroutine.
Example: There is a manual tool changer. Tool T1 is currently selected and the operator requests
tool T5.
The subroutine associated with the tools may contain the following instructions:
(P103 = NBTOOL)
(MSG "SELECT T?P103 AND PRESS CYCLE START")
Instruction (P103 = NBTOOL) assigns the number of the tool currently being managed to parameter
P103. Therefore, P103=5.
The message displayed by the CNC will be ""SELECT T5 AND PRESS CYCLE START".
PRGN
Returns the program number being executed. Should none be selected, a value of -1 is returned.
BLKN
It returns the label number of the last executed block.
GSn
Returns the status of the G function indicated (n). 1 if it is active and 0 if not.
(P120=GS17)
It assigns the value 1 to parameter P120 if the G17 function is active and 0 if not.
MSn
Returns the status of the M function indicated (n). 1 if it is active and 0 if not.
These functions are M00, M01, M02, M03, M04, M05, M06, M08, M09, M19, M30, M41, M42, M43,
M44 and M45.
PLANE
Returns data on the abscissa axis (bits 4 to 7) and the ordinate axis (bits 0 to 3) of the active plane
in 32 bits and in binary.
...
...
...
...
...
...
7654
3210
Abscissa axis
lsb
Ordinate axis
The axes are coded in 4 bits and indicate the axis number according to the programming order.
Example: If the CNC controls the X,Y,Z,U,B,C axes and the ZX plane (G18) is selected.
(P122 = GS17) assigns value $31 to parameter P122.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
0000
0000
0000
0000
0000
0000
0011
Abscissa axis
= 3 (0011)
=> Axis
Ordinate axis
= 1 (0001)
=> X axis
0001
LSB
LONGAX
It returns the number according to the programming order corresponding to the longitudinal axis.
This will be the one selected with the G15 function and by default the axis perpendicular to the active
plane, if this is XY, ZX or YZ.
374
P r o gr a m m i ng m a n u a l
Example:
If the CNC controls the X, Y, Z, U, B, C axes and the U axis is selected.
(P122 = LONGAX) assigns the value 4 to parameter P122.
MIRROR
Returns in the least significant bits of the 32-bit group, the status of the mirror image of each axis,
1 in the case of being active and 0 if not.
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Axis 7
Axis 6
Axis 5
Axis 4
Axis 3
Axis 2
Axis 1
LSB
The axis name corresponds to the number according to the programming order for them.
Example: If the CNC controls axes X, Y, Z, U, B, C, axis 1=X, axis2=Y, axis3=Z, axis4=U, axis5=B,
axis6=C.
SCALE
It returns the general scaling factor being applied.
SCALE(X-C)
Returns the specific scaling factor of the indicated axis (X-C).
ORGROT
It returns the rotation angle of the coordinate system currently selected with G73. Its value is given
in degrees (within 99999.9999).
13.
Variables
Bit 7
Bit 8
ROTPF
Returns the abscissa value of the rotation center with respect to the Cartesian coordinate origin.
It is given in the active units:
If G70, in inches (within 3937.00787).
If G71, in millimeters (within 99999.9999).
ROTPS
Returns the ordinate value of the rotation center with respect to the Cartesian coordinate origin. It
is given in the active units:
If G70, in inches (within 3937.00787).
If G71, in millimeters (within 99999.9999).
PRBST
Returns probe status.
0 = the probe is not touching the part.
1 = the probe is touching the part.
If this variable is accessed, block preparation is interrupted and the CNC waits for this command
to be executed to resume block preparation.
CLOCK
Returns the time in seconds indicated by the system clock. Possible values 0..4294967295.
If this variable is accessed, block preparation is interrupted and the CNC waits for this command
to be executed to resume block preparation.
CNC 8055
CNC 8055i
TIME
Returns the time in hours-minutes-seconds format.
(P150=TIME)
Loads P150 with hh-mm-ss. For example if the time is: 34sec. P150 = 182234.
M & EN MODELS
SOFT: V01.4X
If this variable is accessed, block preparation is interrupted and the CNC waits for this command
to be executed to resume block preparation.
375
DATE
Returns the date in year-month-day format.
(P151=DATE)
It assigns to P151 the year-month-day. For example if the date is April 25th 1992, P151
= 920425.
If this variable is accessed, block preparation is interrupted and the CNC waits for this command
to be executed to resume block preparation.
Variables
13.
CYTIME
It returns the amount of time (in hundredths of a second) elapsed executing the part. It ignores the
time the execution has been interrupted. Possible values 0..4294967295.
If this variable is accessed, block preparation is interrupted and the CNC waits for this command
to be executed to resume block preparation.
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 given in Volts and in 1.4 format.
At the Axes module, it is possible to select one of the 8 analog inputs (18) 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 (14) available.
The returned values will be either within the 5 V or 10 V range depending on how the analog
inputs have been set.
If this variable is accessed, block preparation is interrupted and the CNC waits for this command
to be executed to resume block preparation.
AXICOM
It returns in the 3 least significant bits the axis pairs switched with function G28.
Pair 3
Axis 2
Axis 1
Pair 2
Axis 2
Axis 1
Pair 1
Axis 2
Axis 1
LSB
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:
Pair 3
0000
CNC 8055
CNC 8055i
0000
Pair 2
0000
0000
Pair 1
C
0101
0100
LSB
TANGAN
Variable associated with the tangential control function, G45. It indicates the programmed angular
position.
M & EN MODELS
SOFT: V01.4X
376
TPIOUT(X-C)
Output of the PI of the tandem master axis in rpm.
P r o gr a m m i ng m a n u a l
TIMEG
It shows the timing status of the timer programmed with G4 K in the CNC channel. This variable,
returns the time remaining to end the timing block in hundredths of a second.
TIPPRB
It indicates the PROBE cycle being executed at the CNC.
If PROBE1 is running, the TPPRB variable takes the value of 1, if PROBE2 is running, it takes the
value of 2, etc. if PROBE12 is running, it takes the value of 12.
PANEDI
WINDRAW55 application. Number of the screen created by the user or the manufacturer and is
being consulted.
DATEDI
WINDRAW55 application. Number of the element (item) being consulted.
RIP
Linear theoretical feedrate resulting from the next loop (in mm/min).
The calculation of the resulting feedrate ignores the rotary axes, slave axes (gantry, coupled and
synchronized) as well as DRO axes.
TEMPIn
Variables
13.
TIPDIG
It returns the temperature in tenths of a degree detected by the PT100. It is possible to select one
of the 4 temperature inputs (14) available.
Read-and-write variables
TIMER
This variable allows reading or modifying the time, in seconds, indicated by the clock enabled by
the PLC. Possible values 0..4294967295.
If this variable is accessed, block preparation is interrupted and the CNC waits for this command
to be executed to resume block preparation.
PARTC
The CNC has a part counter whose count increases, in all modes except simulation, every time M30
or M02 is executed and this variable allows its value to be read or modified. This value will be between
0 and 4294967295
If this variable is accessed, block preparation is interrupted and the CNC waits for this command
to be executed to resume block preparation.
KEY
Returns the code of the last key accepted.
This variable may be used as a write variable only inside a customizing program (user channel).
If this variable is accessed, block preparation is interrupted and the CNC waits for this command
to be executed to resume block preparation.
CNC 8055
CNC 8055i
KEYSRC
This variable allows reading or modifying the source of keystrokes, possible values being:
M & EN MODELS
SOFT: V01.4X
0 = Keyboard.
1 = PLC.
2 = DNC.
377
Variables
13.
If this variable is accessed, block preparation is interrupted and the CNC waits for this command
to be executed to resume block preparation.
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
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.
PRBMOD
It indicates whether a probing error is to issued or not in the following cases, even if general machine
parameter PROBERR (P119) =YES.
When a G75 probing move finishes before the probe has touched part.
When a G76 probing move finishes but the probe is still touching the part.
The PRBMOD variable takes the following values.
Value
Meaning
The PRBMOD variable can be read and written from the CNC and the PLC an read from the DNC.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
378
P r o gr a m m i ng m a n u a l
Constants
Constants are defined as being all those fixed values which cannot be altered by a program. The
following are considered as constants:
Numbers expressed in the decimal system.
Hexadecimal numbers.
PI constant.
Read-only tables and variables as their value cannot be altered with a program.
Constants
13.
HIGH-LEVEL LANGUAGE PROGRAMMING
13.3
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
379
13.4
Operators
An operator is a symbol that indicates the mathematical or logic operations to carry out. The CNC
has arithmetic, relational, logic, binary, trigonometric operators and special operators.
Arithmetic operators.
+
add.
P1=3 + 4
P1=7
P2=5 - 2
P3= -(2 * 3)
P2=3
P3=-6
multiplication.
P4=2 * 3
P4=6
division.
P5=9 / 2
P5=4.5
MOD
P6=7 MOD 4
P6=3
EXP
exponential.
P7=2 EXP 3
P7=8
Operators
13.
Relational operators.
EQ
equal.
NE
different.
GT
greater than.
GE
LT
Less than.
LE
Trigonometric functions.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
380
SIN
sine.
P1=SIN 30
P1=0.5
COS
cosine.
P2=COS 30
P2=0.8660
TAN
tangent.
P3=TAN 30
P3=0.5773
ASIN
arc sine.
P4=ASIN 1
P4=90
ACOS
arc cosine.
P5=ACOS 1
P5=0
ATAN
arc tangent.
P6=ATAN 1
P6=45
ARG
P7=ARG(-1,-2)
P7=243.4349
There are two functions for calculating the arc tangent ATAN which returns the result between 90
and ARG given between 0 and 360.
P r o gr a m m i ng m a n u a l
Other functions.
P1=ABS -8
P1=8
LOG
decimal logarithm.
P2=LOG 100
P2=2
SQRT
square root.
P3=SQRT 16
P3=4
ROUND
P4=ROUND 5.83
P4=6
FIX
Integer.
P5=FIX 5.423
P5=5
FUP
P6=FUP 7
P6=FUP 5,423
P6=7
P6=6
BCD
P7=BCD 234
P7=564
0010
BIN
P8=BIN $AB
0011
13.
0100
P8=171
1010
1011
Conversions to binary and BCD are made in 32 bits, it being possible to represent the number 156
in the following formats:
Decimal
156
Hexadecimal
9C
Binary
BCD
Operators
absolute value.
ABS
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
381
13.5
Expressions
An expression is any valid combination of operators, constants, parameters and variables.
All expressions must be placed between brackets, but if the expression is reduced to an integer,
the brackets can be removed.
13.5.1
Expressions
13.
Arithmetic expressions
These are formed by combining functions and arithmetic, binary and trigonometric operators with
the constants and variables of the language.
The priorities of the operators and the way they can be associated determine how these expressions
are calculated:
Priority from highest to lowest
To be associated
EXP, MOD
*,/
Relational operators
AND, XOR
OR
Brackets should be used in order to clarify the order in which the expression is to be evaluated.
(P3 = P4/P5 - P6 * P7 - P8/P9 )
(P3 = (P4/P5)-(P6 * P7)-(P8/P9))
Using redundant or additional brackets will neither cause errors nor slow down the execution.
In functions, brackets must be used except when these are applied to a numerical constant, in which
case they are optional.
(SIN 45) (SIN (45))
(SIN 10+5)
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
382
P r o gr a m m i ng m a n u a l
13.5.2
Relational expressions
(IF ((P8 EQ 12.8) OR (ABS(SIN(P24)) GT SPEED)) AND (CLOCK LT (P9 * 10.99)) ...
Expressions
13.
At the same time these conditions can be joined by means of logic operators.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
383
Expressions
13.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
384
PROGRAM CONTROL
INSTRUCTIONS
14
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
385
14.1
Assignment instructions
This is the simplest type of instruction and can be defined as:
(target = arithmetic expression)
A local or global parameter or a read-write variable may be selected as target. The arithmetic
expression may be as complex as required or a simple numerical constant.
Assignment instructions
14.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
386
(P102 = FZLOY)
(ORGY 55 = (ORGY 54 + P100))
In the specific case of designating a local parameter using its name (A instead of P0, for example)
and the arithmetic expression being a numerical constant, the instruction can be abbreviated as
follows:
(P0=13.7) ==> (A=13.7) ==> (A13.7)
Within a single block, up to 26 assignments can be made to different targets, a single assignment
being interpreted as the set of assignments made to the same target.
(P1=P1+P2, P1=P1+P3, P1=P1*P4, P1=P1/P5)
The different assignments which are made in the same block will be separated by commas ",".
P r o gr a m m i ng m a n u a l
Display instructions
(ERROR integer, "error text")
This instruction stops the execution of the program and displays the indicated error, it being possible
to select this error in the following ways:
(ERROR integer)
This will display the error number indicated and the text associated to this number according
to the CNC error code (should there be one).
This will display the number and the error text indicated, it being necessary to write the text
between quote marks "".
(ERROR "error text").
This will display the error text only.
The error number may be defined by means of a numerical constant or an arithmetic parameter.
When using a local parameter, its numeric format must be used (P0 thru P25 instead of A thru Z).
Programming examples:
(ERROR 5)
(ERROR P100)
(ERROR "User error")
(ERROR 3, "User error")
(ERROR P120, "User error)
Display instructions
14.
14.2
(MSG "message")
This instruction will display the message indicated between quote marks.
The CNC screen is provided with an area for displaying DNC or user program messages, and always
displays the last message received irrespective of where it has come from.
Example: (MSG "Check tool")
Minimum X
expression 2
Maximum X
expression 3
Minimum Y
expression 4
Maximum Y
expression 5
Minimum Z
expression 6
Maximum Z
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
387
14.3
Enable-disable instructions
(ESBLK and DSBLK)
After executing the mnemonic ESBLK, the CNC executes all the blocks that come after as if it were
dealing with a single block.
This single block treatment is kept active until it is cancelled by executing the mnemonic DSBLK.
Enable-disable instructions
14.
In this way, should the program be executed in the SINGLE BLOCK operating mode, the group of
blocks which are found between the mnemonics ESBLK and DSBLK will be executed in a continuous
cycle, i.e., execution will not be stopped at the end of a block but will continue by executing the
following one.
G01 X10 Y10 F8000 T1 D1
(ESBLK)
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
388
P r o gr a m m i ng m a n u a l
14.4
( GOTO N(expression) )
The mnemonic GOTO causes a jump within the same program, to the block defined by the label
N(expression). The execution of the program will continue after the jump, from the indicated block.
X10
N22
(GOTO N22)
; Jump instruction
X15 Y20
; It is not executed
Y22 Z50
; It is not executed
G00 X0 Y0 Z0 T2 D4
14.
The jump label can be addressed by means of a number or by any expression which results in a
number.
The label P(expression) indicates the number of the program containing the blocks to be executed.
If not defined, the CNC interprets that the portion to be repeated is located in the same program.
All the labels can be indicated by means of a number or by any expression which results in a number.
The part of the program selected by means of the two labels must belong to the same program, by
first defining the initial block and then the final block.
The execution of the program will continue in the block following the one in which the mnemonic
RPT was programmed, once the selected part of the program has been executed.
N10
G00 X10
Z20
G01 X5
G00 Z0
N20
X0
N30
N40
G01 X20
M30
When reaching block N30, the program will execute section N10-N20 three times.
Once this has been completed, the program will continue execution in block N40.
Since the RPT instruction does not interrupt block preparation or tool compensation, it may be used
when using the EXEC instruction and while needing to maintain tool compensation active.
CNC 8055
CNC 8055i
Example:
(IF (P8 EQ 12.8) CALL 3 ELSE PCALL 5, A2, B5, D8)
If P8 = 12.8 executes the mnemonic (CALL3)
If P8<>12.8 executes the mnemonic (PCALL 5, A2, B5, D8)
M & EN MODELS
SOFT: V01.4X
The instruction can lack the ELSE part, i.e., it will be enough to program IF condition <action1>.
Example:
(IF (P8 EQ 12.8) CALL 3)
389
Both <action1> and <action2> can be expressions or instructions, except for mnemonics IF and
SUB.
Due to the fact that in a high level block local parameters can be named by means of letters,
expressions of this type can be obtained:
(IF (E EQ 10) M10)
If the condition of parameter P5 (E) having a value of 10 is met, the miscellaneous function M10
will not be executed, since a high level block cannot have ISO code commands. In this case M10
represents the assignment of value 10 to parameter P12, i.e., one can program either:
14.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
390
P r o gr a m m i ng m a n u a l
Subroutine instructions
A subroutine is a part of a program which, being properly identified, can be called from any position
of a program to be executed.
A subroutine can be kept in the memory of the CNC as an independent part of a program and be
called one or several times, from different positions of a program or different programs.
Only subroutines stored in the CNC's RAM memory can be executed. Therefore, to execute a
subroutine stored in the hard disk (KeyCF) or in a PC connected through the serial line, copy it first
into the CNC's RAM memory.
(SUB integer)
The SUB instruction defines as subroutine the set of program blocks programmed next until reaching
the RET subroutine. The subroutine is identified with an integer which also defines the type of
subroutine; either general or OEM.
Range of general subroutines
The OEM subroutines are treated like the general ones, but with the following restrictions:
They can only be defined in OEM programs, having the [O] attribute. Otherwise, the CNC will
display the corresponding error.
14.
Subroutine instructions
If the subroutine is too large to be copied into RAM, it must be converted into a program and then
the EXEC instruction must be used.
14.5
( RET )
The mnemonic RET indicates that the subroutine which was defined by the mnemonic SUB, finishes
in this block.
( SUB 12)
G91 G01 XP0 F5000
YP1
X-P0
Y-P1
(RET)
; Definition of subroutine 12
; End of subroutine
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
391
( CALL (expression) )
The mnemonic CALL makes a call to the subroutine indicated by means of a number or by means
of any expression that results in a number.
As a subroutine may be called from a main program, or a subroutine, from this subroutine to a second
one, from the second to a third, etc..., the CNC limits these calls to a maximum of 15 nesting levels,
it being possible to repeat each of the levels 9999 times.
Subroutine instructions
14.
Programming example.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
392
( SUB 10)
G91 G01 X20 F5000
(CALL 11)
G91 G01 Y10
(CALL 11)
G91 G01 X-20
(CALL 11)
G91 G01 Y-10
(CALL 11)
(RET)
( SUB 11)
G81 G98 G91 Z-8 I-22 F1000 S5000 T1 D1
G84 Z-8 I-22 K15 F500 S2000 T2 D2
G80
(RET)
P r o gr a m m i ng m a n u a l
Subroutine instructions
Programming example.
14.
PROGRAM CONTROL INSTRUCTIONS
Both the main program and each subroutine that is found on a parameter nesting level, will have
26 local parameters (P0-P25).
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
393
Subroutine instructions
14.
If, when a modal subroutine is selected, a movement block with a number of repetitions is executed,
for example X10 N3, the CNC will execute the movement only once (X10) and after the modal
subroutine, as many times as the number of repetitions indicates.
Should block repetitions be chosen, the first execution of the modal subroutine will be made with
updated call parameters, but not for the remaining times, which will be executed with the values
which these parameters have at that time.
If, when a subroutine is selected as modal, a block containing the MCALL mnemonic is executed,
the present subroutine will lose its modal quality and the new subroutine selected will be changed
to modal.
( MDOFF )
The MDOFF instruction indicates that the mode assumed by a subroutine with the MCALL
instruction or a part-program with MEXEC ends in that block.
The use of modal subroutines simplifies programming.
Programming example.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
394
( SUB 10)
G91 G01 XP0 F5000
(MCALL 11)
G91 G01 YP1
G91 G01 X-P0
G91 G01 Y-P1
(MDOFF)
(RET)
( SUB 11)
G81 G98 G91 Z-8 I-22 F1000 S5000 T1 D1
G84 Z-8 I-22 K15 F500 S2000 T2 D2
G80
(RET)
P r o gr a m m i ng m a n u a l
14.
PROGRAM CONTROL INSTRUCTIONS
14.6
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
395
14.7
Interruption-subroutine instructions
Whenever one of the general interruption logic input is activated, "INT1" (M5024), "INT2" (M5025),
"INT3" (M5026) or "INT4 (M5027), the CNC temporarily interrupts the execution of the program in
progress and starts executing the interruption subroutine whose number is indicated by the
corresponding general parameter.
With INT1 (M5024) the one indicated by machine parameter INT1SUB (P35)
With INT2 (M5025) the one indicated by machine parameter INT2SUB (P36)
Interruption-subroutine instructions
14.
With INT3 (M5026) the one indicated by machine parameter INT3SUB (P37)
With INT4 (M5027) the one indicated by machine parameter INT4SUB (P38)
The interruption subroutines are defined like any other subroutine by using the instructions: "(SUB
integer)" and "(RET)".
These interruption subroutines do not change the nesting level of local parameters, thus only global
parameters must be used in them.
Within an interruption subroutine, it is possible to use the "(REPOS X, Y, Z, ...)" instruction described
next.
Once the execution of the subroutine is over, the CNC resumes the execution of the program which
was interrupted.
( REPOS X, Y, Z, ... )
The REPOS instruction must always be used inside an interruption subroutine and facilitates the
repositioning of the machine axes to the point of interruption.
When executing this instruction, the CNC moves the axes to the point where the program was
interrupted.
Inside the REPOS instruction, indicate the order the axes must move to the point where the program
was interrupted.
The axes move one by one.
It is not necessary to define all the axes, only those to be repositioned.
The axes that make up the main plane of the machine move together. Both axes need not be
defined because the CNC moves the first one. The movement is not repeated when defining
the second one, it is ignored.
Example:
The main plane is formed by the X and Y axes, the Z axis is the longitudinal (perpendicular) axis
and the machine uses the C and W axes as auxiliary axes. It is desired to first move the C axis,
then the X and Y axes and finally the Z axis.
This repositioning move may be defined in any of the following ways:
(REPOS C, X, Y, Z)(REPOS C, X, Z)(REPOS C, Y, Z)
If the REPOS instruction is detected while executing a subroutine not activated by an interruption
input, the CNC will issue the corresponding error message.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
396
P r o gr a m m i ng m a n u a l
Program instructions
With this CNC, from a program in execution, it is possible to:
Execute another program. Instruction (EXEC P.....)
Execute another program in modal mode. Instruction (MEXEC P.....)
Generate a new program. Instruction (OPEN P.....)
Add blocks to an existing program. Instruction (WRITE P.....)
DNC2
DNCE
Program instructions
14.
14.8
The part-program may be defined with a number or with an expression whose result is a number.
By default, the CNC interprets that the part-program is in the CNC's RAM memory. If it is in another
device, it must be so indicated in (directory):
HD
DNC2
DNCE
If while the modal part-program is selected, a motion block is executed with a number of repetitions
(for example X10 N3), the CNC ignores the number of repetitions and executes the movement and
the modal part-program only once.
If while a part-program is selected as modal, a block containing the MEXEC instruction is executed
from the main program, the current part-program stops being modal and the part-program called
upon with MEXEC will then become modal.
If within the modal part-program, an attempt is made to execute a block using the MEXEC instruction,
it will issue the relevant error message.
1064: The program cannot be executed.
( MDOFF )
The MDOFF instruction indicates that the mode assumed by a subroutine with the MCALL
instruction or a part-program with MEXEC ends in that block.
DNC2
DNCE
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
397
The CNC appends the new blocks after the ones already existing.
The CNC deletes the existing program and starts editing a new one.
A program comment may also be associated with it; this comment will later be displayed next to it
in the program directory.
To edit blocks, the WRITE instruction must be used as described next.
Program instructions
14.
Notes:
If the program to be edited already exists and the A/D parameters are not defined, the CNC will
display an error message when executing the block.
The program opened with the OPEN instruction is closed when executing an M30, or another
OPEN instruction and after an Emergency or Reset.
From a PC, only programs stored in the CNC'S RAM memory, or in the hard disk (KeyCF) can
be opened
=>
=>
(SUB P102)
( SUB 55)
(WRITE (ORGX54=P103))
(WRITE (ORGX54=?P103))
=>
=>
(ORGX54=P103)
(ORGX54=222)
=>
=>
(PCALL P104)
(PCALL 25)
If the mnemonic WRITE is programmed without having programmed the mnemonic OPEN
previously, the CNC will display the corresponding error, except when editing a user customized
program, in which case a new block is added to the program being edited.
Example of the creation of a program which contains several points of a cardioid:
| R = B cos (Q/2) |
CNC 8055
CNC 8055i
Subroutine number 2 is used, its parameters having the following meaning:
M & EN MODELS
SOFT: V01.4X
398
A or P0
Q angle value.
B or P1
B value
C or P2
D or P3
P r o gr a m m i ng m a n u a l
14.
Program instructions
(WRITE M30)
(RET)
;
;
;
;
;
;
N100
( SUB 2)
(OPEN P12345)
(WRITE FP3)
(P10=P1*(ABS(COS(P0/2))))
(WRITE G01 G05 RP10 QP0)
(P0=P0+P2)
(IF (P0 LT 365) GOTO N100)
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
399
14.9
14.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
400
( INIPAR )
This instruction validates the machine parameters modified from an OEM subroutine that defines
the kinematics. This instruction is only valid when used in subroutines that are located inside OEM
programs.
To validate the machine parameters associated with a kinematics, G48 and G49 must NOT be active.
Otherwise, the CNC will display the corresponding error.
1074: INIPAR cannot be executed.
P r o gr a m m i ng m a n u a l
14.10
Customizing instructions may be used only when customizing programs made by the user.
These customizing programs must be stored in the CNC's RAM memory and they may utilize the
"Programming Instructions" and they will be executed in the special channel designed for this use;
the program selected in each case will be indicated in the following general machine parameters.
In "USERDPLY" the program to be executed in the Execution Mode will be indicated.
In "USEREDIT" the program to be executed in the Editing Mode will be indicated.
The customizing programs may have up to five nesting levels besides their current one. Also, the
customizing instructions do not allow local parameters, nevertheless all global parameters may be
used to define them.
( PAGE (expression) )
The mnemonic PAGE displays the page number indicated by means of a number or by means of
any expression resulting in a number.
User-defined pages will be from page 0 to page 255 and will be defined from the CNC keyboard
in the Graphic Editor mode and as indicated in the Operating Manual.
System pages will be defined by a number greater than 1000. See the corresponding appendix.
14.
In "USERMAN" the program to be executed in the Manual (JOG) Mode will be indicated.
The mnemonic SYMBOL displays the symbol whose number is indicated by means of the value of
expression 1 once this has been evaluated.
Its position on screen is also defined by expression 2 (column) and by expression 3 (row).
Expression 1, expression 2 and expression 3 may contain a number or any expression resulting in
a number.
The CNC allows displaying any user-defined symbol (0-255) defined at the CNC keyboard in the
Graphic Editor mode such as is indicated in the Operating Manual.
In order to position it within the display area its pixels must be defined, 0-639 for columns (expression
2) and 0-335 for rows (expression 3).
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
401
14.
Expression 1, expression 2 and expression 3 may contain a number or any expression resulting in
a number.
The CNC allows 26 windows (0-25) to be defined and their positioning within the display area,
providing 21 rows (0-20) and 80 columns (0-79).
N10
(ODW 1, 6, 33)
; Defines data window 1
(ODW 2, 14, 33)
; Defines data window 2
(DW1=DATE, DW2=TIME)
; Displays the date in window 1 and the time in 2
(GOTO N10)
The CNC allows displaying the data in decimal, hexadecimal and binary format; the following
instructions are available:
(DW1 = 100)
Decimal format. Value "100" displayed in window 1.
(DWH2 = 100)
Hexadecimal format. Value "64" displayed in window 2.
(DWB3 = 100)
Binary format. Value "01100100" displayed in window 3.
When using the binary format, the display is limited to 8 digits in such a way that a value of
"11111111" will be displayed for values greater than 255 and the value of "10000000" for values
more negative than -127.
Besides, the CNC allows the number stored in one of the 26 data input variables (IB0-IB25) to be
displayed in the requested window.
The following example shows a request and later displays the axis feedrate:
(ODW 3, 4, 60)
; Defines data window 3.
(IB1=INPUT "Axis feed: ", 5.4)
; Axis feedrate request.
(DW3=IB1)
; Displays feedrate in window 3.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
402
Expression 1, expression 2, expression 3, .... may contain a number or any expression which may
result in a number.
P r o gr a m m i ng m a n u a l
Each text will allow a maximum of 20 characters that will be shown in two lines of 10 characters each.
If the text selected has less than 10 characters, the CNC will center it on the top line, but if it has
more than 10 characters the programmer will center it.
Examples:
(SK 1="HELP", SK 2="MAXIMUN POINT")
MAXIMUN POINT
If while a standard CNC softkey menu is active, one or more softkeys are selected via high level
language instruction: "SK", the CNC will clear all existing softkeys and it will only show the selected
ones.
If while a user softkey menu is active, one or more softkeys are selected via high level language
instruction "SK", the CNC will only replace the selected softkeys leaving the others intact.
( WKEY )
The mnemonic WKEY stops execution of the program until the key is pressed.
The pressed key will be recorded in the KEY variable.
...
(WKEY)
(IF KEY EQ $FC00 GOTO N1000)
...
14.
MAXIMUN POINT
FEED
HELP
=>
=>
X10
X P100
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
403
( WBUF )
Enters into memory, adding to the program being edited and after the cursor position, the block
being edited by means of (WBUF "text", (expression)). It also clears the editing buffer in order
to edit a new block.
This allows the user to edit a complete program without having to quit the user editing mode after
each block and press ENTER to "enter" it into memory.
14.
( SYSTEM )
The mnemonic SYSTEM stops execution of the user customized program and returns to the
corresponding standard menu of the CNC.
( PAGE 10 )
Sets the softkeys to access the various modes and requests a choice
N5
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
404
; Request a key
; Cycle 1
; Cycle 2
; Quit or request a key
P r o gr a m m i ng m a n u a l
CYCLE 1
; Displays page 11 and defines 2 data entry windows
N10
(PAGE 11)
(ODW 1,10,60)
(ODW 2,15,60)
;Editing
(WBUF ",")
(WBUF ")")
(WBUF )
(GOTO N0)
CYCLE 2
; Displays page 12 and defines 3 data entry windows
N20
14.
Screen customizing instructions
(PAGE 12)
(ODW 1,10,60)
(ODW 2,13,60)
(ODW 3,16,60)
; Editing
(WBUF "( PCALL 2,")
(WBUF ",")
(WBUF ",")
(IB 3=INPUT "C:",-6.5)
(DW 3=IB3)
(WBUF "C",IB3)
;
;
;
;
(WBUF ")")
(WBUF )
(GOTO N0)
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
405
14.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
406
COORDINATE TRANSFORMATION
15
The description of the general coordinate transformation is divided into three basic functions:
Movement in an inclined plane (G49).
Tool movement according to the tool coordinate system (G47).
TCP transformation, Tool Center Point (G48).
For a better understanding of coordinate transformation, three machine coordinate systems will be
considered in the following examples.
Machine coordinate system. X Y Z in the figures.
Part coordinate system. X' Y' Z' in the figures.
Tool coordinate system. X" Y" Z" in the figures.
When no transformation has been made and the spindle is in the starting position, the three
coordinate systems coincide. Figure on the left.
When turning the spindle, the tool coordinate system (X" Y" Z") changes. Figure on the right.
If, also, an inclined plane is selected (G49), the part coordinate system also changes (X', Y', Z').
Bottom figure.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
407
Case A
No transformation has been done and the spindle is spinning.
If a Z axis movement is programmed (G01 Z), this axis will move according to the part coordinate
system which, in this case, coincides with machine coordinates.
COORDINATE TRANSFORMATION
15.
Now, to move the tool according to the tool coordinate system, function G47 must be used when
programming the movement of the Z axis (G01 G47 Z).
In this type of movements, when the tool coordinate system does not coincide with the machine
coordinate system, the CNC moves several axes in order to move the tool according to the part
coordinates. In the example, the X and Z axes move.
Function G47 is not modal and only affects the programmed movement.
In order for the jog movements, to be carried out according to the tool coordinate system, the CNC
general logic input "TOOLMOVE (M5021" must be activated at the PLC.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
408
P r o gr a m m i ng m a n u a l
Case B
An inclined plane has been selected (G49) and the spindle is
perpendicular to it.
If a Z axis movement is programmed (G01 Z), this axis will move according to the part coordinate
system.
In this type of movements, when the part coordinate system does not coincide with the machine
coordinate system, the CNC moves several axes in order to move the tool according to the part
coordinates. In the example, the X and Z axes move.
COORDINATE TRANSFORMATION
15.
To move the tool according to the machine coordinate system, function G53 (programming with
respect to home) must be used when programming the movement of the Z axis (G01 G53 Z).
Function G53 is not modal and only affects the programmed movement.
In order for the jog movements to be carried out according to the machine coordinate system, CNC
general logic input "MACHMOVE (M5012)" must be activated at the PLC.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
409
Case C
An inclined plane has been selected (G49) and the spindle is not
perpendicular to it.
If a Z axis movement is programmed (G01 Z), this axis will move according to the part coordinate
system.
COORDINATE TRANSFORMATION
15.
In this type of movements, when the part coordinate system does not coincide with the machine
coordinate system, the CNC moves several axes in order to move the tool according to the part
coordinates. In the example, the X and Z axes move.
Now, to move the tool according to the tool coordinate system, function G47 must be used when
programming the movement of the Z axis (G01 G47 Z).
In this type of movements, when the tool coordinate system does not coincide with the machine
coordinate system, the CNC moves several axes in order to move the tool according to the part
coordinates. In the example, the X and Z axes move.
Function G47 is not modal and only affects the programmed movement.
In order for the jog movements, to be carried out according to the tool coordinate system, the CNC
general logic input "TOOLMOVE (M5021" must be activated at the PLC.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
410
P r o gr a m m i ng m a n u a l
To move the tool according to the machine coordinate system, function G53 (programming with
respect to home) must be used when programming the movement of the Z axis (G01 G53 Z).
Function G53 is not modal and only affects the programmed movement.
In order for the jog movements to be carried out according to the machine coordinate system, CNC
general logic input "MACHMOVE (M5012)" must be activated at the PLC.
Case D
It is working with TCP, Tool Center Point
COORDINATE TRANSFORMATION
15.
When working with TCP transformation, function G48 active, the CNC allows changing the tool
orientation without changing the position of its tool tip (part coordinates).
Obviously, the CNC must move several axes in order to maintain the tool tip position at all times.
CNC 8055
CNC 8055i
Function G48, as described later on, is modal and it indicates when the TCP transformation
becomes active and when it is canceled.
Function G48, TCP transformation, may be used together with function G49 (movement in the
inclined plane) and G47 (movement along the tool axes)
M & EN MODELS
SOFT: V01.4X
411
15.1
COORDINATE TRANSFORMATION
15.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
412
P r o gr a m m i ng m a n u a l
15.1.1
With function G49, it is possible to define a coordinate transformation or, in other words, the inclined
plane resulting from that transformation. There are several ways to define G49.
G49 X Y Z A B C
COORDINATE TRANSFORMATION
XYZ
15.
Defines the inclined plane resulting from rotating around the X axis first and around the Z axis last
the amounts indicated in A, B, C respectively.
ABC
They define the inclined plane resulting from:
Having rotated around the X axis first the amount indicated by A.
The new coordinate system resulting from this transformation is called X Y' Z' because the Y, Z axes
have been rotated.
Then, it must be rotated around the Y' axis the B amount.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
In the figure, the new coordinate system resulting from this transformation is called X'' Y' Z" because
the X, Z axes have been rotated.
413
And last, rotate around the Z'' axis the amount indicated by C.
COORDINATE TRANSFORMATION
15.
G49 X Y Z Q R S
Spherical coordinates. Defines the inclined plane resulting from rotating around the Z axis first, then
around the Y axis and again around the Z axis the amounts indicated by Q, R, S respectively.
XYZ
Define the coordinate origin of the inclined plane.
Indicate the X, Y, Z coordinates with respect to the current coordinate origin.
QRS
They define the inclined plane resulting from:
Having rotated around the Z axis first the amount indicated by Q.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
414
In the figure, the new coordinate system resulting from this transformation is called X' Y' Z because
the X, Y axes have been rotated.
P r o gr a m m i ng m a n u a l
And last, rotate around the Z' axis the amount indicated by S.
In the figure, the new coordinate system resulting from this transformation is called X'' Y' Z' because
the X, Z axes have been rotated.
COORDINATE TRANSFORMATION
15.
G49 X Y Z I J K R S
Defines the inclined plane specifying the angles forming the new inclined plane with the X Y and
Z axes of the machine's coordinate system.
XYZ
Define the coordinate origin of the inclined plane.
Indicate the X, Y, Z coordinates with respect to the current coordinate origin.
IJK
They define the angles forming the new inclined plane with the X Y and Z axes of the machine's
coordinate system. Only two of these three angles are programmed.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
415
R
Defines which of the axes of the new Cartesian plane (X' Y' ) is aligned with the edge. If R0, the
X' axis is lined up and If R1, the Y' axis is lined up. If not programmed, a value of R0 is assumed.
COORDINATE TRANSFORMATION
15.
S
Lets rotate the coordinates in the new Cartesian plane.
G49 T X Y Z S
It defines a new work plane perpendicular to the direction of the tool.
Is it a good idea to have a swivel or angled spindle (machine parameter "XFORM (P93) set to 2 or
3) when using this type of definition.
T
Indicates that one wishes to select a work plane perpendicular to the orientation of the tool.
XYZ
Define the coordinate origin of the inclined plane.
Indicate the X, Y, Z coordinates with respect to the current coordinate origin.
S
Lets rotate the coordinates around the new Z' corresponding to the new work plane.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
416
P r o gr a m m i ng m a n u a l
The new work plane will be perpendicular to the orientation of the tool.
The Z axis keeps the same orientation as the tool.
The orientation of the X, Y axes in the new work plane depends on the spindle type and on how
its rotary axes are oriented.
When setting the machine up, it must be set as the spindle's resting position, when the tool is parallel
to the Z axis of the machine.
Later, every time the spindle is rotated, the relative tool coordinates will also rotate.
COORDINATE TRANSFORMATION
15.
On the two machines on the left, only the main rotary axis has rotated.
On the contrary, in the machine on the right, to achieve the same tool orientation, both the main and
secondary rotary axes have rotated.
If in the machine on the right, we wanted to orient the X', Y' axes like in the other two cases, we would
have to program the following:
G49 T XYZ S-90
Programming S-90 means rotating -90 around the new Z' corresponding to the new work plane and,
this way, compensate for the rotation of the main rotary axis.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
417
15.1.2
Parameter W has been added to function G49, inclined plane definition. It indicates that it is a swing
spindle and it must be defined at the end: G49 ****** W.
G49 X Y Z A B C W
G49 X Y Z Q R S W
G49 X Y Z I J K R S W
G49 T X Y Z S W
The spindle orients to the new plane and later movements are carried out in X, Y, W.
COORDINATE TRANSFORMATION
15.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
418
To observe the graphics in the new plane, set general machine parameter GRAPHICS (P16)=1.
There are two choices to execute canned cycles in the inclined plane:
After defining the plane (G49 **** W) select the W axis as longitudinal (G15W) so the movements
programmed on Z are carried out on the W axis.
Switch the Z-W axes (G28 ZW) before defining the plane (G49 **** W) so the movements
programmed in Z are carried out on the W axis.
To cancel the inclined plane, program G49 alone.
P r o gr a m m i ng m a n u a l
15.1.3
When defining a new inclined plane, the CNC provides the position that each rotary axis must occupy
to orient the tool perpendicular to the new plane.
That position is indicated in variables TOOROF and TOOROS and arithmetic parameters P297 and
P298.
Since there are two possible solutions on Huron type spindles (45 spindles), the L parameter has
been added to function G49, definition of inclined plane, that indicates which one of these two
solution is to be used. It is optional and it is defined at the end. G49 ****** L.
G49 X Y Z I J K R S L
G49 T X Y Z S L
If "L" is not defined or it is defined as "L0", it provides the solution where the main rotation (articulation
closest to the ram or furthest away from the tool) is closer to 0
If "L1" is defined, it provides the other solution (the articulation furthest away from the ram).
If "L" is programmed on the rest of the spindles, it issues the error "Option not available".
15.
Movement in an inclined plane
G49 X Y Z Q R S L
COORDINATE TRANSFORMATION
G49 X Y Z A B C L
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
419
15.1.4
COORDINATE TRANSFORMATION
15.
In order to work with coordinate transformation (G49), the X, Y, Z axes must be defined, they must
form the active trihedron and be linear. The X, Y and Z axes may have GANTRY axes, coupled or
synchronized via PLC, associated with them.
When working with coordinate transformation and performing rigid tapping in inclined planes, all
axes gains (not only for the Z axis) must be adjusted by using the second gains and accelerations.
The parameters associated with G49 are optional. When programming G49 without parameters,
the active coordinate transformation is canceled.
G49 is modal and no more G codes may be programmed alone in the block.
Coordinate transformation is kept active even after turning the CNC off and back on.
To cancel it, program the following:
G49 E1
it cancels it, but it keeps the part zero defined in the transformation.
G49 E0 or G49
It cancels it and it recovers the part zero that was active before the G49
was activated.
G74
It cancels it, it activates the home search and recovers the part zero that
was active before the G49 was activated.
Zero offsets G54-G59, pattern rotation (G73) and presets (G92, G93) are possible while coordinate
transformation is active.
But the following cannot be done:
Program a new coordinate transformation without previously canceling the previous one.
Probing (G75).
Movement against hardstop (G52).
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
420
P r o gr a m m i ng m a n u a l
15.1.5
ORGROY
ORGROZ
ORGROC
15.
ORGROK
ORGROR
ORGROS
COORDINATE TRANSFORMATION
ORGROI
ORGROA
4 = Type G49 X Y Z I J K R S
Every time G49 is programmed, the CNC updates the values of the parameters that have been
defined.
For example when programming G49 XYZ ABC, the CNC updates the variables ORGROX,
ORGROY, ORGROZ, ORGROA, ORGROB, ORGROC. The rest of variables keep their previous
values.
Read-write variables updated by the CNC once function G49 is executed.
When having a swivel or angular spindle, general machine parameter XFORM (P93) with a value
of 2 or 3, the CNC shows the following data:
TOOROF
It indicates the position to be occupied by the spindle's main rotary axis in order to orient the spindle
perpendicular to the indicated inclined plane.
TOOROS
It indicates the position to be occupied by the spindle's secondary rotary axis in order to orient the
spindle perpendicular to the indicated inclined plane.
Accessing the variables TOOROF or TOOROS interrupts block preparation and the CNC waits for
that command to be executed before resuming block preparation.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
421
15.1.6
Once G49 has been executed, the CNC updates global parameters P297 and P298:
P297 It indicates the position to be occupied by the spindle's main rotary axis in order to orient
the spindle perpendicular to the indicated inclined plane. It is the same value as shown
by the TOOROF variable.
COORDINATE TRANSFORMATION
15.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
422
P298 It indicates the position to be occupied by the spindle's secondary rotary axis in order
to orient the spindle perpendicular to the indicated inclined plane. It is the same value
as shown by the TOOROS variable.
These parameters are global. Therefore, they can be modified by the user or even by probing cycles
of the CNC itself.
They should be used after executing G49. Otherwise, variables TOOROF and TOOROS should be
used.
P r o gr a m m i ng m a n u a l
Programming example
Orients the main axis (B) and the secondary axis (A) so the
tool is perpendicular to the plane.
The programming sequence is ABC, regardless of which one
is the main axis or the secondary.
G90 G01 Z5
G??
G??
G??
G??
G90 G01 Z 20
G49
15.
COORDINATE TRANSFORMATION
15.1.7
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
423
15.2
COORDINATE TRANSFORMATION
15.
Now, to move the tool according to the tool coordinate system, function G47 must be used when
programming the movement of the Z axis (G01 G47 Z).
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
424
P r o gr a m m i ng m a n u a l
G48 S0
15.
To orient the tool without changing its tip position, the CNC must move several axes of the machine.
COORDINATE TRANSFORMATION
15.3
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
425
Example A
Circular interpolation keeping tool orientation fixed.
COORDINATE TRANSFORMATION
15.
Block N20 selects the ZX plane (G18) and positions the tool at the starting point (30,90).
Block N21 turns TCP transformation on.
Block N22 positions the tool at (100,20) orienting it to -60.
The CNC interpolates the XZB axes executing the programmed linear interpolation while rotating
the tool from the starting position (0) to the programmed final orient position (-60).
Block N23 makes a circular interpolation to point (170,90) maintaining the same tool orientation
along the whole path.
Block N24 positions the tool at (170,120) orienting it to 0.
The CNC interpolates the XZB axes executing the programmed linear interpolation while rotating
the tool from the current position (-60) to the programmed final orient position (0).
Block N25 turns TCP transformation off.
Example B
Circular interpolation with the tool perpendicular to the path.
CNC 8055
CNC 8055i
Block N30 selects the ZX plane (G18) and positions the tool at the starting point (30,90).
Block N31 turns TCP transformation on.
Block N32 positions the tool at (100,20) orienting it to -90.
M & EN MODELS
SOFT: V01.4X
426
The CNC interpolates the XZB axes executing the programmed linear interpolation while rotating
the tool from the starting position (0) to the programmed final orient position (-90).
P r o gr a m m i ng m a n u a l
Block N33 defines a circular interpolation up to point (170,90) setting the final tool orientation
to (0).
The CNC interpolates the XZB axes executing the programmed circular interpolation while
rotating the tool from the current position (-90) to the programmed final orient position (0).
Since both orientations are radial, the tool stays radially oriented at all times. In other words,
perpendicular to the path.
Block N34 positions the tool at (170,120).
Block N35 cancels the TCP transformation..
COORDINATE TRANSFORMATION
G18 G90
G48 S1
G01 X40 Z0 B0
X100
B-35
X200 Z70
B90
G01 X340
G48 S0
15.
Example C
Machining of a profile
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
427
15.3.1
COORDINATE TRANSFORMATION
15.
When working with TCP transformation and performing rigid tapping in inclined planes, all axes
gains (not only for the Z axis) must be adjusted by using the second gains and accelerations.
TCP transformation is kept active even after turning the CNC off and back on.
G48 can be programmed while G49 is active and vice versa.
To cancel TCP, program "G48 S0" or G48 without parameters. It is also canceled after a home search
(G74).
While TCP is on, the following operations are possible:
Zero offsets G54-G59
Pattern rotation (G73)
Presets (G92, G93).
Movements in continuous / incremental jog and handwheel
But the following cannot be done:
Probing (G75).
Do corner rounding or chamfering because in these instances tool orientation has to be
maintained.
Compensate for tool length (G43) because TCP already implies a particular length
compensation. CAD/CAM programs usually program the coordinates of the spindle base.
Special care must be taken when turning G48 on and off.
When G48 is on, the CNC shows the coordinates of the tool tip.
When G48 is off, the CNC shows the coordinates of the tool base or theoretical tip (unturned tool).
1. G48 off. The CNC shows the coordinates of the tool tip.
2. G48 is turned on. The CNC still shows the coordinates of the tool tip.
3. The tool is turned. Since G48 is already on, the CNC still shows the coordinates of the tool tip.
4. G48 is turned off. The CNC shows the coordinates of the theoretical tip (unturned tool).
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
428
P r o gr a m m i ng m a n u a l
When working with inclined planes and TCP transformation, it is recommended to follow this
programming order (sequence):
G49 ...
G...
Start machining.
...
G49
G48 S0
M30
End of part-program.
RTCP should be turned on first because it allows orienting the tool without modifying the tool tip
position, thus avoiding undesired collisions.
15.
TCP Transformation (G48)
COORDINATE TRANSFORMATION
G48 S1
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
429
COORDINATE TRANSFORMATION
15.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
430
ANGULAR TRANSFORMATION OF
AN INCLINE AXIS
16
With the angular transformation of an incline axis, it is possible to make movements along an axis
that is not perpendicular to another. The movements are programmed in the Cartesian system and
to make the movements, they are transformed into movements on the real axes.
On certain machines, the axes are configured in a Cartesian way, they are not perpendicular to each
other. A typical case is the X axis of a lathe that for sturdiness reasons is not perpendicular to the
Z axis.
X
X'
Cartesian axis.
X'
Angular axis.
Orthogonal axis.
Influence of the reset, turning the CNC off and of the M30.
The angular transformation of an incline axis stays active after a RESET, M30 and even after turning
the CNC off and back on.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
431
16.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
432
Coordinate preset.
Movements in continuous / incremental jog and handwheels.
The following operations are not possible while the transformation is active:
Movement until making contact (against a hard stop).
Coordinate rotation.
Surface feedrate in milling.
Home search.
Function G46 is canceled when homing an axis that is involved in the angular transformation
(machine parameters ANGAXNA and ORTAXNA). When homing the axes that are not involved in
the angular axis transformation, function G46 stays active.
While searching home, only the real axes move.
P r o gr a m m i ng m a n u a l
This instruction turns a "frozen" (suspended) transformation on again. See "16.2 Freezing the
angular transformation" on page 434.
The angular transformation of an incline axis stays active after a RESET, M30 and even after turning
the CNC off and back on.
16.
The angular transformation is turned on using function G46 whose programming format is:
ANGULAR TRANSFORMATION OF AN INCLINE AXIS
16.1
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
433
16.2
16.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
434
P r o gr a m m i ng m a n u a l
APPENDIX
A. ISO code programming............................................................................ 437
B. Program control instructions.................................................................... 439
C. Summary of internal CNC variables........................................................ 443
D. Key code .................................................................................................. 451
E. Programming assistance screens of the system. ...................................... 461
F. Maintenance............................................................................................. 465
CNC 8055
CNC 8055i
SOFT: V01.4X
435
P r o gr a m m i ng m a n u a l
Function
G00
Rapid traverse
G01
Linear interpolation
G02
6.3 / 6.7
G03
6.3 / 6.7
7.1 / 7.2
G05
G06
G07
Round corner
Square corner
Section
6.1
6.2
7.3.2
6.4
7.3.1
G08
6.5
G09
6.6
G10
G11
G12
G13
7.5
7.5
7.5
7.5
G14
7.5
G15
8.2
G16
3.2
G17
3.2
G18
3.2
G19
3.2
3.7.1
G20
G21
G22
G28
G29
3.7.1
3.7.2
5.4
5.4
Axis toggle
7.5
G28-G29
G30
5.5
G32
6.15
G33
G34
Electronic threading
6.12
Variable-pitch threading
6.13
G36
6.10
G37
Tangential entry
6.8
G38
Tangential exit
6.9
G39
Chamfer
6.11
G40
8.1
G41
8.1
G41 N
Collision detection
8.3
G42
8.1
G42 N
Collision detection
8.3
G43
8.2
G44
G45
G47
8.2
6.16
15.2
G48
TCP transformation
15.3
G49
15.1
G50
7.3.3
G51
Look-Ahead
7.4
6.14
G52
G53
CNC 8055
CNC 8055i
4.3
G54
4.4.2
G55
4.4.2
G56
4.4.2
G57
4.4.2
G58
4.4.2
G59
4.4.2
10.1
G60
A.
ISO code programming
G04
Meaning
M & EN MODELS
SOFT: V01.4X
437
A.
Meaning
Section
G61
10.2
G62
10.3
G63
10.4
G64
10.5
G65
G66
G67
11.1.2
G68
11.1.3
9.6
Programming in inches
3.3
G69
G70
G71
G72
G73
10.6
11.1 / 11.2
Programming in millimeters
3.3
7.6
7.7
Pattern rotation
G74
Home search
4.2
G75
12.1
G76
G77
G77S
G78
G78S
12.1
7.8.1
Spindle synchronization
Cancellation of axis coupling (slaving)
Cancellation of spindle synchronization
G79
5.5
7.8.2
5.5
9.2.1
G80
9.3
G81
9.7
G82
9.8
G83
9.9
G84
9.10
G85
9.11
G86
9.12
G87
9.13
G88
9.14
G89
9.15
G90
Absolute programming:
3.4
G91
G92
G93
G94
Incremental programming
Polar origin preset
3.4
4.4.1
4.5
5.2.1
G95
G96
5.2.2
G97
5.2.3
G98
5.2.4
G99
9.5
G145
6.17
9.5
M means modal, i.e. the G function, once programmed, remains active until another incompatible
G function is programmed or until an M02, M30, EMERGENCY or RESET is executed or the CNC
is turned off and back on.
D means BY DEFAULT, i.e. they will be assumed by the CNC when it is powered on, after executing
M02, M30 or after EMERGENCY or RESET.
In those cases indicated by ?, it should be understood that the DEFAULT of these G functions
depends on the setting of the general machine parameters of the CNC.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
438
The letter V means that the G code is displayed next to the current machining conditions in the
execution and simulation modes.
P r o gr a m m i ng m a n u a l
B.
(MSG "message")
Displays the indicated message.
Subroutine instructions.
( section 14.5 )
(SUB integer)
Subroutine definition.
( RET )
End of subroutine.
( CALL (expression) )
Call to a subroutine.
(PCALL (expression), (assignment instruction), (assignment instruction),...) )
Call to a subroutine. In addition, using assignment instructions, it is possible to initialize up to a maximum of 26
local parameters of this subroutine.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
439
Interruption-subroutine instructions.
( section 14.7 )
B.
( REPOS X, Y, Z, .... )
It must always be used inside an interruption subroutine and facilitates the repositioning of the machine axes to
the point of interruption.
Program instructions.
( section 14.8 )
( EXEC P(expression), (directory) )
Starts program execution.
( MEXEC P(expression), (directory) )
Starts program execution in modal mode.
( OPEN P(expression), (destination directory), A/D, "program comment" )
It begins editing a new program being possible to associate a comment with the program.
( WRITE <block text> )
It adds, after the last block of the program which began to be edited by means of the mnemonic OPEN P, the
information contained in <block text> as a new program block.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
440
( WKEY )
It stops the execution of the program until a key is pressed.
P r o gr a m m i ng m a n u a l
( section 14.10 )
( WBUF "text", (expression) )
It adds the text and value of the expression, once it has been evaluated, to the block that is being edited and within
the data entry window.
( WBUF )
Enters the block being edited into memory. It can only be used in the screen customizing program to be executed
in the Editing mode.
B.
Program control instructions
( SYSTEM )
It ends the execution of the user screen customizing program and returns to the corresponding standard menu
of the CNC.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
441
B.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
442
P r o gr a m m i ng m a n u a l
PLC
( section 13.2.2 )
DNC
TOOL
TOD
NXTOOL
NXTOD
TMZPn
TLFDn
R/W
R/W
TLFFn
R/W
R/W
TLFNn
R/W
R/W
TLFRn
R/W
R/W
TMZTn
R/W
R/W
HTOR
R/W
TORn
R/W
R/W
TOLn
R/W
R/W
TOIn
R/W
R/W
TOKn
R/W
R/W
C.
Summary of internal CNC variables.
Variable
CNC
PLC
DNC
( section 13.2.3 )
Active zero offset on the selected axis. The value of the additive offset
indicated by the PLC is not included.
PORGF
PORGS
ORG(X-C)n
R/W
R/W
PLCOF(X-C)
R/W
R/W
ADIOF(X-C)
Value for the selected axis of the zero offset with additive handwheel.
Variable
CNC
PLC
DNC
ORGROX
ORGROY
ORGROZ
ORGROA
ORGROB
ORGROC
ORGROI
ORGROJ
ORGROK
ORGROQ
ORGROR
ORGROS
GTRATY
R/W
R/W
R/W
TOOROS
R/W
R/W
R/W
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
443
C.
CNC
PLC
( section 13.2.5 )
DNC
MPGn
MP(X-C)n
MPSn
MPSSn
MPASn
MPLCn
Variable
CNC
PLC
DNC
FZONE
R/W
FZLO(X-C)
R/W
FZUP(X-C)
R/W
SZONE
R/W
SZLO(X-C)
R/W
SZUP(X-C)
R/W
TZONE
R/W
TZLO(X-C)
R/W
TZUP(X-C)
R/W
FOZONE
R/W
FOZLO(X-C)
R/W
FOZUP(X-C)
R/W
FIZONE
R/W
FIZLO(X-C)
R/W
FIZUP(X-C)
R/W
CNC
PLC
( section 13.2.7 )
DNC
FREAL
FREAL(X-C)
FTEO/X-C)
DNCF
PLCF
R/W
PRGF
DNCFPR
PLCFPR
R/W
PRGFPR
CNC 8055
CNC 8055i
444
M & EN MODELS
SOFT: V01.4X
PRGFRO
R/W
DNCFRO
PLCFRO
R/W
CNCFRO
PLCCFR
R/W
P r o gr a m m i ng m a n u a l
PLC
( section 13.2.8 )
DNC
PPOS(X-C)
POS(X-C)
TPOS(X-C)
APOS(X-C)
ATPOS(X-C)
DPOS(X-C)
Theoretical position of the probe when the probe touched the part.
FLWE(X-C)
DEFLEX
DEFLEY
DEFLEZ
DIST(X-C)
R/W
R/W
LIMPL(X-C)
R/W
R/W
LIMMI(X-C)
R/W
R/W
DPLY(X-C)
DRPO(X-C)
GPOS(X-C)n p
Coordinate of the selected axis, programmed in the (n) block of the program
(p).
CNC
PLC
( section 13.2.9 )
DNC
HANPF
Pulses received from 1st handwheel since the CNC was turned on.
HANPS
Pulses received from 2nd handwheel since the CNC was turned on.
HANPT
Pulses received from 3rd handwheel since the CNC was turned on.
HANPFO
Pulses received from 4th handwheel since the CNC was turned on.
HANDSE
HANFCT
R/W
HBEVAR
R/W
HBE handwheel. Reading enabled, axis being jogged and multiplying factor
(x1, x10, x100).
MASLAN
R/W
R/W
R/W
C.
Summary of internal CNC variables.
Variable
For handwheels with a selector button, it indicates whether that button has
been pressed or not.
MASCFI
R/W
R/W
R/W
MASCSE
R/W
R/W
R/W
( section 13.2.10 )
CNC
PLC
DNC
ASIN(X-C)
BSIN(X-C)
ASINS
BSINS
SASINS
"A" signal of the CNC sinusoidal feedback for the second spindle.
SBSINS
"B" signal of the CNC sinusoidal feedback for the second spindle.
Variable
CNC
PLC
DNC
SREAL
FTEOS
CNC 8055
CNC 8055i
DNCS
R/W
PLCS
R/W
PRGS
M & EN MODELS
SOFT: V01.4X
445
PRGSSO
R/W
DNCSSO
PLCSSO
R/W
CNCSSO
C.
SLIMIT
DNCSL
PLCSL
R/W
PRGSL
MDISL
R/W
RPOSS
TPOSS
RTPOSS
DRPOS
PRGSP
SYNCER
CNC
PLC
( section 13.2.12 )
DNC
SSREAL
SFTEOS
SDNCS
SPLCS
R/W
SPRGS
CNC 8055
CNC 8055i
R/W
SDNCSO
SPLCSO
R/W
SCNCSO
446
SDNCSL
SPLCSL
R/W
SPRGSL
P r o gr a m m i ng m a n u a l
SRPOSS
STPOSS
SRTPOS
SDRPOS
SPRGSP
CNC
PLC
DNC
ASPROG
( section 13.2.13 )
Speed programmed in M45 S (within the associated subroutine).
C.
Summary of internal CNC variables.
SPOSS
CNC
PLC
DNC
PLCMSG
( section 13.2.14 )
Number of the active PLC message with the highest priority.
PLCIn
R/W
PLCOn
R/W
PLCMn
R/W
PLCRn
R/W
(n) Register.
PLCTn
R/W
PLCCn
R/W
PLCMMn
R/W
( section 13.2.15 )
CNC
PLC
DNC
GUP n
R/W
LUP (a,b)
R/W
CALLP
Sercos variables.
Variable
CNC
PLC
( section 13.2.16 )
DNC
SETGE(X-C)
SETGES
R/W
SSETGS
SVAR(X-C) id
SVARS id
R/W
SSVARS id
R/W
TSVAR(X-C) id
Third attribute of the sercos variable for the (X-C) axis "id".
TSVARS id
Third attribute of the sercos variable for the main spindle "id".
TSSVAR id
Third attribute of the sercos variable for the second spindle "id".
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
447
C.
( section 13.2.17 )
Variable
CNC
PLC
DNC
HARCON
HARCOA
IDHARH
IDHARL
SOFCON
HDMEGA
KEYIDE
MODEL
CNC
PLC
( section 13.2.18 )
DNC
HARSWA
Hardware configuration.
HARSWB
Hardware configuration.
HARTST
Hardware test.
MEMTST
Memory test.
NODE
VCHECK
IONODE
IOSLOC
IOSREM
CNC
PLC
( section 13.2.19 )
DNC
OPMODE
Operating mode.
OPMODA
OPMODB
Type of simulation.
OPMODC
PLC
DNC
Other variables.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
CNC
NBTOOL
PRGN
BLKN
GSn
GGSA
GGSB
GGSC
GGSD
MSn
GMS
PLANE
LONGAX
MIRROR
SCALE
SCALE(X-C)
Scaling Factor applied only to the indicated axis. Reading from the PLC in
ten-thousandths.
ORGROT
ROTPF
ROTPS
PRBST
CLOCK
TIME
R/W
R/W
DATE
TIMER
448
( section 13.2.20 )
Variable
P r o gr a m m i ng m a n u a l
CNC
PLC
( section 13.2.20 )
DNC
CYTIME
PARTC
R/W
R/W
R/W
FIRST
KEY
R/W
R/W
R/W
keystroke code.
KEYSRC
R/W
R/W
R/W
ANAIn
ANAOn
R/W
R/W
R/W
CNCERR
PLCERR
DNCERR
AXICOM
TANGAN
TPIOUT(X-C)
DNCSTA
TIMEG
SELPRO
R/W
R/W
DIAM
R/W
R/W
PRBMOD
R/W
R/W
RIP
Linear theoretical feedrate resulting from the next loop (in mm/min).
TEMPIn
TIPPRB
TIPDIG
PANEDI
DATEDI
FBDIF(X-C)
CYCLEV
CYCEDI
DISBLO
It indicates the value of the total programmed distance in blocks with lookahead.
MIXPO(X..C)
Variable that indicates the axis position with the combined feedback.
FLWAC(X..C)
Variable that indicates the real error considering the second feedback.
C.
Summary of internal CNC variables.
Variable
The "KEY" variable can be "written" at the CNC only via the user channel.
The "NBTOOL" variable can only be used within the tool change subroutine.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
449
C.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
450
P r o gr a m m i ng m a n u a l
KEY CODE
Alpha-numeric keyboard and monitor
Key code
D.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
451
Key code
D.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
452
P r o gr a m m i ng m a n u a l
Key code
D.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
453
MC operator panel
Key code
D.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
454
P r o gr a m m i ng m a n u a l
Key code
D.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
455
Key code
D.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
456
P r o gr a m m i ng m a n u a l
Key code
D.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
457
Alphanumeric keyboard
Key code
D.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
458
P r o gr a m m i ng m a n u a l
Key code
D.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
459
Key code
D.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
460
P r o gr a m m i ng m a n u a l
Page 1001
Page 1002
Page 1003
Page 1004
Page 1005
Page 1006
Page 1007
Page 1008
Page 1009
Page 1010
Page 1011
Page 1012
Page 1013
Page 1014
Page 1015
Page 1016
Page 1017
Page 1018
Page 1019
Page 1020
Variables that may be accessed through high level language (part 1).
Page 1021
Variables that may be accessed through high level language (part 2).
Page 1022
Variables that may be accessed through high level language (part 3).
Page 1023
Variables that may be accessed through high level language (part 4).
Page 1024
Variables that may be accessed through high level language (part 5).
Page 1025
Variables that may be accessed through high level language (part 6).
Page 1026
Variables that may be accessed through high level language (part 7).
Page 1027
Variables that may be accessed through high level language (part 8).
Page 1028
Variables that may be accessed through high level language (part 9).
Page 1029
Variables that may be accessed through high level language (part 10).
Page 1030
Variables that may be accessed through high level language (part 11).
Page 1031
Variables that may be accessed through high level language (part 12).
Page 1032
Math operators.
E.
Programming assistance screens of the system.
Page 1000
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
461
E.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
462
Page 1033
Page 1034
Page 1035
Page 1036
Page 1037
Page 1038
Page 1039
Page 1040
Page 1041
Page 1042
Page 1043
Page 1044
Rounding: G36.
Page 1045
Page 1046
Page 1047
Chamfer: G39.
Page 1048
Page 1049
Page 1050
Page 1051
Programming of planes and longitudinal axis: G16, G17, G18, G19, G15.
Page 1052
Page 1053
Page 1054
Page 1055
Zero offsets.
Page 1056
Page 1057
Page 1058
Page 1059
Page 1060
Probing: G75.
Page 1061
Page 1062
Page 1063
Page 1064
Page 1065
Preparatory G functions associated with the canned cycles: G79, G80, G98
and G99.
Page 1066
Page 1067
P r o gr a m m i ng m a n u a l
Page 1091
Tool table.
Page 1092
Page 1093
Page 1094
Page 1095
Page 1096
Page 1097
Machine parameters.
Page 1098
Page 1099
Password table.
Page 1101
Page 1102
Page 1103
Page 1104
Page 1105
Page 1106
IF instruction.
Page 1107
Assignment blocks.
Page 1108
Math expressions.
Page 1109
PAGE instruction.
Page 1110
ODW instruction.
Page 1111
DW instruction.
Page 1112
IB instruction.
Page 1113
SK instruction.
Page 1114
Page 1115
KEYSRC instruction.
Page 1116
WBUF instruction.
Page 1117
SYMBOL instruction.
E.
Programming assistance screens of the system.
Page 1090
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
463
E.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
464
Page 1070
Page 1071
Page 1072
Page 1073
Page 1074
Page 1075
Page 1076
Page 1077
Page 1078
Page 1079
Page 1080
Page 1081
Page 1082
Page 1083
Page 1084
Page 1085
Page 1086
Page 1087
Page 1088
P r o gr a m m i ng m a n u a l
MAINTENANCE
Cleaning
The accumulated dirt inside the unit may act as a screen preventing the proper dissipation of the
heat generated by the internal circuitry which could result in a harmful overheating of the CNC and,
consequently, possible malfunctions.
To clean the operator panel and the monitor, a smooth cloth should be used which has been dipped
into de-ionized water and /or non abrasive dish-washer soap (liquid, never powder) or 75 alcohol.
Do not use highly compressed air to clean the unit because it could generate electrostatic
discharges.
F.
Maintenance
On the other hand, accumulated dirt can sometimes act as an electrical conductor and short-circuit
the internal circuitry, especially under high humidity conditions.
Fagor Automation shall not be held responsible for any material or physical damage derived from the
violation of these basic safety requirements.
To check the fuses, first unplug the unit from mains If the CNC does not turn on when flipping the power
switch, check that the fuses are the right ones and they are in good condition.
Avoid solvents. The action of solvents such as chlorine hydrocarbons, benzole, esters and ether may
damage the plastics used to make the front panel of the unit.
Do not get into the inside of the unit. Only personnel authorized by Fagor Automation may manipulate
the inside of this unit.
Do not handle the connectors with the unit connected to main AC power. Before handling these
connectors (I/O, feedback, etc.), make sure that the unit is not connected to main AC power.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
465
Maintenance
F.
CNC 8055
CNC 8055i
M & EN MODELS
SOFT: V01.4X
466
P r o gr a m m i ng m a n u a l
F.
CNC 8055
CNC 8055i
SOFT: V01.4X
467
F.
CNC 8055
CNC 8055i
SOFT: V01.4X
468