Installation manual.
CNC 8060
CNC 8065
PLC PROGRAMMIN
G
.
4.
Dire
c
tin
g
instructi
ons.
·345·
(R
EF
: 1709)
EXTERN
External subroutine definition.
The subroutines defined in the "C" language file used by the program must be defined as
external at the beginning of the program before the DEF instructions and the modules: CY1,
PRE and PEt. With the EXTERN instruction, those subroutines may be defined one by one.
It is defined with EXTERN followed by a blank space and the name of the subroutine with
up to 24 characters.
DEF, PDEF
Symbol definition.
Symbols are always programmed at the beginning of the program, before the modules CY1,
PRE and PEt. Since the PLC project may consist of several files and the symbols must be
defined before they are used, we recommend to define them in the first file of the PLC project.
However, the symbols may be defined in any file as long as they are used in that file or in
later files.
The PLC allows to define a number of symbols for easier programming and later
understanding of the PLC program. These symbols are programmed using the DEF o PDEF
instruction followed by the name of the symbol, a constant or PLC resource. The PLC allows
associating a symbol may be associated with any decimal or hexadecimal number or PLC
resource such as inputs (I), outputs (O), marks (M), registers (R), register bits, counters (C)
and timers (T).
Symbols will consist of a sequence of up to 20 characters with capital letters (A..Z) and digits
(0..9). Symbols may also begin with the "/" character; in that case, the next character must
be a letter. The name may have a "_" character, but it cannot be its first character. Words
reserved for instructions cannot be used in symbols.
Duplicate symbols cannot be defined; but several symbols may be assigned to the same
resource. Once a symbol has been associated with a resource or numeric value, it is possible
to use the name of the resource, the number or its associated symbol.
Accessing the PDEF symbols from a part-program or from an application.
Accessing the symbols defined with the PDEF instruction from a part-program, MDI or
external application is done using variables as follows. Consulting this variable from the part-
program interrupts block preparation.
V.PLC.symbol
Access from a part-program or MDI.
PLC.symbol
Access from an external application.
The variables may be read or written depending on the resource assigned to the symbol
defined with PDEF.
EXTERN SUMA
EXTERN TEMPERATURE
DEF
The DEF instruction may be used to define an unlimited number of symbols to
be used only from the PLC.
PDEF
The PDEF instruction may be used to define up to 100 symbols that can be used
at the PLC itself, in a part-program or in an external application. Symbols
exceeding this limit will be ignored and the CNC will issue the corresponding
warning.
The symbols associated with a constant can only be used inside the PLC
program; they can be accessed neither from the part-program nor from an
external application. The symbols associated with a constant cannot be
monitored, used in a trace of the logic analyzer or accessed from external
variables.
PDEF COOL I12
PDEF CONSTANT $FFFF3
DEF DATA_D1 372893
DEF DATA_D3 -437289
DEF /FAN I23
Содержание CNC 8060
Страница 1: ...Ref 1709 8060 8065 CNC Installation manual...
Страница 10: ...BLANK PAGE 10...
Страница 14: ...BLANK PAGE 14...
Страница 20: ...BLANK PAGE 20...
Страница 32: ...BLANK PAGE 32...
Страница 36: ...BLANK PAGE 36...
Страница 38: ...BLANK PAGE 38...
Страница 40: ...BLANK PAGE 40...
Страница 41: ...PART 1 INSTALLATION MANUAL...
Страница 42: ...BLANK PAGE 42...
Страница 58: ...Installation manual CNC 8060 CNC 8065 1 SOFTWARE INSTALLATION Software configuration 58 REF 1709...
Страница 340: ...Installation manual CNC 8060 CNC 8065 3 INTRODUCTION TO THE PLC Operation of a counter 340 REF 1709...
Страница 448: ...Installation manual CNC 8060 CNC 8065 6 LOGIC CNC INPUTS AND OUTPUTS Keystroke modifiable signals 448 REF 1709...
Страница 532: ...Installation manual CNC 8060 CNC 8065 9 CNC VARIABLES 532 REF 1709...
Страница 533: ...PART 2 CONCEPTS...
Страница 534: ...BLANK PAGE 534...
Страница 548: ...Installation manual CNC 8060 CNC 8065 10 GENERAL SETUP Configuration examples 548 REF 1709...
Страница 574: ...Installation manual CNC 8060 CNC 8065 11 CONFIGURING AN AXIS Home search 574 REF 1709 X Z H OM OW ZMH ZMW XMH...
Страница 598: ...Installation manual CNC 8060 CNC 8065 12 VOLUMETRIC COMPENSATION Error messages cause and solution 598 REF 1709...
Страница 644: ...Installation manual CNC 8060 CNC 8065 14 SUBROUTINES Assistance for subroutines 644 REF 1709...
Страница 668: ...Installation manual CNC 8060 CNC 8065 15 HARDWARE Configure the PT100 inputs 668 REF 1709...
Страница 697: ...Installation manual CNC 8060 CNC 8065 697 User notes REF 1709...