PepperedMussels

MrPLC Member
  • Content count

    10
  • Joined

  • Last visited

Posts posted by PepperedMussels


  1. Hi!

    As an example, I use an UNION called "unDataMemory" in which I create 2 members

    - "w" as a WORD;

    - "b" as an ARRAY[0..15] OF BOOL;

    I use these union to creat an array of DMs to communicate via Datalink with older CPU like CJ2M types.



    Basically is the same variable but you can use it as a word or as a boolean array.


  2. Good morning to everyone.

    I work for a company that produces machines composed by different "sub-machines".

    For every complete-system we create a structure of alarms, composed by different structures of alarms that manage every "sub-machine".

    It's possible to export (maybe in a .xml file) the complete structure? So the software should not update manually the list of alarms but only read the file.

     

    Thanks in advance! 


  3. Thank you very much.

    I've already tried to do it in a STRUCT way but it makes more confusion in my head (sorry but I'm new and I'm trying to understand well this thing)

    Maybe could you help me in this way please?

     

    EDIT: I'd like to make something like this:

    Trolley[Trolley_Number].targetPosition[XXX]; 

    with "Trolley_Number" ARRAY [0,1] and "targetPosition[0..99];