4
Descriptions of the terminal block
DESCRIPTIONS OF THE TERMINAL BLOCK
GND-Vin:
Connect the power supply between connections GND and Vin. Apply a direct voltage of 12V (regulated or not
regulated) between the two pins. The electronics of the module are protected against polarity inversion.
The 12V DC must be connected to the “Vin” terminal, your ground level to the “GND” terminal.
In1,In2,In3,In4:
These are the four module inputs which can be activated by applying a direct voltage between 5 and 24V.
The input impedance is 4.7K.
Note that a voltage exceeding 24V can damage the input transistor.
I/O of the PIC16F630: PORT A
INPUT1
I/O
3
INPUT2
I/O
2
INPUT3
I/O
1
INPUT4
I/O
0
Programming example
:
BTFSC
PORTA,INPUT1
;Read status of input 1
GOTO
INPUT1_NOT_ACTIVE
;’1’
Not active
GOTO
INPUT1_ACTIVE'
;’0’
active (5V ... 24VDC)