Installation manual.
CNC 8060
CNC 8065
INTRODUCTION TO
THE PLC.
3.
Modu
lar structure of th
e
PL
C
p
rogram.
·321·
(R
EF
: 1709)
3.2
Modular structure of the PLC program.
The PLC program may comprise the following modules. Every module must begin with the
directive instruction that defines it (CY1, PRG, PE) and end with the directing instruction END.
• First Cycle module (CY1).
• Main module (PRG).
• Periodic module (PE).
First Cycle module.
It is an optional module. The module begins with the directing instruction CY1 and ends with
the directive instruction END.
The PLC executes the first cycle module onlyonce when starting up the PLC program. This
modules is used to initialized the various resources and variables before executing the main
program.
Main module.
The main module begins with the directing instruction PRG and ends with the directive
instruction END.
The PLC executes the main module cyclically with the frequency set by parameter
PRGFREQ. This module is in charge of analyzing and modifying the CNC inputs, outputs
and variables. The PRG execution takes about 100 µs.
Parameter PRGFREQ indicates how often (every how many CNC cycles) the PLC executes
a full cycle of the main module. Hence, with a sampling period of 4 ms (LOOPTIME=4) and
a frequency of 2 cycles (PRGFREQ=2), the PLC executes the main module every 4 x 2 =
8ms.
Periodic module.
It is an optional module. The periodic module begins with the directing instruction PE and
ends with the directive instruction END.
The PLC executes the periodic module cyclically with the frequency set by the directive
instruction PE, between 1 and 2147483647 ms and never less than the loop time (parameter
LOOPTIME). This module could be used to execute tasks that do not need to be executed
at every PLC cycle.
For example, a task to be performed every 30 seconds could be defined in a periodic module
using the instruction (PE 30000).
Содержание 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...