0% found this document useful (0 votes)
77 views264 pages

Man 8040t Opt

Uploaded by

NGUYEN HUU DAO
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
77 views264 pages

Man 8040t Opt

Uploaded by

NGUYEN HUU DAO
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 264

CNC 8040

(REF 0612)

·T· MODEL
(SOFT V12.1X)

OPERATING MANUAL
·T· Model (ref 0612)
(Soft V12.1x)
All rights reserved. No part of this documentation may be copied, transcribed, The content of this manual and its validity for the product described here has been
stored in a data backup system or translated into any language without Fagor verified. Even so, involuntary errors are possible, thus no absolute match is
Automation's explicit consent. guaranteed. Anyway, the contents of the manual is periodically checked making
The information described in this manual may be modified for technical reasons. and including the necessary corrections in a future edition.
FAGOR AUTOMATION S. COOP. Reserves the right to modify the contents of The examples described in this manual are for learning purposes. Before using
this manual without having to communicate such modifications. them in industrial applications, they must be properly adapted making sure that
Microsoft and Windows are registered trademarks of Microsoft Corporation USA. the safety regulations are fully met.
The other commercial trademarks belong to their respective owners.
‡ ‡ ‡ Operating manual

INDEX

About the product ................................................................................................................... I


Declaration of conformity...................................................................................................... III
Version history (T) ................................................................................................................. V
Safety conditions .................................................................................................................. XI
Warranty terms................................................................................................................... XV
Material returning terms ................................................................................................... XVII
Additional remarks............................................................................................................. XIX
Fagor documentation ........................................................................................................ XXI

CHAPTER 1 GENERAL CONCEPTS

1.1 Part programs............................................................................................................ 2


1.2 Monitor information layout ......................................................................................... 4
1.3 Keyboard layout......................................................................................................... 6
1.3.1 The EDIT, SIMUL and EXEC keys ........................................................................ 7
1.4 Layout of the operator panel...................................................................................... 9

CHAPTER 2 OPERATING MODES

2.1 Help systems ........................................................................................................... 13


2.2 Software update ...................................................................................................... 15
2.2.1 Load version using an external microprocessor .................................................. 15
2.2.2 Load version without using an external microprocessor...................................... 16
2.2.3 Loading the version using the explorer................................................................ 17
2.3 Slot of the memkey card as floppy disk drive (CARDA) .......................................... 19
2.4 Memkey Card + Compact Flash or KeyCF.............................................................. 21
2.4.1 Directory structure ............................................................................................... 22

CHAPTER 3 OPERATIONS VIA ETHERNET

3.1 Remote hard disk .................................................................................................... 26


3.2 Connection to a PC through WinDNC ..................................................................... 27
3.3 Access the CNC's hard disk from a PC ................................................................... 28

CHAPTER 4 EXECUTE / SIMULATE

4.1 Block search. Switching from simulation to execution............................................. 35


4.1.1 Operating modes ................................................................................................. 36
4.1.2 Automatic block search........................................................................................ 38
4.1.3 Manual block search............................................................................................ 39
4.1.4 Home searching restrictions ................................................................................ 41
4.1.5 Disabling the simulation and block search modes............................................... 41
4.2 Display..................................................................................................................... 42
4.2.1 Standard display mode ........................................................................................ 43
4.2.2 Position display mode.......................................................................................... 44
4.2.3 Part-program display ........................................................................................... 45
4.2.4 Subroutine display mode ..................................................................................... 46
4.2.5 Following error display mode............................................................................... 48
4.2.6 User display mode ............................................................................................... 48
4.2.7 Execution time display mode ............................................................................... 49
4.3 MDI .......................................................................................................................... 50
4.4 Tool inspection ........................................................................................................ 51
4.5 Graphics .................................................................................................................. 54 CNC 8040
4.5.1 Type of graphic .................................................................................................... 55
4.5.2 Display area......................................................................................................... 57
4.5.3 Zoom.................................................................................................................... 58
4.5.4 Graphic parameters ............................................................................................. 59
4.5.5 Clear screen ........................................................................................................ 61
4.5.6 Deactivate graphics ............................................................................................. 62
4.5.7 Measurement....................................................................................................... 63 ·T· MODEL
(SOFT V12.1X)
4.6 Single block ............................................................................................................. 64

i
‡ ‡ ‡ Operating manual

CHAPTER 5 EDIT

5.1 Edit .......................................................................................................................... 66


5.1.1 Editing in CNC language ..................................................................................... 67
5.1.2 TEACH-IN editing ................................................................................................ 68
5.1.3 Interactive editor .................................................................................................. 69
5.1.4 Profile editor ........................................................................................................ 70
5.2 Modify ...................................................................................................................... 78
5.3 Find ......................................................................................................................... 79
5.4 Replace ................................................................................................................... 80
5.5 Delete block............................................................................................................. 81
5.6 Move block .............................................................................................................. 82
5.7 Copy block............................................................................................................... 83
5.8 Copy to program...................................................................................................... 84
5.9 Import a program ..................................................................................................... 85
5.10 Editor parameters .................................................................................................... 86
5.10.1 Autonumbering .................................................................................................... 86
5.10.2 Selection of the axes for TEACH-IN editing. ....................................................... 87

CHAPTER 6 JOG

6.1 Jog........................................................................................................................... 94
6.1.1 Continuous Jog.................................................................................................... 94
6.1.2 Incremental jog .................................................................................................... 95
6.1.3 Path-jog mode. .................................................................................................... 96
6.2 Movement with an electronic handwheel................................................................. 98
6.2.1 General or individual handwheel mode ............................................................... 99
6.2.2 Path handwheel ................................................................................................. 100
6.2.3 Feed handwheel mode ...................................................................................... 101
6.2.4 "Additive handwheel" mode ............................................................................... 102
6.3 Spindle movement................................................................................................. 104

CHAPTER 7 TABLES

7.1 Zero offset table .................................................................................................... 107


7.2 Tool magazine table .............................................................................................. 108
7.3 Tool table............................................................................................................... 109
7.4 Tool Offset table .................................................................................................... 111
7.5 Tool geometry table............................................................................................... 115
7.5.1 How to edit the tool geometry table ................................................................... 118
7.6 Global and local parameters tables ....................................................................... 119
7.7 How to edit tables .................................................................................................. 120

CHAPTER 8 UTILITIES

8.1 Accessing the programs without using the explorer .............................................. 124
8.1.1 Directory ............................................................................................................ 124
8.1.2 Copy .................................................................................................................. 127
8.1.3 Delete ................................................................................................................ 128
8.1.4 Rename ............................................................................................................. 129
8.1.5 Protections......................................................................................................... 130
8.1.6 Change date ...................................................................................................... 132
8.2 Accessing the programs using the explorer .......................................................... 133

CHAPTER 9 STATUS

9.1 CNC....................................................................................................................... 140


9.2 DNC....................................................................................................................... 141
9.2.1 Phone call (telediagnosis) ................................................................................. 143
9.3 Sercos ................................................................................................................... 144
9.4 CAN ....................................................................................................................... 145
CNC 8040
CHAPTER 10 PLC

10.1 Edit ........................................................................................................................ 148


10.2 Compile ................................................................................................................. 153
10.3 Monitoring.............................................................................................................. 154
·T· MODEL 10.3.1 Monitoring with the PLC in operation and with the PLC stopped ...................... 160
(SOFT V12.1X) 10.4 Active messages ................................................................................................... 162
10.5 Active pages (screens) .......................................................................................... 163
10.6 Save program ........................................................................................................ 164
10.7 Restore program ................................................................................................... 165
10.8 Resources in use................................................................................................... 166
10.9 Statistics ................................................................................................................ 167

ii
‡ ‡ ‡ Operating manual

10.10 Logic analyzer ....................................................................................................... 169


10.10.1 Description of the work screen .......................................................................... 169
10.10.2 Selection of variables and trigger conditions ..................................................... 171
10.10.3 Execute trace..................................................................................................... 174

CHAPTER 11 SCREEN EDITOR

11.1 Utilities ................................................................................................................... 181


11.2 Editing user screens (pages) and symbols............................................................ 183
11.3 Graphic elements .................................................................................................. 187
11.4 Texts...................................................................................................................... 191
11.5 Modifications.......................................................................................................... 193

CHAPTER 12 MACHINE PARAMETERS

12.1 Machine parameter table....................................................................................... 196


12.2 Miscellaneous function tables "M" ......................................................................... 197
12.3 Leadscrew error compensation tables................................................................... 198
12.4 Cross compensation table ..................................................................................... 199
12.5 Operation with parameter tables ........................................................................... 200

CHAPTER 13 DIAGNOSIS

13.1 Configuration ......................................................................................................... 204


13.2 Hardware test ........................................................................................................ 205
13.3 Tests...................................................................................................................... 206
13.4 Adjustments........................................................................................................... 208
13.4.1 Circle geometry test........................................................................................... 208
13.4.2 Oscilloscope ...................................................................................................... 210
13.5 User ....................................................................................................................... 219
13.6 Hard disk ............................................................................................................... 219
13.7 Interesting notes .................................................................................................... 220

CHAPTER 14 CNC - PC COMMUNICATION. TELEDIAGNOSIS

14.1 Direct connection through the serial line or Ethernet............................................. 223


14.2 Telephone connection from a PC .......................................................................... 224
14.3 Normal phone call.................................................................................................. 225
14.4 Advanced phone call ............................................................................................. 226
14.4.1 Configuration of an incoming connection at the PC........................................... 228
14.5 Internet phone call ................................................................................................. 231

CNC 8040

·T· MODEL
(SOFT V12.1X)

iii
ABOUT THE PRODUCT

Basic characteristics.

Block processing time 12 ms

RAM memory 256 Kb expandable to 1Mb

Memkey Card memory 512 Kb expandable to 2 Mb

Hardware options.

Analog Digital

Hard disk / compact flash Option Option

Ethernet Option Option

RS-232 serial line. Standard Standard


16 digital inputs and 8 outputs (I1 to I16 and O1 to O8) Standard Standard

Another 40 digital inputs and 24 outputs (I65 to I104 and O33 to O56) Option Option

Probe inputs Standard Standard


Spindle (feedback input and analog output) Standard Standard

Electronic handwheels Standard Standard

4 axes (feedback and analog voltage) Option Option

Remote CAN modules, for digital I/O expansion (RIO). Option Option

Sercos servo drive system for Fagor servo drive connection. --- Option

CAN servo drive system for Fagor servo drive connection. --- Option
1M RAM - 2M Flash Option Option

Before start-up, check that machine carrying this CNC meets the 89/392/CEE
ruling.

CNC 8040

I
Software options.

Model

GP M MC MCO T TC TCO

Number of axes with standard software 4 4 4 4 2 2 2


Number of axes with optional software ----- ----- ----- ----- 4 4 4

Electronic threading ----- Stand Stand Stand Stand Stand Stand

Tool magazine management: ----- Stand Stand Stand Stand Stand Stand

Machining canned cycles ----- Stand Stand ----- Stand Stand -----

Multiple machining ----- Stand Stand ----- ----- ----- -----


About the product

Solid graphics ----- Stand Stand Stand Stand Stand Stand


Rigid tapping Stand Stand Stand Stand Stand Stand Stand

Tool live monitoring ----- Opt Opt Opt Opt Opt Opt

Probing canned cycles ----- Opt Opt Opt Opt Opt Opt

DNC Stand Stand Stand Stand Stand Stand Stand

COCOM version Opt Opt Opt Opt Opt Opt Opt

Profile editor Stand Stand Stand Stand Stand Stand Stand

Tool radius compensation Stand Stand Stand Stand Stand Stand Stand

Tangential control Opt Opt Opt Opt Opt Opt Opt

Retracing Opt Opt Opt Opt Opt Opt Opt

Setup assistance Stand Stand Stand Stand Stand Stand Stand


Irregular pockets with islands ----- Stand Stand Stand ----- ----- -----

Digitizing ----- Opt Opt ----- ----- ----- -----

Telediagnosis Opt Opt Opt Opt Opt Opt Opt

CNC 8040

II
DECLARATION OF CONFORMITY

The manufacturer:

Fagor Automation, S. Coop.

Barrio de San Andrés s/n, C.P. 20500, Mondragón -Guipúzcoa- (Spain).

We declare:

We declare under our exclusive responsibility the conformity of the product:


Numerical Control Fagor
8040 CNC

Referred to by this declaration with following directives:

Safety regulations.

EN 60204-1 Machine safety. Electrical equipment of the machines.

Regulation on electromagnetic compatibility.

EN 61000-4-3 Generic regulation on emissions in industrial environments.

EN 55011 Radiated. Class A, Group 1.

EN 61000-6-2 Generic regulation on immunity in industrial environments.

EN 61000-4-2 Electrostatic Discharges.

EN 61000-4-3 Radiofrequency Radiated Electromagnetic Fields.

EN 61000-4-4 Bursts and fast transients.

EN 61000-4-6 Conducted disturbance induced by radio frequency fields.

EN 61000-4-8 Magnetic fields to Mains frequency

EN 61000-4-11 Voltage fluctuations and Outages.

ENV 50204 Fields generated by digital radio-telephones

As instructed by the European Community Directives: 73/23/CEE modified by 93/68/


EEC on Low Voltage and 89/336/CEE modified by 92/31/EEC and 93/68/EEC on
Electromagnetic Compatibility and their updates.
In Mondragón, July 15th, 2005.

CNC 8040

III
VERSION HISTORY (T)

(lathe model)

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 Operation manual
OPT-TC Operation manual for the TC option.
OPT-CO Manual of the CO manual

Software V06.3x April 2002

List of features Manual


New expansion board models for the 8055i. INST / PRG
Bus CANOpen to control remote digital I/Os at the 8055i INST / OPT
New PLC instructions. IREMRD and OREMWR. INST
Leadscrew error compensation on rotary axes between 0-360 degrees. INST
PLC statistic deletion in a single softkey. OPT
Absolute reference mark management via Sercos (a.m.p. REFVALUE). INST

Software V08.0x December 2002

List of features Manual


New languages; Basque and Russian. INST
Additional command pulse. Exponential backlash peak. INST
Additional command pulse. Eliminate inside backlash peaks when changing quadrants. INST
Improved non-random tool magazine management. INST
Safety limit for the axis feedrate. INST
Safety limit for the spindle speed. INST
Execute the additional compensation block at the beginning of the next block. INST
Path-jog mode. INST / OPT
Update the variables of the machine parameters from the OEM program or subroutine. INST / PRG
HARCON variable returns the type of LCD and turbo board. INST / PRG
Variables to consult the actual (real) and theoretical feedrate of each axis. INST / PRG
Variable to consult the coordinates shown on the screen for each axis. INST / PRG
Variable to consult the position indicated by the Sercos drive of each axis. INST / PRG
Variable to consult the coordinate programmed in a block of a program. INST / PRG
Variable to consult the position indicated by the Sercos drive of the first and second spindles. INST / PRG
Variable to consult the theoretical turning speed of the first and second spindles. INST / PRG CNC 8040
Variable to consult the maximum spindle speed. INST / PRG
Feedback related variables. INST / PRG
Variable to consult a single PLC mark. INST / PRG
Variable to consult the PROBE cycle being executed. INST / PRG
Variable to know the number of the screen, created with WGDRAW, that is being consulted. INST / PRG
Variable to know the number of the item (element), created with WGDRAW, that is being INST / PRG
consulted.
Machine safety. Hardware errors disable the [CYCLE START] key. INST
Machine safety. Maximum machining feedrate. INST
Mandatory axis homing after feedback alarm when using direct feedback. INST
The "SERCOS816" board is now recognized.

V
List of features Manual
Write-protect the user arithmetic parameters (P1000-P1255) and OEM arithmetic parameters INST
(P2000-P2255).
New command of the configuration language. UNMODIFIED command. INST
Synchronize a PLC axis with a CNC axis. INST
Axes (2) controlled by a drive. The direction of the command LOOPCHG is defined on both axes. INST
Tool change via PLC. INST
New user arithmetic parameters (P1000 - P1255). PRG
New OEM arithmetic parameters (P2000 - P2255). PRG
RPT instruction. Execute blocks of a program located in RAM memory. PRG
Look-ahead. It analyzes up to 75 blocks in advance. PRG
OEM (manufacturer's) subroutines. Range SUB10000 - SUB20000. PRG
Oscilloscope function. OPT
Version history (T)

Load the version without using an external microprocessor. OPT


The screen data (feedrates, coordinates, etc.) do not show their zeros to the left.
Blackbox for registering errors. OPT
Telediagnosis through the RS232 serial line. OPT
Telediagnosis via WinDNC. OPT
Correct tool wear from tool inspection mode. OPT
Improvements to the profile editor. OPT
G60, G61 and G63. Minimum drilling peck. PRG
G86 and G87. "V" parameter for multi-entry threads. PRG
Save and load the parameters of the Sercos or CAN drive through the serial line. INST
TC option. Restore the last F, S and Smax values on power-up. INST
TC option. Possibility of hiding unused operations or cycles. INST
TC option. Improvements for executing a part-program. OPT-TC
TC option. It shows warning messages on a green stripe. OPT-TC
TC option. Limitations to tool calibration when there is a program in execution or in tool inspection OPT-TC
mode.
TC option. Turning cycle. It is now possible to define the finishing stock in X and Z. OPT-TC
TC option. Turning cycle. New level to define the type of corner. OPT-TC
TC option. Facing cycle. It is now possible to define the finishing stock in X and Z. OPT-TC
TC option. Facing cycle. New level to define the type of corner. OPT-TC
TC option. Taper turning cycle. New level to define the Z distance and the taper angle. OPT-TC
TC option. Threading cycle. It is possible to define the type of standardized thread (except face OPT-TC
threading).
TC option. Threading cycle. It is possible to repeat the last pass. OPT-TC
TC option. Threading cycle. New level for multi-entry threads. OPT-TC
TC option. Grooving cycle. New level for cut-off operations. OPT-TC
TC option. Profiling cycle. After roughing, it does not withdraw to the safety distance. OPT-TC
TC option. Profiling cycle. The first point of the profile is assumed as the starting point. OPT-TC
TC option. Profiling cycle. Finishing stock in XC and ZC profile cycles OPT-TC
TC option. Profiling cycle. Finishing tool for the XC and ZC cycles. OPT-TC

Software V08.1x July 2003

List of features Manual


New 24-character validation codes.
Pin ·9· of connector X1 (RS232 serial line) no longer supplies 5 V. INST
Smooth stop of probing movement. INST
Machining in round corner mode when changing the tool offset. INST
Bi-directional leadscrew compensation. INST
The management of the distance-coded reference mark via Sercos may be carried out through
the drive's second feedback. The drive version must be V4.10 or V5.10 ( or greater).
Machine parameters modifiable from an OEM program using variables INST / OEM
General machine parameters modifiable from the oscilloscope: TLOOK. OPT
CNC 8040 Axis machine parameters that may be modified from the oscilloscope: MAXFEED, JOGFEED. OPT
Improvements to look ahead. Machining feedrate variations are now smoother thanks to filtered
acc/dec.
G86 and G87. “J” parameter. Thread exit through the last point. PRG
TC option. Threading cycle. Thread exit through the last point. OPT-TC

VI
Software V10.0x February 2004

List of features Manual


MEM CARD slot as floppy drive (CARD-A). INST / OPT
Tandem axes. INST
Stop block preparation when executing a new "T". INST
Execute the stop signal when done with the "T" change. INST
Compact-flash type hard disk and Ethernet. INST
Incline axis. INST / PRG
Select the behavior of the feedrate for F0. INST
On Gantry axes, cross compensation is also applied to the slave axis. INST
Variable to select the active probe input. INST / PRG

Version history (T)


Variable to select the programming mode, radius or diameter. INST / PRG
Variable to know the address of the I/O CAN. INST / PRG
Variables to read the number of local and remote digital I/O available. INST / PRG
The HARCON variable recognizes Ethernet and compact flash. INST / PRG
While compiling the PLC program, the outputs are initialized to zero.
New marks to park the spindles. INST
Name the logic inputs and outputs with the axis name INST
Parameter RAPIDEN assumes the value of ·2·. Rapid key controlled by PLC. INST
Ending the execution of a block using a PLC mark (BLOABOR, BLOABORP). INST
Additive coupling between axes. INST
The EXEC and OPEN instructions may be used with Ethernet. PRG
G2/G3. The center coordinates may be left out if their value is zero. PRG
General parameters that may be modified from the oscilloscope or from an OEM program: INST/PRG/OPT
CODISET.
Axis parameters that may be modified from the oscilloscope or from an OEM program: INST/PRG/OPT
MAXFLWE1, MAXFLWE2.
Connection to a remote hard disk. INST / OPT
Connection to a PC through WinDNC. INST / OPT
Access the CNC's hard disk from a PC via FTP. INST / OPT
Telediagnosis. Normal phone call. OPT
Telediagnosis. Disable the CNC screen and keyboard from the PC. OPT
Functions M41 through M44 admit subroutines when the gear change is automatic. PRG
TC option. Accessing cycles and programs from the auxiliary screen. INST
TC option. ISO programming assistance. OPT-TC
TC option. Zero offset table management. OPT-TC
TC option. Point-to-point profiling cycle. When defining the points of the profile, when leaving a OPT-TC
data blank, the cycle assumes that it is the repetition of the previous one.
TC option. Tool calibration cycle. OPT-TC
TC option. After an execution or simulation error, it indicates the erroneous cycle. OPT-TC
TC option. In execution or simulation, it indicates the cycle number. OPT-TC
TC option. The CNC highlights the axis being moved in jog or with handwheels. OPT-TC
TC option. Copying a profile. OPT-TC
TC option. Select a program by indicating its number. OPT-TC
CO option. Copying a profile. OPT-CO

Software V10.1x December 2004

List of features Manual


Calculation of central unit heat dissipation . INST
Frequency filters for axes and spindles. INST
When activating tool radius compensation in the first motion block even if there is no movement INST
of the plane axes.
CAN servo system. INST CNC 8040
8055i model. New board "Axes2". INST
Sercos transmission speed at 8 MHz and 16 MHz. INST
Retracing function. If RETRACAC=2 , the retrace function does not stop at the M functions. INST
Retracing function. The RETRACAC parameter is initialized with [SHIFT][RESET].
Retracing function. The number of blocks being retraced has been increased to 75. INST
New variables for APOS(X-C) and ATPOS(X-C) to consult part coordinates. INST
New variable DNCSTA to consult DNC communication status. INST
New variable TIMEG to consult the status of the timer programmed with G4. INST
Manual intervention with additive handwheel. INST / OPT
A CNC emergency disables the SPENA signals and the Sercos drive brakes using the INST
emergency ramps.
Maintain G46 when the home search does not involve any axis of the angular transformation. INST / PRG

VII
List of features Manual
COMPMODE (P175). New tool radius compensation methods. INST / PRG
Automatic keyboard type identification. INST
Variable to indicate whether the handwheel selector button has been pressed or not. INST
Protect the access from the network to the hard disk using a password. INST
The HARCON variable recognizes the new axis board "Axes2". INST / PRG
Variable to analog the value of the analog inputs. INST / PRG
New MEXEC instruction. Execute a modal part-program. PRG
Look-ahead. Functions G74, G75 and G76 are possible. PRG
Up to 319 G functions now available. PRG
Machine parameters that may be modified from the oscilloscope or from an OEM program: INST/PRG/OPT
REFVALUE, REFDIREC, FLIMIT, SLIMIT.
Accessing the variables of the auxiliary spindle drive from the oscilloscope. OPT
Version history (T)

The simulations without axis movement ignore the G4. OPT


Sharing the CNC's hard disk with password. INST / OPT
Telediagnosis. Advanced phone call. OPT
Telediagnosis through the Internet. OPT
Telediagnosis. Disconnect the CNC from the Ethernet during telediagnosis. OPT
Maintain the feedrate selected in simulation. OPT
G151-G152. Programming in diameter or radius. PRG
TC option. Displaying the transformed coordinates with the C axis active OPT-TC

Software V10.13 April 2005

List of features Manual


New table to define the Sercos power with the Sercos816 board. INST
600 µs delay at the Sercos bus for transmissions at 8 MHz and 16 MHz. INST
Hirth axis pitch may be set in degrees via parameters. INST
Rollover positioning axis. Movement in G53 via the shortest way. INST

Software V10.14x May 2005

List of features Manual


New table to define the Sercos power with the Sercos816 board. INST

Software V12.01 Ref. 0508

List of features Manual


Analog I/O expansion and PT100 INST
CAN bus speed with remote digital I/O modules INST
The CNC supports Memkey Card + Compact Flash or KeyCF OPT
File explorer to show the contents of the storage devices INST / OPT
Loading the version from the Memkey card o from the hard disk OPT
New way to search home that may be selected through g.m.p. I0TYPE=3 INST
Improved block search. Switching from simulation to execution INST / OPT
CNC 8040 New repositioning mode that is activated by setting g.m.p. REPOSTY=1 INST/PRG/OPT
Square-sine ramps on open-loop spindle INST
Numbering of the local inputs/outputs of the expansion modules using plc machine parameters INST
Default value of axis and spindle machine parameter ACFGAIN = YES INST
Setting axis parameters FFGAIN and FFGAIN2 with two decimals INST
Up to 400 (DEF) symbols now available at the PLC INST
New HTOR variable that indicates the tool radius being used by the CNC INST
Spindle override in the whole threading cycle at 100% PRG
Generating an ISO-coded program OPT-TC

VIII
Software V12.11 Ref. 0602

List of features Manual


New G145. Temporary cancellation of tangential control PRG
Handwheel feedback taken to a free feedback connector INST
New variables: RIP, GGSE, GGSF, GGSG, GGSH, GGSI, GGSJ, GGSK, GGSL, GGSM, INST
PRGSP, SPRGSP and PRBMOD
Automatic keyboard type identification INST / PRG
G04 K0. Block preparation interruption and coordinate update PRG
Possibility to view all the active PLC messages OPT-TC
In the cycles, when selecting CSS, the screen shows "CSS" instead of "S" OPT-TC
Icon for coolant ON/OFF in positioning cycles 1 and 2 OPT-TC

Version history (T)


Software V12.13 Ref. 0606

List of features Manual


Smooth stop when homing the axes, it may be selected with a.m.p. I0TYPE INST

Software V12.14 Ref. 0608

List of features Manual


Selecting the additive handwheel as handwheel associated with the axis INST

CNC 8040

IX
X
Version history (T)

CNC 8040
SAFETY CONDITIONS

Read the following safety measures in order to prevent damage to personnel, to this
product and to those products connected to it.

This unit must only be repaired by personnel authorized by Fagor Automation.

Fagor Automation shall not be held responsible for any physical or material damage
derived from the violation of these basic safety regulations.

Precautions against personal damage

‡ 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, damage, do no work in explosive environments.

Precautions against product damage

‡ 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).
CNC 8040

XI
‡ Install this unit in the proper place
It is recommended to install the CNC away from coolants, chemical products,
possible blows etc. which could damage it.
This unit complies with the European directives on electromagnetic compatibility.
Nevertheless, it is recommended to keep it away from sources of electromagnetic
disturbance such as.
• Powerful loads connected to the same AC power line as this equipment.
• Nearby portable transmitters (Radio-telephones, Ham radio transmitters).
• Nearby radio / TC transmitters.
• Nearby arc welding machines
• Nearby High Voltage power lines
Safety conditions

• Etc.
‡ Enclosures
The manufacturer is responsible of assuring that the enclosure involving the
equipment meets all the currently effective directives of the European
Community.
‡ Avoid disturbances coming from the machine tool
The machine tool must have decoupled all those elements capable of generating
interference (relay coils, contactors, motors, etc.)
• DC relay coils. Diode type 1N4000.
• AC relay coils. RC connected as close to the coils as possible with
approximate values of R=220 Ω / 1 W and C=0,2 µF / 600 V.
• AC motors. RC connected between phases, with values of R=300 Ω / 6 W and
C=0,47 µF / 600 V
‡ Use the proper power supply
Use an external regulated 24 Vdc power supply for the inputs and outputs.
‡ Grounding of the power supply
The zero volt point of the external power supply must be connected to the main
ground point of the machine.
‡ Analog inputs and outputs connection
It is recommended to connect them using shielded cables and connecting their
shields (mesh) to the corresponding pin.
‡ Ambient conditions
The working temperature must be between +5 ºC and +40 ºC (41ºF and 104º F)
The storage temperature must be between -25 ºC and +70 ºC. (-13 ºF and 158 ºF)
‡ Central unit enclosure (8055i CNC)
Guarantee the required gaps between the central unit and each wall of the
enclosure. Use a DC fan to improve enclosure ventilation.
‡ 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.

CNC 8040

XII
Protections of the unit itself

‡ Central Unit
It has a 4 A 250V external fast fuse (F).

Safety conditions
‡ Inputs-Outputs
All the digital inputs and outputs have galvanic isolation via optocouplers between
the CNC circuitry and the outside.

Precautions during repair

Do not open this unit. Only personnel authorized by Fagor Automation


may open this unit.
Do not handle the connectors with the unit connected to mains. Before
manipulating the connectors (inputs/outputs, feedback, etc.) make
sure that the unit is not connected to AC power.

Safety symbols

‡ Symbols which may appear on the manual.

Symbol for danger or prohibition.


It indicates actions or operations that may cause damage to people or
to units.

Warning or caution symbol.


It indicates situations that may be caused by certain operations and
the actions to be taken to prevent them.

CNC 8040
Obligation symbol.
It indicates actions and operations that must be carried out.

Information symbol.
i It indicates notes, warnings and suggestions.

XIII
XIV
Safety conditions

CNC 8040
WARRANTY TERMS

All products manufactured or marketed by Fagor Automation has a warranty period


of 12 months from the day they are shipped out of our warehouses.

The mentioned warranty covers repair material and labor costs, at Fagor facilities,
incurred in the repair of the products.

Within the warranty period, Fagor will repair or replace the products verified as being
defective.

Fagor is committed to repairing or replacing its products from the time when the first
such product was launched up to 8 years after such product has disappeared from
the product catalog.

It is entirely up to Fagor to determine whether a repair is to be considered under


warranty.

Excluding clauses

The repair will take place at our facilities. Therefore, all shipping expenses as well
as travelling expenses incurred by technical personnel are NOT under warranty even
when the unit is under warranty.

This warranty will be applied so long as the equipment has been installed according
to the instructions, it has not been mistreated or damaged by accident or negligence
and has been manipulated by personnel authorized by Fagor.

If once the service call or repair has been completed, the cause of the failure is not
to be blamed the FAGOR product, the customer must cover all generated expenses
according to current fees.

No other implicit or explicit warranty is covered and Fagor Automation shall not be
held responsible, under any circumstances, of the damage which could be originated.

Service agreements

Service and Maintenance Contracts are available for the customer within the
warranty period as well as outside of it.

CNC 8040

XV
XVI
Warranty terms

CNC 8040
MATERIAL RETURNING TERMS

When returning the remote modules or the central unit, pack it in its original package
and with its original packaging material. If 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 lb).
2. Attach the unit label indicating the owner of the unit, his/her address, the name
of the contact person, the type of unit and the 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, above all protect 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 8040

XVII
XVIII
Material returning terms

CNC 8040
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.

In case of a malfunction or failure, disconnect it and call the technical service. Do not
open this unit.

CNC 8040

XIX
XX
Additional remarks

CNC 8040
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.

WGDRAW Manual
Directed to people who use the WGDRAW to create screens.
It is supplied in a floppy disk with the application.
CNC 8040

XXI
XXII
Fagor documentation

CNC 8040
GENERAL CONCEPTS

1
This manual describes how to operate with the CNC with the monitor-keyboard and
the operator panel.

The Monitor-Keyboard unit consists of:


• The Monitor or CRT screen, which is used to show the required system
information.
• The keyboard is used to communicate with the CNC; the operator may request
information on commands or change the CNC status using new instructions.

CNC 8040

·T· MODEL
(SOFT V12.1X)

1
‡ ‡ ‡ Operating manual

1.1 Part programs

Editing

To create a part-program, access the Edit mode.

The new part-program edited is stored in the CNC's RAM memory. A copy of the part-
programs may be stored in the "MemKey Card", at a PC connected through serial
1. line 1 or 2 or in the hard disk (HD). See UTILITIES mode.

When using a PC through serial line 1 or 2, proceed as follows:


GENERAL CONCEPTS
Part programs

• Execute the "Fagor50.exe" applications program at the PC.


• Activate DNC communications at the CNC.
• Select the work directory.
Option: Utilities\ Directory\ Serial L.\ Change directory.

With the Edit mode of operation, part-programs residing in the CNC's RAM memory
may be modified. To modify a program stored in the "MemKey Card", in a PC or in
the hard disk, it must be previously copied into RAM memory.

Execution

Part-programs stored anywhere may be executed or simulated.

The user customizing programs must be in RAM memory so the CNC can execute
them.

The GOTO and RPT instructions cannot be used in programs that are executed from
a PC connected through the serial lines.

Only subroutines stored in the CNC's RAM memory can be executed. Therefore, to
execute a subroutine stored in the "MemKey Card", in a PC or in the hard disk, it must
be first copied into the CNC's RAM memory.

From a program in execution, another program can be executed which is in RAM


memory, in the "MemKey Card", in a PC or in the hard disk using the EXEC
instruction.

Utilities

The utilities mode, lets display the part-program directory of all the devices, make
copies, delete, rename and even set the protections for any of them.

Ethernet

When having the Ethernet option and the CNC has been configured as a node within
the computer network, the following is possible from any PC of the network:
CNC 8040 • Access the part-program directory of the Hard Disk (HD).
• Edit, modify, delete, rename, etc. the programs stored on the hard disk.
• Copy programs from the hard disk to the PC and vice versa.

·T· MODEL
(SOFT V12.1X)

2
‡ ‡ ‡ Operating manual

Operations that may be carried out with part-programs:

RAM CARD A HD DNC

See the program directory of ... Yes Yes Yes Yes


See the subroutine directory of ... Yes No No No

Create the work directory from ... No No No No


Change the work directory from ... No No No Yes

Edit a program from ... Yes No No No


Modify a program from ...
Delete a program from ...
Yes
Yes
No
Yes
No
Yes
No
Yes
1.

GENERAL CONCEPTS
Part programs
Copy from/to RAM memory to/from ... Yes Yes Yes Yes
Copy from/to CARD A to/from ... Yes Yes Yes Yes
Copy from/to HD to/from ... Yes Yes Yes Yes
Copy from/to DNC to/from ... Yes Yes Yes Yes

Rename a program from ... Yes Yes Yes No


Change the comment of a program from ... Yes Yes Yes No
Change the protections of a program from ... Yes Yes Yes No
Execute a part-program from ... Yes Yes Yes Yes
Execute a user program from ... Yes No No No
Execute a PLC program from ... Yes * No No
Execute programs with GOTO or RPT instructions from ... Yes Yes Yes No
Execute subroutines residing in ... Yes No No No
Execute programs with the EXEC instruction, in RAM from ... Yes Yes Yes Yes
Execute programs with the EXEC instruction, in CARD A from ... Yes Yes Yes Yes
Execute programs with the EXEC instruction, in HD from ... Yes Yes Yes Yes
Execute programs with the EXEC instruction, in DNC from ... Yes Yes Yes No

Open programs with the OPEN instruction, in RAM from ... Yes Yes Yes Yes
Open programs with the OPEN instruction, in CARD A from ... Yes Yes Yes Yes
Open programs with the OPEN instruction, in HD from ... Yes Yes Yes Yes
Open programs with the OPEN instruction, in DNC from ... Yes Yes Yes No

Via Ethernet:
See from a PC the program directory of ... No No Yes No
See from a PC the subroutine directory of ... No No No No
See from a PC, a directory in ... No No No No

(*) If it is not in RAM memory, it generates the executable code in RAM and it executes
it.

CNC 8040

·T· MODEL
(SOFT V12.1X)

3
‡ ‡ ‡ Operating manual

1.2 Monitor information layout

The monitor is divided into the following areas or display windows:

1.
GENERAL CONCEPTS
Monitor information layout

1. This window indicates the selected operating mode, as well as the program
number and the number of active blocks. The program status is also indicated
(in execution or interrupted) and if the DNC is active.
2. This window indicates the time in the " hours : minutes : seconds".
3. This window displays the messages sent to the operator from the part program
or via DNC.
The last message received will be shown regardless of where it has come from.
4. This window will display messages from the PLC.
If the PLC activates two or more messages, the CNC will always display the one
with the highest priority, which is the message with the smallest number. In this
way, MSG1 will have the highest priority and MSG128 will have the lowest.
In this case the CNC will display the character + (plus sign), indicating that there
are more messages activated by the PLC, it being possible to display them if the
ACTIVE MESSAGE option is accessed in the PLC mode.
In this window the CNC will also display the character * (asterisk), to indicate that
at least one of the 256 user-defined screens is active.
The screens which are active will be displayed, one by one, if the ACTIVE PAGES
option is accessed in the PLC mode.
5. Main window.
Depending on the operating mode, the CNC will show in this window all the
information necessary.
When a CNC or PLC error is produced the system displays this in a superimposed
horizontal window.
The CNC will always display the most important error. The CNC will show the [ª]
key to indicate that another less important error has also occurred and to press
this key to view its message. The CNC will show the [©] key to indicate that
another more important error has also occurred and to press this key to view its
message.
CNC 8040
6. Editing window.
In some operating modes the last four lines of the main window are used as editing
area.

·T· MODEL
(SOFT V12.1X)

4
‡ ‡ ‡ Operating manual

7. CNC reports window. (errors detected in edition, nonexistent program, etc.)


8. This window shows the following information:
SHF Indicates that the [SHIFT] key has been pressed to activate the
second function of the keys.
For example, if the [9] key is pressed after the [SHIFT] key, the
CNC will understand that the "$" character is required.
CAP This indicates capital letters ([CAPS] key). The CNC will
understand that capital letters are required whenever this is active.
INS/REP Indicates if it is insert mode (INS) or substitution (REP) mode. It is
selected by means of the [INS] key. 1.
MM/INCH Indicates the unit system (millimeters or inches) selected for

GENERAL CONCEPTS
Monitor information layout
display.
9. Shows the different options which can be selected with soft-keys F1 thru F7.

CNC 8040

·T· MODEL
(SOFT V12.1X)

5
‡ ‡ ‡ Operating manual

1.3 Keyboard layout

Depending on the utility of the different keys, the CNC keyboard may be considered
to be laid out as follows:

Alphanumeric keyboard for the data entry in memory, selection of axes, tool offset,
etc.

Keys which allow the information shown on screen to be moved

1. forward or backward, page to page or line to line, as well as moving


the cursor all over the screen.

[CL][CLEAR] To delete the character over which the cursor is positioned or the last
GENERAL CONCEPTS
Keyboard layout

one entered if the cursor is at the end of the line.


[INS] To select the insert or overwrite mode.
[ENTER] To validate the CNC and PLC commands generated in the editing
window.
[HELP] To access to the help system in any operating mode.
[RESET] To initialize the history of the program in execution, by assigning it the
values defined by machine parameters. It is necessary for the program
to be stopped for the CNC to accept this key.
[ESC] To go back to the previous operating option shown on the monitor.
[MAIN MENU]To access the CNC's main menu directly.
[RECALL] In conversational modes, it assigns the value of a coordinate to the
selected field.
[PPROG] In the conversational modes, it accesses the list of part-programs
stored.
[F1] to [F7] Softkeys or functions keys for selecting the different operating options
shown on the monitor.

Specific keys to select canned cycles in the MC and TC work modes.

There are also the following special keystroke sequences:

[SHIFT]+[RESET]
The result of this keystroke sequence is the same as turning the CNC off and back
on. This option must be used after modifying the CNC's machine parameters so
they're assumed by the CNC.

[SHIFT]+[CL]
This keystroke sequence clears (blanks out) the CRT screen. Press any key to
restore its normal state.
If an error occurs or a PLC/CNC message is received while the screen is blank,
the screen restores its normal state.

[SHIFT]+[next page]
To display on the right hand side of the screen the position of the axes and the
status of the program in progress.
It may be used in any operating mode.
Press the same keystroke sequence to restore the previous display.
CNC 8040

·T· MODEL
(SOFT V12.1X)

6
‡ ‡ ‡ Operating manual

1.3.1 The EDIT, SIMUL and EXEC keys

The keyboards of the new look for the M and T models have three new keys:
"EDIT" To access the editing mode.
"SIMUL" To access the simulation mode.
"EXEC" To access the execution mode.

In the MC, TC and TCO modes, these direct accesses are available when working
in M or T mode (non-conversational). To access them, use the "P.PROG" key instead
of "EDIT" and the "GRAPHICS" key instead of "SIMUL". 1.

GENERAL CONCEPTS
Keyboard layout
Direct access to the editing mode, "EDIT" key.

When pressing this key in the editing and simulation modes, one edits the last
program simulated or executed. If the corresponding program is being executed or
simulated, one will edit the one that was last edited.

When pressing this key in any other work mode, it starts editing the last program
edited.

If there is no previous program, it requests the name of a new program.

To restrict the editing to the last program edited, simulated or executed, assign to the
NEXEDI variable one of the following values:
NEXEDI=0 Not restricted, it opens the last one edited, simulated or executed.
NEXEDI=1 Always the last program edited.
NEXEDI=2 Always the last program simulated.
NEXEDI=3 Always the last program executed.

If the corresponding program is being executed or simulated, it issues a warning. If


there is no previous program, it requests the name of a new program.

Direct access to the simulation mode, "SIMUL" key.

Pressing this key starts the simulation of the last program edited, simulated or
executed. If there is no previous program, it requests the name of a new program.

If the simulation or execution mode is active, only the active mode will be shown, no
program is selected.

To restrict the simulation to the last program edited, simulated or executed, assign
to the NEXSIM variable one of the following values:
NEXSIM=0 Not restricted, it opens the last one edited, simulated or executed.
NEXSIM=1 Always the last program edited.
NEXSIM=2 Always the last program simulated.
NEXSIM=3 Always the last program executed.

If the corresponding program is being executed or simulated, it issues a warning. If


there is no previous program, it requests the name of a new program.

CNC 8040

·T· MODEL
(SOFT V12.1X)

7
‡ ‡ ‡ Operating manual

Direct access to the execution mode, "EXEC" key.

Pressing this key starts the execution of the last program edited, simulated or
executed. If there is no previous program, it requests the name of a new program.

If the simulation or execution mode is active, only the active mode will be shown, no
program is selected.

To restrict the execution to the last program edited, simulated or executed, assign
to the NEXEXE variable one of the following values:

1. NEXEXE=0
NEXEXE=1
Not restricted, it opens the last one edited, simulated or executed.
Always the last program edited.
GENERAL CONCEPTS
Keyboard layout

NEXEXE=2 Always the last program simulated.


NEXEXE=3 Always the last program executed.

If the corresponding program is being executed or simulated, it issues a warning. If


there is no previous program, it requests the name of a new program.

CNC 8040

·T· MODEL
(SOFT V12.1X)

8
‡ ‡ ‡ Operating manual

1.4 Layout of the operator panel

Depending on the utility of the different parts, the CNC operator panel may be
considered to be laid out as follows.

1.

GENERAL CONCEPTS
Layout of the operator panel
1. Position of the emergency button or electronic handwheel.
2. Keyboard for manual movement of axes.
3. Selector switch with the following functions:
Select the multiplication factor of the number of pulses from the electronic
handwheel (1, 10 or 100).
Select the incremental value of the movement of the axes in movements made
in the "JOG" mode.
Modify the programmed axis feedrate between 0% and 120%
4. Keyboard which allows the spindle to be controlled, it being possible to activate
it in the desired direction, stop it or vary the programmed turning speed between
percentage values established by means of spindle machine parameters
"MINSOVR" and "MAXOVR", with an incremental step established by means of
the spindle machine parameter "SOVRSTEP".
5. Keyboard for CYCLE START and CYCLE STOP of the block or program to be
executed.

CNC 8040

·T· MODEL
(SOFT V12.1X)

9
‡ ‡ ‡ Operating manual

1.
GENERAL CONCEPTS
Layout of the operator panel

CNC 8040

·T· MODEL
(SOFT V12.1X)

10
OPERATING MODES

2
After turning on the CNC, or after pressing the sequence of [SHIFT]+[RESET] keys,
the FAGOR logo will appear in the main window of the monitor or the screen
previously prepared as page 0 by means of the screen customizing (graphic editor)
tools.

If the CNC shows the message " Initialize? (ENTER / ESC) ", it should be borne in
mind that after pressing the [ENTER] key, all the information stored in memory and
the machine parameters are initialized to default values indicated in the installation
manual.

On the lower part of the screen the main CNC menu will be shown, it being possible
to select the different operating modes by means of the softkeys F1 thru F7.
Whenever the CNC menu has more options than number of softkeys (7), the
character "+" will appear in softkey F7. If this softkey is pressed the CNC will show
the rest of the options available.

Main menu options

The options which the main CNC menu will show after turning it on, after pressing
the key sequence [SHIFT]+[RESET] or after pressing the [MAIN MENU] softkey are:
EXECUTE Allows the execution of part programs in automatic or single
block.
SIMULATE Allows simulation of parts programs in several modes.
EDIT Allows editing new and already-existing part programs.
JOG Allows manual control of the machine by means of the operator
panel keys.
TABLES Allows CNC tables relating to part programs (zero offsets, tool
offsets, tools, tool magazine as well as global or local arithmetic
parameters) to be manipulated.
UTILITIES Allows program manipulation (copy, delete, rename, etc.)
STATUS It shows the CNC status and that of the DNC communication
lines. It also lets activate and deactivate the communication
with a PC through DNC.
PLC Allows operation with the PLC (edit the program, monitor,
change the status of its variables, access to the active
messages, errors, pages, etc).
GRAPHIC EDITOR
Allows, by means of a simple graphics editor, the creation of
user-defined screens (pages), which can later be activated CNC 8040
from the PLC, used in customized programs or presented
when the unit is powered on (page 0).
MACHINE PARAMETERS
Allows the machine parameters to be set to adapt the CNC to
the machine. ·T· MODEL
(SOFT V12.1X)
DIAGNOSIS Makes a test of the CNC.

11
‡ ‡ ‡ Operating manual

While the CNC is executing or simulating a part program it allows any other type of
operating mode to be accessed without stopping the execution of the program. In this
way it is possible to edit a program while another is being executed or simulated.

It is not possible to edit the program which is being executed or simulated, nor execute
or simulate two part programs at the same time.

2.
OPERATING MODES

CNC 8040

·T· MODEL
(SOFT V12.1X)

12
‡ ‡ ‡ Operating manual

2.1 Help systems

The CNC allows access to the help system (main menu, operating mode, editing of
commands, etc.) at any time. To do this, you must press the [HELP] key and the CNC
will show the corresponding help page in the main window of the screen.

If the help consists of more than one page of information, the symbol(a) indicating
that this key can be pressed to access the following page or the symbol(b) indicating
that it is possible to press this key to access the previous page.

2.
(a) (b)

The following assistance is available:

OPERATING MODES
Help systems
Operating assistance

This is accessed from the operating mode menu, or when one of these has been
selected but none of the options shown have been selected. In all these cases, the
softkeys have a blue background color.

It offers information on the operating mode or corresponding option.

While this information is available on screen it is not possible to continue operating


the CNC via the softkeys, it being necessary to press the [HELP] key again to recover
the information which was on the main screen before requesting help and continuing
with the operation of the CNC.

The help system can also be abandoned by pressing the [ESC] key or the [MAIN
MENU] key.

Editing assistance

This is accessed once one of the editing options has been selected (part programs,
PLC program, tables, machine parameters, etc.). In all these cases, the softkeys
have a white background color.

It offers information on the corresponding option. While this information is available,


it is possible to continue operating with the CNC.

If the [HELP] key is pressed again, the CNC analyzes if the present editing status
corresponds to the same help page or not.

If another page corresponds to it, it displays this instead of the previous one and if
the same one corresponds, it recovers the information which was in the main window
before requesting help.

The help menu can also be abandoned after pressing the [ESC] key, to return to the
previous operating option, or the [MAIN MENU] key to return to the main menu.

CNC 8040

·T· MODEL
(SOFT V12.1X)

13
‡ ‡ ‡ Operating manual

Canned cycle editing assistance

It is possible to access this help when editing a canned cycle.

It offers information on the corresponding canned cycle and an editing assistance for
the selected canned cycle is obtained at this point.

For the user's own cycles a similar editing assistance can be obtained by means of
a user program. This program must be prepared with screen customizing
instructions.
2. Once all the fields or parameters of the canned cycle have been defined the CNC
will show the information existing in the main window before requesting help.
OPERATING MODES
Help systems

The canned cycle which is programmed by means of editing assistance will be shown
in the editing window, and the operator can modify or complete this block before
entering it in memory by pressing the [ENTER] key.

Editing assistance can be abandoned at any time by pressing the [HELP] key. The
CNC will show the information which existed on the main window before requesting
help and allows programming of the canned cycle to continue in the editing window.

The help menu can also be abandoned after pressing the [ESC] key, to return to the
previous operating option, or the [MAIN MENU] key to return to the main menu.

CNC 8040

·T· MODEL
(SOFT V12.1X)

14
‡ ‡ ‡ Operating manual

2.2 Software update

2.2.1 Load version using an external microprocessor

Use the slot occupied by the memkey card.


1. Turn the CNC off
2. Remove the memkey card and insert the memory card that contains the software
version to be updated.
3. Set the SW1 switch to "1". 2.

Software update
OPERATING MODES
4. Turn the CNC on.
The screen will show the software updating page with the following information:
• Installed version and new version
• Checksum of the installed version and that of the new one.
5. Press the [Update software] softkey
The CNC will display the various stages of the software updating process and
their status.
When done with the updating process, the CNC will display a new screen with
the steps to follow.
6. Turn the CNC off
7. Remove the memkey card and insert the memory card.
8. Set the SW1 switch to "0".
9. Turn the CNC on. The software version is now updated.

With the memory card that contains the software version, the CNC CANNOT
executed anything.
If the CNC is turned on with the memkey card in and the SW1 switch set to
"1", the CNC does not come on, but its data is NOT affected.

CNC 8040

·T· MODEL
(SOFT V12.1X)

15
‡ ‡ ‡ Operating manual

2.2.2 Load version without using an external microprocessor.

This option is available on models whose identification label indicates "03a" or later.
This method can only be used to update the software from version V7.01 or later (mill
model) or from version V08.01 or later (lathe model).

It is not necessary to turn the CNC off and back on or actuate the external switch to
update the software version. The software version is updated as follows.
1. Remove the memkey card and insert the memory card that contains the software

2. version to be updated.
2. Access the diagnosis mode > Configuration > Software configuration and press
the [Load version] softkey.
Software update
OPERATING MODES

The CNC will show the software updating stages and their status. If there is no
memory card with the software version, it will show the corresponding error
message.
3. When done updating it, remove the memory card that contains the software
version and insert the memkey card back.

With the memory card that contains the software version, the CNC CANNOT
executed anything.

CNC 8040

·T· MODEL
(SOFT V12.1X)

16
‡ ‡ ‡ Operating manual

2.2.3 Loading the version using the explorer

From version V11.01 on (mill model) and from version V12.01 on (lathe model), the
code may be loaded from the Memkey Card or from the hard disk.

The software is loaded from the <Diagnosis> mode using the option >Configuration
/ Software configuration / Load version<

It displays the following window:

2.

Software update
OPERATING MODES
The left panel shows the system devices available and their relevant subdirectories.

The right panel is divided in two halves:


‡ The top shows all the files contained in the software versions (".fgr" extension).
‡ The bottom shows the data identifying the version selected in the top half.

Loading the version

To install a version, the user must follow the following procedure:


1. Select, in the left panel, the unit containing the new version to be installed (Card
A or Hard disk).
2. Place the cursor in the right panel, on the ".fgr" file and press the softkey
<INSTALL>. After carrying out this task, it shows a dialog box requesting
confirmation to resume the process:
F5 [OK] resume the process
[ESC] abort the process

3. Once the resuming of the operation has been confirmed, the CNC verifies that
the file to be installed is correct. During this operation, it displays a process bar
with the message "checking..."
4. Then, it loads the code contained in the ".fgr" file into the system flash memory.
During this operation, it displays a process bar with the message "loading..."
5. Finally, it verifies the checksum of the new version installed. This operation is CNC 8040
identified with the message "wait...".

To install a new version located in a "remote hard disk", it first transfers the
i ".fgr" file to the "hard disk" and then it loads the version as mentioned earlier.
·T· MODEL
(SOFT V12.1X)

If there is a CNC power outage during any of these processes, when powered back
up, it goes on loading the version from the interruption point.

17
‡ ‡ ‡ Operating manual

If the interruption takes place while saving into the flash memory, it first checks the
version file.

Saving the current CNC version.

The CNC can save the version currently installed. The user can choose whether to
save it into the Memkey Card or into the Hard disk.

2. To save the current software version, access the <Diagnosis> mode and select the
option <Configuration / Software configuration / Load version>.
Software update
OPERATING MODES

Then, follow this procedure:


• Select the CNC directory (located in the left panel) of the explorer.
• Switch over to the right panel and select the ".fgr" file.
• Press the <Actions> softkey, <Copy [C]> option.
• Select the directory of the Memkey Card or Hard disk where to save the version.
• Press the <Actions> softkey, <Paste [V]> option.

CNC 8040

·T· MODEL
(SOFT V12.1X)

18
‡ ‡ ‡ Operating manual

2.3 Slot of the memkey card as floppy disk drive (CARDA)

The slot of the memkey card can also be used as a floppy disk drive. To do this, use
the softkey menu to identify the slot as CARDA. As a storing device, use either Fagor
memory cards or standard off-the-shelf cards "INTEL series 100".

Only part-programs and PLC message and error programs may be stored in the
memory card. It is not possible to execute directly from the memory card. The CNC
with the memory card in will remain in minimum configuration as if there were nothing
in the slot for CARDA.
2.

OPERATING MODES
Slot of the memkey card as floppy disk drive (CARDA)
Copying files between the CNC and the PC

Use the WinDNC software (version V4.0 or later) to read and write onto these memory
cards from a PC so the CNC understands it. Next, a description on how to copy a
program from a PC to the CNC. The inverse operation, from the CNC to the PC is
done in a similar way.
1. At the PC. Copy the programs in the memory card using the WinDNC.
2. At the CNC. Remove the memkey card and insert the memory card. Copy from
CARDA the program or programs into the memory or the hard disk of the CNC.
3. At the CNC. Remove the memory card and insert the memkey card back in order
to be able to execute. "Cycle Start" has no effect if the memkey card has not been
inserted.
When copying programs with the memory card, it maintains the OEM permissions
and the "hidden" file attribute.

Functionality at the PC via WinDNC

Before extracting the memory card from the PC, finish the WinDNC connection.

The list of the possible WinDNC connections will show the CARDA option. When
connecting to the CARDA, it checks the slot and it acts as follows:
• There is no memory card inserted.
The interface warns about it and the connection fails.
• There is a memkey card inserted.
The interface warns about it and the connection fails.
• There is a memory card, but it is not formatted.
It offers the user the chance to format it. The connection is established after
accepting to format it and it is done properly. If the formatting is canceled or a
problem occurs while formatting, the interface warns about it and the connection
fails.
• There is some other problem (maybe hardware related or that has to do with the
driver configuration).
The interface shows an error message and the connection fails.

Once the connection has been established, it is possible to access the "Files" menu.
The options to see tables, symbols and screens are disabled. Only part-programs
and PLC programs may be manipulated. These may be transmitted from and to the
memory card. On the contrary, tables, symbols, screens and parameters cannot be
manipulated.
CNC 8040

·T· MODEL
(SOFT V12.1X)

19
‡ ‡ ‡ Operating manual

Configurations of the memory card

In order to be able to use a memory card, it must be formatted in Fagor mode.


• This operation may be carried out at the CNC from the mode: Diagnosis > Tests
> Format CARDA. If a memkey card has been inserted, it does not show the
formatting option.
• At the PC, the memory card may be formatted using WinDNC.

The software configuration screen shows the card's hardware ID. If a floppy disk type

2. memory card is inserted, the ID will be FFFFFFFE.


OPERATING MODES
Slot of the memkey card as floppy disk drive (CARDA)

When powering up the CNC with a memory card in, it considers it invalid and
it issues an error indicating minimum configuration. On the other hand, that
memory card will not be recognized as such until it is extracted from the CNC
and inserted back.

Using a memory card

Only part-programs and PLC message and error programs may be stored in the
memory card.

The memory card may be inserted and extracted from the CNC while the CNC is on.
The memkey card cannot be extracted during execution while being accessed. For
example, if it is executing from CARDA, it is displaying screens from CARDA, etc.

CNC 8040

·T· MODEL
(SOFT V12.1X)

20
‡ ‡ ‡ Operating manual

2.4 Memkey Card + Compact Flash or KeyCF

From version V11.01 on (mill model) and from version V12.01 on (lathe model), the
following options are offered.

Memkey Card + Compact Flash

The <Memkey Card> will include the validation code, software options, user screens,
PLC program backups and machine parameters. 2.

OPERATING MODES
Memkey Card + Compact Flash or KeyCF
The <Compact Flash> will be a hard disk with the same function as that of a disk with
memory expansion and will only store the user programs.

KeyCF (KeyCompactFlash)

The KeyCF will store the CNC configuration, i.e. the validation code, the software
options, user screens, PLC program backups and machine parameters. It also has
memory for user programs.

In order for the CNC to recognize the KeyCF, no Memkey Card must be inserted,
otherwise, the Memkey Card will be recognized first.

Also, the CNC supports the management of several disks at the same time:
‡ Hard disk. The CNC selects the Compact Flash or the KeyCF as hard disk
depending on which one the user has loaded in its CNC.
‡ Remote hard disk. The CNC selects a directory of a PC shared in the network
and it considers it like its own hard disk. From the user's point of view, the CNC
has a remote hard disk. It will only store user programs.

CNC 8040

·T· MODEL
(SOFT V12.1X)

21
‡ ‡ ‡ Operating manual

2.4.1 Directory structure

The purpose of these directories of the hard disk (or of the remote disk) is to provide
the user with a space to save part-programs, tables, graphic files, etc. in an orderly
fashion.

Directory /Prg

2. By default, this directory of the hard disk will store the user programs.

The OPEN and EXEC instructions can only be used in the subdirectory /Prg of the
OPERATING MODES
Memkey Card + Compact Flash or KeyCF

default hard disk, i.e. of the hard disk or of the remote hard disk.

Directory /Tab

This directory of the hard disk will store the machine parameters and tables with the
same format and the same name currently stored in the WinDNC.

At certain CNC models, the user may find the label <hard disk> instead of
i <Card A> within the menus for machine parameters and tables, submenus
<load> and <save>.

The files for the parameters of an axis and for leadscrew compensation are stored
in the hard disk by the axis name.

From version V11.01 on (mill model) and from version V12.01 on (lathe model), these
names have been changed. For compatibility sake, the CNC will admit names that
follow the nomenclature of older versions.

Within the parameter table for an axis, it will offer the option to <load/hard disk>. This
option, first checks if the <APn> file is stored (nomenclature followed by the axis
names in this new version).
• Axis parameters: APX, APY, ..., APC.
• Leadscrew parameters: ALX, ALY, ..., ALC.

If it does not exist, it checks if the <MXn> file is stored (nomenclature followed by the
axis names in older versions).
• Axis parameters: MX1, MX2, ...
• Leadscrew parameters: US1, US2, ...

The same procedure will be applied with the <load/DNC> option.

However, whenever the <save> option is activated, the CNC always generates the
files with the names corresponding to this new software version, both in the >hard
disk< and in the <DNC>.

In order to be able <load> files named according to the nomenclature of this


new version into a CNC whose software version is V9.xx or older, they will
CNC 8040
i have to be renamed using the nomenclature of versions older than V11.xx.
Example: Rename an APY file as MX2.

·T· MODEL
(SOFT V12.1X)

22
‡ ‡ ‡ Operating manual

Directory /Pan

This directory of the hard disk stores the graphic files with extensions <*.pan>,
<*.sim> and <*.wgd>.

Directory /Vers

The user can store the different software versions in this directory of the hard disk.
2.

OPERATING MODES
Memkey Card + Compact Flash or KeyCF
Accessing the system from other devices

Through the WinDNC

From WinDNC it is possible to access the files of user programs, tables and screens
located in the hard disk as well as those located in the Card A.

The WinDNC can only display the following devices:


• Memory.
• Card A. Slot to load a Memory Card or a Memkey Card.
• Default hard disk .
The "default hard disk" will be the first hard disk recognized by the CNC. The order
of priorities is:
1. Compact Flash or KeyCF
2. Remote hard disk

At the "default hard disk", only the default directory/Prg can be accessed. The rest
of the subdirectories are not accessible.

Accessing the root directory of the DNC requires a WinDNC version 4.1 or
higher. Likewise, sending tables <from/to> the hard disk requires a WinDNC
version 4.1.

Via FTP

It is possible to access (read and write) tables, machine parameters, graphic files and
programs from the network via FTP. From version V11.01 (mill model) on and from
version V12.01 (lathe model), all the disks will be available when accessing a CNC
via FTP:
• Hard disk (Compact Flash or KeyCF)
• Remote hard disk

CNC 8040

·T· MODEL
(SOFT V12.1X)

23
‡ ‡ ‡ Operating manual

2.
OPERATING MODES
Memkey Card + Compact Flash or KeyCF

CNC 8040

·T· MODEL
(SOFT V12.1X)

24
OPERATIONS VIA ETHERNET

3
The Ethernet option permits configuring the CNC as another node within the local
area network. This option makes it possible to communicate with other PC's to
transfer files or carrying out telediagnostic tasks.

i To configure the CNC within a computer network, refer to the chapter on


machine parameters for Ethernet in the installation manual.

Once the connection to Ethernet has been configured, the following types of
connections are possible:
• Connection to a remote hard disk.
• Connection to a PC through WinDNC.
• Connection from a PC through an FTP client.

To communicate with the CNC, the PC must be configured just like another node
within the local area network or Internet and it must have the WinDNC (V4.0 or later)
installed. The communication through Ethernet does not require the DNC option.

CNC 8040

·T· MODEL
(SOFT V12.1X)

25
‡ ‡ ‡ Operating manual

3.1 Remote hard disk

The CNC can have a local hard disk (at the CNC itself) or a remote hard disk
accessible through Ethernet.

i The remote hard disk is configured by machine parameters. Refer to the


chapter on machine parameters for Ethernet in the installation manual.

3. As remote hard disk, it is possible to use the hard disk of a PC or just a folder. This
memory space may be shared by several CNC's or each may have its own memory
space. The PC that makes its hard disk (server) public must be connected to the local
Remote hard disk
OPERATIONS VIA ETHERNET

network.

The interface and the softkeys of the CNC will the same as if it were a local hard disk.
When accessing the CNC through WinDNC or FTP, the remote hard disk behaves
like a local hard disk.

Protocol used

The NFS protocol is used to communicate with the remote hard disk. This protocol
must be available at the PC that is used as server.

CNC 8040

·T· MODEL
(SOFT V12.1X)

26
‡ ‡ ‡ Operating manual

3.2 Connection to a PC through WinDNC

The PC operative system must be Windows® and it must have the WinDNC software
(V4.0 or newer). The CNC must be configured just like another node within the local
network or internet.

i The access to a DNC server is configured by machine parameters. Refer to


the chapter on machine parameters for Ethernet in the installation manual.

Possible connections: 3.
• From a PC

Connection to a PC through WinDNC


OPERATIONS VIA ETHERNET
The connection may be initiated at any PC and addressed to any CNC. Two PC's
cannot be connected to each other.
To establish the connection, the WinDNC allows the user to enter the CNC's IP
address to be used for the connection.
• From a CNC
The connection is always addressed to the DNC server. The DNC server is
defined by machine parameters.

Communication status

As with the communication via serial line, the DNC status screen shows its status
through Ethernet. When having the DNC available, the top of the screen shows the
message" DNC E". The connection may be activated and deactivated from the
softkey menu.

It is possible to connect several WinDNC (up to 10) simultaneously to the same CNC.
The access protection is by operation. If several WinDNC initiate an operation, the
commands are processed one by one while the rest of the WinDNC's wait.

CNC 8040

·T· MODEL
(SOFT V12.1X)

27
‡ ‡ ‡ Operating manual

3.3 Access the CNC's hard disk from a PC

If the CNC is configured like another node in the network, it may be accessed from
any PC of the network knowing its IP. Only the CNC's hard disk may be accessed;
i.e. it is not possible to access programs in RAM or CARDA nor read variables, tables,
etc.

From the PC, it is possible to access the part-program directory of the hard disk and
edit, modify, etc. the programs stored. It is also possible to copy programs from the

3. hard disk to the PC and vice versa.

Protocol used
Access the CNC's hard disk from a PC
OPERATIONS VIA ETHERNET

The FTP protocol is used to access the hard disk of the CNC. The FTP protocol
permits transferring files between a PC and a CNC connected to a local network or
to internet. The FTP client, in charge of managing the transfer, must be installed at
the PC. The interface depends on the FTP client being used.

The PC operative system may be Windows, Linux or Unix.


i Windows® includes an FTP client in its Internet Explorer application from
version 5.x on. From Windows98® on, the Windows explorer has its own
integrated FTP client.

When accessing the CNC from a PC via FTP, it shows the following directory
structure.

ROOT

DISK BIN

PRG

BIN System folder used by the FTP protocol. It cannot be modified.


DISK CNC hard disk. The user can fully access it from the PC. Although
subdirectories and files may be defined, they won't be accessible from the
CNC.
PRG Part-programs and PLC programs stored at the CNC. If this folder does
not exist on start-up, an empty one is created.
Although the user may create new directories through the FTP, only the programs
contained in the "PRG" directory may be seen from the CNC.
If the CNC does not have a hard disk, it will show the directory empty and it will not
allow sending any program.

File transfer
To copy a file from the PC to the CNC.
CNC 8040
• In any Windows® (95, 98, 2000 or XP) system. Drag the file from one folder to
another or use the keyboard shortcuts [CTRL]+[C] and [CTRL]+[V].
To copy a file from the CNC to the PC.
• In Windows® 95 or 98. Click the right mouse button on the file, select the option
·T· MODEL
to "Copy to folder" and select the destination folder.
(SOFT V12.1X) • In Windows® 2000 or XP. Drag the file from one folder to another or use the
keyboard shortcuts [CTRL]+[C] (copy) and [CTRL]+[V] (paste).

28
‡ ‡ ‡ Operating manual

Connection using Windows® 95 or 98.

Connection with a shared CNC without password

At the Web browser (e.g. IExplorer) or from the file explorer (only on Windows 98),
write in the command line the CNC's IP address.
For example: ftp://10.00.70.224

Connection with a shared CNC with password

At the Web browser (e.g. IExplorer) or from the file explorer (only on Windows 98),
write in the command line the user name, the password and the CNC's IP address.
3.

Access the CNC's hard disk from a PC


OPERATIONS VIA ETHERNET
The user name is always "cnc".
For example: ftp://cnc:[email protected]

Assign a name to the IP address

The IP address may be assigned a name for easier identification. This operation is
carried out at the PC and there are two different ways to do it.
• Editing the file "c:\windows\hosts". This file may be modified with any text editor.
In the file, add a line containing the CNC'S IP address and the name to identify
it with. For example:

10.0.7.40 CNC_1

10.1.6.25 MILL_MACH_01

On the Web browser or from the file explorer (only on Windows 98), write the
defined name in the command line.
For example (CNC without password): ftp://CNC_01.
For example (CNC with password): ftp://cnc:password@MILL_MACH_01
• Through the "Favorites" menu of the Web browser.
In the Web explorer, write the IP address in the command line. After accessing
the site, select the "Favorites" option on the menu > add to favorites and assign
a name to that IP address. This way, it is possible to access the CNC by selecting
the assigned name on the "Favorites" menu.

i On the Iexplorer browser, it is called "Favorites". This name may vary


depending on the Web browser being used.

CNC 8040

·T· MODEL
(SOFT V12.1X)

29
‡ ‡ ‡ Operating manual

Connection using Windows® 2000 or XP.

The easiest way to access the CNC's hard disk from a PC is configuring a new
connection. At the file explorer, select My Network sites > Add network sites. It will
show the Windows help to add network sites that permits configuring the connection
step by step. Press the –OK– button to go on to the next step.

Follow the instructions shown on the screen to configure the connection; refer to the
Windows® help for additional information.

3. Connection with a shared CNC without password


1. First, select the network site, in this case an ftp folder. Write "ftp://" followed
Access the CNC's hard disk from a PC
OPERATIONS VIA ETHERNET

by the CNC's IP address defined by machine parameter DIRIP (P24).


For example: ftp://10.0.17.62
2. Define how the session is initiated, anonymously or not When the CNC is shared
without password, the session is initiated anonymously.
3. Define the name to be associated with the new connection. This is the name that
will appear on the PC's net directory. Just select it from the list to start the
connection.
For example: FAGOR_CNC

Connection with a shared CNC with password


1. First, select the network site, in this case an ftp folder. Write "ftp://" followed
by the CNC's IP address defined by machine parameter DIRIP (P24).
For example: ftp://10.0.17.62
2. Define the user name and how the session is initiated, anonymously or not. When
the CNC is shared with password, the session is not initiated anonymously. The
user must identify itself and it must be as "cnc" or "CNC".
3. Define the name to be associated with the new connection. This is the name that
will appear on the PC's net directory. Just select it from the list to start the
connection.
For example: FAGOR_CNC

After the configuration is done and every time the connection is made, a window will
open requesting the user name and password. As user name, select "cnc" or "CNC"
and as password the one defined by machine parameter CNHDPAS1 (P7).

To make it easier, the –Save password– option may be selected in this window. This
way, it will no longer request the password when connecting again and it will access
the hard disk directly.

Use the "save password" option with caution. Bear in mind that if you save
the password, it will not be requested for the connection and, therefore,
anybody is free to access the CNC from the PC.

CNC 8040

·T· MODEL
(SOFT V12.1X)

30
EXECUTE / SIMULATE

4
The EXECUTE operating mode allows the execution of part programs in automatic
mode or in single block mode.

The SIMULATE operating mode allows the simulation of part-programs in automatic


or single block mode. When wished to SIMULATE a part-program, the CNC will
request the type of simulation to be carried out.

When selecting one of these operating modes, one must indicate the location of the
part-program to be executed or simulated. The part program may be stored in the
CNC's internal RAM memory, in the "Memkey Card", in PC connected through serial
line 1 or 2, or in the hard disk (HD).

After pressing one of these softkeys, the CNC displays the corresponding part-
program directory. The program may be selected by:
• Keying in its number and pressing [ENTER].
• Positioning the cursor of the screen over the desired program and pressing
[ENTER].

The executing or simulating conditions (fist block, type of graphics, etc.) may be set
before executing or simulating the part-program. These conditions may also be
modified if the execution or simulation is interrupted.

To execute or simulate a part-program, press the [START] key.

To switch to JOG mode once executed or simulated a part program (or a


i section of it), the CNC will maintain the machining conditions (type of
movement, feedrates, etc.) selected while executing or simulating it.

Feedrate selection.

The program is executed at the feedrate specified in the program and may be
modified between 0% and 120% using the switch on the operator panel. When doing
a simulation with axis movement, the feedrate can also be modified with the switch.

The behavior of the rapid key during execution and simulation is set by machine
parameters, thus it may be disabled. When enabled, the rapid key behaves as follows
in execution and simulation:
• The movements are carried out in rapid traverse (G00) while the rapid key is
pressed.
• The rapid key is ignored while threading, while look-ahead is active. CNC 8040
• If G95 is active, it switches to G94 mode. When releasing the rapid key, it goes
back to G95 mode.
• It only affects the main channel. It is ignored in the PLC channel.

·T· MODEL
(SOFT V12.1X)

31
‡ ‡ ‡ Operating manual

Type of simulation

When SIMULATING a part-program, the CNC requests the type of simulation


desired; one of the following options must be selected with the softkeys:

Graphic Movement of Spindle control Send to the PLC Send to the PLC
representation the axes M-S-T M3 M4 M5 M41
M42 M43 M44

Theoretical path Programmed No No No No

4. G functions

G, M, S, T Functions
Theoretical tip

Theoretical tip
No

No
No

No
No

Yes
No

Yes
EXECUTE / SIMULATE

Rapid Theoretical tip Yes Yes Yes Yes

Rapid [S=0] Theoretical tip Yes No Yes No

THEORETICAL PATH

It ignores tool radius compensation (functions G41, G42) thus showing the graphic
representation of the programmed path.

It does not output the M, S, T function to the PLC.

It does not move the machine axes or start the spindle.

The simulation takes into account the dwells programmed with G4.

G FUNCTIONS

It takes into account tool radius compensation (functions G41, G42) thus showing the
graphic representation of the path for the theoretical tool nose (it does not coincide
with the programmed path).

Programmed tool Path.

Theoretical tool tip path.

It does not output the M, S, T function to the PLC.

It does not move the machine axes or start the spindle.

The simulation takes into account the dwells programmed with G4.

G, M, S, T FUNCTIONS

It takes into account tool radius compensation (functions G41, G42) thus showing the
graphic representation of the path for the theoretical tool nose.

It outputs the M, S, T functions to the PLC.

It does not move the machine axes or start the spindle.


CNC 8040 The simulation takes into account the dwells programmed with G4.

·T· MODEL
(SOFT V12.1X)

32
‡ ‡ ‡ Operating manual

RAPID

It takes into account tool radius compensation (functions G41, G42) thus showing the
graphic representation of the path for the theoretical tool nose.

It outputs the M, S, T functions to the PLC.

It starts the spindle if it has been programmed.

The axes are moved at maximum feedrate allowed F0 regardless of the programmed
F value and it can be varied using the feedrate override switch.

The simulation ignores the dwells programmed with G4. 4.

EXECUTE / SIMULATE
RAPID [S=0]

It takes into account tool radius compensation (functions G41, G42) thus showing the
graphic representation of the path for the theoretical tool nose.

It outputs to the PLC the rest of the functions M, S, T.

It does not output the M functions associated with the spindle when operating in open
loop (rpm): M3, M4, M5, M41, M42, M43 and M44.

It does output to the PLC the M function associated with spindle orientation (M19)
when operating in closed loop.

It does not start the spindle.

The axes are moved at maximum feedrate allowed F0 regardless of the programmed
F value and it can be varied using the feedrate override switch.

The simulation ignores the dwells programmed with G4.

Execution or simulation conditions

The executing or simulating conditions (initial block, type of graphics, etc.) that may
be set before or while executing or simulating a part-program are:

BLOCK SELECTION

It allows selecting the block in which the execution or the simulation of the program
will start.

STOP CONDITION

It allows selecting the block in which the execution or the simulation of the program
will stop.

DISPLAY

It allows the display mode to be selected.

MDI

It allows any type of block (ISO or high level) to be edited with programming
assistance by means of softkeys. CNC 8040
Once a block has been edited and after pressing the [START] key, the CNC will
execute this block without leaving this operating mode.

TOOL INSPECTION
·T· MODEL
Once the execution of the program has been interrupted, this option allows the tool (SOFT V12.1X)
to be inspected and changed should this be necessary.

33
‡ ‡ ‡ Operating manual

GRAPHICS

This option carries out a graphic representation of the part during the execution or
simulation of the selected part program. It also allows selecting the type of graphic,
the area to be displayed, the viewpoint and graphic parameters.

SINGLE BLOCK

Allows the part program to be executed one block at a time or continuously.

4.
EXECUTE / SIMULATE

CNC 8040

·T· MODEL
(SOFT V12.1X)

34
‡ ‡ ‡ Operating manual

4.1 Block search. Switching from simulation to execution

This feature solves a situation that occurred when interrupting a program that was
being executed before it ended. The program may have been interrupted due to a
"STOP-RESET", and emergency, a PLC/CNC error or because the CNC was turned
off while executing a program or in a temporary stop.

The CNC remembers the program block at the time of the interruption that did not
allow executing it completely.

The home search permits restoring the history of a program up to a particular block
in such way that when resumed, it executes the rest of the program with the same
4.

EXECUTE / SIMULATE
Block search. Switching from simulation to execution
conditions as it would if it were executed from the beginning.

Example: A part machining process is interrupted at any time. The block search may
be used for positioning the tool in the same place it was just when the program was
interrupted and in the same conditions.

Block search is executed from the execution mode using a menu driven operational
process. The program execution will resume once the block search is done.

To access the block search, press the softkey <BLOCK SELECTION> of the softkey
menu of the execution window.

CNC 8040

·T· MODEL
(SOFT V12.1X)

35
‡ ‡ ‡ Operating manual

4.1.1 Operating modes

Pressing <BLOCK SELECTION> displays a menu for selecting the starting block or
the way to operate.

First block:

4. Pressing the <FIRST BLOCK> softkey gives access to the menu for selecting the
block from which to start executing the program.
EXECUTE / SIMULATE
Block search. Switching from simulation to execution

FIRST LINE:

By pressing this key, the cursor will position at the first line of the program.

LAST LINE:

By pressing this key, the cursor will position at the last line of the program.

TEXT:

With this function it is possible to search for a text or character sequence starting at
the current cursor position.

When this softkey is pressed, the CNC requests the character sequence to be found.
Once this text has been keyed in, press the <END OF TEXT> softkey and the cursor
will position over the first occurrence of the keyed text.

The search will begin from the block the cursor is position on beginning at that block.
The text found will be highlighted being possible to continue with the search or to quit
it.

Press [ENTER] to continue the search up to the end of the program. The CNC will
begin the search at the last text found and it will highlight it.

The search can be done as many times as desired. Once searched to the end of the
program, it will continue the search from the beginning.

Press the <ABORT> softkey or the [ESC] key to quit the search mode. When quitting
the search mode, the cursor will be positioned at the last matching text found.

LINE NUMBER:

After pressing this softkey, the CNC will request the number of the line to be found.
Once that number has been defined, pressing [ENTER] positions the cursor over the
requested line.

CNC 8040

·T· MODEL
(SOFT V12.1X)

36
‡ ‡ ‡ Operating manual

Searching blocks containing G functions. EXEC G search:

When restoring the history of the program, the CNC reads it up to the set block
activating and canceling the "G" functions that reads along. Likewise, it sets the
feedrate and spindle speed conditions of the program and calculates the position
where the axes should be.

The M, T and S functions are not output to the PLC, but they are memorized so when
the last block is reached, the CNC shows a list of the conditions that the CNC must

4.
have assumed by the history.

Once the simulation is over, the user can restore the M, S, T functions:

EXECUTE / SIMULATE
Block search. Switching from simulation to execution
A. In the order in which the M, S, T functions were simulated by pressing < EXECUTE
MST> and then [CYCLE START].
B. Pressing the softkeys <TOOL INSPECTION>, <DISPLAY MST> and<MDI> in
this order, the user can execute the desired blocks in any order he wishes.

The screen shows a list of the M, S and T functions (one per line and in simulation
order) bearing the following in mind:
• It shows the M functions of the history bearing in mind that some M functions may
cancel others.
• If there is a second spindle and M functions a programmed that refer to that
spindle (M3, M4, M5, M19, M41-44), they will not cancel the ones equivalent to
the first spindle. Also, when restoring these M functions, it first restores those of
each programmed spindle G28 or G29.
• When it receives an OEM's M function and then it receives the same M function,
the older one disappears from the list.
• It displays the last T function programmed as well as the last S function
programmed.

Searching a block that contains G, M, S and T functions. EXEC


GMST search

When restoring the history of the program, the CNC reads it up to the set block
activating and canceling the G functions that reads along. Also, it sets the feedrate
and spindle speed conditions of the program and calculates the position where the
axes should be.

The M, S and T functions are executed and output to the PLC.

WARNING: This block searching method is less suitable than the previous
one especially when not using safety mechanisms at the PLC. If the tool is
not positioned correctly in the tool changes, it could cause collisions.

If in any of the two block searching methods the program that contains the searched
block is stored in a CARD A, hard disk, Ethernet or DNC, the bottom of the screen
can display the line being simulated at that moment. This information gives an idea
of how much is left to reach the block.

CNC 8040

·T· MODEL
(SOFT V12.1X)

37
‡ ‡ ‡ Operating manual

4.1.2 Automatic block search

It may be used to restore the program history up to the block where the execution
was interrupted. The CNC remembers in which block the execution was interrupted,
thus not being necessary to set the stop block.

If the program is interrupted inside an internal cycle, it will behave as follows:


If it is a pocket cycle (G66, G67, G68, G87, G88) or a multiple cycle (G60, G61,
G62, G63, G64), when doing a home search, it restores the history up to the last

4. subblock inside the completed cycle.


In the rest of the canned cycles (G69, G81, G82, G84, G85, G86), it is interrupted
inside the cycle, it restores the history up to the cycle calling block.
EXECUTE / SIMULATE
Block search. Switching from simulation to execution

To access the automatic block search, press <BLOCK SELECTION> and press one
of the operating modes <EXEC G SEARCH> or <EXEC GMST SEARCH>.

Then, press the <STOP BLOCK> and <AUTOMATIC SEARCH> softkeys.

The <AUTOMATIC SEARCH> softkey is only shown when the block that has been
stored for the automatic search is located among those of the program and once
pressed places the cursor in that block.

Once the block has been selected, the screen shows the text STOP=HD:PxxxLxxx
that indicates the location of the program, the program number and the program line.
After pressing [CYCLE START] the CNC searches the block and once simulated up
to the stop block, it removes the previous text.

Then, the CNC determines the axes that are out of position and shows them so they
can be selected. If it has also searched for G functions and the program contains M,
S, T functions that must be executed, the menu shows the softkey <PENDING MST
EXEC> so those functions are executed after pressing the softkey and validating it
with [CYCLE START].

Tool inspection:

Pressing the <TOOL INSPECTION> softkey. It goes into tool inspection.


• Pressing the <DIS PENDING MST> softkey displays the M, S and T functions that
have been simulated and are pending to be executed.
• Pressing the <MDI> softkey access that mode and lets the user execute the
desired blocks.

CNC 8040

·T· MODEL
(SOFT V12.1X)

38
‡ ‡ ‡ Operating manual

4.1.3 Manual block search

It serves to restore the history of the program up to a block defined by the user:
A. If it is a motion block, the program simulation stops once that block is completed.
B. If it is a program flow changing block (GOTO, RPT, CALL, EXEC), the simulation
stops in that block, but without jumping to the new block.
C. If it is a positioning block that has a canned cycle or a subroutine or a modal
program associated with it, the program simulation stops once the positioning is
done leaving the execution of the canned cycle or modal subroutine for after
repositioning.
D. In the case of blocks calling upon irregular-pocket-with-islands cycle calling and
4.

EXECUTE / SIMULATE
Block search. Switching from simulation to execution
TRACE, DIGIT or PROBE cycles, the program simulation stops in the calling
block, but without simulating anything in that cycle.

To access the manual block search, press <BLOCK SELECTION> and press one
of the operating modes <EXEC G SEARCH> or <EXEC GMST SEARCH>.

PROGRAM SELECTION:

This option will be used when the final execution or simulation block belongs to
another program or to a subroutine resident in another program.

Pressing the <PROGRAM SELECTION> softkey opens an explorer-type window for


selecting a program of any unit such as hard disk, CARD A, DNC2, DNCE.

NUMBER OF TIMES:

This function will be used to indicate that the execution or simulation of the selected
program must stop after executing the "end block" several times.

When selecting this function, the CNC will request the number of times to be executed
or simulated.

If the selected block has a number of block repetitions, the program will stop after CNC 8040
doing all the repetitions indicated.

FIRST BLOCK:

It sets as the first block for the block search the one selected with the cursor and
·T· MODEL
validated with [ENTER]. When not setting the first block, the block search starts in (SOFT V12.1X)
the first block of the program.

The block to be selected may be found using the [UP ARROW], [DOWN ARROW],
[PREV. PAGE] , [NEXT PAGE] or the softkeys of the menu.

39
‡ ‡ ‡ Operating manual

STOP BLOCK:

To set the last block for restoring the program history up to that block, just select it
with the cursor and press [ENTER]. When executing the program after that, it will start
right from that block.

The block to be selected may be found using the [UP ARROW], [DOWN ARROW],
[PREV. PAGE] , [NEXT PAGE] or the softkeys of the menu.

Once a stop point has been selected, the screen shows the text STOP=HD:PxxxLxxx
that indicates the location of the program, the program number and the program line.
4. After pressing [CYCLE START] the CNC searches the block and once simulated up
to the stop block, it removes the previous text.
EXECUTE / SIMULATE
Block search. Switching from simulation to execution

Then, the CNC determines the axes that are out of position and shows them so they
can be selected. If it has also searched for G functions and the program contains M,
S, T functions that must be executed, the menu shows the softkey <PENDING MST
EXEC> so those functions are executed after pressing the softkey and validating it
with [CYCLE START].

Tool inspection:

Pressing the <TOOL INSPECTION> softkey. It goes into tool inspection.


• Pressing the <DIS PENDING MST> softkey displays the M, S and T functions that
have been simulated and are pending to be executed.
• Pressing the <MDI> softkey access that mode and lets the user execute the
desired blocks.

CNC 8040

·T· MODEL
(SOFT V12.1X)

40
‡ ‡ ‡ Operating manual

4.1.4 Home searching restrictions

Block search is restricted in the following scenarios:


• In a program where a particular scaling factor is activated, the block search is
automatically or manually restricted to a block after that activation.
• In a program where axes are slaved with G77 or using PLC SYNCRO marks, the
block search is automatically or manually restricted to a later block.
The same restriction applies to a program having spindle synchronization.
• In a program that applies mirror image via PLC using MIRROR marks, the
automatic or manual search are restricted to later blocks. 4.
• In a program containing a home search (G74), the automatic or the manual search

EXECUTE / SIMULATE
Block search. Switching from simulation to execution
is restricted to later blocks.

4.1.5 Disabling the simulation and block search modes

The simulation and block search modes are available depending on the setting of
g.m.p. DISSIMUL (P184).

CNC 8040

·T· MODEL
(SOFT V12.1X)

41
‡ ‡ ‡ Operating manual

4.2 Display

With this option, it is possible to select the most appropriate display mode at any time
even during execution or simulation of a part program.

The display modes available at the CNC and which can be selected with softkeys are:
• STANDARD display mode.
• POSITION display mode.

4. • PART-PROGRAM display.
• SUBROUTINES display mode.
EXECUTE / SIMULATE
Display

• FOLLOWING ERROR display mode.


• USER display mode.
• EXECUTION TIME display mode.

All the display modes have a window at the bottom of the CRT which shows the history
with the conditions in which machining is being done. The information shown is as
follows:
F and % Programmed feedrate (F) and selected feedrate override %. When
feed-hold is active, the feedrate value is shown in reverse video
(highlighted).
S and % Programmed spindle speed (S) and override % of the selected spindle
speed.
T Number of active tool.
D Number of active tool offset.
S RPM Real spindle speed. It is given in rpm.
When working in M19 this indicates the position of the spindle. It is
given in degrees.
S M/MIN Real spindle speed. It is given in meters per minute.
G All displayable G functions that are active.
M All displayable M functions that are selected.
PARTC Parts counter. It indicates the number of consecutive parts executed
with the same part-program.
Every time a new program is selected, this variable is reset to "0".
With this CNC variable "PARTC" it is possible to modify this counter
from the PLC, from the CNC program and via DNC.
CYTIME Indicates the time elapsed while executing the part. It is given in "hours
: minutes : seconds : hundredths of a second".
Every time a part-program execution starts, even when repetitive, this
variable is reset to "0".
TIMER Indicates the count of the timer enabled by PLC. It is given in "hours
: minutes : seconds".

CNC 8040

·T· MODEL
(SOFT V12.1X)

42
‡ ‡ ‡ Operating manual

4.2.1 Standard display mode

The CNC assumes this display mode on power-up and after pressing
[SHIFT]+[RESET].

It shows the following fields or windows:

4.

EXECUTE / SIMULATE
Display
• A group of program blocks. The first of them is the block being executed.
• The position values for the axes of the machine.
It must be borne in mind that the display format for the axes is established by
machine parameter "DFORMAT" and that real or theoretical position values will
be shown depending on the setting of machine parameter "THEODPLY".
Each axis is provided with the following fields:
COMMAND Indicates the programmed coordinate or position value
which the axis must reach.
ACTUAL Indicates the actual (current) position of the axis.
TO GO Indicates the distance which is left to run to the
programmed coordinate.

CNC 8040

·T· MODEL
(SOFT V12.1X)

43
‡ ‡ ‡ Operating manual

4.2.2 Position display mode

This display mode shows the position values of the axes.

This display mode shows the following fields or windows:

4.
EXECUTE / SIMULATE
Display

• The real position values for the axes that indicate the current position of the
machine.
It must be borne in mind that the display format for the axes is established by
machine parameter "DFORMAT" and that real or theoretical position values will
be shown depending on the setting of machine parameter "THEODPLY".
Each axis is provided with the following fields:
PART ZERO This field shows the real axis position with respect to part
zero.
MACHINE ZERO This field shows the real axis position with the respect to
machine reference zero (home).

CNC 8040

·T· MODEL
(SOFT V12.1X)

44
‡ ‡ ‡ Operating manual

4.2.3 Part-program display

Displays a page of program blocks among which the block being executed is
highlighted.

4.

EXECUTE / SIMULATE
Display

CNC 8040

·T· MODEL
(SOFT V12.1X)

45
‡ ‡ ‡ Operating manual

4.2.4 Subroutine display mode

This display mode shows information regarding the following commands:


(RPT N10, N20) This function executes the program section between
blocks N10 thru N20.
(CALL 25) This function executes subroutine number 25.
G87 ... This function the corresponding canned cycle.
(PCALL 30) This function executes subroutine 30 in a local parameter
4. level.

When this mode is selected, the following must be considered:


EXECUTE / SIMULATE
Display

• At this CNC, it is possible to define and use subroutines that can be called from
the main program, or from another subroutine, it also being possible to call a
second subroutine, from the second to a third, etc. The CNC limits these calls to
a maximum of 15 nesting levels.
• The CNC generates a new nesting level of local parameters every time
parameters are assigned to a subroutine. Up to a maximum of 6 nesting levels
of local parameters are possible.
• The machining canned cycles G81 thru G89 use the sixth nesting level for local
parameters when they are active.

This display mode shows the following fields or windows:

• A display area that shows the following information on the subroutines that are
active.
NS Indicates the nesting level (1-15) which the subroutine
occupies.
NP Indicates the level of local parameters (1-6) in which the
CNC 8040 subroutine is executed.
SUBROUTINE Indicates the type of block which has caused a new nesting
level.
Examples: (RPT N10, N20) (CALL 25) (PCALL 30) G87

·T· MODEL
(SOFT V12.1X)

46
‡ ‡ ‡ Operating manual

REPT Indicates the number of times that remain to be executed.


For example, if (RPT N10, N20) N4 is programmed and is
the first time that it is being executed, this parameter will
show a value of 4.
M If an asterisk is shown (*) this indicates that a Modal
subroutine is active in this nesting level, and this is
executed after each movement.
PROG Indicates the program number where the subroutine is
defined.
• The position values for the axes of the machine.
It must be borne in mind that the display format for the axes is established by
4.

EXECUTE / SIMULATE
Display
machine parameter "DFORMAT" and that real or theoretical position values will
be shown depending on the setting of machine parameter "THEODPLY".
Each axis is provided with the following fields:
COMMAND Indicates the programmed coordinate or position value which the
axis must reach.
ACTUAL Indicates the actual (current) position of the axis.
TO GO Indicates the distance which is left to run to the programmed
coordinate.

CNC 8040

·T· MODEL
(SOFT V12.1X)

47
‡ ‡ ‡ Operating manual

4.2.5 Following error display mode

This display mode shows the following error (difference between the theoretical value
and the real value of their position) of the axes and the spindle.

4.
EXECUTE / SIMULATE
Display

The display format is determined by the axis machine parameter "DFORMAT".

4.2.6 User display mode

This option will execute the program that is selected by means of the general machine
parameter "USERDPLY" in the user channel.

To quit its execution and return to the previous menu, press [ESC].

CNC 8040

·T· MODEL
(SOFT V12.1X)

48
‡ ‡ ‡ Operating manual

4.2.7 Execution time display mode

This option is available while simulating a part-program and it will display the following
fields or windows:

4.

EXECUTE / SIMULATE
Display
• A display window shows the estimated program execution time at 100% of the
programmed feedrate. This display area shows the following information:
The time each tool (TOOL) takes to execute the positioning moves (POS.TIME)
as well as the machining moves (MACH.TIME) indicated in the program.
The total time required to execute the complete program.
The M functions being executed in the program.
The number of tool changes performed during the execution of the program.
• The position values for the axes of the machine.
It must be borne in mind that the display format for the axes is established by
machine parameter "DFORMAT" and that real or theoretical position values will
be shown depending on the setting of machine parameter "THEODPLY".
Each axis is provided with the following fields:
COMMAND Indicates the programmed coordinate or position value which the
axis must reach.
ACTUAL Indicates the actual (current) position of the axis.
TO GO Indicates the distance which is left to run to the programmed
coordinate.

CNC 8040

·T· MODEL
(SOFT V12.1X)

49
‡ ‡ ‡ Operating manual

4.3 MDI

This function is not available in the "program simulation" mode. Besides, if a program
is being executed, it must be interrupted in order to access this function.

It is possible to execute any block (ISO or high level) and it provides information on
the corresponding format via the softkeys.

Once a block has been edited and after pressing the [START] key, the CNC will

4. execute this block without leaving this operating mode.


EXECUTE / SIMULATE
MDI

CNC 8040

·T· MODEL
(SOFT V12.1X)

50
‡ ‡ ‡ Operating manual

4.4 Tool inspection

This function is not available in the "program simulation" mode. Besides, if a program
is being executed, it must be interrupted in order to access this function.

This operating mode allows all the machine movements to be controlled manually,
and enabling the axis control keys on the operator panel. Also, the CNC will show
the softkeys to access the CNC tables, edit and execute a block in MDI as well as
repositioning the axes of the machine to the position from where this function was
called.

One of the ways to make the tool change is as follows:


4.

EXECUTE / SIMULATE
Tool inspection
1. Move the tool to the required tool change position.
This move may be made by jogging the axes from the operator panel or in MDI.
2. Gain access to CNC tables (tools. Tool offsets, etc.) in order to find another tool
with the similar characteristics.
3. Select, in MDI, the new tool as the active one.
4. Make the tool change
This operation will be performed depending on the type of tool changer used. It
is possible to execute the tool change in MDI in this step.
5. Return the axes to the position where the tool inspection began
(REPOSITIONING).
6. Continue executing the program, pressing the [START] key.

If during tool inspection, the spindle is stopped, the CNC will restart it in the same
turning direction (M3 or M4) while repositioning.

The CNC offers the following options by means of softkeys:

"MDI" softkey

Allows to edit blocks in ISO or high level (except those associated with subroutines)
providing information on the corresponding format by means of softkeys.

Once a block has been edited and after pressing the [START] key, the CNC will
execute this block without leaving this operating mode.

"TABLES" softkey

Allows access to any of the CNC tables associated with part programs (zero offsets,
tool offsets, tools, tool magazine and parameters).

Once the desired table has been selected, all editing commands will be available for
its verification and modification.

Press the [ESC] key to return to the previous menu (tool inspection).

CNC 8040

·T· MODEL
(SOFT V12.1X)

51
‡ ‡ ‡ Operating manual

"REPOSITIONING" softkey

The user can do a repositioning after a tool inspection.

The repositioning mode is selected using g.m.p. REPOSTY (P181).

Basic repositioning mode:

When selecting this option, the CNC lets position all the axes at the point where tool

4.
inspection started.

To do this, select one of the following softkeys and press [START] for the CNC to
reposition the axes.
EXECUTE / SIMULATE
Tool inspection

[PLANE] It moves the X and Z axes at the same time.


[X-Z] It moves first the X axis and then the Z axis.
[Z-X] It moves first the Z axis and then the X axis.

Extended repositioning mode:

With the extended repositioning mode, pressing the [REPOSITIONING] softkey


displays a softkey menu to carry out the following operations:
• If there is a pending spindle movement (M3, M4, M5, M19), it shows a spindle
softkey showing this previous status and the pending function.
After pressing the displayed softkey and then [CYCLE START], the CNC
generates a block that resumes the spindle movement before the inspection.
If the spindle position changes while being in M19, it considers that there has been
a change and it shows the softkey.
• When selecting an axis with the relevant softkey and pressing [CYCLE START],
the CNC generates a motion block up to the repositioning coordinate for that axis.
Several axes may be moved at the same time, but it is not possible to select the
movement of the axes and of the spindle at the same time.
• The repositioning movement of one or several axes may be interrupted and it is
possible to inspect and reposition as often as desired.
• Using the manual repositioning mode, the CNC lets move the axes with the
electronic handwheels or with JOG keypad both continuously and in
incrementally. The movement of the axes is restricted by the repositioning end
point and the corresponding software travel limit.
The handwheel movements will not be restricted by the repositioning points.
• When an axis reaches the last repositioning point, it is no longer available and
cannot be jogged. To move that axis, switch to tool inspection mode.
• The [END REPOSITIONING] softkey may be used to exit the repositioning mode
and press [CYCLE START] to resume program execution.
If after quitting the repositioning mode, the axes are not properly repositioned, the
CNC will move the axes from where they are to the repositioning point.
• The [TOOL INSPECTION] softkey may be used to return to the tool inspection
mode where the axes may be jogged continuously, incrementally or with an
electronic handwheel. In this case, the movements are only limited by the
software travel limits.
Besides, it is possible to switch to MDI mode to execute simple blocks.

CNC 8040
"MODIFY OFFSETS" softkey

This option shows (at the top) a help graphic and the tool fields that can be edited.
The data may be selected with the [§] [¨] [©] [ª] keys or from the softkey menu.
·T· MODEL
(SOFT V12.1X)

52
‡ ‡ ‡ Operating manual

It is also possible to select a new tool to correct it. To select a new tool, enter its number
in the T field and press [ENTER].
• The I and K values may be modified for the active tool. To assume the new values,
select the tool again.
• The I, K and D values may be modified if it is not the active tool.

The values entered in the I - K fields are incremental; they are added to the ones
already in the table. The "I" data is given in diameter.

The maximum value that may be entered in each I - K field is limited by machine
parameters MAXOFFI and MAXOFFK. When trying to enter a greater value, the
relevant message will be displayed.
4.

EXECUTE / SIMULATE
Tool inspection

CNC 8040

·T· MODEL
(SOFT V12.1X)

53
‡ ‡ ‡ Operating manual

4.5 Graphics

With this function it is possible to select the type of graphic to be used as well as to
define all the parameters for the corresponding graphic display.

To do so, the CNC must NOT be executing or simulating a part program; otherwise,
it must be interrupted.

Once the type of graphics has been selected and its parameters defined, this function

4. can be accessed even during the execution or simulation of a part program should
the type of graphic or any graphic parameters be changed In this case, the CNC
shows the graphic representation for the part being executed or simulated and the
EXECUTE / SIMULATE
Graphics

part-program must be interrupted in order to change the type of graphics or to modify


any of the graphic parameters.

After selecting this function, the CNC will display the following softkey options:
• Type of graphic.
• Display area.
• Zoom.
• Graphic parameters.
• Clear Screen.
• Deactivate graphics.

CNC 8040

·T· MODEL
(SOFT V12.1X)

54
‡ ‡ ‡ Operating manual

4.5.1 Type of graphic

The CNC has two types of graphics:


• Line graphics XZ, XC and ZC.
• Solid graphics SOLID XZ, SOLID XC and SOLID ZC.

Select one of all the available CNC options shown by softkeys.

The selected type of graphics will remain active until a different type is selected, until
graphics are deactivated (there is a "DEACTIVATE" option) or until the CNC is turned
off. 4.

EXECUTE / SIMULATE
Graphics
Every time a type of graphics is selected, all the graphic conditions (zoom, graphic
parameters and display area) used last will be recovered. These conditions remain
even after turning the CNC off and back on.

The coordinate system used in the graphic display is determined by the general
machine parameter "GRAPHICS".

The type of graphic selected will appear to the right of the screen with the following
information:

• The theoretical cutter's point coordinates (X,Z)


• The feedrate of the axes (F) and the spindle speed (S) currently selected.
• The tool (T) and offset (D) currently active.
• The coordinate system used in the graphic display which corresponds to the one
set at general machine parameter "GRAPHICS".
• A clamped part with a superimposed window.
The part shows the size of the display area and the superimposed window
represents the area actually selected for the graphic display.
CNC 8040

·T· MODEL
(SOFT V12.1X)

55
‡ ‡ ‡ Operating manual

LINE GRAPHICS XZ, XC, ZC

This type of graphics draws with colored lines the movement of the tool on the
selected planes (XZ, XC, ZC).

The graphic generated after the execution or simulation of a program will be lost in
the following cases:
• When deleting the screen ("CLEAR SCREEN" softkey)
• When deactivating the graphics ("DEACTIVATE GRAPHICS" softkey).

4. • When selecting another type of solid graphics (solid XZ, solid XC, solid ZC).
EXECUTE / SIMULATE
Graphics

SOLID GRAPHICS

The types of solid graphics available are (solid XZ, solid XC, solid ZC).

This type of graphics shows the part secured at the spindle and the tool in use.
Depending on whether the program is being executed or simulated, the programmed
tool movement will be shown as well as the shape of the part after that operation.

If during the execution or simulation of a program, no tool is selected, the CNC will
NOT show the tool and the shape of the part will be shown intact.

In XZ SOLID, when an "S" spindle speed is assigned, the resulting part will be shown
machined (turned) on both sides. On the other hand, if no "S" is programmed, the
resulting part will only be shown machined on the tool side.

The generated graphic will be lost in the following cases:


• When deleting the screen ("CLEAR SCREEN" softkey)
• When deactivating the graphics ("DEACTIVATE GRAPHICS" softkey).
• When selecting another type of line graphics (XZ, XC, ZC).

CNC 8040

·T· MODEL
(SOFT V12.1X)

56
‡ ‡ ‡ Operating manual

4.5.2 Display area

In order to use this function, no part program may be in execution or simulation. If


this is the case, it must be interrupted.

With this option it is possible to re-define the display area by assigning new maximum
and minimum values for the Z axis and for the part radius (X axis). These position
values are referred to part zero.

In order to re-define the display area, the CNC will show, to the right of the screen,
several windows indicating the current display area dimensions.

Use the [©] [ª] keys to select the window whose value is to be changed and key in
4.

EXECUTE / SIMULATE
Graphics
the new value.

Once all the desired windows have been assigned new values, press [ENTER] to
validate them.

To quit this mode without making any changes, press [ESC].

In line graphics (XZ, XC, ZC) there is a softkey [optimum area] which redefines the
display area that contains, in all planes, all the tool paths already executed.

Every time a new display area is defined, it redraws the machining executed up to
that point. If the number of points to be redrawn exceeds the amount of memory
reserved for it, only the last points will be redrawn and the older ones will be lost.

In solid graphics, it only redraws when having a PowerPC board.

CNC 8040

·T· MODEL
(SOFT V12.1X)

57
‡ ‡ ‡ Operating manual

4.5.3 Zoom

In order to use this function, no part program may be in execution or simulation. If


this is the case, it must be interrupted.

With this option, it is possible to enlarge or reduce the graphics display area.

When selecting this option, the CNC will show a window superimposed on the current
graphics and another one over the drawing at the lower right-hand side of the screen.
These new windows indicate the new display area being selected.

4. Use the softkeys [zoom +], [zoom-] and the keys [+], [-] to either enlarge or reduce
the size of the new display area and the [©] [ª] [§] [¨] keys to move the zoom window
EXECUTE / SIMULATE
Graphics

around to the desired location on the screen.

The "initial value" softkey assumes the values set with this softkey "display area" The
CNC shows that value, but does not quit the ZOOM function.

Once the new display area has been defined, press [ENTER] to validate the new
values.

To quit this mode without making any changes, press [ESC].

Every time a zoom is carried out, it redraws the machining executed up to that point.
If the number of points to be redrawn exceeds the amount of memory reserved for
it, only the last points will be redrawn and the older ones will be lost.

In solid graphics, it only redraws when having a PowerPC board.

CNC 8040

·T· MODEL
(SOFT V12.1X)

58
‡ ‡ ‡ Operating manual

4.5.4 Graphic parameters

This function can be used any time, even during part program execution or simulation:

With this function it is possible to modify the simulation speed and the colors used
to draw the tool paths.

The modifications made to any parameter are immediately assumed by the CNC and
can be made during the execution or simulation of the part program.

The softkey options displayed by the CNC are:


4.

EXECUTE / SIMULATE
Graphics
SIMULATION SPEED

With this option it is possible to modify the feedrate percentage used by the CNC to
execute the part programs in the simulation modes. The selected value will be kept
until modified by another value or resetting the CNC.

The CNC will display a window at the top right-hand side of the screen indicating the
current % of simulation speed.

That value will be modified with the [§] [¨] keys Once the desired value is selected,
press [ENTER] to validate the new value. Press [ESC] to quit this function without
making any changes to this field.

It is also possible to change the simulation speed while it is redrawing after a zoom.
This lets you check the machining of a particular operation.

PATH COLORS

This option is used to change the colors used in the graphic representation. They can
only be used in line graphics XZ. There are the following parameters:
• The color to draw the rapid traverse.
• The color to draw the theoretical path.
• The color to draw the compensated path.
• The color to draw the threading.

In order to re-define the display area, the CNC will show, to the right of the screen,
several windows indicating the currently selected colors.

Among the various colors to choose from, there is a black or "transparent" one. If this
one is chosen for a particular path, this path will not be displayed on the screen.

Use the [©] [ª] keys to select the window and once selected, modify it using the [§]
[¨] keys.

Once the desired colors have been selected, press [ENTER] to validate the new
choices or ESC to ignore the changes and leave this function with the original values
intact. Press [ESC] to quit this function without making any changes to this field.

CNC 8040

·T· MODEL
(SOFT V12.1X)

59
‡ ‡ ‡ Operating manual

COLORS OF SOLID

With this option it is possible to modify the colors used to draw the solid. They can
only be used in SOLID graphics. There are the following parameters:
• Color for the cutter.
• Color for the part.
• Color for the axes.
• Color for the clamps.

4. • The color to draw the internal Y side, machined side.


• The color to draw the internal Z side, machine side.
EXECUTE / SIMULATE
Graphics

In order to re-define the display area, the CNC will show, to the right of the screen,
several windows indicating the currently selected colors.

Among the various colors offered, it is also possible to select "black". If this color is
selected to draw the part, none of the machining operations will be shown.

Use the [©] [ª] keys to select the window and once selected, modify it using the [§]
[¨] keys.

Once the desired colors have been selected, press [ENTER] to validate the new
choices or ESC to ignore the changes and leave this function with the original values
intact. Press [ESC] to quit this function without making any changes to this field.

CNC 8040

·T· MODEL
(SOFT V12.1X)

60
‡ ‡ ‡ Operating manual

4.5.5 Clear screen

In order to use this function, no part program may be in execution or simulation. If


this is the case, it must be interrupted.

This function erases the screen or graphic representation shown.

When the solid graphic type is selected, the graphic representation will be reset and
it will return to its initial state without machining.

4.

EXECUTE / SIMULATE
Graphics

CNC 8040

·T· MODEL
(SOFT V12.1X)

61
‡ ‡ ‡ Operating manual

4.5.6 Deactivate graphics

This function can be used any time, even during part program execution or simulation:

It turns the graphics off.

To activate this function again, press the "GRAPHICS" softkey again. To do so, the
CNC must NOT be executing or simulating a part program; otherwise, it must be
interrupted.

4. Also, it will recover all the previous graphic conditions (type of graphics, zoom,
graphic parameters and display area) used last.
EXECUTE / SIMULATE
Graphics

CNC 8040

·T· MODEL
(SOFT V12.1X)

62
‡ ‡ ‡ Operating manual

4.5.7 Measurement

To use this function, a line graphics (planes XZ, XC or ZC) must be selected and the
CNC must not be executing or simulating the part-program. If this is the case, it must
be interrupted.

Once this function is selected, the CNC shows the following information on the
screen:

4.

EXECUTE / SIMULATE
Graphics
The center of the CRT shows a dotted line with two cursors, the section to be
measured. Also, the right-hand side of the screen shows:
• The coordinates of those two cursors with respect to part-zero.
• The distance "D" between them and the components of this distance along the
axes of the selected plane "δX" and "δZ".
• The cursor step "ε" corresponding to the selected display area. It is given in the
work units, millimeters or inches.

The CNC shows the selected cursor and its coordinates in red.

To select the other cursor, press the [+] or [-] key. The CNC shows the new selected
cursor and its coordinates in red.

Use the [©] [ª] [§] [¨] keys to move the selected cursor.

Likewise, the cursor may be moved to the indicated end using the keystroke
combinations [SHIFT]+[©], [SHIFT]+[ª], [SHIFT]+[§], [SHIFT]+[¨].

To quit this command and return to the graphics menu, press [ESC].

Also, if [START] is pressed, the CNC exits this work mode and returns to the graphics
menu.

CNC 8040

·T· MODEL
(SOFT V12.1X)

63
‡ ‡ ‡ Operating manual

4.6 Single block

When actuating on this option, the CNC toggles between single block mode and
continuous run mode. The mode may be changed even while executing or simulation
the program.

If the single block mode is selected, the CNC will only execute one line of the program
every time [START] is pressed.

4. The upper window of the screen will show the selected mode of operation. If
continuous execution, no message will appear and if SINGLE BLOCK, it will display
the message:
EXECUTE / SIMULATE
Single block

CNC 8040

·T· MODEL
(SOFT V12.1X)

64
EDIT

5
This operating mode will be used to edit, modify or look at a part-program stored in
the CNC's RAM memory.

To edit a part-program stored in the "Memkey Card" (CARD A) or in the hard disk
(HD), it must be previously copied into RAM memory.

To edit a part-program, enter the program number (up to 6 digits) from the keyboard
or by selecting it with the cursor from the CNC's part-program directory and then
pressing [ENTER]. Move the cursor line by line using the [©] [ª] keys or page by page
using the Page-up and Page-down keys.

Once the program number has been entered, the CNC will display the softkeys for
the following options:
EDIT To edit new lines in the selected program.
MODIFY To modify an existing line of the program.
FIND To search a string of characters within a program.
REPLACE To replace a string of characters with another.
DELETE BLOCK With this function it is possible to delete a block or group
of blocks.
MOVE BLOCK To move a block or group of blocks within a program.
COPY BLOCK To copy a block or group of blocks to another program
position.
COPY TO PROGRAM To copy a block or group of blocks into a different
program.
INCLUDE PROGRAM With this option it is possible to include or merge the
contents of another program into the one currently
selected.
EDITOR PARAMETERS To select the editing parameters (automatic numbering
and axes for Teach-in editing).

CNC 8040

·T· MODEL
(SOFT V12.1X)

65
‡ ‡ ‡ Operating manual

5.1 Edit

With this option it is possible to edit new lines or blocks of the selected program.

Select with the cursor the block after which the new ones will be added and press
the softkey corresponding to one of the available editing modes.

CNC LANGUAGE
The program is edited in ISO code or high level language.

5. See "5.1.1 Editing in CNC language" on page 67.

TEACH-IN
EDIT
Edit

The machine is jogged to the desired position and, then, the new axis position
may be assigned to the block.
See "5.1.2 TEACH-IN editing" on page 68.

INTERACTIVE
Editing mode assisted by the CNC.
See "5.1.3 Interactive editor" on page 69.

PROFILES
To edit a new profile.
After defining the known profile data, the CNC generates its corresponding ISO-
coded program.
See "5.1.4 Profile editor" on page 70.

PROFILE SELECTION
To modify an existing profile.
The CNC requests the first and last blocks of the profile. Once they are both
defined, the CNC will show the corresponding graphics.

USER
When selecting this option, the CNC will execute, in the user channel, the
customizing program selected by general machine parameter "USEREDIT".

CNC 8040

·T· MODEL
(SOFT V12.1X)

66
‡ ‡ ‡ Operating manual

5.1.1 Editing in CNC language

A program will be edited block by block and each block can be written either in ISO
code or high level language or it can be just a program comment.

Once this option has been selected, the softkeys will change colors and they will
appear over white background showing the information corresponding to the type of
editing possible at that point.

Also, editing help will be available at any time by just pressing the [HELP] key. To
quit this help mode, press [HELP] again.

If [ESC] is pressed while editing a block, the block editing mode is abandoned and
5.

EDIT
Edit
the block currently being edited will not be added to the program.

Once the block has been edited, press [ENTER]. This new block will be added to the
program after the one indicated by the cursor.

The cursor will position over the new edited block and the editing area (window) will
be cleared so another block can be written.

To quit the block editing mode, press [ESC] or [MAIN MENU].

CNC 8040

·T· MODEL
(SOFT V12.1X)

67
‡ ‡ ‡ Operating manual

5.1.2 TEACH-IN editing

It is basically the same as the previous option (editing in CNC language), except when
it comes to programming coordinates.

This option shows the current position values of each one of the axes of the machine.

It permits to enter the axes position values from the CNC keyboard (as when editing
in CNC language) or, also, use the TEACH-IN editing format as described next.
1. Jog the machine axes with the jogging keys or with the electronic handwheel up
5. to the desired position.
2. Press the softkey corresponding to the axis to be defined.
EDIT
Edit

3. The CNC will assign to this axis its current physical position as the program
position value.

Both editing coordinate defining methods may be used indistinctly, even while
defining a block.

When the block being edited has no information (editing area empty), the [ENTER]
key can be pressed. In this case, the CNC will generate a new block with the current
position values of all the axes of the machine.

This block will be added automatically to the program and it will be inserted after the
block indicated by the cursor.

The cursor will position over the new edited block and the editing area (window) will
be cleared so another block can be written.

When the position values of all the axes are not to be programmed in this fashion,
the CNC permits to select the desired axes. To do this, in this operating mode and
within the "EDITOR PARAMETERS" option there is a softkey for "TEACH-IN AXES"

CNC 8040

·T· MODEL
(SOFT V12.1X)

68
‡ ‡ ‡ Operating manual

5.1.3 Interactive editor

This editor leads the operator through the program editing process by means of
questions he/she will answer.

This kind of editing offers the following advantages:


• There is no need to know the CNC programming language.
• The CNC only lets entering the data being requested, thus avoiding any data entry
errors.
• The programmer is assisted at all times with help screens or messages.

When selecting this option, the CNC displays in the main window, a series of graphic
5.

EDIT
Edit
options selectable by softkey.

If the selected option has more menus, the CNC will keep showing new graphic
options until the desired one is selected.

From this moment, the information corresponding to this option will appear in the main
window and it will start requesting the data necessary to program it.

As the requested data is entered, the editing window will show, in CNC language,
the block being edited.

The CNC will generate all necessary blocks and it will add them to the program once
the editing of this option is done and it will insert them after the one indicated by the
cursor.

The main window will show again the graphic options corresponding to the main
menu being possible to continue editing the program.

CNC 8040

·T· MODEL
(SOFT V12.1X)

69
‡ ‡ ‡ Operating manual

5.1.4 Profile editor

The profile editor looks like this.

5.
EDIT
Edit

1. Window showing the graphic representation of the profile being edited.


2. Editing window showing the new generated block in CNC language.
3. Area for editing messages.
4. Displayed area.
Indicates the area of the plane shown in the graphics area. It is given by the
maximum and minimum coordinates of each axis.
It also shows which plane is selected and the status of the autozoom option.
5. Display area for the profile section currently selected for editing or modifying.
6. Additional data window.
It shows a series of parameters for internal use and whose meanings are:
Et - Total elements of the profile.
Er - Complete elements.
Ni - Number of data entered
Nr - Number of required data

Operation with the profile editor

Several profiles may be edited without quitting the editor. To edit a profile, proceed
as follows:
1. Select a point of the profile as its beginning point.
2. Break the profile into straight and curve sections. If it has corner rounding,
chamfering or tangential entries or exits, use one of these methods:
• Treat them as individual sections when having enough information to define
them.
• Ignore them while defining the profile and, once the full definition is done,
CNC 8040 select the corners that have those characteristics and enter the corresponding
radius value.

·T· MODEL
(SOFT V12.1X)

70
‡ ‡ ‡ Operating manual

Editing the profile data

When selecting a new section of the profile, the data needed to define it is shown on
the right hand side of the screen. The data may be selected from the softkey menu
or directly at the window with the [©] [ª] keys.

The data may be defined with a number or any expression resulting in a number. For
example:
X 100
X 10 * COS 45
X 20 + 30 * SIN 30
X 2 * (20 + 30 * SIN 30)
5.

EDIT
Edit
Initiate the session at the profile editor.

"EDIT" softkey

This softkey gives access to the profile editor. It may be used to edit a rectangular
or circular profile or any profile made up of straight or curved sections.

"CONFIGURATION" softkey

Use the [abscissa axis] and [ordinate axis] softkeys to select the editing plane. Use
the [Along the abscissa] and [along the ordinate] softkeys to select the direction of
the axes of the plane.

To assume the new configuration, press the "VALIDATE" softkey.

"DISPLAY AREA" softkey

When selecting this option, the following softkey options are shown:
[Zoom +] To enlarge the image on the screen.
[Zoom -] To reduce the image on the screen.
[Optimum area] To show the full profile on the screen.
[Autozoom] The CNC recalculates the graphics display area or not
when the edited lines go beyond it.

The display area may be moved around with the [©] [ª] [§] [¨] keys.

To assume the new configuration, press the "VALIDATE" softkey. The display area
may be modified while editing the profile with the "MODIFY" softkey.

"FINISH" softkey

This softkey must be pressed once all the sections of the profile have been defined.
When pressing this softkey, the CNC quits the profile editor and adds to the program
the ISO-code corresponding to the profile just edited. See "End the session with
the profile editor." on page 76.

"SAVE AND CONTINUE" softkey

This softkey saves the profile without having to finish the session with the editor.
CNC 8040

·T· MODEL
(SOFT V12.1X)

71
‡ ‡ ‡ Operating manual

Editing a circular profile

For quickly defining a circular profile. If the starting point is not defined, the CNC
assumes one.

The "Profile Direction" softkey indicates whether the profile is programmed clockwise
or counterclockwise. This data is very important for later modifications and profile
intersection. Every time this softkey is pressed, the text at the top of the middle right
window changes.

5. Editing a rectangular profile


EDIT
Edit

For quickly defining a rectangular profile.

The "Profile Direction" softkey indicates whether the profile is programmed clockwise
or counterclockwise. This data is very important for later modifications and profile
intersection. Every time this softkey is pressed, the text at the top of the middle right
window changes.

Clockwise Counterclockwise

A straight angular profile is defined with a single command, but the CNC internally
breaks into 4 straight segments.

Editing any profile

When pressing the "PROFILE" softkey, the CNC requests the starting point of the
profile. To define it, use the corresponding softkeys.

For example, if when working in the ZX plane the new desired starting point is (Z50,
X20):
[X] 20 [ENTER]
[Z] 50 [ENTER]

Once the starting point has been set, press the "VALIDATE" softkey. The graphic
area will show a filled circle to indicate the profile's starting point.

Also, the softkeys will show the following options:


[STRAIGHT] To edit a straight section.
[CLOCKWISE ARC] To edit a clockwise arc.
[COUNTERCLOCKWISE ARC]To edit a counterclockwise arc.
[CORNERS] To insert rounding, chamfers, tangential entries and
exits.
CNC 8040 [MODIFY] To modify the edited profile.
[NEW PROFILE] To edit a new profile.
[FINISH] It must be pressed when all the sections of the
profile have been defined.

·T· MODEL
(SOFT V12.1X)

72
‡ ‡ ‡ Operating manual

Definition of a straight section

When selecting [STRAIGHT LINE] accessing this mode, the CNC shows the
following screen:
X1, Y1 Coordinates of the section's starting point. They cannot be
modified because they belong to the endpoint of the previous
section.
X2, Y2 Coordinates of the section's endpoint.
α
TANGENCY
Angle of the line referred to the abscissa axis.
Indicates whether the line to be drawn is tangent to the previous
5.
section or not.

EDIT
Edit
All parameters need not be defined; but it is recommended to define all the known
data.

To define a parameter, press the corresponding softkey, key in the desired value and
press [ENTER]. The value may be defined by a numeric constant or by any
expression.

Once all the known parameters have been defined, press the [VALIDATE] softkey
and the CNC will show the section that has been defined.

If there is not enough data to show the section, the CNC will show a dotted line
indicating its orientation.

X1=0
Y1=0
X2
Y2
α 60

If there are more than one possibility, all the possible options will be shown and the
desired one (framed in red) must be selected using the [§] and [¨] keys.

X1
Y1
X2
Y2
α 60
TANGENCY = YES

Use the [©] and [ª] keys to choose whether all the possible options are shown or
only the one framed in red. Once the desired option is selected, press [ENTER] for
the CNC to assume it.

Definition of an arc

When selecting [CLOCKWISE ARC] or [COUNTERCLOCKWISE ARC] accessing


this mode, the CNC shows the following screen:
X1, Y1 Coordinates of the arc's starting point. They cannot be modified
because they belong to the endpoint of the previous section. CNC 8040
X2, Y2 Coordinates of the arc's endpoint.
XC, YC Coordinates of the arc center.
RA Arc radius
TANGENCY Indicates whether the arc to be drawn is tangent to the previous
·T· MODEL
section or not. (SOFT V12.1X)

All parameters need not be defined; but it is recommended to define all the known
data.

73
‡ ‡ ‡ Operating manual

To define a parameter, press the corresponding softkey, key in the desired value and
press [ENTER]. The value may be defined by a numeric constant or by any
expression.

Once all the known parameters have been defined, press the [VALIDATE] softkey
and the CNC will show the section that has been defined.

If there are more than one possibility, all the possible options will be shown and the
desired one (framed in red) must be selected using the [§] and [¨] keys.

X1 = 40
5. Y1 = 30
X2
EDIT
Edit

Y2
XC
YC
RA = 60
TANGENCY = YES

Use the [©] and [ª] keys to choose whether all the possible options are shown or
only the one framed in red. Once the desired option is selected, press [ENTER] for
the CNC to assume it.

If there isn't enough data to show the section, the CNC will draw as much of it as it
knows.

Corners

When selecting this option, the CNC shows the following option softkeys:
Rounding For rounding any corners of the profile.
Chamfer For adding chamfers at any corner of the profile.
Tangential entry To define a tangential tool entry into the profile when
machining.
Tangential exit To define a tangential tool exit from the profile at the end of the
machining operation.

When selecting one of these, one of the corners of the profiles will appear highlighted.
To select another corner of the same profile, use the [©] [ª] [§] [¨] keys. To select
a corner of another profile, use the [page up] and [page down] keys.

To define the rounding, enter the rounding radius and press [ENTER].

To define the chamfer, enter the chamfer radius and press [ENTER].

To define the tangential entry, enter the radius of the path that the tool has to follow
when doing a tangential entry and press [ENTER].

To define the tangential exit, enter the radius of the path that the tool has to follow
when doing a tangential exit and press [ENTER].

To quit the CORNER mode, press [ESC].

CNC 8040

·T· MODEL
(SOFT V12.1X)

74
‡ ‡ ‡ Operating manual

Modify a profile

When selecting this option, the CNC shows the following option softkeys. To quit the
MODIFY mode, press [ESC].
Starting point To modify the starting point of the profile.
Modify element To modify any element of the profile, even the type of
element (straight line, clockwise or counterclockwise
arc).
Insert element To insert a new element (straight or arc) in any position
of the profile. 5.
Delete element To delete any element of the profile.

EDIT
Edit
Additional text To add additional text to any section of the profile.
Configuration To add a new editing plane or redefine the Autozoom
option.
Display area To change the display area.

When selecting one of these options, one of the elements of the profile or profiles
will be highlighted. To select another element of the same profile, use the [©] [ª] [§]
[¨] keys. To select an element of another profile, use the [page up] and [page down]
keys.

"Starting point" softkey


1. Select the starting point of the desired profile. The CNC shows the values used
to define it.
2. Modify the desired values and press the [VALIDATE] softkey.
If it is the starting point of a "circular profile" or of a "rectangular profile", it modifies
the profile what is necessary so it stays as such.

"Modify element" softkey


1. Select the desired element. The CNC shows the values used to define it.
2. It is possible to change the type of section (straight or arc), redefine the existing
data, define a new data or delete an existing one.
A "circular profile" is treated as a single element and a "rectangular profile" may
be treated as a whole profile or each element separately.
3. To delete data, press the softkey that defines it and press [ESC]
4. Once the element has been modified, press the "VALIDATE" softkey. The CNC
recalculates the new profile.

"Insert element" softkey


1. Select the point, or corner, after which the new one is to be inserted.
2. Select the type of section (straight or arc), define it and press the "VALIDATE"
softkey. The CNC recalculates the new profile.

"Delete element" softkey


1. Select the element to be deleted and confirm the command.
2. Deleting a circular profile deletes the whole profile. When deleting a rectangular
profile, it is possible to either delete the whole profile or each element separately.
3. The CNC recalculates the new profile. CNC 8040
"Additional Text" softkey
1. Select the desired element. The CNC shows the ISO code corresponding to that
section in the editing area.
2. Add the desired text. Functions F, S, T, D, M or program comments may be added. ·T· MODEL
3. Press the "VALIDATE" softkey. (SOFT V12.1X)

"Display area" softkey

When selecting this option, the following softkey options are shown:

75
‡ ‡ ‡ Operating manual

[Zoom +] To enlarge the image on the screen.


[Zoom -] To reduce the image on the screen.
[Optimum area] To show the full profile on the screen.
[Autozoom] The image is fitted automatically if it is larger than the
screen.

The display area may be moved around with the [©] [ª] [§] [¨] keys.

Press the "VALIDATE" softkey. The CNC updates the values indicated in the upper

5. right-hand window (DISPLAYED AREA).


EDIT
Edit

End the session with the profile editor.

This softkey must be pressed once all the sections of the profile have been defined.
When pressing this softkey, the CNC quits the profile editor and adds to the program
the ISO-code corresponding to the profile just edited.

The CNC will try to calculate the requested profile by previously solving all the
unknowns. If it finds several possibilities for certain sections, the CNC will show them
for each section and the desired option (framed in red) will have to be chosen using
the [§] [¨] keys.

If the profile cannot be resolved due to lack of data, the CNC will issue the relevant
message. To quit the profile editor without changing the part-program, press [ESC]
and the CNC will request confirmation of this command.

Once the whole profile has been solved, the CNC will show the code of the part
program currently being edited. The ISO-coded program for the edited profile is
contained between these lines:
;************************** START **********************
;************************** END **********************

Do not delete or modify the comment associated with the profile's ISO blocks. It is
additional information that the CNC needs to edit the profile again.

CNC 8040

·T· MODEL
(SOFT V12.1X)

76
‡ ‡ ‡ Operating manual

Examples of how to define a profile. Example ·1·

5.

EDIT
Edit
Profile definition without rounding, chamfers or tangential entries and exits.

Abscissa and ordinate of the starting point X = 100 X=0

Section 1 STRAIGHT Z = 80 X=0

Section 2 STRAIGHT Z = 80 X = 50

Section 3 STRAIGHT Z = 60 X = 50

Section 4 CLOCKWISE ARC Z = 40 X = 90 Zc = 60 Xc= 90 R= 20

Section 5 STRAIGHT Z = 20 X = 90

Section 6 STRAIGHT Z = 20 X = 110

Section 7 STRAIGHT Z = 80 X = 110

Section 8 STRAIGHT Z=0 X = 150

Fit image to the screen

Select the DISPLAY AREA option and press the "OPTIMUM AREA" softkey.

Definition of rounding, chamfers and tangential entries and exits.

Select the MODIFY option.

TANGENTIAL ENTRY Select corner 1-2 and press [ENTER]. Radius = 5

CHAMFER. Select corner 2-3 and press [ENTER]. Radius = 10

ROUNDING Select corner 5-6 and press [ENTER]. Radius = 5

ROUNDING Select corner 6-7 and press [ENTER]. Radius = 5

TANGENTIAL EXIT Select corner 7-8 and press [ENTER]. Radius = 5


CNC 8040
Press [ESC] to quit the MODIFY option.

End of editing

Press the "FINISH" softkey. The CNC quits the profile editing mode and the shows
·T· MODEL
the ISO-coded program that has been generated. (SOFT V12.1X)

77
‡ ‡ ‡ Operating manual

5.2 Modify

This option permits modifying the contents of a selected program block.

Before pressing this softkey, select with the cursor the block to be modified .

Once this option is selected, the softkeys will change their color showing their type
of modifying option over a white background.

Also, editing help will be available at any time by just pressing the [HELP] key. To
5. quit this help mode, press [HELP] again.

By pressing the [ESC] key, the information corresponding to that block and which was
EDIT
Modify

shown in the editing area will be cleared. From this point on, the block may be edited
again.

To quit the block modifying mode, press [CL] or [ESC] to clear the editing window
and then press [ESC] again. This way, the selected block will not be modified.

Once the block contents have been modified, press [ENTER]. The new block will
replace the previous one.

CNC 8040

·T· MODEL
(SOFT V12.1X)

78
‡ ‡ ‡ Operating manual

5.3 Find

This option is used to find a specific text within the selected program.

When selecting this option, the softkeys will show the following options:

BEGINNING

This softkey positions the cursor over the first program block which is then selected
quitting the "find" option.

END
5.

Find
EDIT
This softkey positions the cursor over the last program block which is then selected
quitting the "find" option.

TEXT

With this function it is possible to search for a text or character sequence starting at
the current cursor position.

When this softkey is pressed, the CNC requests the character sequence to be found.
Once this text has been keyed in, press the "END OF TEXT" softkey and the cursor
will position over the first occurrence of the keyed text.

The search will begin from the block the cursor is position on beginning at that block.

The text found will be highlighted being possible to continue with the search or to quit
it.

Press [ENTER] to continue the search up to the end of the program. The CNC will
begin the search at the last text found and it will highlight it.

The search can be done as many times as desired. Once searched to the end of the
program, it will continue the search from the beginning.

Press the "ABORT" softkey or the [ESC] key to quit the search mode. When quitting
the search mode, the cursor will be positioned at the last matching text found.

LINE NUMBER

After pressing this softkey, the CNC will request the number of the line to be found.
After keying in the desired number and pressing [ENTER], the cursor will position over
that block which will then be selected quitting the search mode.

CNC 8040

·T· MODEL
(SOFT V12.1X)

79
‡ ‡ ‡ Operating manual

5.4 Replace

With this option it is possible to replace a character sequence with another throughout
the selected program.

When selecting this option, the CNC requests the character sequence to be replaced.
Once the text to be replaced is indicated, press the "WITH" softkey and the CNC will
request the character sequence which will replace the previous one.

5. Once this text has been keyed in, press the "END OF TEXT" softkey and the cursor
will position over the first occurrence of the keyed text.

The search will begin from the block the cursor is position on beginning at that block.
Replace
EDIT

The found text will be highlighted and the following softkey options will appear:

REPLACE

It will replace the highlighted text and will continue the search for the indicated text.

This search will be carried out from the text that was replaced up to the end of the
program. If no more occurrences of the text to be replaced are found, the CNC will
quit this mode.

The new text found will be highlighted and the softkeys will show the same "replacing"
or "not replacing" options.

DO NOT REPLACE

It will NOT replace the highlighted text and will continue the search for the indicated
text.

This search will be carried out from the text that was replaced up to the end of the
program. If no more occurrences of the text to be replaced are found, the CNC will
quit this mode.

The new text found will be highlighted and the softkeys will show the same "replacing"
or "not replacing" options.

TO THE END

This option will find and replace the selected text throughout the whole program.

This "find and replace" will start at the highlighted text and will go on to the end of
the program.

ABORT

This option will not replace the highlighted text and it will quit the "find and replace"
mode.

CNC 8040

·T· MODEL
(SOFT V12.1X)

80
‡ ‡ ‡ Operating manual

5.5 Delete block

With this function it is possible to delete a block or group of blocks.

To delete only one block, just position the cursor over it and press [ENTER].

To delete a group of blocks, indicate the first and last blocks to be deleted. To do that,
proceed as follows:
1. Position the cursor over the first block to be deleted and press the "INITIAL
BLOCK" softkey.
2. Position the cursor over the last block to be deleted and press the "FINAL BLOCK"
5.
softkey.

EDIT
Delete block
If the last block to be deleted is also the last one of the program, it can also be
selected by pressing the "TO THE END" softkey.
3. Once the first and last blocks are selected, the CNC will highlight the selected
blocks requesting confirmation to delete them.

CNC 8040

·T· MODEL
(SOFT V12.1X)

81
‡ ‡ ‡ Operating manual

5.6 Move block

With this option it is possible to move a block or group of blocks by previously


indicating the first and last blocks to be moved. To do that, proceed as follows:
1. Position the cursor over the first block to be moved and press the "INITIAL
BLOCK" softkey.
2. Position the cursor over the last block to be moved and press the "FINAL BLOCK"
softkey.

5. If the last block to be moved is also the last one of the program, it can also be
selected by pressing the "TO THE END" softkey.
To move only one block, the "initial block" and the "final block" will be the same
EDIT
Move block

one.

Once the first and last blocks are selected, the CNC will highlight the selected blocks
requesting confirmation to move them.

Then, indicate the block after which this group of blocks must be placed.

Press the "START OPERATION" softkey to carry out this command.

CNC 8040

·T· MODEL
(SOFT V12.1X)

82
‡ ‡ ‡ Operating manual

5.7 Copy block

With this option it is possible to copy a block or group of blocks by previously indicating
the first and last blocks to be copied. To do that, proceed as follows:
1. Position the cursor over the first block to be copied and press the "INITIAL
BLOCK" softkey.
2. Position the cursor over the last block to be copied and press the "FINAL BLOCK"
softkey.
If the last block to be copied is also the last one of the program, it can also be
selected by pressing the "TO THE END" softkey. 5.
To copy only one block, the "initial block" and the "final block" will be the same one.

EDIT
Copy block
Once the first and last blocks are selected, the CNC will highlight the selected blocks
requesting confirmation to copy them.

Then, indicate the block after which this group of blocks must be placed.

Press the "START OPERATION" softkey to carry out this command.

CNC 8040

·T· MODEL
(SOFT V12.1X)

83
‡ ‡ ‡ Operating manual

5.8 Copy to program

With this option it is possible to copy a block or group of blocks of one program into
another program.

When selecting this option, the CNC will request the number of the destination
program where the selected block or blocks are to be copied. After entering the
program number press [ENTER].

5. Next, indicate the first and last blocks to copy. To do that, proceed as follows:
1. Position the cursor over the first block to be copied and press the "INITIAL
BLOCK" softkey.
Copy to program
EDIT

2. Position the cursor over the last block to be copied and press the "FINAL BLOCK"
softkey.
If the last block to be copied is also the last one of the program, it can also be
selected by pressing the "TO THE END" softkey.
To copy only one block, the "initial block" and the "final block" will be the same one.

Once the first and last blocks are selected, the CNC will highlight the selected blocks
and will execute the command.

If the destination program already exists, the following options will be displayed:
• Write over the existing program. All the blocks of the destination program will be
erased and will be replaced by the copied blocks.
• Append (add) the copied blocks behind the ones existing at the destination
program.
• Abort or cancel the command without copying the blocks.

CNC 8040

·T· MODEL
(SOFT V12.1X)

84
‡ ‡ ‡ Operating manual

5.9 Import a program

With this option it is possible to include or merge the contents of another program
into the one currently selected.

Once this option is selected, the CNC will request the number of the source program
to be merged. After entering the program number press [ENTER].

Next, indicate with the cursor the block after which the source program will be
included.

Press the "START OPERATION" softkey to carry out this command.


5.

EDIT
Import a program

CNC 8040

·T· MODEL
(SOFT V12.1X)

85
‡ ‡ ‡ Operating manual

5.10 Editor parameters

With this option it is possible to select the editing parameters used in this operating
mode.

The options or parameters available are described here and they are selected by
softkeys.

5.10.1 Autonumbering
5. With this option it is possible to have the CNC automatically number (label) the blocks
EDIT
Editor parameters

after the one being edited. This function will not number the already existing blocks.

Once this option is selected, the CNC will display the "ON" and "OFF" softkeys to
either activate (ON) or deactivate (OFF) this function.

When activating the auto-numbering, the softkeys will show the following options:

STARTING

After pressing this softkey, enter the starting block number to be used on the next
block to be edited. The default value for this parameter is "0".

STEP

When pressing this softkey, the CNC will request the numbering step between two
consecutive blocks.

After pressing this softkey, Enter the starting block number to be used on the next
block to be edited. To do this, select the "STARTING" softkey.

After defining the step and the beginning, if so requested, press [ENTER] for this
value to be assumed by the CNC. The default value for this parameter (STEP) is "10".

CNC 8040

·T· MODEL
(SOFT V12.1X)

86
‡ ‡ ‡ Operating manual

5.10.2 Selection of the axes for TEACH-IN editing.

Remember that in the TEACH-IN editing mode, when the block being edited has no
information (empty editing area or window), the [ENTER] key may be pressed in
which case the CNC will generate a new block with the current position values of the
axes.

The option described here, permits the selection of the axes whose position values
will be automatically entered in said block.

After pressing the "TEACH-IN AXES" softkey, the CNC shows all the axes of the
machine. 5.

EDIT
Editor parameters
The operator must eliminate, pressing the corresponding softkeys, the axis or axes
not desired. Every time a softkey is pressed, the CNC will eliminate the corresponding
axis displaying only the selected ones.

To end this operation, press [ENTER].

The CNC will assume from now on and whenever editing in TEACH-IN, the selected
axes. To change those values, access this option again and select the new axes.

CNC 8040

·T· MODEL
(SOFT V12.1X)

87
‡ ‡ ‡ Operating manual

5.
EDIT
Editor parameters

CNC 8040

·T· MODEL
(SOFT V12.1X)

88
JOG

6
This mode of operation will be used whenever the manual control of the machine is
desired.

Once this mode of operation is selected, the CNC allows the movement of all the axes
by means of the jog keys located on the operator panel, or by means of the electronic
handwheel (if available). Likewise, the CNC will enable the keys of the operator panel
to control the movement of the machine's spindle.

With the MDI option it is possible to modify the machining conditions (type of moves,
feedrates, etc.) being selected. Also, the CNC will maintain the ones selected in this
mode when switching to "EXECUTION" or "SIMULATION" modes.

This operating mode offers the following softkey options:

"Home search" softkey

With this option it is possible to perform a home search on the desired axis or axes.
Once this option is selected, the CNC will show a softkey for each axis and the "ALL"
softkey.

The CNC offers two ways to search the machine reference (home):
• By selecting the "ALL" softkey and using the subroutine associated with function
G74. The number of this subroutine will defined by the general machine
parameter "REFSUB".
• By selecting the axis or axes to be referenced.

If the "ALL" softkey is selected, the CNC will highlight (in reverse video) the names
of all axes and after pressing the [START] key, it will execute the subroutine
associated with G74.

To search home on one to all axes at once (without executing the associated
subroutine), press the softkeys corresponding to those axes. After pressing each
softkey, the CNC will highlight the name of the selected axis. If an unwanted axis has
been selected, press [ESC] to cancel that selection and return to select
"REFERENCE SEARCH".

Once all the desired axes have been selected, press [START]. The CNC will start
the home search by moving all selected axes at once until the home reference
switches for all axes are pressed. The CNC will then do the home search one axis
at a time.

The home search and the part zero.


CNC 8040
When searching home using the "ALL" softkey, the CNC will maintain the part zero
or zero offset active at the time. However, if the axes have been selected one by one,
the CNC will assume the "home" position as the new part zero.

·T· MODEL
(SOFT V12.1X)

89
‡ ‡ ‡ Operating manual

When must a home search be done

The CNC demands a home search in the following cases.


• On CNC power-up.
• After executing the sequence [SHIFT] [RESET].
• When the feedback is direct through the axes board and a feedback alarm occurs.
• When losing feedback count via Sercos due to broken communication. Difference
greater than 10 microns (0.00039 inches) or 0.01º

6. • When modifying certain machine parameters; for example, number of axes.


JOG

"PRESET" softkey

With this function it is possible to preset the desired axis position value. Once this
option is selected, the CNC will show the softkey corresponding to each axis.

After pressing the softkey of the corresponding axis to be preset, the CNC will request
the position value to be preset with.

Press [ENTER] after the value has been keyed in so the new value is assumed by
the CNC.

"TOOL CALIBRATION" softkey

With this function it is possible to calibrate the length of the selected tool by using a
part of known dimensions for this purpose.

Before pressing this softkey, the tool to be calibrated must be selected.

Tool calibration without a probe

The tool calibration is performed axis by axis (X, Z). Follow these steps:
1. Press the softkey corresponding to the axis [X] or [Z].
2. The CNC will request the position value of the known part at the touch point. Once
this value has been keyed in, press [ENTER] for this value to be assumed by the
CNC.
3. Move the tool using the JOG keys until touching the part.
4. Press the "LOAD" softkey for that axis.
The CNC will perform the necessary calculations and it will assign the new value
to the selected tool length offset.

Repeat these operation to calibrate the tool along the other axis.

Probing

When using a probe for tool calibration, the following machine parameters must be
properly set: "PRBXMIN", "PRBXMAX", "PRBYMIN", PRBYMAX", "PRBZMIN" ,
"PRBZMAX" and "PRBMOVE".

The tool calibration is performed axis by axis (X, Z) in either one of these modes:
"without a probe" as described above and as follows:
CNC 8040
1. Position the tool facing the probe.
2. Position the tool in front of the probe. Press the softkey that indicates the direction
of the tool calibration. [PROBE X+], [PROBE X-], [PROBE Z+], [PROBE Z-].

·T· MODEL
(SOFT V12.1X)

90
‡ ‡ ‡ Operating manual

3. The CNC will move the tool at the feedrate indicated by the machine parameter
for that axis "PRBFEED" until touching the probe. The maximum distance the tool
can move is set by machine parameter "PRBMOVE".
4. When the tool touches the probe, the CNC stops the axis and, after making the
pertinent calculations, it will assign the new tool length value to its corresponding
offset.

Repeat these operation to calibrate the tool along the other axis.

6.

JOG

"MDI" softkey

With this function it is possible to edit and execute a block (ISO or high-level) providing
the necessary information by means of softkeys.

Once a block has been edited and after pressing the [START] key, the CNC will CNC 8040
execute this block without leaving this operating mode.

i When searching home "G74", the CNC will maintain the part zero or zero
offset active at the time.
·T· MODEL
(SOFT V12.1X)

91
‡ ‡ ‡ Operating manual

"USER" softkey

When selecting this option, the CNC will execute, in the user channel, the program
whose number is indicated in the general machine parameter "USERMAN".

To quit its execution and return to the previous menu, press [ESC].

"DISPLAY" softkey
6. The available display modes are:
JOG

Actual

Shows the current real position of the axes referred to part zero.

Following error

Difference between the real and the theoretical position of each


axis and the spindle.

Actual and following error

It shows the real position of the axes and their following error.

PLC
CNC 8040
Access the PLC monitoring mode.

·T· MODEL
(SOFT V12.1X)

92
‡ ‡ ‡ Operating manual

Position

It shows the real position of the axes referred to part zero and
to machine zero (home)

6.

JOG
"MM/INCHES" softkey

This softkey toggles the display units for the linear axes from millimeters to inches
and vice versa.

The lower right-hand window will indicate which units are selected (MM/INCH).

Note that this switching obviously does not affect the rotary axes which are shown
in degrees.

CNC 8040

·T· MODEL
(SOFT V12.1X)

93
‡ ‡ ‡ Operating manual

6.1 Jog

6.1.1 Continuous Jog

Once the % override of the jogging feedrate (indicated by axis-machine parameter


"JOGFEED") has been selected with the switch at the Operator Panel , press the jog
keys corresponding to the desired axis and to the desired jogging direction.

The axes can be jogged one at a time and in different ways depending on the status
6. of the general logic input "LATCHM":

• If the PLC sets this mark low, the axes will be jogged while pressing the
Jog
JOG

corresponding Jog key.

• If the PLC sets this mark high, the axes will move from the moment the
corresponding JOG key is pressed until the [STOP] key or other JOG key is
pressed. In this case, the movement will be transferred to that indicated by the
new key.

If while jogging an axis, the rapid key is pressed, the axis will move at the feedrate
established by machine parameter "G00FEED" for this axis as long as this key stays
pressed. This feedrate will be applied while this key is pressed and it will restore the
jogging feedrate percentage (0% to 120%) indicated in axis machine parameter
"JOGFEED" when this key is released.

CNC 8040

·T· MODEL
(SOFT V12.1X)

94
‡ ‡ ‡ Operating manual

6.1.2 Incremental jog

It allows to jog the selected axis in the selected direction an incremental step selected
by the Feedrate Override switch of the operator panel. This movement will be carried
out at the jog feedrate indicated by axis machine parameter "JOGFEED".

The available positions are 1, 10, 100, 1000 and 10000 that indicate the units to move
the axis. These units correspond to the units used for display.

Example: Display format: 5.3 in mm or 4.4 in inches.

Switch position Distance 6.


1 0.001 mm or 0.0001 inches

Jog
JOG
10 0.010 mm or 0.0010 inch
100 0.100 mm or 0.0100 inches
1000 1.000 mm or 0.1000 inches
10000 10.000 mm or 1.0000 inches

The maximum permitted step is 10 mm or 1 inch regardless of the selected display


format (for example: 5.2 in mm or 4.3 in inches) the movement for the 1000 and 10000
positions will be the maximum allowed.

After selecting the desired incremental move at the switch, if a jog key is pressed,
the corresponding axis will move the selected distance in the selected direction.

If while jogging an axis, the rapid key is pressed, the axis will move at the feedrate
established by machine parameter "G00FEED" for this axis as long as this key stays
pressed. This feedrate will be applied while this key is pressed and it will restore the
jogging feedrate percentage (0% to 120%) indicated in axis machine parameter
"JOGFEED" when this key is released.

CNC 8040

·T· MODEL
(SOFT V12.1X)

95
‡ ‡ ‡ Operating manual

6.1.3 Path-jog mode.

The "path jog" mode acts when the switch is in one of the continuous or incremental
jog positions. This feature may be used to act upon the jog keys of an axis to move
both axes of the plane at the same time for chamfering (straight sections) and
rounding (curved sections). The CNC assumes as "Path jog" the keys associated with
the X axis.

The data to define the paths is defined using the following variables.

6. • For a linear path, indicate the path angle in the MASLAN variable (value in
degrees between the linear path and the first axis of the plane).
• For an arc, indicate the arc center coordinates in the MASCFI, MASCSE variables
Jog
JOG

(for the first and second axes of the main plane).

Variables MASLAN, MASCFI and MASCSE may be read and written from the CNC,
DNC and PLC.

This feature must be managed from the PLC. This feature is usually activated
i and deactivated by means of an external push-button or a key configured for
that purpose, as well as the selection of the type of path.

Operation in path-jog mode

The "path jog" mode is only available with the X axis keys. When pressing one of the
keys associated with the X axis, the CNC behaves as follows:

Switch position Path-jog Type of movement

Continuous jog OFF Only the axis and in the indicated direction

ON Both axes in the indicated direction and along


the indicated path

Incremental jog OFF Only the axis, the selected distance and in the
indicated direction

ON Both axes, the selected distance and in the


indicated direction, but along the indicated path

Handwheel It ignores the keys.

The rest of the jog keys always work in the same way, whether "path jog" is on or
off. The rest of the keys move only the axis and in the indicated direction.

The movements in path-jog may be aborted by pressing the [STOP] key or setting
the jog switch to one of the handwheel positions.
CNC 8040

·T· MODEL
(SOFT V12.1X)

96
‡ ‡ ‡ Operating manual

Considerations about the jog movements

This mode assumes as axis feedrate the one selected in jog mode and it will also be
affected by the feedrate override switch. If F0 is selected, it assumes the one
indicated by machine parameter “JOGFEED (P43)”. This mode ignores the rapid jog
key.

Path-jog movements respect the travel limits and the work zones.

6.

Jog
JOG

CNC 8040

·T· MODEL
(SOFT V12.1X)

97
‡ ‡ ‡ Operating manual

6.2 Movement with an electronic handwheel

Depending on their configuration, the various types of handwheels are:


• General handwheel.
This handwheel may be used to jog any axis one by one.
Select the axis and turn the handwheel to move it.
• Individual handwheel.

6. This handwheel is the replacement for mechanical handwheels. It only moves the
axis it is associated with.
Up to 3 handwheels can be used (one per axis).
JOG
Movement with an electronic handwheel

• Path-handwheel.
This type of handwheel may be used to make chamfers and rounding. Two axes
are moved along a selected path (chamfer or rounding) by moving a single
handwheel.
The CNC assumes as the path handwheel the general handwheel or, when this
one is missing, the one associated with the X axis.
This feature must be managed from the PLC.
• Feed handwheel mode.
This type of handwheel may be used to control the feedrate of the machine.
This feature must be managed from the PLC.
• "Additive handwheel" mode
This type of handwheel may be used to jog the axes while a program is being
executed.
This feature must be managed from the PLC.

Movement with handwheel

To move any of them, turn the switch to any of the handwheel positions. Positions
1, 10 and 100 indicate the multiplying factor being applied besides the internal x4 to
the feedback pulses supplied by the electronic handwheel.

For example, if the manufacturer has set a distance of 0.100 mm or 0.0100 inches
per handwheel turn, thus:

Switch position Distance per turn


1 0.100 mm or 0.0100 inches
10 1.000 mm or 0.1000 inches
100 10.000 mm or 1.0000 inches

When jogging with handwheels, i may happen that depending on the turning
speed and the selector switch position, the CNC be demanded a faster
feedrate than the maximum allowed. The CNC will move the axis the indicated
distance but at the maximum feedrate allowed.

CNC 8040

·T· MODEL
(SOFT V12.1X)

98
‡ ‡ ‡ Operating manual

6.2.1 General or individual handwheel mode

The machine may have a general handwheel and up to 3 individual handwheels


associated with each axis. In this case, the individual handwheels have priority over
the general handwheel. So, if an individual handwheel is moving, the general
handwheel will be ignored.

General handwheel

To jog the axes with the general handwheel:


6.

JOG
Movement with an electronic handwheel
1. Select the axis to be jogged.
Press one of the JOG keys of the axis to be jogged. The selected axis will be
highlighted.
When using a FAGOR handwheel with an axis selector button, the axis may be
selected by pressing the push-button on the back of the handwheel. The CNC
select the first axis and it highlights it. When pressing the button again, the CNC
selects the next axis and so on in a rotary fashion. To deselect the axis, hold the
button pressed for more than 2 seconds.
2. Jog the axis
Once the axis has been selected, it will move as the handwheel is being turned
and in the direction indicated by it.

Individual handwheels

Each axis will move as the corresponding handwheel is being turned according to
the switch position and in the direction indicated by it.

CNC 8040

·T· MODEL
(SOFT V12.1X)

99
‡ ‡ ‡ Operating manual

6.2.2 Path handwheel

The "path handwheel" mode acts when the switch is in one of the handwheel
positions. With this feature, it is possible to jog two axes of the plane at the same time
along a linear path (chamfer) or circular path (rounding) with a single handwheel. The
CNC assumes as the path handwheel the general handwheel or, when this one is
missing, the one associated with the X axis.

The data to define the paths is defined using the following variables.

6. • For a linear path, indicate the path angle in the MASLAN variable (value in
degrees between the linear path and the first axis of the plane).
• For an arc, indicate the arc center coordinates in the MASCFI, MASCSE variables
JOG
Movement with an electronic handwheel

(for the first and second axes of the main plane).

Variables MASLAN, MASCFI and MASCSE may be read and written from the CNC,
DNC and PLC.

This feature must be managed from the PLC. This feature is usually activated
i and deactivated by means of an external push-button or a key configured for
that purpose, as well as the selection of the type of path.

Operation in path-handwheel mode

When selecting the path handwheel mode, the CNC behaves as follows.
• If there is a general handwheel, it will be the one working in path handwheel mode.
The individual handwheels, if any, will remain associated with the corresponding
axes.
• If there is no general handwheel, the individual handwheel associated with the
X axis then works in path-handwheel mode.

The movements in path-handwheel may be aborted by pressing the [STOP] key or


setting the jog switch to one of the continuous or incremental positions.

Considerations about the jog movements

Path-handwheel movements respect the travel limits and the work zones.

CNC 8040

·T· MODEL
(SOFT V12.1X)

100
‡ ‡ ‡ Operating manual

6.2.3 Feed handwheel mode

Usually, when making a part for the first time, the machine feedrate is controlled by
means of the feedrate override switch.

From this version on, it is also possible to use the machine handwheels to control
that feedrate. This way, the machining feedrate will depend on how fast the
handwheel is turned.

i This feature must be managed from the PLC. This feature is usually activated
and deactivated by means of an external push-button or a key configured for
that purpose.
6.

JOG
Movement with an electronic handwheel
The following CNC variables return the number of pulses the handwheel has turned.
HANPF Provides the number of pulses of the 1st handwheel.
HANPS Provides the number of pulses of the 2nd handwheel.
HANPT Provides the number of pulses of the 3rd handwheel.
HANPFO Provides the number of pulses of the 4th handwheel.

CNC 8040

·T· MODEL
(SOFT V12.1X)

101
‡ ‡ ‡ Operating manual

6.2.4 "Additive handwheel" mode

With manual intervention or additive handwheel, it is possible to move the axes


manually while a program is being executed. Once this option is activated, use the
handwheel to make a movement to be added to the one resulting from the automatic
execution. This movement will be applied as if it were another zero offset.

The general handwheel will be used as the additive handwheel. If there is no general
handwheel, use the individual handwheel associated with the axis. Only one additive
handwheel may be enabled at a time; the CNC will only attend to the first enabled
6. handwheel.
JOG
Movement with an electronic handwheel

G01 X_ Z_
A
X
(Z,X)
ADIOFX

B
Z

(A) Position of the tool while in execution.


(B) Position of the tool after a manual intervention.

This feature must be managed from the PLC. This feature is usually activated
i and deactivated by means of an external push-button or a key configured for
that purpose.

The intervention with an additive handwheel is only possible in execution mode, even
while the program is interrupted. However, it is not allowed in the tool inspection
mode.

If the additive handwheel is enabled for a coordinate transformation G46 (incline


axis), the handwheel movements are applied to the machining operation even if they
are not shown on the graphics screen.

The offset caused by the additive handwheel stays active after disabling the
handwheel and it is reset to zero after a home search. The offset stays active or is
reset after an M02 or M30 and after an emergency or a reset depending on the setting
of axis machine parameter ADIMPG.

Considerations to the additive handwheel.

The movement with the additive handwheel on the master axis is also applied to the
slave axis when using axes that are gantry, slaved or synchronized by PLC.

When testing the software limits during block preparation, it checks the theoretical
coordinate ignoring the additional movement of the additive handwheel.

CNC 8040 The mirror image by PLC is not applied to the additive handwheel movement.

·T· MODEL
(SOFT V12.1X)

102
‡ ‡ ‡ Operating manual

Configuring the additive handwheel

Handwheel resolution and maximum feedrate.

The resolution of the additive handwheel depends on the setting of parameter


ADIMPG. There are two options to set the resolution:
• The resolution of the handwheel is set by parameter ADIMPRES (P177) of the
axis.
• The handwheel resolution is set with the switch of the operator panel. If the switch
is not in the handwheel position, it assumes a x1 factor.

Maximum feedrate allowed, due to the additive handwheel, is limited by parameter


6.

JOG
Movement with an electronic handwheel
ADIFEED (P84).

Coordinates display

Parameter DIPLCOF determines whether the CNC takes into consideration or not
the additive zero offset when displaying the coordinates of the axes on the screen
and when accessing the POS(X-C) and TPOS(X-C) variables.

CNC 8040

·T· MODEL
(SOFT V12.1X)

103
‡ ‡ ‡ Operating manual

6.3 Spindle movement

It is possible to control the spindle by means of the following operator-panel keys


without the need to execute M03, M04 or M05.

Similar to executing function M03. To start the spindle clockwise


and displays function M03 in the machining history.

Similar to executing function M04. To start the spindle

6. counterclockwise and displays function M04 in the machining


history.
JOG

Similar to executing function M05. To stop the spindle.


Spindle movement

vary the programmed spindle speed between the % set in spindle


machine parameters "MINSOVR" and "MAXSOVR with
i ncreme ntal step s set in sp ind le mach ine para meter
"SOVRSTEP".

It is recommended to define the spindle speed before selecting the turning direction
in order to avoid an abrupt start because the turning direction had been selected
before.

CNC 8040

·T· MODEL
(SOFT V12.1X)

104
TABLES

7
In order to select a new tool, tool offset or zero offset, it is necessary that those values
be previously stored at the CNC.

The following tables may be used for that:


• Zero offset table.
It must be defined. It indicates each axis offset for each zero offset.
• Tool offset table.
It must be defined. It stores the dimensions of each tool.
• Tool table.
It must be defined. It indicates for each tool, the family it belongs to, the offset
associated to it, its nominal and real life spans, etc.
• Tool magazine table
It must be defined. It indicates the position each tool occupies in the tool
magazine.
• Tool geometry table.
It must be defined. It indicates the dimensions and cutting angle of each cutter.
• Global and local parameters table.
It does not need to be defined.

It is updated by the CNC. When selecting a tool (T) or a tool offset (D), the CNC acts
as follows:

Magazine? No If the machine has a tool magazine, the CNC looks


up the table to know the position occupied by the
Yes selected tool and the desired one.
Tool selection

"D" defined? Yes If the "D" function has not be defined, the CNC
looks up the tool table to know the number of the
No offset associated with it.
The CNC assume the "D"
associated with the tool by
default
The CNC looks up the tool offset table and
The CNC takes the assumes the tool dimensions corresponding to the
dimensions defined in the "D" offset.
tool offset table
The CNC analyzes the tool geometry table to know
CNC 8040
The CNC takes the the geometry of the cutter (width, angle and cutting
geometry defined in the tool angle). The geometry will be associated with the
geometry table tool or with the tool offset, according to the
manufacturer's criteria.
·T· MODEL
(SOFT V12.1X)

105
‡ ‡ ‡ Operating manual

It is recommended to save the tables in the "Memkey Card" (CARD A) or out to a


peripheral device or PC.

When accessing the TABLES operating mode, the CNC shows all the tables saved
into the "Memkey Card" (CARD A).

If on CNC power-up, it detects that any table has been damaged, it checks whether
that table has been saved in the CARDA or not.
• If it is in the CARDA, it asks whether a to make a copy or not.
• If it is not in the CARDA, it asks whether a to initialize with the default values or not.
7. When copying one of the following tables from the CARDA, it resets the CNC
i
TABLES

automatically.
Zero offsets, M functions, tools, tool magazine, tool offsets, geometry,
leadscrew error compensation, cross compensation.

CNC 8040

·T· MODEL
(SOFT V12.1X)

106
‡ ‡ ‡ Operating manual

7.1 Zero offset table

This table stores the offset of each axis.

7.

Zero offset table


TABLES
The end of the chapter describes how to edit the table. The possible zero offsets are:

PLC. Additive zero offset defined by PLC.

It is used, for example, to correct deviations originated by machine dilatations.

These values are set from the PLC and from the part-program, by means of high level
variables "PLCOF(X-C)".

The CNC always adds these values to the zero offset currently active.

G54 through G57. Absolute zero offsets.

They can also be modified from the PLC and from the part-program, by means of
high level variables "ORG(X-C)".

In order for one of these absolute zero offsets to be active, it must be selected at the
CNC using its corresponding G code (G54, G55, G56 or G57).

G58 and G59. Incremental zero offsets.

They can also be modified from the PLC and from the part-program, by means of
high level variables "ORG(X-C)".

In order for one of these incremental zero offsets to be active, it must be selected at
the CNC using its corresponding G code (G58 or G59).

The new incremental zero offset will be added to the absolute zero currently selected.
CNC 8040

·T· MODEL
(SOFT V12.1X)

107
‡ ‡ ‡ Operating manual

7.2 Tool magazine table

This table contains information about the tool magazine indicating all the tools of the
magazine and their position in it.

7.
TABLES
Tool magazine table

The end of the chapter describes how to edit the table.

Magazine position

Besides indicating each position in the magazine, it indicates the active tool and the
one selected for the following operations.

The next tool will be placed in the spindle after executing auxiliary function M06.

Tool

It indicates the number of the tool occupying that position.

The empty positions appear with the letter "T" and the canceled ones with the
characters T****.

Status

The first letter indicates the tool size and the second one its status.

The size depends on the number of pockets it occupies in the magazine.


N = Normal (family 0-199).
S = Special (family 200-255).

The tool status is defined as follows:


A = Available
CNC 8040 E = Expired ("real life" greater than "nominal life").
R = Rejected by the PLC.

·T· MODEL
(SOFT V12.1X)

108
‡ ‡ ‡ Operating manual

7.3 Tool table

This table stores information about the tools available indicating the type of tool offset
associated with them, their family, etc.

7.

Tool table
TABLES
The end of the chapter describes how to edit the table. Each tool has the following
data fields:

Offset number associated with the tool.

Every time a tool is selected, the CNC will assume its dimensions as they appear in
the tool offset table for the specified tool offset.

Family code.

It will be used when having an automatic tool changer and it will allow replacing the
worn out tool with another one with similar characteristics.

There are two types of families:


• Those for normal tools whose codes are between 0 and 199.
• Those for special tools (which occupy more than one magazine pocket), whose
numbers are between 200 and 255.

Every time a new tool is selected, the CNC checks whether it is worn out ("real life"
greater than "nominal life"). If that is the case, it will not select it, but it will select
another one of the same family, instead.

If while machining a part, the PLC "asks" the CNC to reject the current tool (by
activating the logic input "TREJECT"), the CNC will display the message "rejected"
in the "STATUS" field and it will replace it with the next tool of the same family that
appear in the tool table. This change will take place the next time that tool is selected.
CNC 8040
Nominal tool life.

It indicates the machining time (in minutes) or the number of operations that that tool
is calculated to last.

Real tool life. ·T· MODEL


(SOFT V12.1X)
It indicates the machining time (in minutes) or the number of operations already
carried out by that tool.

109
‡ ‡ ‡ Operating manual

Tool status.

It indicates the size of the tool and its status:

The tool size depends on the number of pockets it takes in the magazine and it is
defined as follows:
N = Normal (family 0-199).
S = Special (family 200-255).

The tool status is defined as follows:

7. A = Available
E = Expired ("real life" greater than "nominal life").
Tool table
TABLES

R = Rejected by the PLC.

GEOMETRY

This softkey is available when the machine manufacturer has associated the tool
geometry with the tool. When selecting this option, the CNC lets access the tool
geometry table.

CNC 8040

·T· MODEL
(SOFT V12.1X)

110
‡ ‡ ‡ Operating manual

7.4 Tool Offset table

This table stores the dimensions of each tool.

7.

Tool Offset table


TABLES
The values of this table can also be modified from the PLC and from the part-program
by means of the high level variables associated with the tools.

The end of the chapter describes how to edit the table. Each offset has a number of
fields containing the tool dimensions. These fields are:

Tool length along the X and Z axes (in radius).

Tool radius.

Tool length wear (I) along the X axis.

It is given in diameters. The CNC will add this value to the nominal length along the CNC 8040
X axis in order to calculate its real length (X+I).

Tool length wear (K) along the Z axis.

The CNC will add this value to the nominal length along the Z axis in order to calculate
its real length (Z+K). ·T· MODEL
(SOFT V12.1X)

111
‡ ‡ ‡ Operating manual

Tool type. Location codes (shape) F0 through F10.

They indicate the tool shape and how it has been calibrated.

7.
Tool Offset table
TABLES

Codes F0 and F9 must only be used when calibrating the tool tip center and not the
sides of the cutter.

When using an end-mill or a drill bit, this location code must be F10.

CNC 8040

·T· MODEL
(SOFT V12.1X)

112
‡ ‡ ‡ Operating manual

7.

Tool Offset table


TABLES

CNC 8040

·T· MODEL
(SOFT V12.1X)

113
‡ ‡ ‡ Operating manual

7.
Tool Offset table
TABLES

CNC 8040

·T· MODEL
(SOFT V12.1X)

114
‡ ‡ ‡ Operating manual

7.5 Tool geometry table.

This table contains information such as cutter angle, cutting angles, etc. regarding
the geometry of the available tools.

7.

TABLES
Tool geometry table.
The data corresponding to each tool is contained in the following fields:

Tool data contained in other tool tables:


"T" Tool number.
"D" Associated tool offset number (tool table)
"X" Tool length along X axis (tool offset table).
"Z" Tool length along Z axis (tool offset table).
"R" Radius of the cutter (tool offset table)
"F" Location code or type of tool (tool offset table).

If the "X" length assigned to a tool is greater than the


"Z" length value, the CNC will show a tool with a
vertical handle and when "X" is shorter than "Z", with
a horizontal handle.

Cutter angle (NOSEA).

Indicates the angle formed by the sides of the cutter and it is given in degrees.
CNC 8040

·T· MODEL
(SOFT V12.1X)

115
‡ ‡ ‡ Operating manual

Cutter width (NOSEW).

Cutting angle (CUTA).

The parameters corresponding to the cutter angle (NOSEA) and the cutter width
(NOSEW) must always be defined.

When the cutter is square, its angle value will be 90o


(NOSEA = 90).

7.
TABLES
Tool geometry table.

When the cutter is round, the cutter angle will be 90o


(NOSEA=90) and the parameter corresponding to the
cutter width must be assigned its diameter value (NOSEW
= 2R).

The cutting angle (CUTA) must only be defined when the selected tool type (location
code "F") is F1, F3, F5 or F7.

If the selected tool type is F0 or F9, it is not necessary to define any parameter and
if it is F1, F3, F5 or F7, the following parameters must be defined: the cutter angle
(NOSEA), the cutter width (NOSEW) and the cutting angle (CUTA).

When the selected tool type is F2, F4, F6 or F8, only the cutter angle (NOSEA) and
width (NOSEW) must be defined.

When using a drill bit or end-mill, Tool type (location code) F10 must be used being
necessary to define the values of of NOSEW (cutter width) and NOSEA (cutter tip
angle).

CNC 8040

·T· MODEL
(SOFT V12.1X)

116
‡ ‡ ‡ Operating manual

7.

TABLES
Tool geometry table.

CNC 8040

·T· MODEL
(SOFT V12.1X)

117
‡ ‡ ‡ Operating manual

7.5.1 How to edit the tool geometry table

Once the tool geometry table is selected, the following options are available:

"EDIT" softkey

The softkeys will change their background color to white and they will offer the

7. following options:
• Cutter angle.
• Cutter width.
TABLES
Tool geometry table.

• Cutting angle.
• Previous menu.. To return to the to the tool geometry menu.

Press [ESC] to quit the geometry editing mode and return to the for the tool table.

"FIND" softkey

It is possible to select a new geometry table. The CNC will request the number of the
tool or offset associated with the geometry is to be displayed.

"DELETE" softkey

With this option, it is possible to delete the geometry of the displayed tool setting to
0 its NOSEA, NOSEW and CUTA field values.

"CLEAR ALL" softkey

This option may be used to delete the geometry of all the tools defined in the tool table.

The CNC will set to 0 the NOSEA, NOSEW and CUTA fields of all the tools defined
in the tool table.

"MM/INCHES" softkey

Every time this softkey is pressed, the CNC will change the display units for the
coordinates corresponding to the tool geometry (X, Z, R). The lower right-hand side
window shows the units selected (MM/INCH).

CNC 8040

·T· MODEL
(SOFT V12.1X)

118
‡ ‡ ‡ Operating manual

7.6 Global and local parameters tables

The CNC has two types of general purpose variables:


• Local parameters P0-P25 (7 levels)
• Global parameters P100-P299.

The CNC updates the parameter tables after carrying out the operations indicated
in the block in preparation. This operation is always carried out before executing the
block. Therefore, the values shown in the table may not coincide with those of the
block being executed. 7.
If the execution mode is abandoned after interrupting the execution of the program,

TABLES
Global and local parameters tables
the CNC will update the parameter tables with values corresponding to the block
which was being executed.

In the global and local parameter tables, the values of the parameters may be
displayed in decimal (4127.423) or in scientific notation (0.23476 E-3).

The CNC generates a new nesting level of local parameters every time parameters
are assigned to a subroutine. Up to a maximum of 6 nesting levels of local parameters
are possible.

When the machining canned cycles: G66, G68, G69, G81, G82, G83, G84, G85, G86,
G87, G88 and G89 are active, they use the sixth nesting level of local parameters.

To access the different local parameter tables, the corresponding level must be
indicated (0 through 6).

While programming in high level, local parameters may be referred to as P0-P25,


or as A-Z,"A" being the same as "P0" and "Z" the same as "P25".

That is why the local parameter tables show the parameter number next to their
associated letter (between parenthesis). In the tables, the parameter can only
referred to as P0-P25, letters are not allowed.

CNC 8040

·T· MODEL
(SOFT V12.1X)

119
‡ ‡ ‡ Operating manual

7.7 How to edit tables

It is possible to move the cursor line by line using the [©] [ª] keys or page by page
using the Page-up and Page-down keys.

There are several ways to edit or modify a line that will be described next.

Once any of those options has been selected, the user can move the cursor over this
line by means of the [§] [¨] keys. On the other hand, with the [©] key, the cursor

7. may be placed over the first character of the editing window and, with the [ª] key over
the last character.
How to edit tables
TABLES

"EDIT" softkey

Once this option has been selected, the softkeys change color appearing over a white
background and they show the information corresponding to the type of editing that
may be done.

Also, editing help will be available at any time by just pressing the [HELP] key. To
quit this help mode, press [HELP] again.

Press [ESC] to quit the editing mode and maintain the table with the previous values.

Once the editing is done, press [ENTER]. The values assigned will be entered into
the table.

"MODIFY" softkey

Once this option has been selected, the softkeys change color appearing over a white
background and showing the information corresponding to each field.

Also, editing help will be available at any time by just pressing the [HELP] key. To
quit this help mode, press [HELP] again.

By pressing [ESC], the information shown in the editing area is deleted. From this
point on, the selected line may be edited again.

To quit the block modifying mode, press [CL] or [ESC] to clear the editing window
and then press [ESC] again. The table will keep its previous values.

Once the modification is over, press [ENTER]. The new values assigned will be
entered into the table.

CNC 8040

·T· MODEL
(SOFT V12.1X)

120
‡ ‡ ‡ Operating manual

"FIND" softkey

When selecting this option, the softkeys will show the following options:
STARTING When pressing this softkey, the cursor is placed over the first line of
the table that can be edited.
END When pressing this softkey, the cursor is placed over the last line of
the table.
Zero offset, tool offset, tool, position, parameter
When pressing one of these softkeys, the CNC requests the field
number to be found. Once the field has been defined, press [ENTER]. 7.

How to edit tables


TABLES
The CNC searches for the requested field and places the cursor over it (when found).

"DELETE" softkey

When deleting a line, the CNC sets all the fields to "0".

To delete a line, indicate its number and press [ENTER]

To delete several lines, indicate the beginning, press the [UP TO] softkey, indicate
the last line to be deleted and press [ENTER]

To delete all the lines, press the "ALL" softkey. The CNC will request confirmation
of the command.

"INITIALIZE" softkey

Resets all the table data to "0". The CNC will request confirmation of the command.

"LOAD" softkey

The tables may be loaded from the "Memkey Card" (CARD A) or a peripheral device
or a PC through the two serial communications lines (RS232C or RS422).

The transmission starts after pressing the corresponding softkey. When using a serial
line, the receptor must be ready before starting the transmission.

To interrupt the transmission, press the "ABORT" softkey.

If the length of the table received does not coincide with the current table length, the
CNC will act as follows:
• If the table received is shorter than the current one, the received lines are modified
and the rest remain with their previous values.
• If the table received is longer than the current one, all the lines of the table are
modified and when detecting that there is no more room, the CNC will issue the
corresponding error message

CNC 8040

·T· MODEL
(SOFT V12.1X)

121
‡ ‡ ‡ Operating manual

"SAVE" softkey

The tables may be saved into the "Memkey Card" (CARD A) or out to a peripheral
device or PC through the two serial lines (RS232C or RS422).

The transmission starts after pressing the corresponding softkey. When using a serial
line, the receptor must be ready before starting the transmission.

To interrupt the transmission, press the "ABORT" softkey.

7. "MM/INCHES" softkey
How to edit tables
TABLES

It toggles the display units for the data. The lower right-hand side window shows the
units selected (MM/INCH).

CNC 8040

·T· MODEL
(SOFT V12.1X)

122
UTILITIES

8
In this operating mode, one can access the programs stored in the CNC's RAM
memory, in the "Memkey Card" (CARD A), in the hard disk (HD) and in external
devices (through the serial lines 1 and 2).

They can be deleted, renamed or their protection changed. It is also possible to make
copies within the same device or from one to another.

The contents of the storage devices may be shown in two ways:


1. Using the explorer.
2. Without using the explorer.

There are two options to set how to access the explorer:


• Via the <utilities> softkey.
• From the softkeys <execute>, <simulate> or <edit>.
Accessing the explorer this way does not allow certain operations.

Advanced access:

G.m.p EXPLORER (P180) sets how to access the explorer.

CNC 8040

·T· MODEL
(SOFT V12.1X)

123
‡ ‡ ‡ Operating manual

8.1 Accessing the programs without using the explorer

8.1.1 Directory

To access the program directory of the CNC's RAM memory, the "Memkey Card"
(CARD A), the hard disk (HD) and of the external devices (through serial lines 1 and
2). The subroutine directory of the CNC can also be accessed.

8. Program directory
UTILITIES
Accessing the programs without using the explorer

By default, the CNC shows the program directory of the RAM memory, to view
another directory, press the corresponding softkey.

On each directory, the CNC shows all the programs visible (not hidden) to the user,
that is:
• Part programs
• Screen customizing programs
• The PLC program (PLC_PRG)
• The PLC error file (PLC_ERR)
• The PLC message file (PLC_MSG)

The program directory has the following definition fields:

Program

It shows the number when it is a part-program or a customizing program and the


corresponding mnemonic when it is a PLC program, the PLC error file or the PLC
message file.

CNC 8040 Comment

Any program may have a comment associated with it for its identification.

The comments may be defined when editing the program or in this operating mode
using the Rename option as described later on.
·T· MODEL
(SOFT V12.1X)
Size

It indicates, in bytes, the size of the program text. It must be borne in mind that the
actual size of the program is slightly greater because this field does not include the
space occupied by some variables used internally (header, etc.).

124
‡ ‡ ‡ Operating manual

Date and time

The date and the time when the program was edited (last changed).

Attributes

They show information about the source and usefulness of each program. The
attributes are defined in this operating mode by means of the Protections option as
described later on.
* The program is running, either because it is the main program or because
it contains a subroutine which has been called upon from that program or
from another subroutine.
8.

UTILITIES
Accessing the programs without using the explorer
O The program was created by the machine manufacturer (OEM).
H The program is hidden and cannot be displayed in any directory.
However, a hidden program may be deleted or modified if its number is
known; therefore, it is recommended to remove the modifiable attribute
(M) in order to prevent the operator from changing or deleting that
program.
M The program may be modified. In other words, it may be edited, copied,
etc.
If a program does not have this attribute, the operator cannot see or modify
its contents.
X Indicates that the program may be executed.
A program not having this attribute cannot be executed by the operator.

When showing the attributes of each program, it will only show the letters of the fields
that are selected, and it will show the character "-" when they're not.

Example:
O - -X Indicates that the program was created by the manufacturer, it will be
displayed in the directory (not hidden), it cannot be modified, but it may
be executed.

CNC 8040

·T· MODEL
(SOFT V12.1X)

125
‡ ‡ ‡ Operating manual

Subroutine directory

It lists all the subroutines defined in the part programs of the CNC ordered from the
smallest one to the largest one. Also, next to the subroutines, it displays the number
of the program where it has been defined.

8.
UTILITIES
Accessing the programs without using the explorer

If the program containing the subroutine has the "hidden" attribute assigned to it, that
program number will appear as P??????.

Directory of the external devices

When accessing the directory of an external device through the serial lines, that
directory is shown in DOS format.

The "CHANGE DIR" softkey lets the user select the work directory of the PC to
operate with from the CNC. This operation does not change the work directory that
was selected to operate with from the PC. In other words, when operating via DNC,
it is possible to select a work directory at the PC and a different PC directory at the
CNC.

This feature is available from DNC50 version 5.1 on.

CNC 8040

·T· MODEL
(SOFT V12.1X)

126
‡ ‡ ‡ Operating manual

8.1.2 Copy

To copy programs in the same directory or between directories of different devices.

To make a copy, proceed as follows:


1. Press the "COPY" softkey.
2. Indicate the location of the program or programs to be copied.
The CNC's RAM memory, "Memkey Card" (CARD A), hard disk (HD) and external
devices (serial lines)
3. Indicate the number of the program to be copied.
Select the program with the arrow keys or key in its number and press [ENTER].
8.

UTILITIES
Accessing the programs without using the explorer
4. To copy several programs, press the softkeys "TO THE END" or "TO". In the case
of "TO", indicate the number of the last program to be copied.
5. Press the "IN" softkey.
6. Indicate the destination of the copy.
The CNC's RAM memory, "Memkey Card" (CARD A), hard disk (HD) and external
devices (serial lines)
7. When copying a single program, a different number may be selected for the
destination program.
8. Press [ENTER].

If a program with the same number already exists, the CNC will display a warning
message. On the other hand, if that program is in execution, the CNC will display a
message indicating that it is not possible.

Two subroutines cannot have the same name in the RAM memory. To make a copy
and change the name of the copied subroutine, write the subroutine defining block
as a comment before making the copy.

Examples:
• Copy program 200103, from the CNC's RAM memory out to the "Memkey Card"
with the number 14.

COPY (MEMORY) P200103 IN

IN (CARD A) P14 ENTER

• Copy from program 102100 to the end, from the CNC's RAM memory out to the
"Memkey Card".

COPY (MEMORY) P102100 (TO THE END)

IN (CARD A) ENTER

CNC 8040

·T· MODEL
(SOFT V12.1X)

127
‡ ‡ ‡ Operating manual

8.1.3 Delete

It is possible to protect programs stored in the CNC's RAM memory, in the "Memkey
card" (CARD A) or in the Hard Disk (HD) or in the external devices.

To delete a program, proceed as follows:


1. Press the "DELETE" softkey
2. Indicate the location of the program or programs to be deleted.
The CNC's RAM memory, "Memkey Card" (CARD A), hard disk (HD) and external
8. devices (serial lines)
3. Indicate the number of the program to be deleted.
UTILITIES
Accessing the programs without using the explorer

Select the program with the arrow keys and press [ENTER] or key in its number .
4. To delete several programs, press the softkeys "TO THE END" or "TO", in the
case of "TO" indicate the number of the last program to be deleted.
5. Press [ENTER].

Only programs that can be modified ("M" attribute) can be deleted.

Examples:
• Delete program 200103 from the "Memkey Card"

DELETE (CARD A) P200103 ENTER

• Delete from program 123123 to program 123456, from the CNC's RAM memory.

DELETE (MEMORY) P123123 (TO) P123456 ENTER

CNC 8040

·T· MODEL
(SOFT V12.1X)

128
‡ ‡ ‡ Operating manual

8.1.4 Rename

To rename or assign a new comment to a program stored in the CNC's RAM memory,
"Memkey Card" (CARD A), or in the Hard Disk (HD).

To rename a program, proceed as follows:


1. Press the "RENAME" softkey.
2. Indicate the location of the program or programs to be renamed.
The CNC's RAM memory, "Memkey Card" (CARD A), hard disk (HD) and external
devices (serial lines)
3. Indicate the number of the program to be renamed.
8.

UTILITIES
Accessing the programs without using the explorer
4. Select the program with the arrow keys and press [ENTER] or key in its number
and press the "TO" softkey.
5. Press the softkey "NEW NUMBER" or "NEW COMMENT"
6. Enter the new number or the new comment and press [ENTER]

The files associated with the PLC (program, messages and errors) are always
referred to with their associated mnemonics, thus only their comments may be
renamed.

If there is a program with the same number, the CNC will issue a warning message
and it will offer the chance to modify the command.

Examples:
• To change the name of program 200103 from the "Memkey Card"

RENAME (CARD A) P200103

A NEW NUMBER P12 ENTER

• To change the comment of program 100453 from the CNC

RENAME (MEMORY) P100453

A NEW PROFILE "HELLO" ENTER

CNC 8040

·T· MODEL
(SOFT V12.1X)

129
‡ ‡ ‡ Operating manual

8.1.5 Protections

To prevent certain programs from being manipulated and restrict access to the
operator to certain CNC commands.

It is possible to protect programs stored in the CNC's RAM memory, in the "Memkey
card" (CARD A) or in the Hard Disk (HD).

8. User permissions

Lets the operator see those CNC programs that have been created by the operator
UTILITIES
Accessing the programs without using the explorer

and sets their attributes.

To modify the attributes of a program, proceed as follows:


1. Press the [USER PERMISSION] softkey.
2. Indicate the program number.
If it is in another directory, press the corresponding softkey.
Select the program with the arrow keys or key in its number and press [ENTER].
3. Press the following softkeys

F2 to change the (H) attribute program visible (not hidden)

F3 to change the (M) attribute modifiable program

F4 to change the (X) attribute executable program

4. Press the [ENTER] key.

OEM Permission

Lets see all the programs stored at the CNC whether they are created by the OEM
or by the operator and set their attributes.

To modify the attributes of a program, proceed as follows:


1. Press the "OEM PERMISSION" softkey.
2. Indicate the program number
If it is in another directory, press the corresponding softkey.
Select the program with the arrow keys or key in its number and press [ENTER].
3. Press the following softkeys

F1 to change the (O) attribute OEM program

F2 to change the (H) attribute program visible (not hidden)

F3 to change the (M) attribute modifiable program

F4 to change the (X) attribute executable program

4. Press the [ENTER] key.

CNC 8040

·T· MODEL
(SOFT V12.1X)

130
‡ ‡ ‡ Operating manual

Passwords

Lets define each of the passwords that the operator must key in before accessing
the various CNC commands.
• General password (MASTERPSW)
It is requested when trying to access this password option.
(Utilities mode / Protections / Passwords).
• OEM password (OEMPSW)
It is requested when trying to access OEM permissions
(Utilities mode / Protections / OEM permissions).
8.

UTILITIES
Accessing the programs without using the explorer
• User password (USERPSW)
It is requested when trying to access user permissions
(Utilities mode / Protections / User permissions).
• PLC access password (PLCPSW)
It is requested in the following cases:
When compiling the PLC program.
When trying to change the status of a resource or execute a program execution
controlling command.
To protect the PLC program, the PLC message program and the PLC error
program, modify their attributes so they are "Non-modifiable".
• Customizing password (CUSTOMPSW)
It is requested when trying to access the Customizing mode or when attempting
to erase an OEM screen.
• Machine parameter access password (SETUPPSW)
It is requested when trying to access the options to modify the table values (Edit,
Modify, Initialize, Delete and Load) except for tables of the serial lines which are
not protected.

To change or delete the passwords, use the following softkeys:

Change passwords.

Select the desired password and enter the new one.

Delete password.

Lets delete (eliminate) one of several codes from the table.

To delete a password, indicate its number and press [ENTER].

To delete several passwords (they must be in a row), indicate the number of the first
one to be delete, press the "UPTO" softkey, indicate the number of the last one to
be deleted and press [ENTER].

To delete a password, indicate its number and press [ENTER].

Clear all.

Lets delete all the passwords. The CNC will request confirmation of the command
and it will delete them after pressing [ENTER].
CNC 8040

·T· MODEL
(SOFT V12.1X)

131
‡ ‡ ‡ Operating manual

8.1.6 Change date

Lets change the system date and time.

It will first show the date in the CNC's day/month/year format (12/04/1998). After
changing it, press [ENTER] to validate it. If it is not to be changed, press [ESC].

It will then show the time in the CNC's hour/minutes/seconds format (08/30/00). After
changing it, press [ENTER] to validate it. If it is not to be changed, press [ESC].

8.
UTILITIES
Accessing the programs without using the explorer

CNC 8040

·T· MODEL
(SOFT V12.1X)

132
‡ ‡ ‡ Operating manual

8.2 Accessing the programs using the explorer

Accessing the explorer displays a window divided in two areas (left panel and right
panel) as shown in the next figure:

8.

UTILITIES
Accessing the programs using the explorer
Left panel X FOLDERS

This side of the window shows all the devices available at the CNC:
• Memory
• Card A
• Hard disk
• Remote hard disk
• DNC 1/2/E

If a device (DNC) is not connected or neither a Memory Card nor a Memkey Card
is inserted into the Card A slot, the explorer will display the device, but it will issue
the message "device (unit) not available" when trying to access its contents.

The devices include their own folders. Using the explorer, it is possible to view the
real folder structure (tree). Thus, the user can display the subdirectories Tab, Prg,
Pan, ...

The subdirectories of the DNC units will only show the stored user programs.

CNC 8040

·T· MODEL
(SOFT V12.1X)

133
‡ ‡ ‡ Operating manual

Right panel X DEVICE

This side of the window shows the contents of the folder previously selected in the
left panel. Only the CNC programs (*.pim or *.pit) stored in the selected folder will
be displayed. Any other type of file that this folder may contain will not be shown.

The fields to the right of each program indicate the program number, its size, date/
time it was created and attribute.

The attribute of a program is identified depending on the icon appearing in the


8. "program" field.
UTILITIES
Accessing the programs using the explorer

OEM HIDDEN EXECUTABLE READ ONLY

By default, the programs will appeared sorted by number in ascending order and the
PLC files will be at the end: errors, messages and programs.

They can also be sorted by comment, date/hour and size, both in ascending or
descending order using the <SORT> softkey The options displayed are:
‡ By number [N]
‡ By comment
‡ By size
‡ By date

The bottom of the screen shows how much memory is available in each device (unit)
and how many programs are currently selected as well as their total size.

Hidden user files can also be shown using the USERPSW password in the <access
codes> window. To display all the files, enter the password OEMPSW.

CNC 8040

·T· MODEL
(SOFT V12.1X)

134
‡ ‡ ‡ Operating manual

Program handling

A program is considered to be selected on the file list of the right panel when the cursor
is on i. It is shown on the screen with horizontal stripe.

The keys for moving the cursor are:


F7 - Cursor movement inside the right/left panels of the
explorer.

Up/down arrow keys.


8.
Folder expand/shrink keys of the left panel of the explorer.

UTILITIES
Accessing the programs using the explorer
SHIFT + Move the cursor to the first program.

SHIFT + Move the cursor to the last program.

Use the number keys of the CNC to select the program with the desired number. If
there is no program with that number and the programs are sorted by number, the
cursor will select the program with the nearest lower number.

The operations that may be carried out on the programs displayed by the explorer
at the time are:

Rename:
To rename the selected program as long as it is a modifiable program. After
modified, its date/time will change.
To rename a program, select it first in the right panel and after pressing the
<Modify> softkey, >number< option displays the <Rename> window with the new
text frame "new number" where the new name can be written.
No program may be renamed in DNC 1/2/E.

Modify comment:
To rename the comment of the selected program as long as it is a modifiable
program. The comment must not exceed 20 characters. After modified, its date/
time will change.
To change the comment of a program, first select it in the right panel and after
pressing the <Modify> softkey >comment< option, it shows the text box "new
comment" where the new comment may be written.
No comment of a program may be renamed in DNC 1/2/E.

Modifying permissions:
It may be used to modify the OEM, hidden, executable and read-only permissions
of programs that are displayed at the time in the explorer. Thus, if it is an OEM
program, it will request an OEM password and if a program is assigned the
<hidden> attribute, its relevant icon immediately appears on the list of the
explorer. After modified, its date/time will change.
To change the permission of a program, first select it in the right panel and after CNC 8040
pressing the <Modify> softkey >permissions< option, it shows the text box "new
comment" where the new comment may be written.
No permission of a program may be renamed in DNC 1/2/E.

Delete ·T· MODEL


(SOFT V12.1X)
It may be used to delete a previously selected program. Only a modifiable
program may be deleted.

135
‡ ‡ ‡ Operating manual

To delete a program, first select it in the right panel and after pressing the
<Actions> softkey, >[CLEAR]< option, it will disappear from the program listing
displayed in the explorer.

Copy
It copies the selected program onto the clipboard. First select the program to be
copied in the right panel and press the <Actions> softkey <Copy [C]> option.
Then, select the destination folder and press the <Paste [V]> option located under
the same >Actions< softkey.

8. Cut/move
It copies the selected program onto the clipboard. First select the program to be
UTILITIES
Accessing the programs using the explorer

cut/move in the right panel and press the >Actions< softkey <Cut [X]> option.
Then, select the destination folder and press the <Paste [V]> option located under
the same >Actions< softkey. Once the content of the clipboard has been pasted,
the files will be deleted from the source folder and moved to the new destination.

These operations are carried out using the horizontal softkeys shown at the bottom
of the screen and can only be carried out on the programs being displayed on the
screen.

Operations on sets

The user may select a set of programs that are located in the right panel of the screen.
This selection may be done either individually or by range or as a whole.

These types of selection may be carried out after pressing the <Select> softkey and
any of the options shown depending on the task to be carried out. The available
options are:
‡ All / Nothing [ * ]
‡ From / To [ _ ]
‡ Select [ + ]
‡ Deselect [ - ]
‡ Invert

After selecting the programs individually, by range or as a whole, it is possible to carry


out on them the operations mentioned earlier.

Some operations may not be applicable to certain programs of the selection.


In those cases, the user will be informed and will be allowed to either resume
or cancel the operation.

CNC 8040

·T· MODEL
(SOFT V12.1X)

136
‡ ‡ ‡ Operating manual

Handling the directories

When the cursor is located on any of the "hard disk" or "remote hard disk" units of
the left panel, any of the following actions may be carried out on any of them:
‡ Create a subdirectory
‡ Rename a subdirectory
‡ Delete a subdirectory

To delete a subdirectory, it must be empty. 8.

UTILITIES
Accessing the programs using the explorer
Quick access to directories

Selecting a directory in the left panel and pressing the <Options> softkey, >Save
position [M]<, the explorer will remember this directory.

After selecting this option and having moved the cursor to another directory, pressing
the <Options> softkey, <Go to position [G]> option, the cursor of the explorer will
automatically position in the saved directory. Pressing the same softkey again, the
explorer will return to the starting position.

Quick access keys (hot keys)

Some options of the softkeys have a hot key. A hot key carries out the same function
as the option itself. When displaying the menu of each softkey, it shows the hot key
(between square brackets) equivalent to the option.

Not all the options of the softkeys have an associated hot key.

CNC 8040

·T· MODEL
(SOFT V12.1X)

137
‡ ‡ ‡ Operating manual

8.
UTILITIES
Accessing the programs using the explorer

CNC 8040

·T· MODEL
(SOFT V12.1X)

138
STATUS

9
Each softkey of this operating mode shows the following information.

SOFTKEY Meaning
CNC Program number and line that was being executed last time an
execution error or a power outage occurred.
DNC Information and statistics of the DNC communication lines.
Establish the connection with a remote PC to carry out
telediagnosis tasks.
Sercos Information and statistics of the Sercos communication.
CAN Information and statistics of the CAN communication.

CNC 8040

·T· MODEL
(SOFT V12.1X)

139
‡ ‡ ‡ Operating manual

9.1 CNC

This screen shows the number of the line that was being executed last time an
execution error or a power outage occurred. The CNC shows the program number
and line number that was executing as well as where the program is stored.

If that program made called a subroutine and the CNC was executing it, it will show
the subroutine number, the program containing it and the line or block of the
subroutine that it was executing.

9. Device Program Line number Subroutine


CARD A 000012 7
CNC
STATUS

MEMORY 001000 15 0033

The CNC was executing line 7 of program 12 stored in CARD A.

That program called subroutine 33 and the CNC was executing line 15 of that
subroutine. The subroutine is defined in program 1000 that is stored in the CNC's
RAM memory.

Error register

The CNC's error register is accessed with the softkey "BB". This register saves an
error history indicating the error number and when it occurred.

The SAVE softkey may be used to save the register into a file. By pressing this
softkey, the CNC requests the number of the program to store that information.

CNC 8040

·T· MODEL
(SOFT V12.1X)

140
‡ ‡ ‡ Operating manual

9.2 DNC

With this CNC, it is possible to access this operating mode when having an Ethernet
connection or at least one of the serial lines (RS232C or RS422) is set to work in the
DNC mode or to communicate with the Fagor Floppy Disk Unit.

From this mode, it is possible to know the status of the serial lines and the Ethernet
configuration as well as activating or deactivating the DNC modes. It is also possible
to make a telephone call to a remote PC to carry out telediagnosis tasks.

9.
Turning the DNC on/off

DNC
STATUS
The bottom of the screen shows softkeys with the following options for each serial
line that is set:
DNC ON Activates the relevant serial line.
DNC OFF Deactivates the relevant serial line.

The activation/deactivation of this operating mode is made dynamically, therefore,


if, when deactivating the DNC mode, you are transmitting via this channel, the CNC
aborts the transmission and deactivates the DNC.

Irrespective of this operating mode, the OEM can set by machine parameter whether
the DNC mode will be active or not on power-up.

Status of the serial lines

The following information is shown for the serial lines:

The left-hand side of the screen corresponds to serial line 1 and the right-hand side
to serial line 2. In the example of the figure above, serial line 1 is used to communicate
with a Fagor Floppy Disk Unit; and serial line 2 to communicate via DNC.

The upper area (A) indicates:


• The status of the serial line. Active / Inactive. CNC 8040
• The type of operation in progress.
Sending program / Receiving program / Sending directory / Receiving directory
/ etc.

The lower area (B) indicates the last operation and the type of error occurred if any.
·T· MODEL
(SOFT V12.1X)

141
‡ ‡ ‡ Operating manual

Diagnosis of the Ethernet connection

the screen for Ethernet status shows the following information.

ETHERNET P...... N.... DNC 12:24:55

NET
MAC 00:0B:CB:10:00:10 MASK 255.255.0.0
DIRIP 10.0.17.70 GATEWAY

9. RECEPCION
Packs 767 Errors 0 Lost 0
DNC
STATUS

Overrun 0 Frame 0
TRANSMISION
Packs 1980 Errors 0 Lost 0
Overrun 0 Collisions 1 Carrier 0

FTP Active

REMOTE HARD DISK Active

CAP INS

• The top of the screen shows the network configuration (MAC or Ethernet address,
IP address, network mask and the IP address of the gateway).
When detecting an error in the configuration, it will show the corresponding error
message.
• The mid area of the screen shows the information on data transmission and
reception. With a green background the fields that must be 0 when working fine.
• The bottom of the screen shows the data of the active services.
For the remote hard disk, it shows the IP address and the shared directory. If there
is no remote hard disk or there is an error, it shows the corresponding error
message.

CNC 8040

·T· MODEL
(SOFT V12.1X)

142
‡ ‡ ‡ Operating manual

9.2.1 Phone call (telediagnosis)

The "phone call" softkey may be used to communicate a CNC with a remote PC to
carry out telediagnosis tasks. See chapter "14 CNC - PC Communication.
Telediagnosis".

To establish communication, both the CNC and the PC must be connected to a


modem. The remote PC must have the WinDNC software installed in it.

The CNC offers the following types of phone call.


• Normal phone call.
It is a direct phone call between the CNC and the PC. Whoever establishes the
9.

DNC
STATUS
connection incurs in its costs.
• Advanced phone call.
It is a direct phone call between the CNC and the PC. Whoever establishes the
connection incurs in its costs.
This option is similar to the previous one, but it provides faster telediagnosis. This
type of connection uses TCP/IP protocol, thus not being necessary to configure
an incoming connection at the PC.
• Internet phone call.
It is a connection made through internet. Both the CNC and the PC incur in the
connection costs because both the CNC and the PC must be connected to the
internet.
Telediagnosis through the Internet offers all the advantages of this type of
connection. Usually, this type of connection costs less than a direct telephone call.
When connecting through the Internet for the connection, the telediagnosis may
sometimes be slower than making a direct telephone call.

Dialing with pulses or tones

The softkey menu permits selecting whether to dial using pulses or tones.

CNC 8040

·T· MODEL
(SOFT V12.1X)

143
‡ ‡ ‡ Operating manual

9.3 Sercos

The CNC grants access to this operating mode when the Sercos bus has been
defined. It shows information and statistics on the incidences occurred in the Sercos
communication.

This mode has been especially designed for the Service Department.

The data on a green background must have a "0" value if everything is OK.

9. Pressing the "LOG FILE" softkey shows a history of the errors occurred till then, time,
error number and its description.
STATUS
Sercos

The SAVE softkey may be used to save that error history into a file.

CNC 8040

·T· MODEL
(SOFT V12.1X)

144
‡ ‡ ‡ Operating manual

9.4 CAN

The CNC grants access to this operating mode when the CAN bus has been defined.
It shows information and statistics on the incidences occurred in the CAN
communication.

This mode has been especially designed for the Service Department.

The main screen shows:


• Information on each node.
Node ID Node identifier.
9.

CAN
STATUS
Reported inputs Number of inputs detected.
Reported outputs Number of outputs detected.
Rx errors Reception errors.
Tx errors Transmission errors
Lost messages.
Stage Stage (phase) of the communication status.
Value of 5 if OK
• CNC information.
Stage Stage (phase) of the communication status.
CAN speed.
Rx errors Reception errors.
Tx errors Transmission errors
Lost messages.
Number of retries.
Status For the Fagor Service Department.
Input cycle For the Fagor Service Department.
• Number of analog and PT100 inputs/outputs.
Analog inputs
Analog outputs
PT100 inputs

The data on a green background must have a "0" value if everything is OK.

Pressing the "LOG FILE" softkey shows a history of the errors occurred till then, time,
error number and its description.

The SAVE softkey may be used to save that error history into a file.

Pressing the VERSION softkey displays a screen that shows:


• The software version installed in each node. SW version, Date and Checksum.
• The hardware version for the node: HV version.
• The CAN software version installed at the CNC: SW version and Checksum.

There are softkeys to update or copy the CNC's CAN software in each of the Fagor
modules. This operation may be carried out module by module or in all of them at
the same time.
CNC 8040

·T· MODEL
(SOFT V12.1X)

145
‡ ‡ ‡ Operating manual

9.
CAN
STATUS

CNC 8040

·T· MODEL
(SOFT V12.1X)

146
PLC

10
In this operating mode, the PLC may be accessed to check its operation or the status
of its variables. It is also possible to edit or analyze the PLC program as well as the
message or the error files of the PLC.

The accessible programs associated with the PLC are:


• The PLC program (PLC_PRG)
• The PLC error file (PLC_ERR)
• The PLC message file (PLC_MSG)

The PLC program (PLC_PRG) may be edited at the front panel or copied from the
"Memkey Card" (CARD A) or from a PC as described in the "Utilities" chapter.

The PLC program (PLC_PRG) is stored in the internal CNC memory with the part-
programs and it is displayed in the program directory (utilities) together with the part-
programs.

Before executing the PLC_PRG program, it must be compiled. Once it is done


compiling, the CNC requests whether the PLC should be started or not. To make the
operator life easier and avoid new compilations, the source code generated at each
compilation is stored in memory.

After power-up, the CNC acts as follows:

Is there an Yes Runs the executable program stored in memory.


executable code?

No
If there isn't one, it compiles the PLC_PRG program
Is there a Yes already in memory and runs the resulting executable
program.
No

Is there a Yes If there isn't one, it looks for it in the "Memkey Card" (CARD
PLC_PRG in A)

No

The PLC compiles and If it isn't in the CARD A either, it does nothing. Later on,
generates the when accessing the jog mode, execution mode, etc. the
CNC will issue the corresponding error message.

RUN END CNC 8040

Once the program has been compiled, it is not necessary to keep the source program
(PLC_PRG) in memory because the PLC always executes the executable program.

Once the proper performance of the PLC has been verified, it is a good idea to save
it into the "Memkey Card" (CARD A) using the instruction SAVE PROGRAM (as ·T· MODEL
(SOFT V12.1X)
described later on).

147
‡ ‡ ‡ Operating manual

10.1 Edit

Once this option is selected, indicate with the corresponding softkey the PLC program
to be edited.
• The PLC program (PLC_PRG)
• The PLC error file (PLC_ERR)
• The PLC message file (PLC_MSG)

10. The cursor can be moved line by line with the [©] [ª] arrow keys or page by page
with the "page up" and "page down" keys.
PLC
Edit

The cursor position or line number will be displayed in a white window inside the
communications window next to the CAP/INS indicator window.

This operating mode offers various options that are described next.

Once any of those options has been selected, the user can move the cursor over this
line by means of the [§] [¨] keys. On the other hand, with the [©] key, the cursor
may be placed over the first character of the editing window and, with the [ª] key over
the last character.

"EDIT" softkey

With this option it is possible to edit new lines or blocks of the selected program.
Before pressing this softkey, the block after which the new ones will be added must
be selected with the cursor.

Once this option has been selected, the softkeys will change colors and they will
appear over white background showing the information corresponding to the type of
editing possible at that point.

Pressing the [ESC] key deletes the block being edited. From this point on, the block
may be edited again.

Once the block has been edited, press [ENTER]. This new block will be added to the
program after the one indicated by the cursor.

The cursor will position over the new edited block and the editing area (window) will
be cleared so another block can be written.

The editing area must be empty in order to quit this option. If it's not, press [ESC] to
delete that information and then press [ESC] again.

CNC 8040

·T· MODEL
(SOFT V12.1X)

148
‡ ‡ ‡ Operating manual

"MODIFY" softkey

This option permits modifying the contents of a selected program block. Before
pressing this softkey, select with the cursor the block to be modified .

Once this option is selected, the softkeys will change their color showing their type
of modifying option over a white background.

By pressing the [ESC] key, the information corresponding to that block and which was
shown in the editing area will be cleared. From this point on, the block may be edited
again.

To quit the block modifying mode, press [CL] or [ESC] to clear the editing window
10.

PLC
Edit
and then press [ESC] again. This way, the selected block will not be modified.

Once the block contents have been modified, press [ENTER]. The new block will
replace the previous one.

"FIND" softkey

This option is used to find a specific text within the selected program. When selecting
this option, the softkeys will show the following options:

BEGINNING

This softkey positions the cursor over the first program block which is then selected
quitting the "find" option.

END

This softkey positions the cursor over the last program block which is then selected
quitting the "find" option.

TEXT

With this function it is possible to search for a text or character sequence starting at
the current cursor position.

When this softkey is pressed, the CNC requests the character sequence to be found.
Once this text has been keyed in, press the "END OF TEXT" softkey and the cursor
will position over the first occurrence of the keyed text.

The search will begin from the block the cursor is position on beginning at that block.
The text found will be highlighted being possible to continue with the search or to quit
it.

Press [ENTER] to continue the search up to the end of the program. The CNC will
begin the search at the last text found and it will highlight it.

The search can be done as many times as desired. Once searched to the end of the
program, it will continue the search from the beginning.

Press the "ABORT" softkey or the [ESC] key to quit the search mode. When quitting
the search mode, the cursor will be positioned at the last matching text found.

CNC 8040

·T· MODEL
(SOFT V12.1X)

149
‡ ‡ ‡ Operating manual

LINE NUMBER

After selecting this softkey, the CNC will request the number of the line to be found.
After keying in the desired number and pressing [ENTER], the cursor will position over
that block which will then be selected quitting the search mode.

"REPLACE" softkey

10. With this option it is possible to replace a character sequence with another throughout
the selected program. When selecting this option, the CNC requests the character
sequence to be replaced. Once the text to be replaced is indicated, press the "WITH"
PLC
Edit

softkey and the CNC will request the character sequence which will replace the
previous one.

Once this text is keyed in, press the "END OF TEXT" softkey and the cursor will be
positioned over the first occurrence of the searched text.

The search will begin from the block the cursor is position on beginning at that block.
The found text will be highlighted and the following softkey options will appear:

REPLACE

It will replace the highlighted text and will continue the search for the indicated text.
The new text found will be highlighted and the softkeys will show the same "replacing"
or "not replacing" options.

This search will be carried out from the text that was replaced up to the end of the
program. If no more occurrences of the text to be replaced are found, the CNC will
quit this mode.

DO NOT REPLACE

It will NOT replace the highlighted text and will continue the search for the indicated
text. The new text found will be highlighted and the softkeys will show the same
"replacing" or "not replacing" options.

This search will be carried out from the text that was replaced up to the end of the
program. If no more occurrences of the text to be replaced are found, the CNC will
quit this mode.

TO THE END

This option will find and replace the selected text throughout the whole program.

This "find and replace" will start at the highlighted text and will go on to the end of
the program.

ABORT

This option will not replace the highlighted text and it will quit the "find and replace"
mode.

CNC 8040

·T· MODEL
(SOFT V12.1X)

150
‡ ‡ ‡ Operating manual

"DELETE BLOCK" softkey

With this function it is possible to delete a block or group of blocks.

To delete only one block, just position the cursor over it and press [ENTER].

To delete a group of blocks, indicate the first and last blocks to be deleted. To do that,
proceed as follows:
1. Position the cursor over the first block to be deleted and press the "INITIAL
BLOCK" softkey.
2. Position the cursor over the last block to be deleted and press the "FINAL BLOCK"
softkey. If the last block to be deleted is also the last one of the program, it can
10.

PLC
Edit
also be selected by pressing the "TO THE END" softkey.

Once the first and last blocks are selected, the CNC will highlight the selected blocks
requesting confirmation to delete them.

"MOVE BLOCK" softkey

With this option it is possible to move a block or group of blocks by previously


indicating the first and last blocks to be moved. To do that, proceed as follows:
1. Position the cursor over the first block to be moved and press the "INITIAL
BLOCK" softkey.
2. Position the cursor over the last block to be moved and press the "FINAL BLOCK"
softkey. If the last block to be moved is also the last one of the program, it can
also be selected by pressing the "TO THE END" softkey.
To move only one block, the "initial block" and the "final block" will be the same
one.

Once the first and last blocks are selected, the CNC will highlight the selected blocks
requesting confirmation to move them.

Then, indicate the block after which this group of blocks must be placed. Press the
"START OPERATION" softkey to carry out this command.

"COPY BLOCK" softkey

With this option it is possible to copy a block or group of blocks by previously indicating
the first and last blocks to be copied. To do that, proceed as follows:
1. Position the cursor over the first block to be copied and press the "INITIAL
BLOCK" softkey.
2. Position the cursor over the last block to be copied and press the "FINAL BLOCK"
softkey. If the last block to be copied is also the last one of the program, it can
also be selected by pressing the "TO THE END" softkey.
To copy only one block, the "initial block" and the "final block" will be the same one.

Once the first and last blocks are selected, the CNC will highlight the selected blocks
requesting confirmation to copy them.

Then, indicate the block after which this group of blocks must be placed. Press the
"START OPERATION" softkey to carry out this command. CNC 8040

"COPY TO PROGRAM" softkey

With this option it is possible to copy a block or group of blocks of one program into ·T· MODEL
(SOFT V12.1X)
another program.

When selecting this option, the CNC will request the number of the destination
program where the selected block or blocks are to be copied. After entering the
program number press [ENTER].

151
‡ ‡ ‡ Operating manual

Next, indicate the first and last blocks to copy. To do that, proceed as follows:
1. Position the cursor over the first block to be copied and press the "INITIAL
BLOCK" softkey.
2. Position the cursor over the last block to be copied and press the "FINAL BLOCK"
softkey. If the last block to be copied is also the last one of the program, it can
also be selected by pressing the "TO THE END" softkey.
To copy only one block, the "initial block" and the "final block" will be the same one.

Once the first and last blocks are selected, the CNC will highlight the selected blocks

10. and will execute the command.

If the destination program already exists, the following options will be displayed:
PLC
Edit

• Write over the existing program. All the blocks of the destination program will be
erased and will be replaced by the copied blocks.
• Append (add) the copied blocks behind the ones existing at the destination
program.
• Abort or cancel the command without copying the blocks.

"INCLUDE PROGRAM" softkey

With this option it is possible to include or merge the contents of another program
into the one currently selected.

Once this option is selected, the CNC will request the number of the source program
to be merged. After entering the program number press [ENTER].

Next, indicate with the cursor the block after which the source program will be
included.

Press the "START OPERATION" softkey to carry out this command.

CNC 8040

·T· MODEL
(SOFT V12.1X)

152
‡ ‡ ‡ Operating manual

10.2 Compile

With this option it is possible to compile the PLC source program "PLC_PRG". Once
the source program compiled, the CNC will generate the executable PLC program
(object program).

The PLC program must be stopped in order to compile it, otherwise, the CNC will "ask"
if it is desired to stop it.

If while compiling, some errors are detected, the CNC will not create the object
program and the detected errors will appear on the screen. The errors will be shown
from the first one detected up to a maximum of 15 errors.
10.

PLC
Compile
If the errors do not affect the proper program execution (such as non-referenced
labels, etc.), the CNC will display the corresponding warning messages but it will
generate the object program.

After a successful compilation, the CNC will "ask" whether the PLC program must
be started or not.

CNC 8040

·T· MODEL
(SOFT V12.1X)

153
‡ ‡ ‡ Operating manual

10.3 Monitoring

With this option it is possible to display the PLC program and analyze the status of
the different PLC resources and variables.

Once this option has been selected, the CNC will show the source program that
corresponds to the executable program (object) even when that program (source)
has been deleted or modified at the CNC. The CNC will also display all the variable
consultations at logic level 1 (including those not being executed) and the actions

10. whose conditions are met.

To display the program from a specific line on, press the "L" key followed by that line
PLC
Monitoring

number. Press [ENTER] once the line number has been correctly "typed in".

It is possible to move the cursor line by line using the [©] [ª] keys or page by page
using the Page-up and Page-down keys.

The various monitoring options available are described next.

Once any of those options has been selected, the user can move the cursor over this
line by means of the [§] [¨] keys. On the other hand, with the [©] key, the cursor
may be placed over the first character of the editing window and, with the [ª] key over
the last character.

Modify the status of the resources

The CNC has the following instructions to modify the status of the different PLC
resources.

It must be borne in mind that when referring to a single resource, it is possible to do


it using its corresponding mnemonic. For example, /STOP=1 is interpreted by the
CNC as M5001=1

I 1/256 = 0/1
Alters the status (0/1) of the indicated input.
For example: I120 = 0, sets input I120 to 0.

I 1/256.1/256 = 0/1
Alters the status (0/1) of a the indicated group of inputs.
For example: I100.103 = 1, sets inputs I101, I102 and I103 to 1.

O 1/256 = 0/1
Alters the status (0/1) of the indicated output.
For example: O20 = 0, sets output O20 to 0.

O 1/256.1/256 = 0/1
Alters the status (0/1) of the indicated group of outputs.
For example: O22.25= 1 sets outputs O22 thru O25 to 1.

M 1/5957 = 0/1
Alters the status (0/1) of the indicated mark.
For example: M330 = 0 sets Mark M330 to 0.
CNC 8040
M 1/5957.1/5957 = 0/1
Alters the status (0/1) of the indicated group of marks.
For example: M400.403=1 sets marks M400 thru M403 to 1.

·T· MODEL
(SOFT V12.1X)

154
‡ ‡ ‡ Operating manual

TEN 1/256 = 0/1


Alters the status (0/1) of the enable input of the indicated timer.
For example: TEN12 = 1, sets the enable input of timer T12 to 1.

TRS 1/256 = 0/1


Alters the status (0/1) of the reset input of the indicated timer.
For example: TRS2 = 0 sets the reset input of timer T2 to 0.

TGn 1/256 n = 0/1


Alters the status (0/1) of the trigger input "TGn" of the indicated timer (1 thru 256)
assigning the desired time constant (n) to it.
10.

PLC
Monitoring
For example: TG1 22 1000 sets the trigger input 1 of timer T22 to one and it
assigns a time constant of 1000 (10 seconds).

CUP 1/256 = 0/1


Alters the status (0/1) of the UP count input of the indicated counter.
For example: CUP 33 = 0 sets the status of the UP input of counter C33 to 0.

CDW 1/256 = 0/1


Alters the status (0/1) of the DOWN count input (DW) of the indicated counter.
For example: CDW 32 = 1 sets the status of the UP input of counter C32 to 1.

CEN 1/256 = 0/1


Alters the status (0/1) of the enable input of the indicated counter.
For example: CEN 12 = 0, sets the enable input of counter 12 to 0.

CPR 1/256 n = 0/1


Alters the status (0/1) of the preset input of the indicated counter (1 thru 256). The
counter will be preset with the value "n" if an up flank is produced with this
instruction.
For example: CPR 10 1000 = 1sets the status of the preset input of counter C10
to 1. On the other hand, if the state of this input has changed (it had to be 0 before),
the counter will be preset to a value of 1000.

C 1/256 = n
Presets the count of the indicated counter to the "n" value.
For example: C42 = 1200 sets the count of counter C42 to 1200.

B 0/31 R 1/559 = 0/1


Changes the status (0/1) of the indicated bit (0/31) of the indicated register (1/
559).
For example: B5 R200 = 0 sets Bit 5 of register R200 to 0.

R 1/559 = n
Assigns the (n) value to the indicated register.
For example: R 303 = 1200 assigns the value of 1200 to register R303.

R 1/559.1/559 = n
Assigns the (n) value to the indicated register group.
For example: R234.236 = 120 assigns the value of 120 to registers R234, R235
and R236.
CNC 8040

·T· MODEL
(SOFT V12.1X)

155
‡ ‡ ‡ Operating manual

Create window

This CNC allows the possibility of creating windows to display the status of the various
PLC resources. These windows will be shown overlapping the PLC program and the
information displayed in them will be updated dynamically.

The options "MODIFY WINDOW", "ACTIVE WINDOW" and "ACTIVATE SYMBOLS"


allow the manipulation of these windows.

Every time a new window is created, the CNC will assign 2 data lines to it in order
10. to display the status of the desired resources.

There are two types of windows which can be selected with softkeys.
PLC
Monitoring

Window to display timers and registers

This window is divided into two sections, one to display timers and the other one to
display registers.

Timer.

It will show one timer per line showing the following information for each one of them:
TG Indicates the logic status of the active trigger input.
M Indicates the status of the timer: "S" means stopped, "T" means
timing and "D" means disabled.
TEN Indicates the logic status of the enable input.
TRS Indicates the logic status of the enable input.
T Indicates the logic status of the status output of the timer.
ET Indicates the elapsed time.
TO Indicates the remaining time.

Key in the command T 1/256 or T 1/256.1/256 to request the data on a timer or group
of timers and then press [ENTER].

Register.

It will display one register per line showing the following information fields for each
of them:
HEX Indicates the hexadecimal value of its contents.
DEC Indicates the decimal value of its contents (with sign).

Key in R 1/559 or R 1/559.1/559 to request information on one or more registers and,


then, press [ENTER].

Window to display counters and binary data

This window is divided into two sections, one to display counters and the other one
to display binary data.

Counters.

It will display one counter per line showing the following information fields for each
of them:
CNC 8040 CEN Indicates the logic status of the enable input.
CUP Indicates the logic status of the UP COUNT input.
CDW Indicates the logic status of the DOWN COUNT input.
CPR Indicates the logic status of the preset input.
·T· MODEL S Indicates the status of the counter. "1" when its internal count is 0
(SOFT V12.1X)
and 0 for all other cases.
C Indicates its count value.

Key in C 1/256 or C 1/256.1/256 to request information on one or more counter and,


then, press [ENTER].

156
‡ ‡ ‡ Operating manual

Binary Data.

It will show one data line per resource or group of resources requested.

The instructions available to request information of the various resources are:


I 1/256 or I 1/256.1/256 Shows the status of the selected input or group of
inputs.
O 1/256 or O 1/256.1/256 Shows the status of the selected output or group of
outputs.
M 1/5957 or M 1/5957.1/5957Shows the status of the selected mark or group of
marks. 10.
B 0/31 R 1/559 Shows the status of the selected bit of the indicated

PLC
Monitoring
register.

When requesting the status of one or more inputs, outputs or marks, the CNC will
show complete data lines even when all of them have not been requested.

When using generic denominators (I / O / M) to display resources, the CNC will display
20 of them per line and 3 when using their associated mnemonics (symbols).

When requesting the status of a register bit, the CNC will display only the requested
bit on the corresponding line.

Modify window.

With this option it is possible to manipulate the active window (the one selected) by
enlarging it, reducing it, clearing it or even eliminating (closing) it.

To do so, the following softkey options are available:


ENLARGE To enlarge the size of the window by one line every time this
softkey is pressed.
REDUCE To reduce the size of the window by one line every time this
softkey is pressed (minimum 2 lines).
CLEAR To clear the contents of the active window.
CLOSE To close the active window. When closing a window, the CNC
will no longer display it.

CNC 8040

·T· MODEL
(SOFT V12.1X)

157
‡ ‡ ‡ Operating manual

Active window.

With this option it is possible to select between the PLC program and each one of
the windows being displayed (timers, registers, counters and binary data) in order
to operate with it.

Bear in mind that the operator can only operate with the active window.

Once the active window has been selected, it will be possible to:

10. • Move the cursor (if the PLC program is the one active) or shift the display area
with the [©] [ª] keys.
• Execute any command of the "MODIFY WINDOW" option.
PLC
Monitoring

FIND

This option will be executed regardless of which is the active window and it offers the
following searching options:

BEGINNING

This softkey positions the cursor over the first program block which is then selected
quitting the "find" option.

END

This softkey positions the cursor over the last program line and quits the "find" option.

TEXT

With this function it is possible to search for a text or character sequence starting at
the current cursor position. When this softkey is pressed, the CNC requests the
character sequence to be found.

The CNC will consider a text found when it is between blank spaces or separators.
Thus, When looking for "I1" it will not find or stop at "I12" or "I123", but only at "I1".

Once this text has been keyed in, press the "END OF TEXT" softkey and the cursor
will position over the first occurrence of the keyed text.

The search will begin from the block the cursor is position on beginning at that block.

The text found will be highlighted being possible to continue with the search or to quit
it.

Press [ENTER] to continue the search up to the end of the program. The CNC will
begin the search at the last text found and it will highlight it.

The search can be done as many times as desired. Once searched to the end of the
program, it will continue the search from the beginning.

Press the "ABORT" softkey or the [ESC] key to quit the search mode.

Activate / deactivate symbols


CNC 8040
With this option it is possible to display in all available windows the symbols or
mnemonics associated to the various resources.

The names of the resources may be displayed in two ways: using their generic names
(I, O, M, T, C , R) by deactivating symbols or using their associated symbols by
·T· MODEL
(SOFT V12.1X)
activating them.

When a resource has no mnemonic associated to it, it will always be displayed with
its generic name.

158
‡ ‡ ‡ Operating manual

This softkey will toggle between ACTIVATE SYMBOL and DEACTIVATE SYMBOL
every time is pressed in order to show which option is available.

Logic analyzer

It is especially suited to help in the machine start-up and for troubleshooting errors
and critical situations in signal behavior.

It is described in full detail later in this chapter.


10.

PLC
Monitoring
PLC start-up

When selecting this option, the CNC will start executing the PLC program from the
beginning, including the CY1 cycle.

The CNC does not execute this option when the PLC program is running.

First cycle

When selecting this option, the CNC will execute only the initial cycle of the PLC
program (CY1).

The CNC does not execute this option when the PLC program is running.

Single cycle

When selecting this option, the CNC will execute the main cycle of the PLC program
(PRG) only once.

The CNC does not execute this option when the PLC program is running.

STOP PLC

This softkey interrupts the execution of the PLC program.

Continue

This softkey resumes the execution of the PLC program.

CNC 8040

·T· MODEL
(SOFT V12.1X)

159
‡ ‡ ‡ Operating manual

10.3.1 Monitoring with the PLC in operation and with the PLC stopped

It must be borne in mind that the CNC initializes all physical outputs and the PLC
resources on power-up, after the key sequence [SHIFT]+[RESET] and after detecting
a watchdog error at the PLC.

The initialization process sets all resources to "0" except those active low. They will
be set to "1".

During the monitoring of the PLC program and the various PLC resources, the CNC

10. will always show the real values of the resources.

If the PLC is on, note that a program cycle is processed in the following way:
PLC
Monitoring

• The PLC updates the real input values after reading the physical inputs (from the
electrical cabinet).
• It updates the values of resources M5000 thru M5957 and R500 thru R559 with
the values of the CNC logic outputs (internal variables).
• It runs the program cycle.
• It updates the CNC logic inputs (internal variables) with the real values of
resources M5000 thru M5957 and R500 thru R559.
• It assigns to the physical outputs (electrical cabinet) the real values of the
corresponding "O" resources.
• It copies the real values of resources I, O, M into their own images.

Physical inputs Real inputs

Logic CNC outputs M5500 - M5957


R550 - R562

Yes No
Is it the first time and
is there a CY1?

CY1 PRG

END END

M5000 - M5465 Logic CNC inputs.


R500 - R505

Real outputs Physical outputs


CNC 8040
Real values Image values
I1 - I256 I1 - I256
O1 - O256 O1 - O256
M1 - M2047 M1 - M2047

·T· MODEL
(SOFT V12.1X)

160
‡ ‡ ‡ Operating manual

If the PLC is stopped, it will work as follows:


• The real values of the "I" resources corresponding to the physical inputs will be
updated every 10 milliseconds.
• The physical outputs will be updated every 10 milliseconds with the real values
of the corresponding "O" resources.
• The PLC will attend to all requests and modifications of its internal variables.

10.

PLC
Monitoring

CNC 8040

·T· MODEL
(SOFT V12.1X)

161
‡ ‡ ‡ Operating manual

10.4 Active messages

When selecting this option, the CNC will display a page (or screen) showing
dynamically all the active messages generated by the PLC.

These messages will be listed by priority always starting from the one with the
smallest number (highest priority).

It is possible to move the cursor line by line using the [©] [ª] keys or page by page

10. using the Page-up and Page-down keys.

To delete one of the displayed messages, select it with the cursor and press the
"DELETE MESSAGE" softkey.
PLC
Active messages

Note that the CNC dynamically updates the active messages.

CNC 8040

·T· MODEL
(SOFT V12.1X)

162
‡ ‡ ‡ Operating manual

10.5 Active pages (screens)

When selecting this option, the CNC will show the active page with the lowest number.

To delete a page or access the other active pages, the CNC will display the following
softkey options:
NEXT PAGE Press this softkey to display the next active page.
PREVIOUS PAGE Press this softkey to display the previous active page.
CLEAR PAGE Press this softkey to deactivate the page being
displayed. 10.

PLC
Active pages (screens)
Note that the CNC dynamically updates the active pages.

CNC 8040

·T· MODEL
(SOFT V12.1X)

163
‡ ‡ ‡ Operating manual

10.6 Save program

Press this softkey to save the PLC_PRG program into the user "Memkey Card"
(CARD A).

The PLC program must be compiled. If it is not, the CNC will show a warning.

If the PLC program is running, the CNC requests it to be stopped.

10.
PLC
Save program

CNC 8040

·T· MODEL
(SOFT V12.1X)

164
‡ ‡ ‡ Operating manual

10.7 Restore program

Press this softkey to restore (recover) the PLC program (PLC_PRG) from the user
"Memkey Card" (CARD A) .

The PLC program must not be running any PLC program, otherwise, the CNC will
ask whether it is desired to stop it or not.

After executing this instruction, the new source program recovered will replace the
one that the PLC previously had. This new one must be compiled and started in order
for the PLC to execute it. 10.

PLC
Restore program

CNC 8040

·T· MODEL
(SOFT V12.1X)

165
‡ ‡ ‡ Operating manual

10.8 Resources in use

When selecting this option, the CNC will offer the softkeys to select the table of
resources used in the PLC program.

The following resource tables are available:


INPUTS (I)
OUTPUTS (O)

10. MARKS (M)


REGISTERS (R)
PLC
Resources in use

TIMERS (T)
COUNTERS (C)

CNC 8040

·T· MODEL
(SOFT V12.1X)

166
‡ ‡ ‡ Operating manual

10.9 Statistics

This option shows the PLC memory distribution, the execution time of the various PLC
modules, the PLC program status and the date when it was edited.

10.

PLC
Statistics
General cycle

This section shows the time (maximum, minimum and average) it takes the PLC to
execute a program cycle. Bear in mind that this time includes:
• Updating the resources with the values of the physical inputs and internal CNC
variables.
• The execution of both the main cycle (PRG) and the periodic module if it is
executed during the cycle.
• Updating the internal CNC variables and the physical outputs with the resource
variables.
• Copying the resources into their corresponding images.

This section also shows the watchdog time selected by the PLC machine parameter
"WDGPRG".

Periodic module

This section shows the time (maximum, minimum and average) that it takes to
execute the periodic module of the PLC.

It also shows the period assigned to this module by means of the directive instruction
"PE t". This period indicates how frequently the periodic module will be executed.

It also shows the watchdog time for this module selected by the PLC machine
parameter "WDGPER". CNC 8040

·T· MODEL
(SOFT V12.1X)

167
‡ ‡ ‡ Operating manual

Status

Provides information on the PLC program status indicating whether it is compiled or


not and whether it is stopped or in execution.

The line: "integrated into CPU-CNC(1/32)" indicates the time that the system CPU
dedicates to the PLC (1 ms for each 32 ms). This value Will defined by the PLC
machine parameter "CPUTIME".

RAM memory

10. This section indicates the system's RAM memory available for the exclusive use of
the PLC (installed) and it also indicates how much free memory there is.
PLC
Statistics

The object program (executable) is obtained when compiling the source program and
is the one executed by the PLC. This section shows the date when it was generated
and the RAM memory space it occupies (size).

Memory CARD A

This section also shows the date the PLC program (PLC_PRG) was saved into the
"Memkey Card" and its size.

Source program

This section indicates the date when the PLC source program was last edited and
its size.

The PLC source program is stored in the CNC's RAM memory.

Time reset

Pressing the TIME RESET softkey initialized the minimum, maximum and average
time values of the PRG and PE modules and starts measuring the times from that
instant.

Application examples:
• When the statistics are not exact because the first PLC cycle has high time values.
• To know the duration of the PLC cycle from a particular moment, e.g. after having
changed a parameter.

CNC 8040

·T· MODEL
(SOFT V12.1X)

168
‡ ‡ ‡ Operating manual

10.10 Logic analyzer

The logic analyzer is especially suited to help in the machine start-up and for
troubleshooting errors and critical situations in signal behavior.

This option is used to analyze the behavior of the logic PLC signals according to a
time base and certain trigger conditions set by the user.

Up to 8 signals can be analyzed at the same time. The results are shown using a
graphic interface that makes it easy to interpret the data.

10.10.1 Description of the work screen


10.

PLC
Logic analyzer
The screen for the logic analyzer is divided into the following areas or display
windows:

1. Status window.
It graphically shows the status of each selected signal. It is divided into two areas:
Variables area and status area.
The variables area shows the names or symbols of the logic signals to be
analyzed.
The status area shows the status of each variable in square waves. The line for
logic level 0 is shown with a thicker line.

Likewise, it shows a vertical red line to indicate the TRIGGER point and another
green vertical line to indicate the cursor position.
The vertical green line for the cursor may be moved along the trace and helps
measure the time between two points of the trace. CNC 8040
The status area is divided into several vertical stripes. Each stripe represents the
amount of time defined by the "time base" constant.
The "time base" constant sets the resolution of the logic signals and, after being
set by the user, may be modified as often as desired. The "time base" is inversely
proportional to the resolution of the signals; thus, the lower the "time base" the ·T· MODEL
(SOFT V12.1X)
greater the signal resolution and vice versa.
2. Cycles window
This window shows several vertical lines "¦". Each one indicates the instant when
the execution of a new cycle of the PLC program starts.

169
‡ ‡ ‡ Operating manual

It permits maintaining a relationship between the flux of the logic signals and the
duration of each PLC execution cycle.
3. Information window
This window provides general information about the trace being shown at the
time. It shows the following data:
• The "Trigger" shows the trigger condition defined by the user to draw the trace.
• The "time base" indicates the time base defined by the user and used to show
the current trace.

10. • The "Trace status" indicates the current status of the trace. The texts shown
and their meanings are:
PLC
Logic analyzer

Empty There is no calculated trace.

Capturing There is a trace in progress.

Complete There is a trace stored.

• The "cursor offset" indicates the distance from the cursor, vertical green line,
to the trigger position, vertical red line. It is given in milliseconds.
• The "trigger type" indicates the type of trigger currently selected. The texts
shown and their meanings are:

Before The trigger is positioned at the beginning of the trace.

After The trigger is positioned at the end of the trace.

Center The trigger is positioned in the middle of the trace.

Default When no trigger condition has been specified.

4. Editing window.
It is the CNC's standard editing window. It is used for all the processes that require
data entry.
5. Message window.
This CNC uses this window to show a warning or error message.

CNC 8040

·T· MODEL
(SOFT V12.1X)

170
‡ ‡ ‡ Operating manual

10.10.2 Selection of variables and trigger conditions

Before requesting a trace, one must define the variables to be analyzed, the trigger
type and conditions and the time base to be used to show the captured values.

To do so, the following softkey options are available: "VARIABLE SELECTION",


"TRIGGER CONDITION" and "TIME BASE".

Select variables
10.
This option may be used to select up to 8 variables that will be analyzed later on.

PLC
Logic analyzer
It shows a cursor on the variables area that may be moved using the [©] [ª] keys.
Also, the softkeys will show the following options:

"EDIT" softkey

This option may be used to edit a new variable or modify one of the currently defined
variables.

Before pressing this softkey, use the cursor to select location to display that variable.

Once this option has been selected, the softkeys will change colors and they will
appear over white background showing the information corresponding to the type of
editing possible at that point.

Any logic signal of the PLC (I3, B1R120, TEN 3, CDW 4, DFU M200, etc.) may be
analyzed and may be referred to by its name or its associated symbol. It is even
possible to analyze logic expressions, consisting of one or several consultations that
must follow the syntax and rules used in PLC equations.
M100 AND (NOT I15 OR I5) AND CPS C1 EQ 100

Although it is hard to understand the treatment of consultations and expressions in


a logic analyzer, it must be borne in mind that this utility may be very interesting to
know the status of a complete expression.

No more than 16 flank detecting instructions (DFU and DFD) can be used between
all the definitions of variables and the selected trigger condition.

Pressing the [ESC] key deletes the variable being edited. From this point on, the
variable may be edited again. Once the variable has been edited, press [ENTER].
The new edited variable will be shown in the location occupied by the cursor in the
variables area.

It shows the first 8 characters of the selected variable, although the variable or
expression used to define that variable has more characters.

The cursor will occupy the position of the next variable and it will show it in the editing
area, thus being possible to continue editing new variables..

The editing area must be empty in order to quit this option. If it's not, press [ESC] to
delete that information and then press [ESC] again.

"DELETE" softkey

This option may be used to delete a variable.


CNC 8040
Before pressing this softkey, select with the cursor the variable to be deleted.

Repeat these steps for each variable to delete more variables.

·T· MODEL
(SOFT V12.1X)

171
‡ ‡ ‡ Operating manual

"CLEAR ALL" softkey

This option deletes all the variables from the status window.

Selection of trigger condition

The trigger condition is defined as the condition used to capture the data. Also, the
capture may be done before, after or before and after meeting the selected trigger

10. condition.

This option may be used to select the trigger type and condition of the logic analyzer.
PLC
Logic analyzer

To do this, the softkeys will show the following options:

"EDIT" softkey

It may be used to edit or modify the trigger condition to capture the data to be
analyzed.

Once this option has been selected, the softkeys will change colors and they will
appear over white background showing the information corresponding to the type of
editing possible at that point.

It is possible to define any logic expression and it may consist of one or several
consultations that must follow the syntax and rules used in PLC equations.

Example of expressions and trigger instant:


M100 The trigger occurs when M100 = 1.
NOT M100 The trigger occurs when M100 = 0.
CPS R100 EQ 1 The trigger occurs when R100 = 1.
NOT I20 AND I5 The trigger occurs when this expression is true.

No more than 16 flank detecting instructions (DFU and DFD) can be used between
all the definitions of variables and the selected trigger condition.

Pressing the [ESC] key deletes the trigger condition being edited. From this point on,
the condition may be edited again.

Once the trigger has been edited, press [ENTER]. The new edited condition will be
shown in the information window.

If no trigger condition has been specified, the system considers that it is a default
trigger and it will show the message "Trigger type": DEFAULT" in the information
window. On the other hand, it is not be possible to select any of the possible trigger
conditions (trigger before, trigger center, trigger after).

"TRIGGER BEFORE" softkey

The CNC starts capturing data from the moment when the selected trigger condition
is met.

Then, once the trace has been executed, the trigger (vertical red line) will be shown
at the beginning of the trace.

"TRIGGER AFTER" softkey


CNC 8040
The CNC starts capturing data from the moment when the option to execute the trace
is selected.

The trace will be completed when the selected trigger condition is met.

The system will show the trigger (vertical red line) at the end of the trace.
·T· MODEL
(SOFT V12.1X)
"TRIGGER CENTER" softkey

The CNC starts capturing data from the moment when the option to execute the trace
is selected.

172
‡ ‡ ‡ Operating manual

Then, once the trace has been executed, the trigger (vertical red line) will be shown
in the middle of the trace.

Selection of the time base

The operator may use this parameter to assign the timeframe to each vertical division.

The size of these divisions, therefore the resolution of these signals will be
determined by this time base. Consequently, the smaller the time base, the greater
the signal resolution. 10.

PLC
Logic analyzer
Example:

There is a mark that changes states every 2 milliseconds.

Using a 10 millisecond time base, it will look like this:

Using a 20 millisecond time base, it will look like this:

Using a 4 millisecond time base, it will look like this:

The time base is defined in milliseconds and the selected value will be shown in the
information window. By default, the CNC assumes a time base of 10 milliseconds.

At first, a time base may be defined that will match the frequency of the signals to
be treated. Then, when analyzing the trace, that base time may be modified to obtain
a higher resolution of the signals.

CNC 8040

·T· MODEL
(SOFT V12.1X)

173
‡ ‡ ‡ Operating manual

10.10.3 Execute trace

Once the desired variables and trigger conditions have been selected, press the
"EXECUTE TRACE" softkey so the CNC starts capturing data.

When the selected trigger condition is met, the trigger line shown in the information
window changes colors.

While the trace is being executed, the information window shows the text "Trace
status: CAPTURING".

10. The trace will end when the internal memory buffer dedicated to it is full or if it is
interrupted by pressing the "STOP TRACE" softkey. While the trace is being
PLC
Logic analyzer

executed, the information window shows the text "Trace status: COMPLETE".

Data capture

The data capture takes place at the beginning of each cycle (PRG and PE) after
reading the physical inputs and updating the marks corresponding to the CNC logic
outputs and just before starting the program execution.

Use this instruction to carry out another data capture while executing the PLC cycle.

With this instruction, it is possible to capture the data of the signals that vary with
frequencies higher than the cycle time and data of signals whose status changes
while executing the cycle, but have the same status at the beginning and at the end
of the cycle.

Example of how to use the "TRACE" instruction:


PRG
-----------
TRACE Data capture
-----------
TRACE Data capture
-----------
TRACE Data capture
-----------
END
PE 5
-----------
TRACE Data capture
-----------
END

The data capture in the execution of the trace in this program takes place:
• At the beginning of each PRG cycle.
• Every time the periodic cycle is executed (every 5 milliseconds).
• 3 times while executing the PRG module.
CNC 8040
• Once while executing the PE module.

This way, by means of the "TRACE" instruction the data capture can be done any
time, especially at those program points considered more critical.

This instruction must only be used when debugging the PLC program and it should
·T· MODEL
(SOFT V12.1X)
be avoided once the PLC program is fully debugged.

174
‡ ‡ ‡ Operating manual

Operating modes

The way the data is captured depends on the type of trigger that has been selected.
Here are the various types of trigger used and how the data is captured in each case:

Trigger before

The data capture begins when the selected trigger condition is met, i.e. when the
trigger line shown in the information window changes colors.

The trace will end when the internal memory buffer of the trace is full or when forces
a trace stop ("STOP TRACE" softkey).
10.

PLC
Logic analyzer
If the trace stop ("STOP TRACE" softkey) is forced before the trigger takes place,
the trace will be empty.

Trigger after

The data capture starts when the "EXECUTE TRACE" softkey is pressed.

The trace will end when the selected trigger condition is met or when forces a trace
stop ("STOP TRACE" softkey).

If the trace stop is forced before the trigger takes place, it will show a trace with data,
but without the trigger position (vertical red line).

Trigger center

The data capture starts when the "EXECUTE TRACE" softkey is pressed.

The CNC will enable half the trace buffer to store the data for trace before the trigger
and the other half for the data after the trigger.

The trace will end when the internal memory buffer of the trace is full or when forces
a trace stop ("STOP TRACE" softkey).

If the trace stop is forced before the trigger takes place, it will show a trace with data,
but without the trigger position (vertical red line).

Default trigger

The CNC makes this type of trace when no trigger condition has been specified.

The data capture starts when the "EXECUTE TRACE" softkey is pressed.

The trace concludes when the trace stop is forced before ("STOP TRACE" softkey)
and it will show a trace with data, but without the trigger position (vertical red line).

Trace representation

Once the data capture is done, the CNC will display graphically in the status window
the status of the signals based on the trace calculated for the analyzed variables.

Also, a vertical red line indicating the trigger position and a vertical green line
indicating the cursor position will appear superimposed on the trace.

The cursor position (vertical green line) can be slid along the trace by means of the CNC 8040
following keys:

Left arrow

Shifts the cursor a pixel to the left. While keeping this key pressed, the cursor will
·T· MODEL
advance automatically one pixel at a time and increasing its speed. (SOFT V12.1X)

If the cursor is positioned at the left end, the trace will be shifted to the right while the
cursor stays in the same position.

175
‡ ‡ ‡ Operating manual

Right arrow

Shifts the cursor a pixel to the right. While keeping this key pressed, the cursor will
advance automatically one pixel at a time and increasing its speed.

If the cursor is positioned at the right end, the trace will be shifted to the left while the
cursor stays in the same position.

Previous page

10. Shifts the cursor a screen to the left.

Next page
PLC
Logic analyzer

Shifts the cursor a screen to the right.

The information window of the CNC shows the position of the cursor, vertical green
line, with respect to the trigger position, vertical red line. That information is shown
as "cursor offset:" and it is given in milliseconds.

Analyze trace

Once the data capture is done, the CNC, besides showing the trace in the status
window, enables the "ANALYZE TRACE" softkey.

This option may be used to position the cursor (vertical green line) at the beginning
of the trace, at the end or at a particular point of the trace. Likewise, it may be used
to change the time base used to draw the trace or calculate the time between two
points of the trace.

To do so, the following softkey options are available:

Find beginning

It will show the beginning of the trace with the cursor positioned at the beginning of
the trace.

Find end

It will show the last portion of the trace with the cursor positioned at the end of the
trace.

Find trigger

It will show the trace area corresponding to the trigger area. The position where the
trigger took place will be shown with a vertical red line superimposed on the trace.

The CNC will execute this option when the trigger occurs while analyzing the trace.

CNC 8040

·T· MODEL
(SOFT V12.1X)

176
‡ ‡ ‡ Operating manual

Find time base

When pressing this softkey, the CNC will request the desired cursor position with
respect to the trigger point. This value is given in milliseconds.

For example: If a "Time search" of -1000 milliseconds has been selected, the CNC
will show the portion of the trace for 1 second prior to the trigger instant.

If no trigger has occurred while analyzing the trace, the CNC will assume that the
indicated position is referred to the beginning of the trace.

Calculate times 10.


This option may be used to calculate the time between two points of the trace; follow

PLC
Logic analyzer
these steps to define the starting and last points of the calculation.

Place the cursor at the first point of the calculation press the "MARK BEGINNING"
softkey to validate it. The cursor is moved using the [©] [ª] keys, "previous page"
and "next page".

Place the cursor at the last point of the calculation press the "MARK END" softkey
to validate it.

The message window of the CNC will show the amount of time between them. This
time is given in milliseconds.

This feature may be very useful to calculate precisely flank times of a signal, time
between the trigger of two signals, time between the trigger of a signal and the
beginning of the cycle, etc.

Modify base

With this option it is possible to modify the "time base".

The status area is divided into several vertical stripes. Each stripe represents the
amount of time defined by the "time base" constant.

The "time base" is inversely proportional to the resolution of the signals; thus, the
lower the "time base" the greater the signal resolution and vice versa.

Pressing this softkey, the CNC will request the new value to be assigned to the time
base. This value is given in milliseconds.

CNC 8040

·T· MODEL
(SOFT V12.1X)

177
‡ ‡ ‡ Operating manual

10.
PLC
Logic analyzer

CNC 8040

·T· MODEL
(SOFT V12.1X)

178
SCREEN EDITOR

11
In this operating mode, the operator can create up to 256 pages (screens) which will
be stored in the "Memkey Card".

The operator can also create up to 256 SYMBOLS to be used when creating the user
screens. These symbols are also stored in the "Memkey Card".

The information contained in a page or symbol cannot occupy more than 4Kb of
memory. Otherwise, the CNC will issue the corresponding error message.

The user screens stored in the "Memkey Card" may be:


• Used in the screen customizing programs as described next.
• Displayed on power-up (page 0) instead of the FAGOR logo.
• Activated from the PLC.
The PLC has 256 marks, with their corresponding mnemonics, to select the user
screens. These marks are:
M4700 PIC0
M4701 PIC1
M4702 PIC2
--- ----
--- ----
M4953 PIC253
M4954 PIC254
M4955 PIC255
When any of these marks is set high, its corresponding screen (page) is activated.
• Used to complete the M function assistance system (screens 250-255).
When requesting programming assistance for the auxiliary M functions by
pressing the [HELP] key, the CNC will show the corresponding internal screen
(page).
When user page 250 is defined, that information will also include the symbol(a)
indicating that more help pages are available. By pressing this key, the CNC will
display user screen 250.
The CNC will keep showing that indicator as long as there are more user screens
defined (250-255).
These screens must be defined in a row always starting from page 250. If one
of them is missing, the CNC will interpret that there are no more screens defined.

CNC 8040

·T· MODEL
(SOFT V12.1X)

179
‡ ‡ ‡ Operating manual

The user screens activated from the PLC may be displayed with the ACTIVE PAGES
option of the PLC.

The various options available in this operating mode are:

UTILITIES
To manipulate user symbols and screens (edit, copy, delete, etc.).

GRAPHIC ELEMENTS
To insert graphic elements in the selected symbol or screen.

11. TEXTS
To insert texts in the selected symbol or screen.
SCREEN EDITOR

MODIFICATIONS
To modify the selected symbol or screen.

CNC 8040

·T· MODEL
(SOFT V12.1X)

180
‡ ‡ ‡ Operating manual

11.1 Utilities

The various options available in this mode are:

"DIRECTORY" softkey

To display the directory of user screens and symbols that are stored in the "Memkey
Card" (CARD A) or in external devices through the serial lines.

Select the desired device and directory.


11.

SCREEN EDITOR
Utilities
The CNC shows the size (in bytes) of each user screen (page) and symbol.

"COPY" softkey

To make copies within the "Memkey Card" (CARD A) or between the "CARD A" and
the external devices.

Examples:
• To copy screen (page) 5 from the "Memkey Card" to serial line 2

COPY PAGE 5 IN L SERIE 2 (DNC)

• To copy screen (page) 50 from serial line 2 into the "Memkey Card"

COPY L SERIE 2 (DNC) IN PAGE 50 ENTER

• To copy symbol 15 as symbol 16 within the "Memkey Card"

COPY SYMBOL 15 IN SYMBOL 16 ENTER

"DELETE" softkey

To delete a screen or symbol from the "Memkey Card". To do that, proceed as follows:
• Press the [DELETE] softkey
• Press the [PAGE] or [SYMBOL] softkey
• Key in the page or screen number to be deleted and press [ENTER]

The CNC will request confirmation of the command.

CNC 8040

·T· MODEL
(SOFT V12.1X)

181
‡ ‡ ‡ Operating manual

"RENAME" softkey

To assign a new name or comment to a page or symbol of the "Memkey Card".

If there is another one with the same number, the CNC will display a warning message
and it will offer the chance to modify the command.

Examples:
• To change the page number from 20 to 55.

11. RENAME PAGE 20 A NEW NUMBER 55 ENTER

• To change the comment of symbol 10.


SCREEN EDITOR
Utilities

RENAME SYMBOL 10 A NEW NUMBER "Hello" ENTER

"EDIT" softkey

To edit a new user screen (page) or symbol. To do this:


• Press the [EDIT] softkey.
• Press the [PAGE] or [SYMBOL] softkey
• Key in the page or symbol number.
• Press [ENTER].

If the page or symbol does not exists, an empty page will appear in the editing area.

How to edit user screens and symbols is described later on in this chapter.

If the selected screen or symbol has been changed, the CNC will request whether
it is to be saved or not in the following instances:
• When exiting the SCREEN EDITOR mode.
• When selecting another screen (page) or symbol.

"SAVE" softkey

To save the page or symbol being edited into the "Memkey Card".

CNC 8040

·T· MODEL
(SOFT V12.1X)

182
‡ ‡ ‡ Operating manual

11.2 Editing user screens (pages) and symbols

In order to edit a page or symbol, it is necessary to selected first by means of the EDIT
option of the UTILITIES mode of operation.

To edit or modify a page or symbol, use the options: GRAPHIC ELEMENTS, TEXTS,
and MODIFICATIONS.

The information contained in a page or symbol cannot occupy more than 4Kb of
memory. Otherwise, the CNC will issue the corresponding error message.

Once the page or symbol has been selected, the CNC will display a screen similar
11.
to this one:

SCREEN EDITOR
Editing user screens (pages) and symbols
The upper left-hand side of the screen will show the number of the page or symbol
being edited.

The main window shows the selected page or symbol. When it is a new page or
symbol, the main window will display a blank page or empty symbol.

There is also a window at the bottom of the screen which shows the different editing
parameters and highlights their selected values. The various parameters available
are:
• The type of drawing line used when defining the graphic elements.
• The cursor moving steps (cursor advance) in pixels.
• The letter size to create the texts for the pages and symbols.
• The background and foreground (main) colors for the graphic elements and for
the letters.
One of the color rectangles shown has another rectangle in it. The inside
rectangle indicates the selected main color and the outside rectangle indicates
the selected background color.
CNC 8040

This window also shows the cursor position coordinates in pixels. The horizontal
position is indicated by the X value (1 through 638) and the vertical position by the
Y value (0 through 334).
·T· MODEL
(SOFT V12.1X)

183
‡ ‡ ‡ Operating manual

Once one of the options (GRAPHIC ELEMENTS, TEXTS or MODIFICATIONS) has


been selected, it will be possible to modify the editing parameters any time even while
defining the graphic elements and texts.

This way, it is possible to edit shapes of different lines and color as well as insert texts
of different sizes. Press [INS] to access this menu.

Once in this mode, the CNC will show the softkeys corresponding to the various
options to modify these parameters. These options are described next. Press [INS]
again to quit this mode and return to the previous menu.

11. "CURSOR ADVANCE" softkey


SCREEN EDITOR
Editing user screens (pages) and symbols

With this option it is possible to select the cursor moving step in pixels (1, 8, 16, 24).
Follow these steps after pressing this softkey:
1. Use the [§] [¨] keys to select the desired step.
The currently selected step will be highlighted.
2. Press [ENTER] to validate the selected step or [ESC] to quit this mode leaving
the previous selection intact.

When editing a new page or symbol, the CNC assumes the default value of 8.

"TYPE OF LINE" softkey

With this option it is possible to select the type of line used to define the graphic
elements. Follow these steps after pressing this softkey:
1. Use the [§] [¨] keys to select the desired type of line.
The currently selected line type will be highlighted.
2. Press [ENTER] to validate the selected step or [ESC] to quit this mode leaving
the previous selection intact.

When editing a new page or symbol, the CNC assigns to this parameter the "fine solid
line".

It is not possible to use the thick line to draw polylines or polygons. They are always
drawn in fine line.

CNC 8040

·T· MODEL
(SOFT V12.1X)

184
‡ ‡ ‡ Operating manual

"TEXT SIZE" softkey

With this option it is possible to select the size of the letters used to write the texts
to be inserted in the pages or symbols. Three text sizes are available:
• Normal size
All the characters of the keyboard, numbers, signs, upper and lower case letters,
can be written in this size.
• Double and triple sizes.
Only capital letters A through Z, numbers 0 through 9 ; the "*", "+", "-", ".", ":", "#",
"%", "/", "<", ">", "?" signs and the special characters: "Ç", "Ä", "Ö", "Ü", "ß" can
be written in these sizes.
11.

SCREEN EDITOR
Editing user screens (pages) and symbols
When selecting lower case letters for these sizes, the CNC will convert them
automatically into upper case.

Follow these steps to select the text size:


1. Use the [©] [ª] keys to select the desired text size.
The currently selected text size will be highlighted.
2. Press [ENTER] to validate the selected text size or [ESC] to quit this mode leaving
the previous selection intact.

When editing a new page or symbol, the CNC assumes the normal size by default.

"BACKGROUND COLOR" softkey

With this option it is possible to select the background color of the graphic screen.

It is not possible to change the background color when editing a symbol since it is
an attribute of the page and not of the symbol

If the desired background color is white, it is recommended to use a different color


while creating the page since the cursor the "drawing" cursor is always white and will
become invisible with this background color. Once the complete page (screen) is
created, the background color can be changed to the desired one.

One of the color rectangles shown has another rectangle in it. The inside rectangle
indicates the selected main color and the outside rectangle indicates the selected
background color.

To select the background color, proceed as follows:


1. Use the [§] [¨] [©] [ª] keys to select the desired background color among the
16 shown on the screen.
The CNC will show with the inside rectangle the currently selected background
color.
2. Press [ENTER] to validate the selected color or [ESC] to quit this mode leaving
the previous selection intact.

When editing a new page or symbol, the CNC assumes a blue background color by
default.

CNC 8040

·T· MODEL
(SOFT V12.1X)

185
‡ ‡ ‡ Operating manual

"MAIN COLOR" softkey

With this option it is possible to select the color used to draw and write texts on the
page (screen) or symbol.

One of the color rectangles shown has another rectangle in it. The inside rectangle
indicates the selected main color and the outside rectangle indicates the selected
background color.

To select the main color, follow these steps:


11. 1. Use the [§] [¨] [©] [ª] keys to select the desired main color among the 16 shown
on the screen.
SCREEN EDITOR
Editing user screens (pages) and symbols

The CNC will show the main color being selected by placing a white inside
rectangle. It will also display the rectangle containing both the selected
background color and the main color being selected here.
2. Press [ENTER] to validate the selected color or [ESC] to quit this mode leaving
the previous selection intact.

When editing a new page or symbol, the CNC assumes white as the main color by
default.

"GRID" softkey

This option displays a grid of points with a 16-pixel pitch on the screen.

The grid points will be white when the selected background color corresponds to one
of the 8 upper color rectangles and they will be black when the selected background
color corresponds to one of the 8 lower color rectangles.

Press this softkey again to get rid of the grid.

Every time the grid is displayed, the CNC will reset the cursor step to 16 pixels.

Since this value coincides with the distance between grid points, the cursor will move
from point to point on grid However, the cursor advance may be modified afterwards
by selecting it with the CURSOR ADVANCE softkey.

CNC 8040

·T· MODEL
(SOFT V12.1X)

186
‡ ‡ ‡ Operating manual

11.3 Graphic elements

Before accessing this option, it is necessary to select the page or symbol to be edited
or modified by means of the EDIT option of the UTILITIES mode of operation.

With this option it is possible to include graphic elements in the selected page or
symbol. The CNC displays a screen 80 columns wide (640 pixels for X coordinate)
by 21 rows high (336 pixels for Y coordinate).

When editing a new page, the CNC will position the cursor in the center of the screen
and when editing a new symbol, it will position it at the upper left-hand corner. 11.
The cursor is white and once one of the possible graphic elements has been selected,

SCREEN EDITOR
Graphic elements
it can be moved around on the screen with the [§] [¨] [©] [ª] keys.

The cursor can also be moved by using the following keystroke combinations:
[SHIFT] + [¨] Positions the cursor at the last column (X638).
[SHIFT] + [§] Positions the cursor at the first column (X1).
[SHIFT] + [©] Positions the cursor at the first row (Y0).
[SHIFT] + [ª] Positions the cursor at the first row (Y334).

It is also possible to key in the XY coordinates of the point where the cursor is to be
positioned. To do this, follow these steps:
1. Press "X" or "Y".
The CNC will highlight, in the editing parameter display window, the cursor
position along the selected axis.
2. Key in the position value corresponding to the point where the cursor is to be
placed along this axis.
The horizontal position is defined as the X value between 1 and 638 and the
vertical position as the Y value between 0 and 334.
Once the desired text has been selected, press [ENTER]. The CNC will move the
cursor to the indicated position.

Once this option is selected, it is possible to modify the editing parameters at any time
even while defining the graphic elements. This way, it is possible to edit shapes of
different line and color. Press [INS] to access this menu.

Once in this mode, press the corresponding softkey to modify those parameters.
Press [INS] again to quit this mode and return to the previous menu.

The possible graphic elements which can be used to create a page or symbol are
selected with the softkeys and are the following:

"LINE" softkey

Follow these steps after pressing this softkey:


1. Place the cursor at the beginning of the line and press [ENTER] to validate it.
2. Move the cursor to the end of the line (the CNC will continuously show the line
being drawn).
3. Press [ENTER] to validate the line or [ESC] to cancel it.
CNC 8040
Repeat the preceding steps to draw more lines. If no more lines are desired, press
[ESC] to return to the previous menu.

·T· MODEL
(SOFT V12.1X)

187
‡ ‡ ‡ Operating manual

"RECTANGLE" softkey

Follow these steps after pressing this softkey:


1. Place the cursor on one of the corners of the rectangle and press [ENTER] to
validate it.
2. Move the cursor to the opposite corner; the CNC will continuously show the
rectangle being drawn.
3. Press [ENTER] to validate the rectangle or [ESC] to cancel it.

11. Repeat these steps to draw more rectangles. If no more rectangles are desired, press
[ESC] to return to the previous menu.
SCREEN EDITOR
Graphic elements

"CIRCLE" softkey

Follow these steps after pressing this softkey:


1. Place the cursor at the center of the circle and press [ENTER] to validate it.
2. Move the cursor in order to define the radius. As the cursor moves, the CNC will
show the circle corresponding to that radius.
3. Press [ENTER] to validate the circle or [ESC] to cancel it.
Once the circle is validated, the cursor is positioned at its center in order to
facilitate the drawing of concentric circles.

Repeat these steps to draw more circles. If no more circles are desired, press [ESC]
to return to the previous menu.

"ARC" softkey

Follow these steps after pressing this softkey:


1. Place the cursor at one of the arc's ends and press [ENTER] to validate it.
2. Move the cursor to the other end of the arc (the CNC will show a line joining both
ends) and press [ENTER] to validate it.
Once both ends of the arc have been validated, the cursor is positioned in the
center of the straight line that joins them.
3. Move the cursor to define the curvature. The line will become an arc passing
through 3 points (the two ends and the cursor point).
4. Press [ENTER] to validate the arc or [ESC] to cancel it.

Repeat these steps to draw more arcs. If no more arcs are desired, press [ESC] to
return to the previous menu.

"POLYLINE" softkey

A polyline consists of several lines where the last point of one of them is the beginning
point for the next one.

Follow these steps after pressing this softkey:


CNC 8040 1. Place the cursor at one of the ends of the polyline and press [ENTER] to validate it.
2. Move the cursor to the end of the first line (which will be the beginning of the next
one). The CNC will continuously show the line being drawn.
Press [ENTER] to validate the line or [ESC] to quit this option (which will delete
the complete polyline).
·T· MODEL
(SOFT V12.1X) 3. Repeat step 2 for the remaining lines.
Note that the maximum number of straight lines in a polyline is 127.

Once the polyline is drawn, press [ENTER] again to validate it or [ESC] to quit this
option deleting the complete polyline.

188
‡ ‡ ‡ Operating manual

Repeat these steps to draw more polylines and if no more polylines are desired, press
[ESC] to return to the previous menu.

"SYMBOL" softkey

This option allows a symbol to be drawn in the page or symbol being edited.

Follow these steps to insert a symbol in the desired place:


1. Enter the number of the symbol to include in the page or symbol being edited and
press the [ENTER] key to validate it. 11.
The CNC will show that symbol. The cursor will be at the reference point

SCREEN EDITOR
Graphic elements
corresponding to the symbol (upper left hand corner of the symbol).
2. Move the cursor to the position where it is required to place the symbol. In this
move, only the cursor will move and not the symbol.
3. Once the cursor has been placed in the desired position, press [ENTER] for the
CNC to insert the symbol in that position.
If no more symbols are to be inserted, press [ESC] to quit this option.
4. The selected symbol may be inserted in several places. To do that, move the
cursor again and press [ENTER] for the CNC to insert the symbol in that position.
5. Press the [ESC] key to quit and go back to the previous menu.

To insert several different symbols in the currently selected page or symbol, the
"SYMBOL" option must be selected every time a new symbol is to be inserted.

A symbol cannot be included into itself. Therefore, if symbol 4 is being edited, any
symbol can be included except symbol 4.

If a symbol is deleted, the CNC will update all the pages or symbols that
contain it because all the calls to it will remain active.
When displaying a page or symbol that has a call to a nonexistent symbol
(deleted or not defined), that area of the page will appear blank.
If this symbol is edited again later, the new representation assigned to the
symbol will appear in all the pages and symbols which contain a call to it.

CNC 8040

·T· MODEL
(SOFT V12.1X)

189
‡ ‡ ‡ Operating manual

"POLYGON" softkey

A polygon is a closed polyline whose beginning and end points coincide.

To draw a polygon, proceed as follows:


1. Place the cursor on one of the vertices of the polygon and press the [ENTER] key
to validate it.
2. Move the cursor to the following vertex of the polygon (the CNC will show the line
you are trying to draw).

11. Press [ENTER] to validate the line or [ESC] to quit this option (which will delete
the complete polyline).
SCREEN EDITOR
Graphic elements

3. Repeat step 2 for the remaining vertices.


After defining all the vertices, press [ENTER] again. The CNC will complete the
polygon and will show the line joining the first and last vertices.
Repeat these steps to draw more polygons and if no more polygons are desired,
press [ESC] to return to the previous menu.

"FILLED POLYGON" softkey

To draw a filled polygon, follow the steps indicated in the "POLYGON" option.

Once the polygon has been defined, the CNC will fill it with the color used to define it.

"FILLED CIRCLE" softkey

To draw a filled circle, follow the steps indicated in the "CIRCLE" option.

Once the circle has been defined, the CNC will fill it with the color used to define it.

"FILLED RECTANGLE" softkey

To draw a filled polygon, follow the steps indicated in the "RECTANGLE" option.

Once the rectangle has been defined, the CNC will fill it with the color used to define it.

CNC 8040

·T· MODEL
(SOFT V12.1X)

190
‡ ‡ ‡ Operating manual

11.4 Texts

Before accessing this option, it is necessary to select the page or symbol to be edited
or modified by means of the EDIT option of the UTILITIES mode of operation.

With this option it is possible to include texts in the selected page or symbol. The CNC
displays a screen 80 columns wide (640 pixels for X coordinate) by 21 rows high (336
pixels for Y coordinate).

When editing a new page, the CNC will position the cursor in the center of the screen
and when editing a new symbol, it will position it at the upper left-hand corner. 11.
The cursor is white and once the text to be inserted has been selected, it can be

SCREEN EDITOR
Texts
moved around on the screen with the [§] [¨] [©] [ª] keys.

The cursor can also be moved by using the following keystroke combinations:
[SHIFT] + [¨] Positions the cursor at the last column (X638).
[SHIFT] + [§] Positions the cursor at the first column (X1).
[SHIFT] + [©] Positions the cursor at the first row (Y0).
[SHIFT] + [ª] Positions the cursor at the first row (Y334).

It is also possible to key in the XY coordinates of the point where the cursor is to be
positioned. To do this, follow these steps:
1. Press "X" or "Y".
The CNC will highlight, in the editing parameter display window, the cursor
position along the selected axis.
2. Key in the position value corresponding to the point where the cursor is to be
placed along this axis.
The horizontal position is defined as the X value between 1 and 638 and the
vertical position as the Y value between 0 and 334.
Once the desired text has been selected, press [ENTER]. The CNC will move the
cursor to the indicated position.

Once this option is selected, it is possible to modify the editing parameters at any time
even while defining the texts. This way, it is possible to edit texts of different size and
color. Press [INS] to access this menu.

Once in this mode, press the corresponding softkey to modify those parameters.
Press [INS] again to quit this mode and return to the previous menu.

It is also possible to insert one of the texts available at the CNC or a text previously
keyed in by the user. To do this, the following softkey options are available:

USER DEFINED TEXT

Follow these steps to insert the desired text:


1. Press the [ENTER] key.
The CNC will display a text editing window; the cursor within this window can be
moved with the [§] [¨] keys.
2. Type the desired text.
A rectangle will be displayed which will enlarge as the text is "typed" in the editing CNC 8040
window thus indicating the screen space that this text will occupy.
Press [ESC] to cancel this option and the previous menu will be displayed.
3. Press [ENTER] once the text has been correctly "typed in".
The typed text will remain in the editing window and the cursor will be positioned
·T· MODEL
in the main window. (SOFT V12.1X)
4. Position the rectangle by moving the cursor.
5. Press [ENTER] to validate the command. The CNC will replace the rectangle with
the indicated text.

191
‡ ‡ ‡ Operating manual

Note that once the text has been "entered", neither its size nor its color can be
modified. Therefore, these options must be selected before pressing [ENTER].

TEXT NUMBER

With this option it is possible to select a text used by the CNC itself in its various
operating modes and insert it into the current page or symbol.

11. To insert one of these predetermined texts, follow these steps:


1. Press the relevant softkey.
The CNC will display an area to define the text number; the cursor within this area
SCREEN EDITOR
Texts

can be moved with the [§] [¨] keys.


2. Indicate the desired number by keying it in from the keyboard and press [ENTER].
The CNC will show the text that has been selected. The CNC will display in its
main window a rectangle indicating the size of the text.
If another text is desired, key in the other number and press [ENTER] again.
Press [ESC] to cancel this option and the previous menu will be displayed.
3. Once the desired text has been selected, press [ENTER].
The typed text will remain in the editing window and the cursor will be positioned
in the main window.
4. Position the rectangle by moving the cursor.
5. Press [ENTER] to validate the command. The CNC will replace the rectangle with
the indicated text.

Note that once the text has been "entered", neither its size nor its color can be
modified. Therefore, these options must be selected before pressing [ENTER].

This application may be useful when the pages or symbols being edited are
to be shown in other languages since the CNC will translate them into the
chosen language.
Usually, when the texts are to be shown in one single language, it is more
practical to simply write them up instead of searching them in a list of more
than 1500 predetermined messages.
However, should anyone desire the printout of these predetermined texts, feel
free to request it from Fagor Automation.

CNC 8040

·T· MODEL
(SOFT V12.1X)

192
‡ ‡ ‡ Operating manual

11.5 Modifications

Before accessing this option, it is necessary to select the page or symbol to be edited
or modified by means of the EDIT option of the UTILITIES mode of operation.

The cursor is white and once one of the modifying options has been selected, it can
be moved around on the screen with the [§] [¨] [©] [ª] keys.

The cursor can also be moved by using the following keystroke combinations:
[SHIFT] + [¨]
[SHIFT] + [§]
Positions the cursor at the last column (X638).
Positions the cursor at the first column (X1).
11.

SCREEN EDITOR
Modifications
[SHIFT] + [©] Positions the cursor at the first row (Y0).
[SHIFT] + [ª] Positions the cursor at the first row (Y334).

It is also possible to key in the XY coordinates of the point where the cursor is to be
positioned. To do this, follow these steps:
1. Press "X" or "Y".
The CNC will highlight, in the editing parameter display window, the cursor
position along the selected axis.
2. Key in the position value corresponding to the point where the cursor is to be
placed along this axis.
The horizontal position is defined as the X value between 1 and 638 and the
vertical position as the Y value between 0 and 334.
Once the desired text has been selected, press [ENTER]. The CNC will move the
cursor to the indicated position.

The possible options to modify a page or symbol are:

CLEAR PAGE

Allows the selected page or symbol to be deleted.

Once this softkey has been pressed, the CNC will request an OK before executing
the indicated operation.

Executing this option clears the page or symbol being edited. However, the CNC will
keep in the "Memkey Card" the contents of that page or symbol the last time the
"SAVE" command was executed.

DELETE ELEMENTS

This option allows an element of the displayed page or symbol to be selected and
then deleted.

Follow these steps to delete a text or any graphic element displayed on the selected
screen or symbol:
1. Place the cursor on the element to be deleted and press the [ENTER] key.
An area of between ± 8 pixels from the position indicated will be analyzed.
If it is a symbol, place the cursor on the cross that indicates the reference point CNC 8040
of that symbol.
If the element to be deleted is a filled circle or a filled polygon, the cursor must
be positioned on a point on the circumference or outside polygon.

·T· MODEL
(SOFT V12.1X)

193
‡ ‡ ‡ Operating manual

2. If any graphic element or text exists in this area, this will be highlighted and you
will be asked if you wish to delete it.
Press [ENTER] to delete that element, or [ESC] if otherwise.
Should there be several elements in this area, the CNC will highlight them in
succession and it will ask for confirmation before deleting any of them.

MOVE SCREEN

11. With this option, it is possible to move a whole set of graphic elements and texts of
the currently selected screen. This option is not available when a symbol is selected.
SCREEN EDITOR
Modifications

When selecting this option, the CNC places the cursor in the middle of the screen
and assumes that point as the screen's reference point.

To move the screen, proceed as follows:


1. Move the cursor to the desired position for the page's reference point.
2. Press [ENTER] to validate the command. The CNC will move the whole set of
graphic elements and texts of the currently selected screen.
Press [ESC] to cancel this option and the previous menu will be displayed.

Repeat the previous operations to move the screen somewhere else. If not, press
[ESC] and the CNC will display the previous menu.

CNC 8040

·T· MODEL
(SOFT V12.1X)

194
MACHINE PARAMETERS

12
In order for the machine tool to be able to properly execute the programmed
instructions, the CNC must know the specific data of the machine such as feedrate,
acceleration, feedback, automatic tool change, etc.

This data is set by the machine manufacturer and must be stored in the machine
parameter tables. These tables may be edited in this work mode or copied into the
"Memkey Card" or a PC as described later on. When accessing this operating mode,
the CNC will show the tables that are saved in the "Memkey Card" (CARD A).

The CNC has the following groups of machine parameters:


• General machine parameters.
• Machine parameters for the axes (one table per axis)
• Spindle parameters.
• Drive parameters.
• RS-422 and RS-232-C serial port configuration parameters.
• Ethernet configuration parameters.
• PLC Parameters.
• Auxiliary (miscellaneous) M functions.
• Leadscrew error compensation (one table per axis).
• Cross Compensations between two axes (for example: ram sag)

First, the general machine parameters must be set since they determine the machine
axes.

It must also be defined whether the machine has cross compensation and between
which axes, and the CNC will generate the corresponding cross compensation
parameters.

By means of the general machine parameters, the table lengths for the tool magazine,
tools, tool offsets and the miscellaneous M functions are defined.

Use the axis parameters to determine whether leadscrew error compensation will be
applied or not and define the length of the corresponding table.

Once the general machine parameters are defined, press [SHIFT]+[RESET] for the
CNC to enable the required tables. It is recommended to save the tables in the
"Memkey Card" or out to a peripheral device or PC.

CNC 8040

·T· MODEL
(SOFT V12.1X)

195
‡ ‡ ‡ Operating manual

12.1 Machine parameter table

The general, axis, spindle, serial ports and PLC parameter tables have the following
structure:

12.
Machine parameter table
MACHINE PARAMETERS

Each table shows the parameter number is indicated, the value assigned to it and
the name or mnemonic associated with this parameter.

CNC 8040

·T· MODEL
(SOFT V12.1X)

196
‡ ‡ ‡ Operating manual

12.2 Miscellaneous function tables "M"

The table corresponding to the miscellaneous M functions has the following structure:

12.

MACHINE PARAMETERS
Miscellaneous function tables "M"
The number of M functions in the table is defined by means of the general machine
parameter "NMISCFUN". The following is defined for each line:
• The number (0-9999) of the defined miscellaneous M function.
If an M function is not defined, the CNC will show M????.
• The number of the subroutine which is required to associate to this miscellaneous
function.
• 8 setting bits.

x x x x x x x x

(7) (6) (5) (4) (3) (3) (1) (0)

Bit 0 Indicates whether the CNC must (=0) or must not (=1) wait for the
signal AUXEND (signal of the M executed) to resume program
execution.
Bit 1 Indicates whether the M function is executed before (=0) or after (=1)
the movement of the block in which it is programmed.
Bit 2 Indicates whether the execution of the M function interrupts (=1) or not
(=0) the preparation of the blocks.
Bit 3 Indicates whether the M function is executed after calling the
associated subroutine (=0) or only the associated subroutine is
executed (=1).
Bit 4 When bit 2 is set to "1", it indicates whether block preparation is to be
interrupted until the "M" function starts executing (=0) or until its
execution is finished (=1). CNC 8040
The rest of the bits are not being used at this time.

·T· MODEL
(SOFT V12.1X)

197
‡ ‡ ‡ Operating manual

12.3 Leadscrew error compensation tables

The tables for leadscrew error compensation have the following structure:

12.
MACHINE PARAMETERS
Leadscrew error compensation tables

The number of points of each of these is defined by means of the axis machine
parameter "NPOINTS". The following is defined for each of line:
• The position of the axis to be compensated.
• The amount of error of the axis in this point.

Also, the current position of the selected axis is displayed and updated as the
machine axis moves. This position is updated as the axis moves.

CNC 8040

·T· MODEL
(SOFT V12.1X)

198
‡ ‡ ‡ Operating manual

12.4 Cross compensation table

The tables corresponding to cross compensation have the following structure.

12.

Cross compensation table


MACHINE PARAMETERS
The number of points of each table is defined by means of the general machine
parameter "NPCROSS", "NPCROSS2" and "NPCROSS3" respectively.

Each table defines:


• The position of the axis causing the error.
• The error suffered by the axis at that point.

Also, the current position of the selected axis is displayed and updated as the
machine axis moves. This position is updated as the axis moves.

CNC 8040

·T· MODEL
(SOFT V12.1X)

199
‡ ‡ ‡ Operating manual

12.5 Operation with parameter tables

Once the desired table has been selected, the CNC will show its contents and the
cursor can be moved line by line with the [©] [ª] keys or page by page with the "page
up" and "page down" keys.

There are also several options to operate with those tables. These options are shown
with softkeys and they are:

12. Once any of those options has been selected, the user can move the cursor over this
line by means of the [§] [¨] keys. Also, with the [©] key, the cursor may be placed
over the first character of the editing window and, with the [ª] key over the last
Operation with parameter tables
MACHINE PARAMETERS

character.

"EDIT" softkey

With this option it is possible to edit the selected parameter. Once this option has been
selected, the softkeys will change colors and they will appear over white background
showing the information corresponding to the type of editing possible at that point.

In those tables corresponding to leadscrew and cross compensation, the position


values of the axis must be edited as follows:
1. Move the axis and when the error is found large enough to be considered, press
the softkey corresponding to this axis.
2. The CNC will include, in the editing area, the name of the axis followed by the
position value corresponding to that point. This value can be modified if so
desired.
3. Press the softkey corresponding to the error and key in its value.

Once the parameter is edited, press [ENTER]. This new parameter will be included
in the table and the cursor will be positioned over it. The editing area will be cleared,
thus allowing other parameters to be edited.

Press [ESC] to quit this mode.

"MODIFY" softkey

With this option it is possible to modify the selected parameter. Before pressing this
softkey, the desired parameter must be selected.

When selecting this option, the softkeys will change their color to a white background
and they will show the various editing options.

By pressing [ESC], the information displayed in the editing window (corresponding


to the selected parameter) will be cleared. From this point on, a new value can be
entered.

To quit the block modifying mode, press [CL] or [ESC] to clear the editing window
and then press [ESC] again. The selected parameter will not be modified.

Once this modification has concluded, press the [ENTER] key to validate it. The new
parameter will replace the previous one.
CNC 8040

·T· MODEL
(SOFT V12.1X)

200
‡ ‡ ‡ Operating manual

"FIND" softkey

This option is used to find a specific text within the selected table.

When selecting this option, the softkeys will show the following options:
BEGINNING When pressing this softkey, the cursor positions over the first
parameter of the table quitting this option.
END When pressing this softkey, the cursor positions over the last
parameter of the table quitting this option.
PARAMETER When pressing this softkey, the CNC will request the number
of the parameter to be found. Key in that number and press
12.

Operation with parameter tables


MACHINE PARAMETERS
[ENTER]; the cursor will be positioned over the indicated
parameter quitting this option.

"INITIALIZE" softkey

With this option it is possible to reset all the parameters of the selected table to their
default values. These default values are indicated in the chapter corresponding to
machine parameters in the installation manual.

"LOAD" softkey

The tables may be loaded from the "Memkey Card" (CARD A) or a peripheral device
or a PC through the two serial communications lines (RS232C or RS422).

The transmission starts after pressing the corresponding softkey. When using a serial
line, the receptor must be ready before starting the transmission. To interrupt the
transmission, press the "ABORT" softkey.

If the length of the table received does not coincide with the current table length, the
CNC will act as follows:
• If the table received is shorter than the current one, the received lines are modified
and the rest remain with their previous values.
• If the table received is longer than the current one, all the lines of the table are
modified and when detecting that there is no more room, the CNC will issue the
corresponding error message

"SAVE" softkey

The tables may be saved into the "Memkey Card" (CARD A) or out to a peripheral
device or PC through the two serial lines (RS232C or RS422).

The transmission starts after pressing the corresponding softkey. When using a serial
line, the receptor must be ready before starting the transmission. To interrupt the
transmission, press the "ABORT" softkey.

CNC 8040

·T· MODEL
(SOFT V12.1X)

201
‡ ‡ ‡ Operating manual

"MM/INCHES" softkey

Every time this softkey is pressed, the CNC will change the display format of those
parameters affected by these units from millimeters to inches and vice versa. The
lower right-hand window will indicate which units are selected (MM/INCH).

Note that this change does not affect the general machine parameter "INCHES"
which indicates the measuring units by default.

12.
Operation with parameter tables
MACHINE PARAMETERS

CNC 8040

·T· MODEL
(SOFT V12.1X)

202
DIAGNOSIS

13
In this operating mode it is possible to know the configuration of the CNC as well as
testing the system.

The CNC offers the following softkey options:


• System configuration.
• Hardware test.
• Tests.
• Adjustments.
• User.
• Hard disk.

CNC 8040

·T· MODEL
(SOFT V12.1X)

203
‡ ‡ ‡ Operating manual

13.1 Configuration

This option shows the current system configuration. Once this option has been
chosen, two new softkeys will appear in order to select the hardware configuration
or the software configuration of the system.

Hardware configuration.

13. This option displays the following information:


Configuration
DIAGNOSIS

Central Unit (CPU) configuration.

It indicates the current configuration of the CNC’s central unit: Power supply, boards,
video, CAN, etc.

CNC RESOURCES

It indicates, in Kb, the size of the user RAM memory, of the system and the memory
space of the "Memkey Card".

PLC RESOURCES

It indicates whether the PLC is integrated into the CPU-CNC and the number of inputs
and outputs, local and remote.

LCD ADJUSTMENT (softkey available with monochrome LCD


monitors)

Pressing this softkey shows new softkeys for adjusting the brightness/contrast over
the adjustment screen.
• The [+] and [-] softkeys may be used to adjust the brightness/contrast.
• Pressing the [RESTORE] softkey restores the previous values.
• Pressing the [SAVE] softkey assumes the new values.

Software configuration

This option shows:


• The available software options.
• The software version installed.
The version for the CNC and for the hard disk (HD).
• The id codes of the unit. They are only to be used by the Service Department.
• The softkey to update the version.
When updating the software version with this softkey, it is not necessary to turn
the CNC off and back on or actuate the external switch to update the software
version.

The "CODE VALIDATION" softkey must be used after consulting with the Service
Department when wishing to implement more software features.
CNC 8040

·T· MODEL
(SOFT V12.1X)

204
‡ ‡ ‡ Operating manual

13.2 Hardware test

This option checks the power supply voltages corresponding to the system and to
the boards as well as the internal temperature of the central unit. It displays the
following information:

Supply voltage

It indicates the voltage of the lithium battery and the voltages supplied by the power
supply. The voltages supplied by the power supply are internally used by the CNC.
13.

DIAGNOSIS
Hardware test
Next to the voltages, it displays the value range (maximum and minimum values),
the real value and whether it is OK or not.

Board voltage

It indicates which boards must be supplied with 24 Vdc and whether each one of them
is properly supplied.

Inside temperature

It shows the value range (maximum and minimum values), the inside temperature
of the Central Unit and whether that value is OK or not.

CNC 8040

·T· MODEL
(SOFT V12.1X)

205
‡ ‡ ‡ Operating manual

13.3 Tests

Memory test

This option checks the status of the internal CNC memory, that of the memory
available for the user and for the system.

In order to perform this test, the PLC program must be stopped. If it is running, the
13. CNC will ask the operator whether it is to be stopped or not.
DIAGNOSIS
Tests

Code test

This option checks the status of the internal CNC Flash memory. These memories
contain the CNC software version currently installed.

Hard disk test

Accessing this screen runs a test on the disk. Testing the hard disk includes a test
of the surface. This test is not carried out on a remote hard disk and the relevant
message is displayed.
When detecting an error, it shows the relevant error message at the bottom of the
window.

DIAGNOSIS P...... N.... DNC 12:24:55

HARD DISK TEST

PHYSICAL LOGIC

Model * * * Block size 4096 Bytes

Physical 984 16/ 32 Total blocks 62846

Logic 984 16/ 32 Free blocks 40150

MOUNTING Occupied blocks 22696

Sector/Cluster 8
Ok

Label BCB

Ok CAP INS

This mode shows the following information:


• Physical information.
Hard disk model installed and information on the physical and logic partition
(cylinders, heads and sectors). The physical and logic partitions might not be
the same.
CNC 8040 This information is only displayed for the local hard disk. When having a remote
hard disk, this information is not available.
• Logic information.
Size in bytes of each of the blocks the disk is divided into. Total number of
blocks in the disk, free and occupied. Number of sectors in a cluster.
·T· MODEL
(SOFT V12.1X) The label is the name given to the disk when formatting it.

206
‡ ‡ ‡ Operating manual

• Mounting information.
If no error occurred, it shows the message "OK".
Local hard disk: In case of error, it indicates the error number and the mounting
stage where it came up.
Remote hard disk: In case of error, it only shows a message indicating the type
of error.

13.

DIAGNOSIS
Tests

CNC 8040

·T· MODEL
(SOFT V12.1X)

207
‡ ‡ ‡ Operating manual

13.4 Adjustments

13.4.1 Circle geometry test

This adjustment improves the axis reversal peaks. It consists in machining a circle
(without compensation) and verifying it on the graph displayed at the CNC.

The following example shows a program that machines repetitive circles.

13. X0 Y0
G5 G1 F1000
N10 G2 X0 Y0 I20 J0
DIAGNOSIS
Adjustments

(RPT N10, N10) N50


M30

After selecting this program in the Execution mode and starting it, access the
“Diagnosis > Adjustments > Circle Geometry test” mode and the CNC will display the
following screen:

If the machine parameters are protected, it will request the access password because
the bottom right of the screen shows some of them. When not knowing the password,
those values cannot be changed, but it will be possible to access the screen and the
circle geometry test.

The left side of the CNC screen shows the result of the test.

The data at the top right is refreshed by the CNC after the test is completed.

The data at the center right must be defined before running the test.

The bottom right side of the screen shows the parameters associated with the plane
axes and the values used to set them.

The graph on the left must be defined before running the test. To do that, define the
data of the center right:
CNC 8040 • Number of divisions to the left and to the right of the theoretical circle.
• Scale or value in microns of each division.
• Error margin or % of circle radius occupied by the error margin (divisions area).

Knowing the password, the values shown at the bottom right may be modified. The
assigns the new values to the relevant machine parameters; therefore, it is
·T· MODEL
(SOFT V12.1X) recommended to jot the initial values down.

208
‡ ‡ ‡ Operating manual

One the graphic display area and the machine parameters have been defined,
capture the data by pressing the following softkeys:
SIMPLE It deletes the current graph and draws, over the theoretical
circle, the machining error enlarged according to the defined
scale until a full circle is drawn or until the STOP softkey or
[ESC] key is pressed.
CONTINUOUS It deletes the current graph and draws, over the theoretical
circle, a series of circles with the machining error enlarged
according to the defined scale until the STOP softkey or [ESC]

DELETE
key is pressed.
It may be pressed at any time, even while drawing the graph.
13.
It deletes the screen and resets the statistics shown at its right.

DIAGNOSIS
Adjustments
During continuous graphics, it is possible to modify the machine parameters and view
the new graph over the previous one, or press the DELETE softkey to only display
the new one.

The data shown by the CNC at the top right is updated while capturing data.
∆ internal Maximum negative value of the error over the theoretical value, in
microns or ten-thousandths of an inch and its angular position.
∆ external Maximum positive value of the error over the theoretical value, in
microns or ten-thousandths of an inch and its angular position.

Once data capture is done, it draws two lines indicating the angular positions of both
errors on the graph. They appear in dashed lines when the error exceeds the value
assigned to the display area in its quadrant and it goes on to the opposite quadrant.

While capturing points for the geometry test, the execution graphics stops
i drawing.

CNC 8040

·T· MODEL
(SOFT V12.1X)

209
‡ ‡ ‡ Operating manual

13.4.2 Oscilloscope

The oscilloscope function is a help tool to adjust the CNC and the drives. With this
tool, it is possible to represent 4 previously selected variables and manipulate CNC
machine parameters and variables. When using Fagor drives with Sercos or CAN,
the drive parameters may also be adjusted.

When requesting information (variable or parameter) of a drive that is not connected


via Sercos or CAN or has an old software version, the message "Variable does not
exist" will be displayed.
13. It must be borne in mind that the oscilloscope is only an assistance tool for
i
DIAGNOSIS
Adjustments

the adjustment; it is always up to the technician to decide which one is the best
adjustment.

How to operate

The way to operate with the oscilloscope is summarized as followed:


1. Execute a part-program moving the axis or axes to be adjusted.
The program must execute a nonstop back-and-forth movement.
2. Once the program starts running, access the oscilloscope and define the
variables to be analyzed, the trigger conditions and the machine parameters of
the CNC or the drive to be modified.
From the oscilloscope, only certain machine parameters may be modified and it
will also be necessary to know the protection password if they are protected.
3. Start the oscilloscope, capture the data and then analyze it. While capturing data,
the defined data may be modified to check the system's response to different
adjustments.
Capture data, analyze it and modify the parameters again until achieving the best
machining conditions.

After adjusting the axis separately, readjust the interpolating axes together.

Operating the oscilloscope

To enter or modify a data on the screens, it must be selected and it must have the
editing focus.

Use the [©] [ª] keys to select another editable data or field. It is a rotary selection,
if the [©] key pressed when the first element of the screen is selected, the focus goes
to the last element whereas if the [ª] is pressed when the last element is selected,
the focus goes to the first element.

Not all the data may be edited, only the ones that may be selected, those having the
focus. There are two types of editable fields:
• Editable values:
They may be assigned a value, sometimes numerical (numbers only) and
sometimes alphanumerical (numbers and letters). Before validating the data, it
is checked; if the data is incorrect, it is rejected and a warning message is issued.
• Values that may be selected:
The possible values are fixed and one of them may be selected. Use the [§] [¨]
keys to see the possible values. For this type of values that are icons, the [White/
CNC 8040 Green] key has the same effect as the [¨] key.

·T· MODEL
(SOFT V12.1X)

210
‡ ‡ ‡ Operating manual

Softkey menu

Accessing the oscilloscope mode enables the following softkeys:


Scale / Offsets To change the amplitude of each signal, move them vertically
or adjust the time base for all of them.
Analysis To analyze, using 2 cursors, each signal of the last data
capture.
Parameters To assign new values to the machine parameters of the CNC
and drive that have been defined in the "Configuration" screen.
Configuration To define the variables to be analyzed, the trigger conditions
and the machine parameters of the CNC or the drive that may
13.

DIAGNOSIS
Adjustments
be modified.
Actions It shows various softkeys to modify the data of each field
(amplitude of the signals, vertical movement, time base
adjustment, position of the cursors, etc.).
Start It captures data according to the conditions set on the
"Configuration" screen to be analyzed later on.

"Configuration" softkey

To define the variables to be analyzed, the trigger conditions and the machine
parameters of the CNC or the drive to be modified.

It offers 2 screens, one to set the parameters and the other one to define the variables
and trigger conditions. On the screen for defining variables and the trigger condition,
it is possible to go from block of elements to another using the [page up] and [page
down] keys.

Definition of variables

The oscilloscope has 4 graphics channels (CH1, CH2, CH3, CH4). The following data
must be defined in each channel.
• The code or name of the variable to be shown.
• The color used to show the variable on the graph.
• Whether the channel will be visible or not.
The hidden channels are not shown graphically (they are not shown on the screen
after the data capture). This type of channels are useful when using this channel
to set the trigger condition.

When defining a variable that cannot be captured, an error message will be issued.
If no variable is to be captured in a channel, just leave the name field blank. If all 4
channels are deactivated (without associated variable) no capture is possible.

CNC variables that may be assigned to a channel

Indicate the desired variable.


Example: ANAI1 FREAL FLWEX.

Variable Description
ANAI(1-8) Voltage of input 1-8.

ANAO(1-8) Voltage to apply to output 1-8. CNC 8040


FREAL Real CNC feedrate

FREAL(X-C) Actual (real) X-C axis feedrate

FTEO(X-C) Theoretical X-C axis feedrate

FLWE(X-C) X-C axis following error. ·T· MODEL


(SOFT V12.1X)
ASIN(X-C) A signal of the CNC's sinusoidal feedback for the X-C axis.

BSIN(X-C) B signal of the CNC's sinusoidal feedback for the X-C axis.

DRPO(X-C) Position indicated by the Sercos drive of the X-C axis.

211
‡ ‡ ‡ Operating manual

Variable Description
SREAL Real spindle speed

FTEOS Theoretical spindle speed.

FLWES Spindle following error.

ASINS A signal of the CNC's sinusoidal feedback for the spindle.


BSINS B signal of the CNC's sinusoidal feedback for the spindle.

DRPOS Position indicated by the Sercos drive of the spindle.

13. SSREAL

SFTEOS
Real speed of the second spindle.

Theoretical speed of the second spindle.


DIAGNOSIS
Adjustments

SFLWES Following error (lag) of the second 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.

SDRPOS Position indicated by the Sercos drive of the second spindle.

Fagor Sercos or CAN drive variables that may be assigned to a channel

Indicate the desired axis or spindle and variable, separated by a period. The auxiliary
spindle is identified with the prefix "AS".
Example: X.CV3 Y.SV1 S1.SV2 AS.SV1

Variable Description
CV3 CurrentFeedback
SV1 VelocityCommand
SV2 VelocityFeedback
SV7 VelocityCommandFinal
TV1 TorqueCommand
TV4 VelocityIntegralAction
RV1 FeedbackSine
RV2 FeedbackCosine
RV51 Feedback2Sine
RV52 Feedback2Cosine

Trigger conditions

The following data is available to define the trigger conditions.


• Channel
Indicates which variable or channel (CH1, CH2, CH3, CH4) is to be used as a
reference or trigger condition.
• Trigger
Indicates the beginning of the data capture. When selecting a trigger, the trigger
condition must be specified with the "flank", "level" and "position" data.
If not selected, the data capture begins when the user gives the command to begin
(the "flank", "level" and "position" data is ignored).
CNC 8040

·T· MODEL
(SOFT V12.1X)

212
‡ ‡ ‡ Operating manual

• Flank
It is taken into account when the trigger has been selected. It may be an up flank
or a down flank.
With an up flank, the data capture begins when in a sample the data value is lower
than the level and in the next sample the value is greater than or equal to the level.
With a down flank, the data capture begins when in a sample the data value is
greater than the level and in the next sample the value is lower than or equal to
the level.
• Level
It is taken into account when the trigger has been selected.
It sets the value that the variable must take to begin the data capture.
13.

DIAGNOSIS
Adjustments
• Position (%)
It is taken into account when the trigger has been selected. It is defined as a
percentage, between 0% and 100%.
It indicates the number of samples to be taken before the trigger. For example,
a 10% position indicates that 10% of the total number of programmed samples
will be taken before the trigger and the remaining 90% after that instant.
The trigger condition starts evaluating after having the indicated % of samples.
If the position is defined as 50% and the trigger condition takes place after taking
10% of the samples, it is ignored until capturing 50% of the samples.
• Number of samples
It indicates the number of sample to be captured. It is common to all the channels.
Value between 1 and 1024.
The sample will be taken at the same time in all the channels so they are
synchronized.
• Sample T
It indicates the sampe period or the time period between data captures. It is given
in milliseconds, integers between 1 and 1000 (between 1ms and 1s).
When analyzing CNC variables, the sample period must be a multiple of the loop
time. If it is not, a message is displayed indicating that the sampling period has
been automatically rounded off.
The sample time may be shorter than the CNC loop time only when analyzing 1
or 2 variables of the same drive.
When the requested number of variables forces a reconfiguration of the CNC's
Sercos or CAN interface, a warning message is issued requesting its
confirmation.
• Mode
It indicates the type of data capture, single or continuous.
With "single" capture, the process ends when the specified number of samples
has been taken or when interrupted by the user.
The "continuous" data capture begins like a single capture, but when the process
ends, the data is shown on the screen and it automatically resumes the data
capture. The process goes on like that indefinitely until the user stops it.
• Superimposed channels
If this option is not selected, all the signals appear separated. The screen is
divided into as many horizontal strips as active and visible channels have been
defined. The signals are shown with their own graphic zero and ordered from top
to bottom in the defined order (CH1, CH2, CH3, CH4).
If this option is selected all the signals appear superimposed, with a single graphic
CNC 8040
zero located at the center of the screen.
During the analysis of the signals, it is possible to change modes by pressing the
[M] key.

·T· MODEL
(SOFT V12.1X)

213
‡ ‡ ‡ Operating manual

Machine parameter setting

The parameters defining page shows the definition code on the left column, the
parameter name on the center column and the maximum and minimum values on
the right column.
• To add a parameter to the list, select the row for the parameter, enter the definition
code and press [ENTER]. If the parameter is valid, the rest of the fields are
updated and if not, it issues a warning.
• To replace a parameter from the list, select the parameter to be replaced, enter

13. the definition code of the new parameter and press [ENTER]. If the previous
content has been deleted and no code is entered, the line appears empty.
• The [Add a parameter to the list] softkey enters a new empty line above the
DIAGNOSIS
Adjustments

currently selected line.


• The [Eliminate parameter] softkey eliminates the currently selected line and shifts
all the ones below upwards.

The parameters are always shown in the same place where they were defined and
the empty rows appear blank.

When a parameter is changed, the CNC machine parameter table and the drive's
work parameters are updated. The "Save parameters" softkey is also activated. It is
recommended to save the parameter tables that have been changed, those of the
CNC into the CARDA and those of the drive in its FLASH. If only the CNC parameters
have been changed, the drive tables remain unchanged and vice versa.

Once the values saved are the same as the ones edited last, the softkey disappears
until a new modification is made.

CNC machine parameters that may be modified

General machine parameters: Enter the indicator of the general parameter and the
parameter number separated with a dot.
Example: G.P161

Parameter Number Update


TLOOK P161 Beginning of program execution
CODISET P147 Immediate

Machine parameters of an axis: Indicate the axis and the parameter number
separated by a dot.
Example: X.P18 Z.P23

Parameter Number Update


BACKLASH P14 Immediate
ACCTIME P18 Beginning of the next block

INPOSW P19 Immediate

MAXFLWE1 P21 Immediate


MAXFLWE2 P22 Immediate

PROGAIN P23 Immediate

DERGAIN P24 Immediate

FFGAIN P25 Immediate


CNC 8040
MINANOUT P27 Immediate

SERVOFF P28 Immediate

BAKANOUT P29 Immediate

BAKTIME P30 Immediate


·T· MODEL
(SOFT V12.1X) REFDIREC P33 Immediate

REFVALUE P36 Immediate

MAXVOLT P37 Immediate

G00FEED P38 Beginning of the next block

214
‡ ‡ ‡ Operating manual

Parameter Number Update


MAXFEED P42 Beginning of the next block

JOGFEED P43 Beginning of the next block

ACCTIME2 P59 Beginning of the next block

PROGAIN2 P60 Immediate


DERGAIN2 P61 Immediate

FFGAIN2 P62 Immediate

JERKLIM

FLIMIT
P67

P75
Beginning of the next block

Beginning of the next block


13.

DIAGNOSIS
Adjustments
Spindle machine parameters: Indicate the spindle (S, S1, S2) and the parameter
number separated by a dot.
Example: S.P18 S1.P23 S2.P25

Parameter Number Update


MAXGEAR1 P2 Beginning of the next block

MAXGEAR2 P3 Beginning of the next block

MAXGEAR3 P4 Beginning of the next block

MAXGEAR4 P5 Beginning of the next block


ACCTIME P18 Beginning of the next block

INPOSW P19 Immediate

PROGAIN P23 Immediate


DERGAIN P24 Immediate

FFGAIN P25 Immediate

MINANOUT P27 Immediate

SERVOFF P28 Immediate

REFDIREC P33 Immediate

REFVALUE P36 Immediate


MAXVOLT1 P37 Immediate

MAXVOLT2 P38 Immediate

MAXVOLT3 P39 Immediate


MAXVOLT4 P40 Immediate

OPLACETI P45 Immediate

ACCTIME2 P47 Beginning of the next block

PROGAIN2 P48 Immediate

DERGAIN2 P49 Immediate

FFGAIN2 P50 Immediate


SLIMIT P66 Immediate

A modification in the MAXGEAR(1··4) parameters sets the square corner mode even
if a round corner has been programmed.

Drive parameters that may be modified. CNC 8040


Axis parameters. Indicate the axis and the parameter number and the set separated
by a dot.
Example: X.CP1.0 Y.CP20.2 Z.SP1.1
·T· MODEL
(SOFT V12.1X)

215
‡ ‡ ‡ Operating manual

Save and load the configurations of the oscilloscope

The system permits saving the current configuration into a file in ASCII format. To
do that, set general machine parameter STPFILE with the number to be assigned
to the configuration file (the number must be other than 0). The configuration file may
be treated like any other program, sent out via DNC or even edited.

When saving or loading a configuration, the CNC first checks if the file already exists
in User RAM and if not, it will look for it in the Memkey Card.

Several configurations may be saved in the configuration file. Each configuration


13. must be assigned a name of up to 40 characters.

The following softkeys are related to this feature.


DIAGNOSIS
Adjustments

Save To save the current configuration, press the [Save] softkey and enter
the name to save it with up to 40 characters. If there is a previously
saved configuration with the same name, it will ask whether it must be
replaced or not.
Load To load a previously saved configuration, press the [Load] softkey and
select it from the list on the screen. If the configuration makes not
sense (for example, because the CNC does not have an axis that that
configuration refers to), the CNC will warn the user and it will only load
the portion of the configuration read until that error came up.
Delete To delete one of the saved configurations, press the [Delete] softkey,
select it from the list on the screen and press [ENTER].
Reset Pressing the [Reset] softkey resets the current configuration. There
are no variables or parameters selected and the rest of conditions
(colors, trigger, etc.) assume the values assigned by default.

"Scale / Offsets" softkey

To change the amplitude of each signal, move them vertically or adjust the time base
for all of them.

The right side of the screen shows:


• The vertical scale or amplitude by square for each signal (next to the name of the
variable).
• The horizontal scale or time base (t/div) for all the signals.

To change the amplitude, use the [©] [ª] keys to place the focus in the "Scale" field
of the desired variable. Then use the [§] [¨] keys or [page up] [page down] to select
one of the permitted values or press [X] for auto-scaling.

To move the signal vertically, use the [©] [ª] keys to place the focus in the "Offset"
field of the desired variable. Then use the [§] [¨] keys or [page up] [page down] to
move the signal or press one of these keys:
[U] To move it up as high as possible
[D] To move it down as low as possible
[0] To center it.
[X] For the CNC to scale it automatically.

When auto-scaling a channel, the system sets the right vertical scale and offset so
CNC 8040 the signal shows as big as possible within its graphic strip.

To modify the time base of all the signals, use the [©] [ª] keys to place the focus
in the "t/div" field. Then use the [§] [¨] keys or [page up] [page down] to select one
of the permitted values or press [X] for auto-scaling.
·T· MODEL To select another portion of the sample use the [©] [ª] keys to place the focus in
(SOFT V12.1X)
the "Win" field. Then use the [§] [¨] keys or [page up] [page down] to move the signal
or press one of these keys:
[F] To show the beginning of the trace (First)
[T] To show the trigger zone.

216
‡ ‡ ‡ Operating manual

[S] To show the final portion of the trace (second)


[X] For the CNC to scale it automatically.

"Analysis" softkey

To analyze, using 2 cursors, each signal of the last data capture.

The right side of the screen shows:


• Next to each variable, the value (V1 and V2) of the signal in the position of each
cursor and the difference between them (Dv).
13.

DIAGNOSIS
Adjustments
• The position, in milliseconds, of each cursor (C1 and C2) and the time difference
between them (Dt).

To select the first or second cursor, use the [©] [ª] keys to place the focus in the
"C1" or "C2" fields respectively. Then use the [§] [¨] keys or [page up] [page down]
to move the signal or press one of these keys:
[F] To show the beginning of the trace (First)
[T] To show the trigger zone.
[S] To show the final portion of the trace (second)
[X] For the CNC to scale it automatically.

To select another portion of the sample use the [©] [ª] keys to place the focus in
the "Win" field. Then use the [§] [¨] keys or [page up] [page down] to move the signal
or press one of these keys:
[F] To show the beginning of the trace (First)
[T] To show the trigger zone.
[S] To show the final portion of the trace (second)
[X] For the CNC to scale it automatically.

Holding the [§] [¨] keys pressed accelerates the movement.

"Parameters" softkey

To assign new values to the machine parameters of the CNC and drive that have been
defined in the "Configuration-Parameters" screen.

The machine parameters of the axis or the spindle are updated according to the
criteria defined in the previous tables, the rest of the parameters are updated
according to the general criteria:
// It is necessary to press the keystroke sequence [SHIFT]+[RESET]
or turn the CNC off and back on.
/ Just press [RESET].
The rest of the parameters (those unmarked) will be updated
automatically, only by changing them.

If the password to the machine parameters has been defined (SETUPPSW), it will
be requested when modifying a parameter for the first time. If entered correctly, it is
stored in memory and it is not requested again unless the CNC is turned off. If the CNC 8040
password is wrong, the parameter cannot be modified and it will be requested again
the next time.

When a parameter is changed, the CNC machine parameter table and the drive's
work parameters are updated. The [Save Parameters] softkey is also activated on
the "Configuration - Parameters" screen. ·T· MODEL
(SOFT V12.1X)
We suggest to access that screen and press the [Save Parameters] softkey to save
the parameter tables that have been changed, those of the CNC into the CARDA and
those of the drive in its FLASH. If only the CNC parameters have been changed, the
drive tables remain unchanged and vice versa.

217
‡ ‡ ‡ Operating manual

Once the values saved are the same as the ones edited last, the softkey disappears
until a new modification is made.

"Actions" softkey

It is available on the following screens: "Parameter Editing", "Analysis" and "Scales


/Offsets".

13. It is very useful when not having an alpha-numeric keyboard because it shows several
softkeys to change the data of each field (amplitude of the signals, vertical movement,
time base, position of the cursors, etc.)
DIAGNOSIS
Adjustments

"Start" softkey

It is available on the following screens: "Parameter Editing", "Analysis" and "Scales


/Offsets".

It captures data according to the conditions set on the "Configuration" screen and
enables the following softkeys:
[Stop] Interrupts the capture and shows the data collected until then.
[Stop continuous] Available when the capture is continuous. It interrupts the
capture and shows the last full trace.

Once data capture has ended, or has been interrupted, it is possible to analyze the
signals and modify the parameters that have been previously selected, in order to
improve the machining conditions.

Capture data, analyze it and modify the parameters again until achieving the best
machining conditions.

CNC 8040

·T· MODEL
(SOFT V12.1X)

218
‡ ‡ ‡ Operating manual

13.5 User

This option will execute the program which is selected with the general machine
parameter "USERDIAG" in the user channel.

To quit its execution and return to the previous menu, press [ESC].

13.
13.6 Hard disk

DIAGNOSIS
User
Once this option has been selected, two softkeys will be displayed:

"Test" softkey

It check the status of the hard disk (user memory available). It takes about 30 minutes.

In order to perform this test, the PLC program must be stopped. If it is running, the
CNC will ask the operator whether it is to be stopped or not.

"Compress" softkey

It compresses the hard disk by defragmenting it. It also includes a hard disk surface
check. The duration of this test depends on the number of files it contains and on how
defragmented the hard disk is.

CNC 8040

·T· MODEL
(SOFT V12.1X)

219
‡ ‡ ‡ Operating manual

13.7 Interesting notes

The CNC carries out a series of sequential tests. If the result obtained is not correct,
it may stop axes feed and spindle rotation (by canceling their analog voltages and
Enables), as well as stopping the execution of the PLC program or activating the
external emergency output (01).

Type of test When doing Stop axes and Stop the PLC Activates the

13. Temperature Always


spindles

Yes No
emergency
output

Yes
Interesting notes
DIAGNOSIS

Battery out Always No No No

Flash memory From Diagnosis Yes Yes Yes

(CARD A) On power-up No No No

RAM memory From Diagnosis Yes No Yes

External power supply. EXEC/SIMUL Yes No No

Board voltage EXEC/SIMUL Yes No Yes

PLC in execution EXEC/SIMUL Yes --- Yes


PLC User errors EXEC/SIMUL Yes No No

PLC watchdog PLC in execution Yes Yes Yes

CNC 8040

·T· MODEL
(SOFT V12.1X)

220
CNC - PC COMMUNICATION.
TELEDIAGNOSIS
14
Telediagnosis may be used to govern and monitor the status of the CNC from a
remote PC. The remote PC used for telediagnosis must have the WinDNC software
installed in it.

To use telediagnosis, first establish communication between the CNC and the PC
either through the RS232 line, through Ethernet or with phone call.

To establish communication through a phone call, both the CNC and the PC must
be connected to a modem. The call from a PC is make with the WinDNC and the call
from the CNC is made from the mode: Status > DNC > Phone Call. Pressing this
softkey shows a menu with the different types of phone calls available:
• Normal phone call.
It is a direct phone call between the CNC and the PC. Whoever establishes the
connection incurs in its costs.
• Advanced phone call.
It is a direct phone call between the CNC and the PC. The CNC incurs in the
connection costs because it is the one establishing the connection with the PC.
This option is similar to the previous one, but it provides faster telediagnosis. This
type of connection uses TCP/IP protocol, thus not being necessary to configure
an incoming connection at the PC.
• Internet phone call.
It is a connection made through internet. Both the CNC and the PC incur in the
connection costs because both the CNC and the PC must be connected to the
internet.
Telediagnosis through the Internet offers all the advantages of this type of
connection. Usually, this type of connection costs less than a direct telephone call.
When connecting through the Internet for the connection, the telediagnosis may
sometimes be slower than making a direct telephone call.

No special machine parameter must be set at the CNC to carry out the telediagnosis.
Only the machine parameters of the serial line or Ethernet must be properly set
depending on the type of connection.

Telediagnosis

Once the connection has been made, access the telediagnosis option of the WinDNC
at the PC. From then on, the CNC may be governed either from its own keyboard
at the machine or remotely from the PC keyboard.

The PC will display the same information (screens) as the CNC. From the PC, it is
CNC 8040
possible to access the different CNC modes, modify tables and parameters (when
knowing the password), simulate programs, etc. For safety reasons, it is not possible
to move the axes of the machine or execute part-programs.

While in remote control mode, no other DNC command may be executed through the
·T· MODEL
same serial line; for example the execution of an infinite program. (SOFT V12.1X)

Disabling the CNC screen and keyboard

The CNC screen and keyboard may be disabled from the WinDNC so the user cannot
manipulate the CNC while telediagnosis is running.

221
‡ ‡ ‡ Operating manual

When the keyboard is disabled, neither the feedrate override nor the CYCLE STOP
button are disabled. These operations are carried out by activating and deactivating
the corresponding icons on the left side of the telediagnosis screen.

End of telediagnosis

To end telediagnosis, select the END icon at the WinDNC. Ending telediagnosis does
not end the connection between the PC and the CNC.

14. There are two ways to end the communication between the PC and the CNC; either
from the PC or from the CNC.
CNC - PC COMMUNICATION. TELEDIAGNOSIS

• From the PC select the EXIT option at the WinDNC.


• At the CNC, in the window for phone calls, press HANG UP.

CNC 8040

·T· MODEL
(SOFT V12.1X)

222
‡ ‡ ‡ Operating manual

14.1 Direct connection through the serial line or Ethernet

The direct connection is also possible either through the RS232 serial line or Ethernet.
With the Ethernet connection it is possible to use a local network to access any CNC
of the network from the PC.

The connection is established from the PC through the WinDNC. Refer to the
WinDNC help for further information.

14.
RS232

CNC - PC COMMUNICATION. TELEDIAGNOSIS


Direct connection through the serial line or Ethernet
ETHERNET

ETHERNET

For the RS232 connection, the remote PC must have the WinDNC software (version
V2.00 or later) installed in it. For the Ethernet connection, the remote PC must have
the WinDNC software (version V4.00 or later) installed in it.

CNC 8040

·T· MODEL
(SOFT V12.1X)

223
‡ ‡ ‡ Operating manual

14.2 Telephone connection from a PC

It is a direct phone call between the CNC and the PC. The PC incurs in the connection
costs because it is the one establishing the connection with the CNC.

14.
Telephone connection from a PC
CNC - PC COMMUNICATION. TELEDIAGNOSIS

PC connection to the telephone line

It is recommended to first turn on the modem, then the CNC and then the remote PC,
in that order. Connect the PC to the telephone line through a modem and execute
the WinDNC application.

At the WinDNC, within the options for the serial line, select the "CALL" option. The
WinDNC shows the following window to select the modem being used and the
telephone number to dial (that of the CNC).

CNC 8040

·T· MODEL
(SOFT V12.1X)

224
‡ ‡ ‡ Operating manual

14.3 Normal phone call

It is a direct phone call between the CNC and the PC.

14.

Normal phone call


CNC - PC COMMUNICATION. TELEDIAGNOSIS
When pressing this softkey, the CNC displays a window to enter the phone number
that the PC modem is connected to. If necessary, one must also set the outside line
accessing code, the country code (if the PC is in another country) and the telephone
extension.

DIALUP
Line access TONES

Country NO INTERNET

Telephone

Extension

Once the phone number has been entered, it is possible to make a call by selecting
the telephone icon and pressing [ENTER] or by pressing the "CALL" softkey.
Likewise, to hang up, it may be done using the icon or the "hang up" softkey.

The bottom of the screen shows the warning and error messages that come up. To
establish connection, the WinDNC of the PC must be in the call waiting mode.

CNC 8040

·T· MODEL
(SOFT V12.1X)

225
‡ ‡ ‡ Operating manual

14.4 Advanced phone call

It is a direct phone call between the CNC and the PC. This option is similar to the
normal call, but it provides faster telediagnosis.

This type of connection uses TCP/IP protocol, thus not being necessary to configure
an incoming connection at the PC. The operating system must be Windows 2000 or
XP.

14.
Advanced phone call
CNC - PC COMMUNICATION. TELEDIAGNOSIS

When pressing this softkey, the CNC displays a window to enter the phone number
that the PC modem is connected to, the user name and the password. If necessary,
one must also set the outside line accessing code, the country code (if the PC is in
another country) and the telephone extension.

The user name and the password must be provided by the person performing the
telediagnosis. The user name and the password may be up to 15 characters long.

DIALUP
Line access TONES

Country NO INTERNET

Telephone

Extension

User

Password

Once the phone number has been entered, it is possible to make a call by selecting
the telephone icon and pressing [ENTER] or by pressing the "CALL" softkey.
Likewise, to hang up, it may be done using the icon or the "hang up" softkey.

The bottom of the screen shows the warning and error messages that come up. To
establish connection, the WinDNC of the PC must be in the call waiting mode.

The advanced telephone connection is unidirectional (one way). The


i WinDNC can receive and send files, enter into telediagnosis or carry out any
operation. Nothing can be done with the DNC at the CNC.

CNC 8040

·T· MODEL
(SOFT V12.1X)

226
‡ ‡ ‡ Operating manual

How to operate at the PC

While the CNC is dialing, the task bar will show an icon indicating the telephone
access connection. At that moment, a new configuration must be created at the
WinDNC. Select "Network Node" in the "Type" field and as IP address the one
previously configured (in our example 10.0.68.71).

Press "OK" to finish creating the configuration and "Connect" to connect to the CNC.

This type of telediagnosis uses a standard Windows protocol which like other
packs involves opening a communications port at the PC (incoming
connection). Having this open pot may let an undesired third party access the
14.

Advanced phone call


CNC - PC COMMUNICATION. TELEDIAGNOSIS
PC and even the local network.
To prevent undesired access, the PC should be disconnected from the local
network during telediagnosis; once telediagnosis has concluded, the
incoming connection must be disconnected.

Disconnecting the CNC from the Ethernet network during


telediagnosis

For safety reasons, the CNC offers the operator the possibility to temporarily
disconnect the CNC from the Ethernet network during the call. Pressing the "Call"
softkey opens a new window for temporarily disconnecting the CNC from the Ethernet
network. The CNC will connect to the network again when the call ends.

When the CNC disconnects from the Ethernet network, the Ethernet status screen
will show the message "Ethernet not running".

CNC 8040

·T· MODEL
(SOFT V12.1X)

227
‡ ‡ ‡ Operating manual

14.4.1 Configuration of an incoming connection at the PC.

First, configure the PC to accept telephone calls.

In the "Configuration" option of the "Start" menu, select "Network connections" and
chose the option for creating a new connection. It will show the Windows help to
create connections that permits configuring the connection step by step. Press the
–OK– button to go on to the next step.

Follow the instructions shown on the screen to configure the connection; refer to the

14. Windows help for additional information. Define the following data in each step:
1. The first step is to select the type of network connection that must accept incoming
connections. Depending on the operating system of the PC (Windows 2000 or
Advanced phone call
CNC - PC COMMUNICATION. TELEDIAGNOSIS

XP) the first steps will be different.


On Windows 2000, select the option "Accept incoming connections".
On Windows XP, first select the option "Configure an advance connection" and,
in the next step, the option "Accept incoming connections".
2. Then, select and configure the device through which to connect, in this case the
modem. To select it, activate the selection box next to the device.

To prevent undesired access to the PC, once telediagnosis has concluded,


the modem must be disabled. To do that, deactivate the selection box next
to the device.

To configure the modem, select the properties button. A window will appear with
the connection preferences. If necessary, refer to the documentation of your
modem for the proper configuration. In most cases, the default modem
configuration will be valid. As an example, the following values may be used.
As basic properties of the modem (the values are examples).

Cancel the call if not connected in ... (sec) 60 sec


Port speed 115200
Data protocol Standard EC

CNC 8040 Compression Enabled


Flow control Hardware
As advanced properties of the modem (the values are examples).

Data bits 8
·T· MODEL
(SOFT V12.1X) Parity None
Stop bits 1
Modulation Standard

228
‡ ‡ ‡ Operating manual

If it offers the option to display the window for the dialing terminal, select the
options so it is not shown in any case.
3. The next step refers to the virtual connections. Choose the option "Do not allow
private virtual connections".
4. To make the connection, define the users allowed to connect with the PC. The
window shows a list of users. To define a new user, press the –Add– button.
To add a new user, define the name, the password and password confirmation.
The "Full name" field is optional.
5. The last step consists in configuring the network components. In this case, we'll
use the Internet protocol TCP/IP.
14.

Advanced phone call


CNC - PC COMMUNICATION. TELEDIAGNOSIS
Select the TCP/IP protocol from the list of components and press the properties
button.

Indicate the TCP/IP addresses. Enter in the "From" field an address that belongs
to the local network where the PC is and in the "For" field the next one.
For safety, deselect the option that lets the caller access the local network.

For example, if the network the PC is in uses 10.0.xx.xx type addresses, the
i "From" field may use the address 10.0.680.70 and the "For" the next one, i.e.
10.0.680.71, if they are not being used.

CNC 8040

·T· MODEL
(SOFT V12.1X)

229
‡ ‡ ‡ Operating manual

6. Define the name by which the new connection must be recognized. This is the
name that will appear on the PC's net directory. Just select it from the list to start
the connection.

14.
Advanced phone call
CNC - PC COMMUNICATION. TELEDIAGNOSIS

CNC 8040

·T· MODEL
(SOFT V12.1X)

230
‡ ‡ ‡ Operating manual

14.5 Internet phone call

It is a connection made through internet. Telediagnosis through the Internet offers


all the advantages of this type of connection. When connecting through the Internet
for the connection, the telediagnosis may sometimes be slower than making a direct
telephone call.

INTERNET 14.

Internet phone call


CNC - PC COMMUNICATION. TELEDIAGNOSIS
When pressing this softkey, the CNC displays a window to enter the phone number,
the user name and the password. If necessary, one must also set the outside line
accessing code, the country code (if the PC is in another country) and the telephone
extension.

The telephone number, the user name and the password must be provided by the
internet connection provider. The user name and the password may be up to 15
characters long.

DIALUP
Line access TONES

Country INTERNET

Telephone

Extension

User

Password

Once the connection has been made, the bottom of the screen will show the IP
address. This address must be communicated to the person who is going to
telediagnose from the PC.

The Internet connection is unidirectional (one way). The WinDNC can receive
i and send files, enter into telediagnosis or carry out any operation. Nothing can
be done with the DNC at the CNC.
CNC 8040

·T· MODEL
(SOFT V12.1X)

231
‡ ‡ ‡ Operating manual

PC connection

There are many ways to connect the PC to the Internet, through a modem, LAN,
ADSL, etc. If it is connected through a firewall (safety filters for the connection), it may
have to be configured so it lets the Fagor telediagnosis data through. These
communications are established through the TCP/IP 3873 port.

Once the PC is connected to the Internet, Create a new configuration at the WinDNC.
In the "Type" field, select "Network Node" and the IP address that the CNC offers on

14.
the screen.

Press "OK" to finish creating the configuration and "Connect" to connect to the CNC.
Internet phone call
CNC - PC COMMUNICATION. TELEDIAGNOSIS

Connecting through a modem leaves an open way to the local network of the
PC. Having this open way may let an undesired third party access the local
network.
To prevent undesired access, the PC should be disconnected from the local
network during telediagnosis.

Disconnecting the CNC from the Ethernet network during


telediagnosis

For safety reasons, the CNC offers the operator the possibility to temporarily
disconnect the CNC from the Ethernet network during the call. Pressing the "Call"
softkey opens a new window for temporarily disconnecting the CNC from the Ethernet
network. The CNC will connect to the network again when the call ends.

When the CNC disconnects from the Ethernet network, the Ethernet status screen
will show the message "Ethernet not running".

CNC 8040

·T· MODEL
(SOFT V12.1X)

232
‡ ‡ ‡ Operating manual

14.

CNC 8040

·T· MODEL
(SOFT V12.1X)

233
‡ ‡ ‡ Operating manual

14.

CNC 8040

·T· MODEL
(SOFT V12.1X)

234

You might also like