System_flags (system flags, node number 151), Inputs system_flags, 15 system_flags (system flags, node number 151) – Lenze Drive PLC Developer Studio 9300 Servo PLC (V8.x) User Manual

Page 100: 9300 servo plc, System blocks, 1 inputs system_flags

Advertising
background image

2.15

SYSTEM_FLAGS (system flags, node number 151)

9300 Servo PLC

System blocks

2−86

L

9300 Servo PLC EN 5.0

2.15

SYSTEM_FLAGS (system flags, node number 151)

System flags are global variables which are permanently integrated into the run−time system. They
include functions that facilitate programming.

2.15.1

Inputs SYSTEM_FLAGS

The following system flags are included in the DrivePLC:

Variable

Data type

Address

Notes

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 flag 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

ID−number of current task

Tip!

The system variables are not generated in simulation mode.

SYSTEM_bClockxHz

These system flags output a fixed clock pulse with an equal pulse/pause ratio.

·

The flag is toggled in real time.

·

When you use this system flag, take care with the frequency used for polling the flag (aliasing
effect). You should use at least twice the toggle frequency.

Note!

The system flags SYSTEM_bClockxHz must not be used to trigger event−controlled tasks. Use
time−controlled tasks for this.

Example:

You would like 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.

Advertising