help with setup logix5000 tags

hi i try to setup logix5000 tags like this
!!!
system
--system1 (system)
-----auto (program)
---------autotag (tags)
--system2
-----auto (program)
---------autotag (tags)
!!
i try to use the same tags name for different system so next time i can copy system 2 and rename to system 3 without modify the local tags(is that possible to do that, on manual it mention avoid using same name for local but it not explain the reason why not using)
!!!
system
--system1 (system)
-----auto (program)
---------autotag (tags)
-----auto2 (program)
---------autotag (tags)
and also i have question on above example(is it possible do that also)
!!
 
Afternoon.

Creating a user defined data type may give you the structure that you are looking.

Put all the tags that will be used throughout the various systems into a User Defined Data Type and then when you create the systems tag i.e. System 1, define the data type as the User defined data type you have created.

Another method might be to put each system into its own routine, and using local tags instead of global.

Hope this is some help,

Dan
 
UDTs are the way to go you can basically create objects with tag structures in almost any configuration you want. whenever you want to add a new system simply create a new tag of the data type of your UDT with a unique system name and all "sub" tags are create for you and can be accessed by "System#.Tag"

here is a good article on the subject

http://www.plcdev.com/user_defined_data_types_udts_and_oop

The other thing I like about this method is if your systems are the same you create your logic once and you can copy and paste it and do a simple search and replace from System1 to System2 for example and your are done.
 
hi sorry to mention but they the same name but for different system, autotag for system 1 is on but autotag for system 2 is off at the same time, thanks
 
yes with UDTs they will be unique and independent of eachother

the tags will actually be System1.auto.autotag vs System2.auto.autotag
completely different spaces in the plc's memory

think about it like folders and files in windows System1 and System2 are the folders and each can have files with the same names that have different contents
 

Similar Topics

Hello all. I am setting up Siemens S210 servo drives to be controlled by an CPU 1214-C G2 PLC. I have everything connected and am driving the...
4
Replies
580
Views
Hello, I have Stratix 5200 and need to setup NAT, I have a few equipment that need to be connected to the network but they have the same IP...
0
Replies
836
Views
Hi, I am working on new Mitsubishi R series card setup for new project. RJ71C24-R4. Using modbus -RTU protocol. Seriously connected with Few VSD...
5
Replies
1,512
Views
Hi all, have a project which requires reading a weigh head weight over ASCII. Never really touched ascii so struggling a bit. The weigh head is in...
11
Replies
2,822
Views
Hi everybody. This is part number 3 of my new project with stuff we don't usually work with. Thanks to everyone who takes time to answer, it's...
10
Replies
9,032
Views
Top