High Country Tek DVC80 User Manual

Page 88

Advertising
background image

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

Page | 88

IO Assignments screens may not be contradicted in the Bubble Logic.

DVC50 Program Variables
The Input and Output Group variables are the same as with the DVC10.
Note: Output Group PWM is the lone exception and is controlled via the Mail In variables as previously
explained.

To access these variables in the Bubble logic, use the format “Name.Var-Prefix.Var-Suffix”, where Name is the
name of the module (DVC50, DVC51, Frank etc), Var-Prefix is the I/O variable name (.Dig_1, .Ana_1 etc) and
Var-Suffix (if needed) is the variable attribute (.Dir, .Short, .Enable, .Dir etc). For example the proper variable
name for Analog/Pulse Input two’s Real RPM on a DVC50 named Tina would be ”Tina.Ana_Pulse_2.RealRPM”.

Additional variables are as follows;
Name.STATUS

Get the state of the DVC50.

Range: 0 = Module is Online
2 = Module is Offline
Name.ClrMinMax

Reset the Max/Min flags on the Analog Inputs

Range: True = Reset flags

False

=

Do

not

reset

flags

Name.ClrShorts

Reset the Short flags on the High and Low Side Outputs

Range: True = Reset flags

False

=

Do

not

reset

flags

Name.ClrOpens

Reset the Open flags on the High and Low Side Outputs

Range: True = Reset flags

False

=

Do

not

reset

flags

Name.Mail_Output1…4
This is name or the name assigned to this mail output is the name for the Mail Outputs from the DVC50 to the
DVC10.
Range: 16 Characters with no spaces. Usable characters are A-Z, a-z, 0-9, and "_".
Rules:
The first character cannot be a number.
Compiler Keywords or other Names already in use are not valid.
Name.Mail_Input1…8
This is name or the name assigned to this mail input is the name for the Mail Inputs to the DVC50 from the
DVC10.
Range: 16 Characters with no spaces. Usable characters are A-Z, a-z, 0-9, and "_".
Rules:
The first character cannot be a number.
Compiler Keywords or other Names already in use are not valid
Code Sample
Code Comments
DVC50.PWM_1.Dir = Ana_1.Dir

Sets the direction for PWM_1 output on the DVC50 to
follow the direction of Ana_1 on the DVC10

DVC50.PWM_1.Feedback = DVC50.Ana_2

Sets the feedback for PWM_1 to Ana_2 on the DVC50

DVC50.ClrShorts = DVC50.Dig_2

Clears any short flags on the DVC50 when DVC50.Dig_2
is active


Bubble logic code
‘ Dual coil High Side Valve named pump
If (set_valve) then
DVC50.pump.enable = true

' activates pwm

DVC50.pump.dir = True

' activates High Side 1

DVC50.mail_input1 = pwmpercentage ' sets pwm%, IO assignment maps PWM for the valve to

Advertising
This manual is related to the following products: