3 variable initialization, Variable initialization – High Country Tek DVC80 User Manual

Page 133

Advertising
background image

P/N: 021-00154, Rev. A.6 - updated for V4.7 Tools

Page | 133


5 Digit Uint
Displays the actual value of the variable being displayed with no scaling factor applied an as a 5 character field
right justified. DVC products support Uint numbers from 0 to 65535.

Supply Volts
Scales the displayed value of a variable to units of Supply Volts. For example, if the variable being displayed
was named Supply and the Power In voltage was 13.8 volts the displayed value would be 13.8.

True and False Displays
Scales the displayed value of a variable to a True or False display value, True is represented by a positive
numerical value of 1 to 65535 and False is represented by a numerical value of 0. The available display
selections for True / False are;
T,

F

True,

False

Fwd,

Rev

Left,

Right

Remote,

Ground

Fwd/Rev,

Stop

Yes,

No


Decimal Displays
Scales the displayed value of a variable to a decimal display value by multiplying the variable by the selected
number. The available display selections for decimal displays are:
0.1
0.01

(s)

0.001
0.0001
Note: You should use 0.01 (s) to display a time variable in seconds. This is because the time variables are
stored as integer numbers that are a multiple of 10ms. Therefore, dividing the variable value by 100 (0.01 (s))
gives a display value in seconds.

String
This will display a preset string of text on the display. This allows the user to display a changing word on the
display. When using Strings to display information on the system, the length of the text string should not exceed
the maximum number of characters on the line that it is displayed or extend into other information displayed on
the same line. If the text string is too large, it will wrap to the next line and corrupt the information displayed
there or write over existing information resulting in undesired effects.

When removing displayed information from strings, e.g. switching between different strings on the display, the
user must completely overwrite the old information. If the new information is smaller in length than the old
information, use blank spaces in the string to erase the information being written over.

8.3

Variable initialization

When a DVC5/7/10 application starts after power is cycled, all internal program variables are set to 0. To
specifically set a variable to another value before execution you should define a startup bubble in the first logic
sequence defined (refer to the Binary Counter Programming example) that after it executes it transitions to
another bubble and never returns to the startup bubble. The only caveat to this technique is that the Always
code will execute prior to the first logic sequence startup bubble so care should be taken in the Always code.

Advertising
This manual is related to the following products: