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.2.1.8 CAN − Step 8: Defining INC/DEC Keys<br />

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

In order to manipulate the "LedCtrl" PV which has direct influence on the F1 LED blink status, we define F2 as<br />

an increment key which raises the "LedCtrl" variable by one value per keystroke (maximum 3). F3 will be set up<br />

as a decrement key. It will reduce the PV by one value per keystroke (minimum 0).<br />

First, the F2 function key must be set with the increment/decrement function. For this, right click on the F2 key in<br />

the Key window (but not within the LED). Select Increment/Decrement from the shortcut menu.<br />

A dialog box appears which provides a more exact definition of all necessary function parameters.<br />

The Data Point area under the Parameter tab determines which PV should be manipulated. Select the 'LedCtrl'<br />

PV from the variable dialog box which appears after you have clicked on the Assign... button.<br />

Under the Function tab, activate the Use Limits option to define the maximum as 3. This is because an LED can<br />

only have 4 different states (0−3). The Increment rate is defined as 1. We confirm our selections with OK, and<br />

232 4.2.1.8 CAN − Step 8: Defining INC/DEC Keys

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

Saved successfully!

Ooh no, something went wrong!