Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - INTERPRETABLE BYTE CODE

(you are viewing a thread; or go back to list of threads)

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
Sun Mar 20 2016, 05:11:35
(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.
Sun Mar 20 2016, 05:48:25
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):