Installation manual
CNC 8060
CNC 8065
PLC PROGRAMMING.
4.
(REF: 1402)
·243·
Directing instructions.
4.1 Directing instructions.
They provide the PLC with information on the type of program module and on how it must
be executed. The available directing instructions are:
PRG, PE t, CY1
Type of module.
The PLC program is structured by modules. Every module must begin with its defining
instruction (PRG, PE, CY1) and end with the END instruction. See "3.2 Modular structure
of the PLC program." on page 221.
END
End of module or subroutine.
It must be defined for each module or subroutine.
A carriage return (empty line) is required after the last END.
REA, IMA
Real or image values.
They indicate whether the following consultations are carried out using the real values (REA)
or image values (IMA) or the I, O, M resources. The rest of the resources have no image
values, only real.
The real value is the one the resource has at that time and the image value is the one it had
at the end of the previous cycle scan. Image values (IMA) and real values (REA) may be
combined in the same instruction.
By default, all the modules (PRG, CY1, PEt) operate with real resource values. Action
instructions (=O32) always update the real values of the PLC resources.
PRG, PE t, CY1 Type of module.
END End of module.
REA, IMA Real or image values.
L Label.
SUB Subroutine definition.
DEF, PDEF Symbol definition.
NOMONIT No monitoring.
EXTERN External subroutine definition.
CY1 First cycle module.
PRG Main module.
PE t Periodic module. It is executed every "t" milliseconds.
CY1 ; Beginning of the CY1 module
···
END ; End of the CY1 module
PRG ; Beginning of the PRG module
···
END ; End of the PRG module
IMA I3 AND REA M4 = 02