EasyManuals Logo

Curtis 1236SE User Manual

Curtis 1236SE
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
Page #114 background imageLoading...
Page #114 background image
110
Curtis 1232E/34E/36E/38E & 1232SE/34SE/36SE Manual, os 30
24 NOVEMBER 2015
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O
}
All switch inputs are automatically debounced by the VCL operating system.
is prevents noisy contacts or contact bounce from causing erroneous events
in your VCL code. e 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
ere are five driver outputs (PWM1 through PWM5) and two digital outputs
(DigOut6 and DigOut7). ese outputs have variations in current and frequen-
cy range. For their specifications, see “digital and PWM outputs” on page 20.
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. is is useful when the battery voltage needs to be
brought down for lower voltage coils. e two digital outputs are 1 A drivers
that are only On or O.
Drivers use a special VCL function to set their PWM level. is 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. is 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 “x” is the PWM channel
number) is automatically filled with the present value of the driver output.
e proportional driver (Driver 5) is dierent from Drivers 1–4. It can
be controlled in two ways: with the proportional driver processing function
(see Figure 17, page 119) or with the VCL Put_PWM() function. e 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 O. See page 117 for more
information on interfacing the proportional driver.
Control of the two digital outputs (Digital Outputs 6 and 7) is done
using the VCL functions Set_Digout() and Clear_Digout().
8 — VCL

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Curtis 1236SE Specifications

General IconGeneral
BrandCurtis
Model1236SE
CategoryController
LanguageEnglish

Related product manuals