Specifications
32
Curtis 1310 Manual, Rev. B
5 — VCL
Digital outputs
Put_PWM(2)
This function outputs an Pulse Width Modulated voltage on the selected output
pin. This function is used to control the state of the active low output FET drivers.
A value of 0 is Off (the output is open). A value of 32767 is fully On (the output
is closed to ground). Intermediate values provide a pulse train. A value of 16383
provides a 50% output (square wave). This can be useful to provide “average”
voltages and regulate current in an inductive load. A constant or a variable may
be used as the output value.
Parameters
PWM# Identifies which PWM channel is to be read (PWM1–PWM16).
Value The digital value of the output voltage;
the scale is 0–32767 = 0–100% On (switched to ground).
Returns
0 – New value did not go out.
1 – New value output on DAC.
Error Codes Bad_ID Incorrect PWM ID was used.
Auto_Run Trying to access an automated PWM
is not allowed.
Examples Put_PWM(PWM1,16383)
;a 50% pulse wave is output on Output 1
or
User1=16383
Put_PWM(PWM1,User1)
;a 50% pulse wave is output on Output 1










