EasyManua.ls Logo

Fagor CNC 8055i FL EN - Page 472

Fagor CNC 8055i FL EN
732 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
·472·
Installation manual
CNC 8055
CNC 8055i
10.
PLC PROGRAMMING
SOFT: V02.2X
PLC library
How to create a PLC Library
The following example shows how to create a PLC library:
1. Edit a PLC program.
Use only subroutines and symbols in the PLC program.
2. Modify the comment of the PLC program.
This can be used to identify the PLC library.
Example: Punching library V1.1
This is a good way to identify the library versions because the comment of a library cannot be
changed.
The PLC program comment is copied to the library comment when MAKE PLC_LIB is selected.
3. Go to the PLC library, following this keystroke sequence:
<MAIN MENU> <F7=+> <F2=PLC> <F7=+> <F4=PLC LIBRARY>
If there is a PLC password, it will be requested. Enter the password.
4. Create a PLC library just pressing <F1=MAKE PLC_LIB>.
It will generate a PLC library automatically from the current PLC program.
The library file is either "plc_lib.pim" or "plc_lib.pit".
If the PLC program has PRG, or CY1, or PE modules, the PLC library cannot be generated.
5. Make a copy of the PLC program, in order to have a backup for future changes.
6. Delete the PLC program used to generate the PLC library.
7. Once this is done, the PLC library can be copied to any CNC. This file cannot be read or written.
How to use the PLC library
The following example shows how to use a PLC library:
1. Copy the PLC library into the CNC you want to use.
The file must be copied into following directory of the CNC's hard disk:
HARD DISK / PRG
2. Create a PLC program calling the subroutines edited in the PLC library.
3. Resources used in the PLC library can be used in a PLC program like all DEFINES. Be careful
when using the PLC library resources. Hand this info to the OEM when using these resources.
plc_lib source example
DEF OUT_SECOND O50
DEF MARK_SECOND M2017
DEF RCOUNTER R300
DEF INCREMENT_PAR R301
;
L1500
MARK_SECOND = OUT_SECOND = M1500
END
;
;
L1501
INCREMENT_PAR = ADS RCOUNTER 1 RCOUNTER
END
Example of a PLC program that uses PLC_LIB
PRG
() = CAL L1500
;

Table of Contents

Related product manuals