You are on page 1of 3

Date : 2011-jun-14

Standard PLC-M (8065-70)


V1.00
Fagor Automation
Page 1 of 3

Standard PLC-M (8065-70)

REV DATE COMMENT FILE APPROVAL


June 2011 Standard PLC-M.doc




Date : 2011-jun-14
Standard PLC-M (8065-70)
V1.00
Fagor Automation
Page 2 of 3

INDEX

1. What is a standard PLC-M?


2. How to operate with the files of the standard PLC-M?.
3. Description of the PLC program

1. What is a standard PLC-M?

In order to get a better PLC program, and easy to make, a standard PLC has been developed.

Better PLC program means that is easy for anybody to follow and allows to give a good service reponse
anywhere. As the PLC program has the knwoledge of experience people the quality is higher avoiding
programming problems.

Easy to make means that the commisioning time can be reduced.

All the information is made in English, even the mnemonics we use for easy identification of the PLC
resources in use.

The PLC program is made for a machining center consist of:

a. Axes X, Y, Z and 4, or 5 as optional.


b. One spindle.
c. Random ATC.
d. HBA handwheel.

2. How to operate with the files of the standard PLC-M?.

Standard PLC-M is a folder located in C:\CNC8070\MTB\PLC\Project where there is the information


regarding the whole PLC program for a machine.

Basically the files are divided in 3 groups:

a. The PLC program which is PLCPRG_M_en_V01.plc, and it must be copied in folder


C:\CNC8070\MTB\PLC\Project.

b. PLC messages and errors which are PLC_MSG.TXT and PLC_ERR.TXT, and they must be
copied in folder C:\CNC8070\MTB\PLC\Lang\English.

c. Subroutine regarding the tool change which is SUB_M06_M_en_V01.nc, and it must be


copied in folder C:\CNC8070\MTB\Sub.

SUB_M06_M_en_V01.nc M6 subroutine set by machine parameter.

3. Description of the PLC program.

The identification of the PLC resources is made through mnemonics. The mnemonics are in English,
with the criteria that the first character identifies the resource type (I, M, O, R), followed by _ character
and then the description.

Only timers(T) and counters(C) can not be defined with mnemonics.

For instance:

DEF I_DOOR_CLOSED I4 ; Door closed


DEF O_CHIP_CONVEYOR_FWD O8 ; Chip conveyor forward
DEF M_HBA_ENABLE M1900 ; HBA handwheel enabled
Date : 2011-jun-14
Standard PLC-M (8065-70)
V1.00
Fagor Automation
Page 3 of 3

DEF R_DRIVER_STATUS R101 ; Status bits of SERCOS drives

Mnemonic makes easy to integrate even a single module in an exisiting PLC program, just asigning the
free resources to the mnemonics.

The PLC program is made with modules, every modules covers a machine functionality, and they are
PLC subroutines.

One of the modules is OPTIONS, where the machine configuration can be defined, like pause
between lubrications, 4th or 5th axes option, type of handwheel,.... This configuration is changed through
MTB machine parameters.

There are counters from C1 up to C20, and registers from R1 up to R20, which must be defined as non
volatile data. These are used for those informations we do not like to loose at any time. To define them
as non-volatile, general machine parameters BKUPREG and BKUPCOUN must be set to 20.