better output mapping technique

unsaint32

Member
Join Date
Oct 2012
Location
minneapolis
Posts
365
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 there a better way?

OPTION1)
Creating an alias DINT tag named "LO-03" aliasing it to Local:3.O.Data.

OPTION2)
Creating a DINT tag named "Local03_Outputs" then
COP(Local:3:O.Data, Local03_Outputs,32)
 
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 there a better way?

OPTION1)
Creating an alias DINT tag named "LO-03" aliasing it to Local:3.O.Data.

OPTION2)
Creating a DINT tag named "Local03_Outputs" then
COP(Local:3:O.Data, Local03_Outputs,32)

The real answer is "it depends".

If you do option 1, there is no dependency on Routine scanning, since there is no program action required for the alias to be active.

If you do option 2, your data is dependent upon the timing of the execution of the COP instruction.

All of this is on the assumption that the PLC application logic, be it ladder, statement, or whatever, is creating output-type instructions to your Aliased tagname, and not directly to the hardware-assigned tag name.
 
Personally, I prefer to have a separate routine that maps the output command to the actual output tag. To me, that makes it easier to find outputs and trace the back through the logic as well as trouble shoot and commission.
 
OPTION2)
Creating a DINT tag named "Local03_Outputs" then
COP(Local:3:O.Data, Local03_Outputs,32)
FYI: if you decide to go with option 2, I believe that your COP instruction should have a length of 1, not 32, since the destination is a DINT and not a BOOL.
 
+1 RET

If you use aliasing you won't be able to change an input or output online. Which is an issue for us, So we use a IO Mapping routine that way if an input or output burns up you can easily remap the input without downloading on a running plant.

Also makes it easier you if use UDT's you can map the IO bit directly to the UDT member without using another tag.
 
Where I'm from, every instrument has an ISA-like tag eg. 41_PIT_4112, 30_FV_0161 etc.
An add-on instructions processes the data from an analog input card point (scaling, etc) for each tag. The same thing happens with the outputs.
 
+1 RET

If you use aliasing you won't be able to change an input or output online. Which is an issue for us, So we use a IO Mapping routine that way if an input or output burns up you can easily remap the input without downloading on a running plant.

Also makes it easier you if use UDT's you can map the IO bit directly to the UDT member without using another tag.

A novice question for you.... I thought using UDT for IO mapping means using COP or CPS instruction, rather than creating a separate IO Mapping routine.
 
+1 RET

If you use aliasing you won't be able to change an input or output online. Which is an issue for us, So we use a IO Mapping routine that way if an input or output burns up you can easily remap the input without downloading on a running plant.

Also makes it easier you if use UDT's you can map the IO bit directly to the UDT member without using another tag.

After doing some thinking, I realized I really don't have to use the CPS or COP. I can just create a UDT then simply use those in the mapping routine. That makes sense. Thanks.
 
What, no one else likes finding undocumented B00, B01, B02, etc. (or direct-mapped I/O) in a modern ControlLogix system?

:oops: :p

+1 to aliasing.
 
Last edited:
+1 RET

If you use aliasing you won't be able to change an input or output online. Which is an issue for us, So we use a IO Mapping routine that way if an input or output burns up you can easily remap the input without downloading on a running plant.

Also makes it easier you if use UDT's you can map the IO bit directly to the UDT member without using another tag.

I am able to do so. Just create a new tag aliased to the same I/O, adjust your program's references accordingly, delete the old.

Unless, of course, there's a vague client *cough* FT trash *cough* out there using the original tag.
 
Last edited:

Similar Topics

Good Afternoon , It seems like we always have problems with using Type J Thermocouples with our slip rings . Would using a RTD at 10...
Replies
6
Views
1,634
I am beginner in B&R Automation Studio and TIA Portal. Have an experience in electrical part of PLC cabinets. Now its time to get a new skills...
Replies
8
Views
1,662
Bla Bla Bla, why doesn't it work, l need help and l don't understand PLC's. Or better they understand everything, but can't understand +1 -1 = 6...
Replies
22
Views
6,000
I rarely need to add a network card to the drives we install... very rarely. But my sales-guy said he needs to quote a network-connected ACH580...
Replies
6
Views
2,584
I'm currently on a research project where I can send tag read & write requests to both SLC as well as CLX controllers. Presently, there's no...
Replies
8
Views
2,406
Back
Top Bottom