#
Similarly a dataTaker 500 series data logger could be connected to the SSP (make sure that the
DT500 series logger is reset and in default data format), and read the voltage on channel 1 of the
logger by the program. (Prog11.dxc)
BEGIN"Serial_2"
PS=9600,N,8,1,SWFC
1SERIAL(RS232,"\\e{/e\\013}",W)
RA5S
1SERIAL(RS232,"{1V\\013}",W) ‘Request voltage on ch 1
DELAY(W)=2000
1SERIAL(RS232,"%2s[1$]\\013\\010%f[1CV]\\e",W,10)
1$ ‘Command echo
1CV(FF3) ‘Returned voltage reading
END
5.8
Digital Inputs (Labelled 1DS and 2DS)
The SSP has two push buttons, connected to digital input channels 1 and 2 respectively. The state of
the push buttons, and the number of pushes, can be read by the program. (Prog13.dxc)
BEGIN”Push”
P47=5
1SSPWR=1
RA1S
1DS 1C
2DS 2C
END
5.9 Digital
Outputs
The SSP has LEDs connected to digital channels 3 and 4 to indicate the output state of these
channels. The channels are turned on the commands
P47=5
1SSPWR=1
3DSO=0
4DSO=0
and turned off by the commands
3DSO=1
4DSO=1
5.10 Delay
The SSP has a single pole relay and LED connected to digital channel 5, which can be turned on the
the commands
P47=5
1SSPWR=1
5DSO=0
and turned off by the command
5DSO=1
The relay has a terminal block with Common, Normally Open and Normally Closed terminals, for
connecting external devices to be switched.
Page
13