CookieMonster

MrPLC Member
  • Content count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About CookieMonster

  • Rank
    Newbie

Profile Information

  • Country New Zealand
  1. Array Identifier

    Okay, Thanks for all your feedback and replies. I have created a DB and will populate with each piece of equipment (as a UDT). I now have two options I can either write a function which "mirrors" the array elements or I can change my code so that I don't scroll through an array but rather scroll through the DB. Either way will work its just deciding the best for this proj! Jesper, thanks for the coding demo its very nice. The only problem I can see is that you have motor[x] and there are many motors its difficult to identify individual motors. Thanks again, much appreciated!
  2. Array Identifier

    Hello, Thanks for your replies, I do appreciate having someone to discuss this with!!!! Ok i'll try to be more transparent! I want to indirectly address my I/O's using an array of digital equipment and an array of analogue equipment. Each element will be mapped to a piece of equipment eg. array element DigitalInput[1] will be mapped to I0.0. Now, regardless of what I0.0 actually is I want to symbolically address Digital Input[1] as the name of that piece of equipment. But so far it seems I can't do that. So...what you are sounds like what I want to achieve. Are you saying that you create a FB and IDB for each piece of equipment? I have hundreds of digital items and a handful of analogues. that might get messy!
  3. Array Identifier

    Sorry for delay, Well we use an array of a UDT which contains BOOLs and INTs values such as .Ip and .AOut1, .AOut2, AOut3 etc etc. I also have some source code which maps outputs & inputs for example .AOut1 to output M0.0 which is "Valve_1". Array element 2 maps to M0.1 "Valve_2" etc. So if i want to turn on a valve from multiple inputs I can use AOut1, 2, 3, 4 etc. The problem being that in LOGIX I can assign a symbolic name to each array element and then I know which element is controlling each valve or output or input. So in S7 the only information I can get is the address eg. DB1.DBX31.5 or the name DEqpStatus.DIG[1].AOut1 BUT in LOGIX I can also assign a symbolic name like Valve_1 or Flow Transmitter etc etc Basically anything that gives some information about what piece of equipment that array element is controlling. My problem being that I can't seem to do this in S7!
  4. Array Identifier

    Bugger! So you can't attach symbolic names to array elements at all? this could be a problem! Does anyone know why S7 is like this?
  5. Array Identifier

    Hi, I'm more familiar with Logix but am currently working on a Siemens Project using S7-300. I have a UDT array DIG[ ] and some code which scrolls through the real world" input/output's and maps them to the array. It looks something like "EqpStatus".DIG[1].X (X being the UDT Bools,Ints etc) Anyway my problem is that when I do this using Logix, I can assign an alias tag to each of the array elements so I know which input/output it has mapped to but I don't seem to be able to do this in S7? is this possible?