P
@evilspoons said:@PeriSoft said:@Mole said:@PeriSoft said:Or use a terminal to a networked servo controller.Your controller only supports capital letters? WTF? Yep. Go to galilmc.com if you don't believe me. Old habits die hard, I guess. Their hardware is fantastic and well-priced; the software is a bit of a WTF itself, though. It has a little feature which will complain if the terminal's been disconnected from the controller, which is great - but when you *tell* it to do a master reset, it immediately throws the 'disconnected' error because communication stopped during the reset... It also crashes if you tell it to autodiscover a controller but then cancel the resulting request to add it to the registry. Brillant.
Holy crap. When you posted the code segment I was about to say "hey, this looks like this obscure motion controller programming language I use every day at work..." and then you said Galil. Haha, I use Galil all the time.
For what it's worth, SmartTerm is a giant piece of crap and GalilTools is vastly superior (it has an API for doing everything about 98% more easily than the previous APIs). I learned the hard way you don't want to use CAPITAL LETTERS for your variable names (when they start with the same letters as a command word, sometimes it executes the command instead of reading the variable! But only sometimes!!). Even GalilTools has a lot of shortcomings though; I just wrote up a (admittedly very lousy) Notepad++ style for DMC files and do all my actual programming in there. I only open GalilTools to actually connect to the controllers. The extent of our actual programming is about 20 lines of simple stuff like I/O checks and following error boringness; the actual heavy lifting we do with absolute position commands. We don't do any motion sequences on the board itself.At some point I want to do an autodiscovery / IP address setting / other random setup app so we can eliminate terminal commands for all but extraordinary circumstances, but time has so far prevented that. Hey, at least it's better than compumotor...