Plc Program - Fagor CNC 8060 Installation Manual

Hide thumbs Also See for CNC 8060:
Table of Contents

Advertisement

3.1
3.
CNC 8060
CNC 8065
(R
: 1709)
EF
·320·

PLC program.

The PLC program may combine several files in mnemonic language (extension: "plc"),
several files in "C" language (extension: "c") and a file in contact (ladder) language (extension
"ld"). All the files making up the PLC program must be in the folder \MTB \PLC \PROJECT.
It is recommended to use the mnemonic language files or the contact (ladder) language files
as the main PLC program and the "C" language files for auxiliary tasks (for example,
temperature compensation).
Subroutines in the PLC program.
The subroutines of the program in mnemonic or contact (ladder) language must be defined
outside of the modules, for example at the end of the program after the END instruction.
The subroutines of the "C" language file must be defined as external at the beginning of the
mnemonic language program (extension: "plc") or contact (ladder) language program
(extension "ld"). The name of the subroutine must be written in capital letters in both files.
"C" language programming offers a math library (trigonometric, logarithmic, etc.) that allows
performing operations with tables, arrays, float type variables, etc.
PLC program with mnemonic language file.
Mnemonic.plc
PRG
()= MOV 1234 R201 = MOV 2345 R202
()= CAL ADD
···
END
SUB SUMA
()= ADS R201 R202 R203
END
PLC program with a mnemonic language file and a "C" language file.
Mnemonic.plc
EXTERN SUMA
PRG
()= MOV 1234 R201 = MOV 2345 R202
()= CAL ADD
···
END
Languagec.c
#include "plclib.h"
void ADD(void)
(
R203=R201+R202
)
I n s ta ll a t io n ma n u a l.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cnc 80658060 t power8060 l8060 m fl8060 t fl8060 m power ... Show all

Table of Contents