EasyManuals Logo

Curtis 1298 User Manual

Curtis 1298
136 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
Page #93 background imageLoading...
Page #93 background image
Curtis 1298 Manual, OS 11
89
if (Sw_1 = ON)
{
;put code here to run when switch 1 is On
}
if (Sw_16 = OFF)
{
;put code here to run when switch 16 is Off
}
All switch inputs are automatically debounced by the VCL operating system.
This prevents noisy contacts or contact bounce from causing erroneous events
in your VCL code. The debounce time can be varied from 0 to 32 milliseconds
in 4ms steps, using this function:
Setup_Switches(5); 20 milliseconds
If this line is not in the VCL code, the debounce time is set at 16 ms.
Driver and Digital Outputs
There are five driver outputs (PWM1 through PWM5) and two digital outputs
(DigOut6 and DigOut7). These outputs have variations in current and frequency
range. For their specifications, see digital outputs” on page 17.
The driver outputs have high current FET output stages and can be
pulse width modulated (PWM) to vary the average output to inductive loads
such as contactors and relays. This is useful when the battery voltage needs to
be brought down for lower voltage coils. The two digital outputs are 1-amp
drivers that are only On or Off.
Drivers use a special VCL function to set their PWM level. This PWM
level can be set up in a signal chain to update automatically or can be set di
-
rectly in the main loop. PWM can be set from 0–100% using the digital range
of 0 to 32767.
Put_PWM(PWM2,16384)
will output a 50% waveform on Driver 2.
Automate_PWM(PWM2,@user1)
will continually update the Driver 2 output with the present value of variable
User1. This automate statement needs only to be run once, usually in the ini
-
tialization section of the VCL program. VCL can monitor the present value of
a PWM driver: the variable PWMx_Output (where xis the PWM channel
number) is automatically filled with the present value of the driver output.
The proportional driver (Driver 5) is different from Drivers 1–4. It can
be controlled in two ways: with the proportional driver processing function
(see Figure 20, page 100) or with the VCL Put_PWM() function. The VCL
statement Put_PWM(PWM5, 16383) will result in a 50% PWM output on
pin 2 only if the parameter PD Enable is set to Off. See page 94 for more
information on interfacing the proportional driver.
7 — VCL

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Curtis 1298 and is the answer not in the manual?

Curtis 1298 Specifications

General IconGeneral
BrandCurtis
Model1298
CategoryController
LanguageEnglish

Related product manuals