Nematron Pointe Controller User Manual

Page 139

Advertising
background image

Pointe Controller User Guide

Chapter 5: Developing Controller Programs

137

For all blocks and commands, you enter tags and expressions through a similar
dialog box. Although these dialog boxes vary slightly depending on the required
response, they all contain a keypad and an area to enter an expression.

The keypad allows you to build an expression using the mouse rather than the
keyboard. When you select a keypad button, the Flow Chart editor inserts the
button’s corresponding characters at the text insertion point in the selected field.
You can add numbers, arithmetic and Boolean operators, logic memory prefixes
and data types, spaces, and keyword constants (ON, OFF, TRUE, FALSE). The
Backspace button erases the character to the left of the cursor; the Clear button
erases the entire field.

A second box, the Select Expression Argument list box, appears beside the tags
and expressions dialog box and contains a list of tagnames:

Add a reference to any defined Logic Memory database element using
the tagname list. From the Arg Type list, you can select Inputs, Outputs,
Memory database elements, Strings, Timers, Functions, or Local Variables.
The tags available for the selected argument type appear in the Selection
List. Double-click an item in the selection list to insert the corresponding
name in the tag area of the tags and expressions dialog. All tags are
displayed by Alias.

You can manually enter an entire tag reference or expression by clicking
in the field on the tags and expressions dialog and typing the required
text using the keyboard.

From the Arg Type list, you can also select Functions as an expression
argument. When Functions is selected, the View list presents the options
Math, String, Timer, and Date/Time.

Math functions:

SHL(value,bits) returns the value shifted to the left by the

specified number of bits.

SHR(value,bits) returns the value shifted to the right by the

specified number of bits.

Advertising