Mapping Output bits to Binary

gbradley

Lifetime Supporting Member
Join Date
Apr 2002
Location
Corona, Ca.
Posts
1,637
My HMI (PanelView C400 TFT Color ) won't allow me to use an output address in a Tag.
So I have to map the outputs to b3 bits.

Is a Move the best/fastest/most efficient way to do this?
The other option I thought of seems tedious.
O:0.0/0   b3:14/0
||------------( )
O:0.0/1 b3:14/1
||------------( )
O:0.0/2 b3:14/2
||------------( )
...



Mapped.jpg
 
I prefer bit for bit mapping. Infinite flexibility and (in the PLC-5/SLC) actually executes faster...

Plus, for flag tags (booleans) in an HMI, and especially real I/O mapping, it's nice to be able to find them addressed to the bit level without having to backtrack through a copy instruction.
 
In the future, you may want to do this in reverse. Let the PLC turn on internal bits (as 'pseudo' outputs), then map these to the physical outputs. The HMI points to the pseudo outputs.

If an output ever fails, you just remap it to an spare output, and your HMI still sees the same 'output' (the internal bit).

Although the COP/MOV method looks cleaner, for physical outputs, I prefer the bit by bit method (your first example), with only ONE instance of the output bit (the coil). Makes it really easy to remap a failed output.

With your current COP or MOV approach, you would also have to reprogram the HMI to point to the remapped output.

🍻

-Eric
 

Similar Topics

Hello, I am still learning crimson 3.1 programming and I need help on mapping the flag datatag to digital output expansion module. I am using a...
Replies
2
Views
1,579
Does anyone have any knowledge regarding mapping my output (%QX0.0) to a MODBUS address in Somachine 4.1? I want to be able to read the status of...
Replies
3
Views
2,894
Hi Guys How do you map the inputs for your machine when using FB's? btw I'm using Twincat 3/Codesys. Right now I map all the input/output to...
Replies
3
Views
1,937
Let's say my PLC has a 32 terminal output card called Local:3.O.Data. Which of the two options below is a better way to map the output? Or is...
Replies
11
Views
1,992
Hi everyone, Kind of new at this, so we recently upgraded our 1769-l32e to the newer 5069-L320erm, i converted the file over and Verify the...
Replies
8
Views
398
Back
Top Bottom