At 05:25 PM 1/23/03 +0100, Wouter van Ooijen wrote: > > You'd have to parse the ladder > > logic commands and generate tokens, which would be interpreted > > by subroutines in the PIC. The first part perhaps can be done > > on a PC. > >when you parse the ladder logic anyway, why not generate HLL or even asm >directly from it? The few times that I have done PLC type code on a PIC, I implemented it as a series of state machines. All the translation between ladder logic and asm code was done by hand, though. If I had to do it again, I'd take a close look at Z-mech to see how much easier it would make the job. dwayne -- Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax Celebrating 18 years of Engineering Innovation (1984 - 2002) .-. .-. .-. .-. .-. .-. .-. .-. .-. .- `-' `-' `-' `-' `-' `-' `-' `-' `-' Do NOT send unsolicited commercial email to this email address. This message neither grants consent to receive unsolicited commercial email nor is intended to solicit commercial email. -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics