26.10.2013 Views

2 - Forth Interest Group

2 - Forth Interest Group

2 - Forth Interest Group

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

close the VALVE. The control sequence could go like this:<br />

VALVE >ON PUMP >ON 15 MINUTES<br />

PUMP >OFF VALVE >OFF<br />

We can make a control word called FLUSH that will<br />

both turn on the pump and open the valve:<br />

132 CONSTANT FLUSH \ l ~ ~ ~ ~ l ~ ~<br />

The new control sequence could now go like this:<br />

FLUSH >ON 15 MINUTES FLUSH >OFF<br />

Using this simple concept, we can build very complex<br />

control structures that are very "readable," so a non-<br />

technical person can understand a sequence of control<br />

commands and even write them.<br />

Make up your own commands and try them out. Maybe<br />

next time, we can hook up a stepper motor to our interface<br />

/ or some infrared diodes for remote control applications.<br />

P.S. A special thanks to Tom Zimmer who gave us that<br />

huge pile of F-PC code to play with, for all that time he<br />

spent staring at his computer monitor.<br />

Ken Merk, who graduated from BClT asan ElectronicTechnologist, is a married<br />

father of two girls and lives in Langley, B.C., Canada. He works for Canadian<br />

Pacific Railway, and is involved in a braking system used on caboose-less<br />

trains-the caboose is replaced by a black box which monitors many param-<br />

eters of the train and sends them digitally by radio to the head end. In<br />

emergencies, a remote radio can trigger braking. Other projects include<br />

infrared bearing-failure detectors, wind detectors, and mountain-top radio<br />

communication sites. Merk originally used <strong>Forth</strong> to learn 8088 assembler, and<br />

found it a great tool to control electronic hardware.<br />

Schematic. (Also see next page.)<br />

470 Ohm<br />

resistors<br />

systems to package<br />

tracking for Federal<br />

Royalty-free multitasking kernels and libraries.<br />

Fully configurable for custom hardware.<br />

Compiles and downloads entire program in seconds.<br />

Includes all target source, extensive documentation.<br />

Full 32-bit protected mode host supports interactive<br />

development from any 386 or better PC.<br />

Versions for 8051, 80186188, 80196,68HC11,<br />

68HC16,68332, TMS320C31 and more!<br />

Go with the systems the pros use... Call us today!<br />

LEDs<br />

.5a.5a.5a.5a.5a.5a9y9g<br />

A<br />

A - - A 1 1 1<br />

- - -<br />

MSB LSB<br />

<strong>Forth</strong> Dimensions 23 July 1995 August

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!