Wesley BC-620-4CA User Manual
Page 109

Curtis 1234/36/38 Manual,
OS
11
105
2 3 J U LY 2 0 0 8 D R A F T
7 — VCL
SET_DIGOUT()
This function turns on the selected digital output. The digital outputs are active low
(On = driver on and pulled to ground, Off = open circuit at the pin).
The low power digital output is protected from excessive current (current over
15 mA); a fault will occur when this current has been exceeded, and the driver will
be shut off (open). Running the function again will reactivate the driver, and will
attempt to clear the fault.
Syntax
Set_Digout(DigOut_ID)
Parameters
DigOut_ID is the low power digital I/O identification.
DigOut6 = Digital Output 6 (pin 19).
DigOut7 = Digital Output 7 (pin 20).
Returns
0 – Selected digital output not set.
1 – Selected digital output successfully set.
Error Codes
Bad_ID is returned when DigOut_ID is not in the range of DigOut6 to
DigOut7.
Example
Set_Digout(DigOut6)
This example will set Digital Output 6 (pin 19) On (active low, pulled to ground).
CLEAR_DIGOUT()
This function turns off the selected digital output. The digital outputs are active low
(On = driver on and pulled to ground, Off = open circuit at the pin).
Syntax
Clear_Digout(DigOut_ID)
Parameters
DigOut_ID is the low power digital I/O identification.
DigOut6 = Digital Output 6 (pin 19).
DigOut7 = Digital Output 7 (pin 20).
Returns
0 – Selected digital output not cleared.
1 – Selected digital output successfully cleared.
Error Codes
Bad_ID is returned when DigOut_ID is not in the range of DigOut6 to
DigOut7.
Example
Clear_Digout(DigOut6)
This example will set Digital Output 6 (pin 19) Off (open circuit).