INTERPRETABLE BYTE CODE (by Roy)
Hi Jonathan
As far a I can tell the only place you set or clear the output pin is for Code 01 SET Bit & Code 02 Clear Bit
I need to pass the information as to what pin is be used
I am thinking of using the destination word Name2 for this
as it is not being used ? for these two codes.
Is there any reason why I should not do this ?
I am not using the adc option for my plc .
Rgds
Roy
(no subject) (by Jonathan Westhues)
My expectation was that you'd name inputs and outputs according to however they're labeled on the hardware, and not with friendly names chosen freely by whoever's writing the ladder program (so Xa_1, Xa_2, etc., not Xlimit_switch). The mapping between names and pins would then always be fixed, and the generated .int file gives you the mapping between names and interpreter addresses already.
Friendly names (if desired) would be assigned by copying to and from other arbitrarily-named variables with normal ladder logic, not with a special UI like for the PIC and AVR targets.
You could handle I/O assignment differently. That would likely require changes to LDmicro, though.