23.11.2012 Views

2 Visual Components Manuals

2 Visual Components Manuals

2 Visual Components Manuals

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.12.7.1.4.1 In an Automation Basic task<br />

1. Uses the PV in the code:<br />

The dynamic variable name is defined in the variable declaration dialog box after the variable name is<br />

declared in the source code and ENTER is pressed. However, the dynamic PV has to reference a static<br />

PV in the source code (i.e. rec_array access adr(stat_array)).<br />

2. Properties Change:<br />

The scope of the dynamic variable changes from 'remanent' to 'dynamic'.<br />

Automation Basic Example<br />

4.12.7.1.4.2 In a C task<br />

A dynamic PV is declared in C using the following syntax:<br />

_LOCAL *;<br />

The PV must be declared as _LOCAL.<br />

C Example<br />

4.12.7.2 Executing the Recipe Page<br />

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

The following example shows the recipe page execution (including Automation Basic and ANSI C code) on the<br />

basis of the dynamic PVs decribed above.<br />

430 4.12.7.1 Creating Recipe Management

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

Saved successfully!

Ooh no, something went wrong!