Entering cycle time within PLC-object
How to enter the cycle time:
Open a PLC-object.
Search for the following line in the opened editor for the PLC-object:
SyntaxTASK task-name(INTERVAL := TIME#numberms, PRIORITY := number);
ExampleTASK DefaultTask(INTERVAL := TIME#500ms, PRIORITY :=
38229
);
After you have created a project, a cycle time of 500 ms is already specified within the existing PLC-objects.
Replace the entered cycle time (e.g. TIME#500ms) by the requested cycle time. Enter the cycle time as duration →literal; maximum: TIME#20d
Observe that your used →target system might influence the timing scheduling when calling tasks (see "Properties and restrictions specific to the target system").You must enter duration data, such as days (d), hours (h), minutes (m), seconds (s) and fractions of a second (ms for milliseconds, us for microseconds, ns for nanoseconds) or any combinations of them, as shown in the following table. You can separate the duration units by underscore character. Moreover, you can enter the units in upper- or lowercase letters, for example s or S for seconds.
Description
Examples
Duration literals without underscore
Short prefix
T#14ms, T#14.7s, T#14.7m, T#14.7h, T#14.7d, T#14h12m, t#5d14h12m18s3.5ms
Long prefix
TIME#14ms, time#14h12m
Duration literals with underscore
Short prefix
T#14h_12m, t#5d_14h_12m_18s_3.5ms
Long prefix
TIME#14h_12m, time#5d_14h_12m_18s_3.5ms
Observe that your used →target system might influence the usage of duration literals in logi.CAD 3 (see "Properties and restrictions specific to the target system").
Save the PLC-object: menu file – Save
Triggered executiong of an application
The →runtime system for Windows and platform LinuxX86 is configured so that an application with the cycle time 0 is started without init state. If there is the need, it is possible to change this configuration. See "Can I configure the execution of an application (the executed cycles)?" for the description of TriggeredTasks.HaveInitCycle.