Installation manual
CNC 8035
PLC PROGRAMMING
Directing instructions
8.
(SOFT M: V15.3X)
(S
OFT T: V16.3X)
·299·
8.2 Directing instructions
These provide the PLC with information on the type of module and the way it must be executed.
The directing instructions available at the PLC are:
PRG, PEt, CY1
Define the module type.
PRG Main module.
CY1 First cycle module.
PE Periodic module. It is executed every "t" milliseconds.
For example: PE 100 is executed every 100 ms.
END
Indicates the end of the module. If this is not defined, the PLC understands that this module ends
in the last block of the program.
Example of programming using the directing instruction END:
CY1 Beginning of module CY1.
——-
END End of module CY1.
PRG Beginning of module PRG.
——-
END End of module PRG.
PE 100 Beginning of module PE.
——-
END End of module PE.
Example of programming without using the directing instruction END:
CY1 Beginning of module CY1.
——-
PRG Beginning of module PRG.
——-
PE 100 Beginning of module PE.
——-
—— End of modules CY1, PRG and PE.
L
Label. Used to identify a program line, and is only used when references or program jumps are made.
It will be represented with the letter L followed by 3 figures (1-256), it not being necessary to follow
any order and numbers out of sequence are permitted.
If there are 2 or more labels with the same number in a single program, the PLC will show the
corresponding error when compiling it.