23.11.2012 Views

2 Visual Components Manuals

2 Visual Components Manuals

2 Visual Components Manuals

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.11.2.1.2 IEC Programming Languages<br />

For the remaining Automation Studio programming languages, declaring the alarm bit array takes place<br />

uniformly using the variable declaration dialog box. The variable declaration dialog box can be opened by<br />

highlighting the application task in the software view of Automation Studio and selecting the 'Open −><br />

Declaration' menu option. Other ways to open the declarations box can be found in the documentation of the<br />

project window or in the editors of the individual programming languages.<br />

The free row under the entries that already exist should be marked in the opened dialog box. The [INS] key<br />

enters a new variable. The new alarm bit array variable has to be entered in the Name column.<br />

The data type must be set to an array of BOOL variables. BOOL[50] must be entered into the Type column to<br />

create an alarm bit array for 50 alarms.<br />

The Scope column determines whether the variable should only be used locally in this task (i.e. only this task<br />

should enter alarms in this group), or globally in the entire project − LOCAL or GLOBAL.<br />

4.11.2.2 Enabling the Alarm System<br />

Since the alarm system is an optional component of <strong>Visual</strong> <strong>Components</strong>, it must first be switched on in the<br />

Project Options before it can be used (Panel). This setting is unique to each project and is stored as such.<br />

Therefore, it can be individually determined for each project whether the alarm system should be used or not.<br />

The alarm system is activated on the Panel page under the Alarm System group.<br />

Introduction to <strong>Visual</strong> <strong>Components</strong> 2.3<br />

398 4.11.2.1 Defining the Alarm Bit Field

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!