beautypg.com

Clickdiocheck – Wavetronix Click 500 (programmable controller) (CLK-500) - Developer Guide User Manual

Page 147

background image

146

APPENDIX • CLICK 500 DEVELOPER GUIDE

ClickDioCheck

Retrieves the current state of the given digital input port. The digital inputs are multi-func-

tion inputs. To select the appropriate function, use DIP switch 1 and 2 on the side of the

device. Switch 1 is for input 1 and switch 2 is for input 2.

Position 1 - Low Level AC Input Designed for use with low voltage AC clamp-on trans-

ducer. Designed to turn on when driving 1 W load at 120 Volts RMS AC.

AC_ON == 1

AC_OFF == 0

Position 2 - Contact Closure Input

CONTACT_OPEN == 0

CONTACT_CLOSED == 1

Position 3 - DC Input, threshold @ 9.0 VDC

DC_ABOVE_THRESHOLD == 1 (> threshold)

DC_BELOW_THRESHOLD == 0

Position 4 - DC Input, threshold @ 11.9 VDC

DC_ABOVE_THRESHOLD == 1 (> threshold)

DC_BELOW_THRESHOLD == 0

Position 5 - DC Input, threshold @ 23.8 VDC

DC_ABOVE_THRESHOLD == 1 (> threshold)

DC_BELOW_THRESHOLD == 0

˽

LIBRARY – click500DigitalIO.LIB

˽

SYNTAX –

int ClickDioCheck( int digPortId );

˽

PARAMETER1 – The digital port to check (D1, D2).

˽

RETURN VALUE – The value of the port (0, 1).

˽

SEE ALSO – ClickDioSet