Newbie needs a hand with new program please ?
docspawn
Posts: 1
Hi All
I have got myself an enviromental project that has to start real soon, one of the
things i require is a means of getting a o/p trigger, from monitoring a continuous
i/p of RS232 hex codes, only triggering when a particular code is seen.
I'll note step by step what i need and would be for ever greatful if any one out
there can help me, as i said i have no experience with programming of the basic
stamp stuff.·So even any pointers will help me.
To start i have a BS2 module and below is the stages i think i'd need to do but
open to correction
1. Setup com port, baud rate
2. set up a·BS2·I/P pin·(only 1 I/P·required Receive and gnd) and O/P pin
··· for the trigger.
3. Monitor the I/P for any 'F2' (Think this is the Serin command)
4. When 'F2' seen , raise the o/p high for 5 sec's
5. After 10 sec's reset back to line 3.
6. The End
Please write,call,email or pop round for a beer·and help me in anyway !
Thanks in antip
················· D.S.
Post Edited By Moderator (Chris Savage (Parallax)) : 9/17/2006 9:17:13 PM GMT
I have got myself an enviromental project that has to start real soon, one of the
things i require is a means of getting a o/p trigger, from monitoring a continuous
i/p of RS232 hex codes, only triggering when a particular code is seen.
I'll note step by step what i need and would be for ever greatful if any one out
there can help me, as i said i have no experience with programming of the basic
stamp stuff.·So even any pointers will help me.
To start i have a BS2 module and below is the stages i think i'd need to do but
open to correction
1. Setup com port, baud rate
2. set up a·BS2·I/P pin·(only 1 I/P·required Receive and gnd) and O/P pin
··· for the trigger.
3. Monitor the I/P for any 'F2' (Think this is the Serin command)
4. When 'F2' seen , raise the o/p high for 5 sec's
5. After 10 sec's reset back to line 3.
6. The End
Please write,call,email or pop round for a beer·and help me in anyway !
Thanks in antip
················· D.S.
Post Edited By Moderator (Chris Savage (Parallax)) : 9/17/2006 9:17:13 PM GMT
Comments
I am somewhere between beginer and medium myself as a pbasic programer, but have you looked at the "WAIT (Value)" formatter for SERIN? I have found that the answer to allmost all Basic Stamp questions, my own excluded of course, are in the the book or in help. You just have to read it several times before the light goes on.
Randy
Here's the link: http://forums.parallax.com/showthread.php?p=605784