System modules
SYSTEM_FLAGS (system flags, node number 151)
Inputs SYSTEM_FLAGS
13
372
EDBCSXA064 EN 3.2
13.22 SYSTEM_FLAGS (system flags, node number 151)
System flags are global variables that are integrated in the run−time system as an inherent
part. They feature functionalities for making programming easier.
13.22.1 Inputs SYSTEM_FLAGS
The following system flags are part of the ECSxA... axis module:
Variable Data type Address Comments
SYSTEM_bClock01Hz
BOOL
%IX151.0.0 0.1 Hz system clock
SYSTEM_bClock1Hz %IX151.0.8 1.0 Hz system clock
SYSTEM_bClock10Hz %IX151.1.0 10 Hz system clock
SYSTEM_bClock0100Hz %IX151.1.8 100 Hz system clock
SYSTEM_bTogCycleTask %IX151.2.0 Toggle marker − cyclic task
SYSTEM_b1LoopCyclicTask %IX151.2.8 First loop − cyclic task
SYSTEM_b1LoopTask2 %IX151.3.0 First loop − task ID2
SYSTEM_b1LoopTask3 %IX151.3.8 First loop − task ID3
SYSTEM_b1LoopTask4 %IX151.4.0 First loop − task ID4
SYSTEM_b1LoopTask5 %IX151.4.8 First loop − task ID5
SYSTEM_b1LoopTask6 %IX151.5.0 First loop − task ID6
SYSTEM_b1LoopTask7 %IX151.5.8 First loop − task ID7
SYSTEM_b1LoopTask8 %IX151.6.0 First loop − task ID8
SYSTEM_b1LoopTask9 %IX151.6.8 First loop − task ID9
SYSTEM_nTaskInterval
integer
%IW151.7 Interval of current task
SYSTEM_nTaskID %IW151.8 Identification of current task
Tip!
The system flags are not generated in simulation mode.
SYSTEM_bClockxHz
These system flags output a fixed clock pulse with an equal pulse/pause ratio.
ƒ State alterations of the flag are effected in real time.
ƒ When you use this system flag, observe the sampling frequency used for polling the
flag (aliasing effect). It should at least be twice the change frequency.
Example: You want to use the system flag SYSTEM_bClock100Hz as a clock for a
counter.
ƒ The pulse/pause ratio is 5 ms/5 ms.
ƒ To avoid an aliasing effect, the counter must always be polled with an INTERVAL
TASK < 5 ms.
Note!
The SYSTEM_bClockxHz system variables must not be used to trigger
event−controlled tasks. Use time−controlled tasks for this.