PDA

View Full Version : Problem with Isomax V0.82


cmmffhc
08-12-05, 03:41 AM
Hi,

I have a big problem running more than 1 state machine in my new servopod. I never had this problem with my old servopod which used Isomax V0.82.

I wrote a simple program below to illustrate my problem:

SCRUB

MACHINE HI EEWORD
ON-MACHINE HI
APPEND-STATE HI1 EEWORD

IN-STATE HI1
CONDITION 1 1 =
CAUSES
." HI" CR
THEN-STATE HI1
TO-HAPPEN IN-EE

MACHINE BYE EEWORD
ON-MACHINE BYE
APPEND-STATE BYE1 EEWORD

IN-STATE BYE1
CONDITION 1 1 =
CAUSES
." BYE" CR
THEN-STATE BYE1
TO-HAPPEN IN-EE

: MAIN
SET-STATE HI1
INSTALL HI
SET-STATE BYE1
INSTALL BYE
; EEWORD

HEX 3C00 AUTOSTART MAIN
SAVE-RAM

The above program should generate an output of
HI
BYE
HI
BYE
.
.
.

That is true for the case of my old servopod but not my new one...the new one gives an output of
HI
HI
HI
HI
.
.
.

The 2nd state-machine never gets to be executed...why is this so? Can anyone help me out?

Regards

nmitech
08-12-05, 09:40 AM
You have
SET-STATE state-name-x

The proper command should be,
state-name-x SET-STATE
This setup is still the same for all IsoMax version.