Here is the I/O map in SPLat equate format for the DR240
;-- digital inputs --
iIn0 iEQU 0
iIn1 iEQU 1
iIn2 iEQU 2
iIn3 iEQU 3
iIn4 iEQU 4
iIn5 iEQU 5
iIn6 iEQU 6
iIn7 iEQU 7
iDipSw0 iEQU 8
iDipSw1 iEQU 9
iDipSw2 iEQU 10
iDipSw3 iEQU 11
;-- digital outputs --
oRly0 oEQU 0
oRly1 oEQU 1
oRly2 oEQU 2
oRly3 oEQU 3
oRly4 oEQU 4
oRly5 oEQU 5
oRly6 oEQU 6
oRly7 oEQU 7
oLedOn oEQU 8
oLedGreen oEQU 9
;-- analogue inputs --
aiVdd EQU 0 ;full scale is approx 36.3V
;-- analogue outputs --
;-- serial --
COMTTL EQU 251
COM485 EQU 252
COMUSB EQU 253
The 8 digital inputs are all optically isolated, so must have power applied to be activated. This may either be DC or AC.
All outputs are relays that are 240VAC rated.
As a side note, separation of the LED into on/off and green/red pins allows for some cute effects. For example:
On oLedOn
Blink oLedGreen
These two instruction will cause the LED to automatically start blinking between red & green.