High Country Tek emc-3L User Manual

Page 29

Advertising
background image

Enable Center
When unchecked the percentage value returned to your program via the variable “Name” would be directly
proportional to Max - Min with Min equal to 0 and Max equal to 100%. When checked, the center is 0% and the
Min and Max Volts will be 100% with respect to Invert Output.
Range: Checked/Unchecked

Deadband %
The Deadband percentage specifies the range of voltage above and below the center point that is effectively
center. In the Deadband voltage range the returned percentage value for this analog input is 0%.

Auto Set Voltage Limits
The Auto Set Voltage Limits will set the Voltage Limits based on the Voltage Calibration Settings. The voltage
limits will be set to one-half of the difference between the Reference and Voltage Calibration values for both the
min and max values.

Scaling
This feature may be used to display the Analog / Universal Inputs as real units (i.e. PSI, GPM, Meters etc) on
the PLM in real time. This allows the user to read the actual system performance without having to calculate
percentages or voltage levels while working on the system. Use the Gain and Offset Calculator to obtain and
insert the values for Gain and Offset. Enter an abbreviation for the units desired (i.e. PSI, GPM) for the scaled
output

Gain / Offset Calculator
When analog input voltage values are to be displayed by the Program
Load Monitor this facility will automatically scale the value displayed
according to a linear equation of the form;

Where x is the analog input’s value and y is the scaled value. This is
convenient to convert a sensor voltage to actual units like PSI.
The Gain / Offset Calculator has been designed to help the application
developer calculate values for Gain and Offset.

Calculations:
LowBits = (Low End Value / Scaling Factor)
HighBits = (High End Value / Scaling Factor)
Note: The Scaling Factor is dependent on the Input chosen
Gain = (High End Engineering Units - Low End Engineering Units) /
(HighBits - LowBits)

Gain and Offset Calculator

Offset = (High End Engineering Units - Low End Engineering Units) -
(HighBits * Gain)

Analog Input Sample Code:

Code Comments
If (Ana_1 > 5%) Then

If Input % is greater than 5%

PWM_1 = Ana_1

Sets an PWM% output to the Analog Input %

PWM_1.Dir = Ana_1.Dir

Set direction of a dual coil based on input (if centered enabled)

If (Ana_1.MaxF) then

Test if Maximum Volts threshold reached

Ana_1.MaxRF = 0

Clear /Reset condition or flag (retry)

P/N: 021-00163, Rev. A.0 - for V5.2 Tools

Page | 29

Advertising
This manual is related to the following products: