EasyManua.ls Logo

Curtis 1239E - TROUBLESHOOTING

Curtis 1239E
160 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)
Curtis 1239E-1269E Manual, os 37.0 RevA – May 2021
Return to TOC
pg. 134
AUTOMATE_PWM_INPUT( )
Congures a switch input to measure the duty cycle of a PWM signal applied to the input.
Syntax:
Automate_PWM_Input(sw#, Period_Ticks)
Parameters:
SW# A number 1 – 16 indicating which switch input of SW_1 to
SW_16 to measure the duty cycle.
Period_Ticks The Automate_PWM_Input function runs at a maximum 8ms
rate in the OS. This value is the expected period of the input
wavefore/8ms per measurement.
For example, if the PWM signal to be measured has a period of
200ms, the set the Period_Ticks to 200/8 = 25.
Set to 0 to disable the Automate_PWM_Input function.
Returns:
0 Function did not successfully execute.
1 Function successfully executed.
Error Codes:
BAD_ID
Switch # out of range.
The outputs of these functions are as follows:
Pwm_Input – The duty cycle of the PWM input. (0-32767 =
0-100% PWM)
SETUP_TIMER_LONG( )
Allows a 32-bit variable to be used to set the value of a timer with a single function call.
Syntax:
Setup_Timer_Long(TMR#, TIME)
Parameters:
TMR# ID of Timer to initialize (TMR1, TMR2, or TMR3).
TIME Reference to 32bit number, time in 0.1hr increments.
Returns:
0 Function did not successfully execute.
1 Function successfully executed.
Error Codes:
BAD_ID
TMR# out of range.
PARAM_RANGE parameter is out of range.

Table of Contents

Related product manuals