EasyManua.ls Logo

Curtis 1238SE - Page 129

Curtis 1238SE
152 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
10 — VEHICLE CONTROL LANGUAGE (VCL)
pg. 125
Return to TOC Curtis 1232E/34E/36E/38E & 1232SE/34SE/36SE/38SE Manual, os 31 – May 2017
AUTOMATE_FREQUENCY_OUTPUT( )
is function sets up the PD Driver (pin 2) PWM output to yield a frequency proportional to
the input variable at an execution rate of 16 ms. is output can be used to drive an electronic
speedometer or tachometer.
An additional VCL variable called Frequency_Output_Duty_Cycle works in conjunction with the
Automate_Frequency_Output() function to modify the duty cycle of the output. e default value
of Frequency_Output_Duty_Cycle is 50% (or
Syntax:
Automate_Frequency_Output()
Parameters:
@Source
Index of source value to be the input.
MinInput
Holds the minimum value for the input.
MaxInput
Holds the maximum value for the input.
MinOutput
Holds the minimum value for the output in Hz.
MaxOutput
Holds the maximum value for the output in Hz.
NOTE: The frequency range is 0–4000 Hz, with 4 Hz being the
minimum active frequency, and 0–3 Hz = Off.
Returns:
0 – PWM not automated.
1 – PWM automated.
Error Codes: Param_Range is returned when a parameter is out of range.
PT_Range is returned when the Parameter Table Index is out
of range.
Example: To set up the PD Driver to output 500 Hz to 1500 Hz (at duty
cycle = 25%) for motor speed in the range 100 rpm to 4000 rpm:
Frequency_Output_Duty_Cycle = 8192 ;set duty cycle = 25%
Automate_Frequency_Output(@ABS_Motor_Speed,100,4000,500,1500)

Table of Contents

Related product manuals