·454·
Installation manual
CNC 8055
CNC 8055i
10.
PLC PROGRAMMING
SOFT: V02.2X
Module structure
10.1 Module structure
The modules which make up the PLC program (main module "PRG", periodic modules "PE" and
first cycle module "CY1") consist of a series of instructions which, depending on their functionality,
can be divided into:
• Directing instructions.
• Executable instructions.
The directing instructions provide the PLC with information on the type of module (PRG, CY1, ...)
and on how it must be executed (REA, IMA, ...).
Executable instructions allow inquiries to be made on and/or alterations to the status of PLC
resources and consist of:
Logic expressions consist of:
All comments must begin with ";". ";". Lines beginning with a ";" are considered comments and are
not executed.
Programming example:
See "Summary of PLC commands" on page 667.
Logic expressions (Boolean 0/1) I28 AND I30
Action instructions. = O25
Consulting instructions I28, O25
Operators. AND
PRG
; Example
I100 = M102
I28 AND I30
= O25
I32 \
AND I36
= M300
END
; Directing instruction.
Comment.
; Executable instruction.
; Logic expression.
; Action instruction.
; Consulting instruction (1st part of expression).
; Consulting instruction (2nd part of expression).
; Action instruction.
; Directing instruction.
Empty lines are not allowed, they must contain at least one comment.