6/11/2015 11:01 AM | |
Joined: 10/21/2013 Last visit: 1/3/2025 Posts: 420 Rating: (28) |
Hi Lang, There are two ways to access the tag 1.Absolute accessing-where you can access with the tag by selecting the DB-no and WORD-no of the db for example. 2.symbolic addressing-where used in accessing of array of tags by selecting the index. here i have attached the symbolic addressing of plc udt tags from data block. Attachmentudt.zip (1178 Downloads) |
Last edited by: BALAKRISHNAN92 at: 6/11/2015 11:04:14 AM |
|
This contribution was helpful to1 thankful Users |
6/11/2015 11:21 AM | |
Posts: 16 Rating: (1) |
Hey Balak, Option 1: What I'm trying to do, is accessing Elements of an array, which is of UDT type. I've created a DB with array: [0...5] of type "udt" Then i create an HMI tag, which is of type "udt" and the PLC tag is DB.Array[0], then i try to add a index, so i can index through a single HMI tag of, with PLC address. DB.Array[index], so i can access udt's of data, instead of slice accessing every single bit and byte... I'm trying to see if i can create a more intelligent faceplate, where all i would have to do, is. eg. know which element is which sensor, so when i create a new faceplate, in order to interface it all i would have to do is set the index tag to 0...5 Option 2: I tried multiplexing instead, but inserting every single value for the UDT, then accessing from an index, if i have over 20 tags in my UDT, seems like a BIG hassle... AttachmentPLC_UDT_INDEx.zip (914 Downloads) |
3/13/2017 5:43 PM | |
Joined: 9/3/2014 Last visit: 3/13/2019 Posts: 4766 Rating: (122) |
New question published by Pepijn van der Ven is split to a separate thread with the subject In the HMI I want to create a multiplexed tag with an index to connect the PLC DB. Best regards |
Follow us on