Engineering via SICAM WEB
SICAM A8000 / CP-8000 • CP-8021 • CP-8022 Manual
Unrestricted
429
DC8-037-2.02, Edition 10.2017
9.2.1.3 Instruction Comments
Comments in the application program can be set at any arbitrary place and must be included
between brackets and stars. The documentation can also extend over several lines.
Example:
LD 15
(*load constant 15*)
ST M_DINT_CONSTANT
(*store in flag*)
The following characters may be used:
•
Numbers
0
…
9
•
Letters
A
…
Z
,
a
…
z
•
Special characters
^ ! " $ % & / ( ) = ? [ ] { } \ @ # ' + * ~ < > | , ; . : - _
9.2.1.4 Settings in the Application Program
With help of system variables the following parameters can be set for the program execution:
•
Cycle time
•
Spontaneous program execution
9.2.1.4.1 Setting the Cycle Time
The cycle time determines the time interval for the execution of the application program. The
shorter the set interval is the smaller must be the application program, otherwise a timeout
happens. A cycle time of for instance 2 ms is only possible for a very small application pro-
gram.
The cycle time can be specified in the IL with the variable
PLC_CYCLETIME
:
•
In the program part
PLC_RESET
Time-scale is set one time with a startup.
•
In the program part
PLC_START
Time-scale is set during running operation and can be changed by means of the applica-
tion program.
Example:
PLC_RESET:
LD 20
ST PLC_CYCLETIME
(*set cycle time 20 ms*)
Summary of Contents for CP-8000
Page 604: ......