EasyManua.ls Logo

Curtis 1232E - Automate Frequency Output

Curtis 1232E
157 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...
Curtis 1232E/34E/36E/38E & 1232SE/34SE/36SE Manual, os 30
133
24 NOVEMBER 2015
8 — VCL
AUTOMATE_FREQUENCY_OUTPUT()
This 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. This 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. The default value of Frequency_Output_Duty_Cycle is 50% (or
16384).
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–1500Hz(atdutycycle=25%)formotor
speed in the range 100–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