750-00004 Parallax Inc, 750-00004 Datasheet - Page 21

no-image

750-00004

Manufacturer Part Number
750-00004
Description
POWER SUPPLY 24VDC 600MA
Manufacturer
Parallax Inc
Datasheet

Specifications of 750-00004

Form
Wall Mount (2 Prong)
Voltage - Output Per Connector
24VDC
Current - Output
600mA
Polarization
Positive Center
Cord Plug
2.1mm I.D. x 5.5mm O.D. x 12mm Female
Voltage - Input
120VAC
Power - Output
14W
Transformer Type
Linear, Unregulated
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Efficiency
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
'
'
'
'
'
' =========================================================================
'
' -----[ Program Description ]---------------------------------------------
'
'
'
'
'
'
'
'
'
'
'
'
'
'
'
' -----[ Revision History ]------------------------------------------------
This next section defines the Stamp I/O pin connections, the variable sizes and names, and the size of
the record array used to store data collected. Note that some variables as declared are actually parts of
other variables.
' -----[ I/O Definitions ]-------------------------------------------------
AdcClk
SrClk
Load
SrDin
AdcCs
AdcDout
AdcDin
PumpA
PumpB
' -----[ Constants ]-------------------------------------------------------
T1200
T2400
T9600
T19200
Baud
' -----[ Variables ]-------------------------------------------------------
tankLevel
timer
runTimeA
runTimeB
inputs
tmp
ptr
keyIn
pumpStatus
setPoint1
setPoint2
startCode
Parallax, Inc. • Stamp PLC (#30064) • Version 1.8 • 12/29/2003
Updated.... 27 JUN 2003
{$STAMP BS2}
{$PBASIC 2.5}
This program controls two pumps to maintain tank level.
falls below setpoint #1, the pump with the fewest number of hours is
started.
pump is started as well.
and flow sensor are monitored TO determine whether or not the pump
actually started.
shutdown and flagged as out-of-commission, and the other pump starts.
While all of this is going on, data is logged on pump runtimes, tank
level AND the serial port is monitored for commands and queries.
Note: To more easily see this program work, you can change the constant
in "Timer_Logic" from 3600 to 3 or so.
speed time up so you can watch all aspects of this program work.
Also, you may wish to enable the DEBUG statements too.
If the level should continue falling to setpoint#2, the other
PIN
PIN
PIN
PIN
PIN
PIN
PIN
PIN
PIN
CON
CON
CON
CON
CON
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
If a failure does occur, that pump is immediately
0
0
1
2
3
4
5
8
9
813
396
84
32
T9600
Word
Word
Byte
Byte
Byte
Byte
Byte
Byte
Byte
Byte
Byte
Nib
During pump startup, the pump's aux contact
' A/D clock input
' HC165 clock input
' Latch input for HC165
' HC165 data input
' A/D chip select input
' A/D Data out
' A/D Data in
' 1 turns on Pump A
' 1 turnd on Pump B
' Actual level of the tank
' Sets the periodicity
' # hours that Motor A has run
' # hours that Motor B has run
' Inputs 1 - 8 from the HC165
' Temporary work variable
' Points to the current record
' Variable for keyboard input
' Status of both pumps
' If level <, start 1 pump
' If level <, start 2 pumps
' Desired pump configuration
This will effectively
When the level
Page
21

Related parts for 750-00004