ngkdc
09-08-03, 03:57 PM
I'm trying to control a machine with a variable, and having no luck.
VARIABLE RUN
TRUE RUN !
MACHINE TEST
ON-MACHINE TEST
APPEND-STATE GO
IN-STATE GO CONDITION RUN CAUSES REDLED ON
THEN-STATE GO TO-HAPPEN
GO SET-STATE
I've also tried: ... CONDITION TRUE RUN @ = CAUSES ... with no success.
I've executed the in-state by typing GO ... and get an OK response with 32279 left on the stack.
Any suggestions? I can set RUN anyway necessary, since it will be a simple case statement (yea, simple once I'm shown how to do it!!!) to enable run or disable it.
When I get done, this machine will be called once per second to update an elapsed timer that doesn't reset until commanded (yet another serial port word).
Any suggestions?
***
Funny, with GOBS (1) of I/O, I'm commanding everything through the serial port ... because when done, there's gonna be a bunch of these all connected with an Ethernet-to-serial module ... digitial I/O is out of the question.
Thanks,
Rick
(1) GOBS translates to somewhere between 200-1000 units per facility.
VARIABLE RUN
TRUE RUN !
MACHINE TEST
ON-MACHINE TEST
APPEND-STATE GO
IN-STATE GO CONDITION RUN CAUSES REDLED ON
THEN-STATE GO TO-HAPPEN
GO SET-STATE
I've also tried: ... CONDITION TRUE RUN @ = CAUSES ... with no success.
I've executed the in-state by typing GO ... and get an OK response with 32279 left on the stack.
Any suggestions? I can set RUN anyway necessary, since it will be a simple case statement (yea, simple once I'm shown how to do it!!!) to enable run or disable it.
When I get done, this machine will be called once per second to update an elapsed timer that doesn't reset until commanded (yet another serial port word).
Any suggestions?
***
Funny, with GOBS (1) of I/O, I'm commanding everything through the serial port ... because when done, there's gonna be a bunch of these all connected with an Ethernet-to-serial module ... digitial I/O is out of the question.
Thanks,
Rick
(1) GOBS translates to somewhere between 200-1000 units per facility.