In both cases it defaults to
IF MotorRPM > 66 THEN
So it will always go to the second IF in the nest.??
In both cases it defaults to
IF MotorRPM > 66 THEN
So it will always go to the second IF in the nest.??
Dave
Always wear safety glasses while programming.
But the direction of the motor should be different (if you're talking about the 2nd sample code). Could it be that with additional code lines somehow the chip isn't being completely erased before re-programming so the EEPROM variable is some number > 255?
You should check the settings on your programmer.
Robert
I set them back to default after reading a post from Darrel on the EE_Var thread, but that hasn't helped. Which settings in particular are you thinking of?
Erase code, erase eeprom settings for starters.
I had checked those earlier, Demon, and also selected the 'Set to default'. I'll look over those again tonight.
Here's a screenshot of my settings:
![]()
Ross, what about your Program settings?
![]()
I have the same settings except I also have the 'User ID' checked/enabled.
Problem resolved. I was updating DT_INST-14.bas directly for different chips based on instructions for earlier versions of the file; now that I've downloaded the latest version and added the variables to my main program as needed, it seems to work fine.
Bookmarks