Installation manual
CNC 8035
INTRODUCTION TO THE PLC
PLC program execution
7.
(SOFT M: V15.3X)
(S
OFT T: V16.3X)
·287·
7.2 PLC program execution
The PLC executes the user program cyclically. In other words, once it executes the complete
program, it restarts running this program from the first instruction.
This cyclic processing of the program is done as follows:
1. At the beginning of the cycle, PLC’s “I” resources are assigned the current values of the physical
inputs (connectors).
For example, if the physical input I10 is at 24V, the PLC sets the I10 resource to "1".
2. It allocates the current values of the logic CNC outputs (CNCREADY, START, FHOUT, etc.) to
PLC resources M5500 thru M5957 and R550 thru R562 .
3. It runs the program cycle.
The following sections indicate how the PLC program is structured and which are its execution
modules. See "7.4 Modular structure of the program" on page 291.
4. After executing the cycle, it updates the Logic CNC inputs (/EMERGEN, /STOP, /FEEDHOL, etc.)
with the current values of PLC resources M5000 thru M5465 and R500 thru R505.
5. It assigns the current values of the PLC’s “O” resources to the physical outputs (connectors).
For example, if the "O5" resource is at "1", the PLC sets physical output O5 (connector) to 24V.
6. The cycle ends and is ready for the next scan.
Bear in mind that all the actions of the program executed by the PLC alter the status of its resources.
Example: I10 AND I20 = O5
When this condition is met [resource I10 is "1" and I20 is also "1"], the PLC sets resource "O5"
to "1". If this condition is not met, the PLC sets resource "O5" to "0".