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

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
Test Program
Once the Editor has been installed, and you have the power and serial connections made, apply power
and launch the Editor. Hit Ctrl-I to identify the BASIC Stamp. If all is well, the software will be able to
locate which port the Stamp PLC is connected to and identify which type of BASIC Stamp is inside. If you
have trouble getting the Editor to "find" the Stamp PLC, either email or call our technical support for help.
The email address is: support@parallax.com. Our phone number is: (916) 624-8333.
Program the BASIC Stamp
'{$STAMP BS2}
Main:
Once the code above is entered, simply click on the run button, or hit Ctrl-R, or click on Run->Run, any
of these will cause the software to compile, download, and run the program. Upon completing the
download, a debug window will open automatically and the words "Hello World!" will appear. If you like,
close the debug window, change the text within the quotes in the debug command, and run the new
program. Doing this a few times can really help you get the hang of it.
Writing to Digital Outputs
The digital outputs are tied to the BASIC Stamp I/O pins P8 through P15 via electrically protected, high-
side drivers
configures P14 as an output and drives it low (turns it on).
2
3
we attached to this manual.
Parallax, Inc. • Stamp PLC (#30064) • Version 1.8 • 12/29/2003
Note: The Stamp PLC uses the IPs512G for its high current driver. To find out more about the IPs512G r please see 1
DEBUG "Hello World!" ' Send "Hello World!" to the debug window
This document assumes that you are using the BASIC Stamp 2, although you may use any of the 24-pin BASIC Stamps offered by Parallax, Inc. Be
aware that other types of stamps may run at different speeds. In these cases, time-critical operations will be affected and will need to have their
parameters adjusted.
3
. This makes it very easy to write to the digital outputs. The following mini-program
Safety Notice! The digital outputs are (essentially) tied directly to the BASIC Stamp I/O pins P8 through
P15. This is necessary for safety reasons. If anything "goes wrong" i.e. power interruptions, spurious
resets, program errors, etc., the BASIC Stamp automatically reverts the outputs to inputs for a period of
18mS before the BASIC Stamp program can restart and take control of the outputs again. This causes
the outputs to cease driving, and thereby stops motors and other output devices. When designing your
system and programming it, you MUST design it to fail to a safe condition.
' Stamp type directive
2
within the Stamp PLC. Enter the following code in the Editor:
S
S
ATN
GND
D 1
D 2
D 3
D 4
D 5
D 6
D 7
D 8
D 9
D 10
D GND
+24 VDC
GND
OUT
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
' Marks the start of the main program
Figure 8: Typical Output Connection
www.parallax.com
#30064
OUT 5VDC
D
OUT
D
A GND
A GND
IN
IN
OUT
D
D
D
D
D
D
D
D
OUT
OUT
OUT
OUT
OUT
OUT
OUT
OUT
A 1
A 2
A 3
A 4
GND
IN
IN
IN
IN
V+
1
2
3
4
5
6
7
8
+24VDC
+
Vss
24VDC
solenoid
st
two pages of the data sheet
Page
6

Related parts for 750-00004