Relay And Led Outputs - Z-World Wildcat BL2000 User Manual

C-programmable, with ethernet
Table of Contents

Advertisement

4.4.4 Relay and LED Outputs

void relayOut(int relay, int value);
Sets the state of a relay.
The relay is driven by PA0, which is the same Rabbit 2000 parallel port that drives OUT0 and LED DS4.
OUT0 therefore works in parallel with the relay output. Z-World therefore recommends that you do not
use OUT0 for a digital output when you are using the relay.
PARAMETERS
relay
is the relay to control, 0 = Relay 0.
value
is the value used to connect the relay common contact to one of the following contacts:
0 = relay common connected to relay normally closed contact
1 = relay common connected to relay normally open contact
SEE ALSO
brdInit
void ledOut(int led, int value);
LED ON/OFF control.
The relay is driven by PA0, which is the same Rabbit 2000 parallel port that drives OUT0 and LED0.
OUT0 therefore works in parallel with the relay output. Z-World therefore recommends that you do not
use OUT0 for a digital output when you are using the relay. The relay and OUT0 are also turned on when
LED0 is turned on.
PARAMETERS
led is the LED to control:
0 = OUT0 LED
1 = OUT1 LED
2 = OUT2 LED
3 = OUT3 LED
4 = BAD indicator
value is the value used to control the LED:
0 = OFF
1 = ON
SEE ALSO
brdInit
User's Manual
43

Advertisement

Table of Contents
loading

Table of Contents