View Full Version : need some help
SCRUB
32767 PWMA0 PWM-PERIOD
MACHINE SERVO
ON-MACHINE SERVO
APPEND-STATE MRIGHT
APPEND-STATE MLEFT
IN-STATE MRIGHT CONDITION TRUE CAUSES 4000 PWMA0 PWM-OUT THEN-STATE MLEFT TO-HAPPEN
IN-STATE MLEFT CONDITION TRUE CAUSES 6000 PWMA0 PWM-OUT THEN-STATE MRIGHT TO-HAPPEN
MRIGHT SET-STATE
hi
i just made a variation of the blkgrn program that i thought would move a servo back and forth , but when it gets to the line "in state it chokes , if i trade "REDLED ON" for " 4000 PWMA0 PWM-OUT" IT WILL ACCEPT IT , SO I CAN SEE IT DOESNT LIKE "4000 PWMA0 PWM-OUT " BUT I CANT FIGURE OUT WHY? ANY HELP WOULD BE GREAT ,
AND IS THERE A PROGRAMMERS MANUAL FOR ISOMAX , THE FEW EXAMPLES OF CODE I CAN FIND DONT SEEM TO BE ENOUGH FOR ME TO FIND OUT MUCH ABOUT THE SYNTAX
THANKS , DANA
hi
i figured it out! i'm useing nmiterm to enter the program and it puts the linefeed in and splits the command word ,i see what it was doing was at reaching the end of the line it backs up to take the word you were entering and when it sees the hyphen it decides to split the word there, so i dont know what made me try it but i poped in a linefeed before i got to the end of a nmiterm limit and viola! works like a charm , i've messed with a ton of editors and different kind of source codes and never have run into anything like this :rolleyes: , i still would like to find a more comprehensive manual for isomax if there is one , thanks again , dana
MACHINE SERVO
ON-MACHINE SERVO
APPEND-STATE MRIGHT
APPEND-STATE MLEFT
IN-STATE MRIGHT CONDITION TRUE CAUSES 4000 PWMA0
PWM-OUT THEN-STATE MLEFT TO-HAPPEN
IN-STATE MLEFT CONDITION TRUE CAUSES 6000 PWMA0
PWM-OUT THEN-STATE MRIGHT TO-HAPPEN
MRIGHT SET-STATE
RMDumse
09-07-04, 09:53 AM
Part of it is the editor, and part is the board and language.
Watch the 80 character limit of the terminal input buffer in the language. It doesn't allow word wraps.
On the other hand, the editor in NMITerm is a generic one, part of a canned package I think for Visual Basic which NMITerm is written in. So it's dealing with hyphens isn't tailored for the board, per sa, so does a more "letter writting" appropriate thing with that hyphen.
Personally, I just use the terminal part of NMITerm, and use Notepad for my editing. Just force of habit, because of the way I used to use our previous working tools.
nmitech
09-07-04, 10:35 AM
By default setting, the document file within the NMITerm is holding up to 80 characters per line. This is a safe mode when you are coding with IsoMax or Max-FORTH language. It will truncate any word that goes past the 80th character on a line. Once you see a word is truncated, you must manually advance that word to the new line. Otherwise, IsoMax/Max-FORTH will interpret partial of a word that is truncated, therefore a syntax error will issue by the language.
You can change the number of character per line on the document file within the NMITerm window. Simply click on the property icon, then select the "Doc Editor Setting" and change the number as your desire, or uncheck the " Wrap lines that exceed" box to fit in the terminal width
hi
thanks for the replies , i'm still so new with isomax i could'nt tell the problem was with nmiterms wordwrap function:eek: , i have a few programs i've downloaded and am beginning to understand what i am looking at as far as syntax and structure , thanks again , dana :D
vBulletin v3.0.7, Copyright ©2000-2012, Jelsoft Enterprises Ltd.