jvan (Customer) asked a question.

Event Manager Word Masking

I have an application where an EA9 is connected directly to a GS20 drive via RS482. Modbus communication is working, and the HMI can read/write to the GS20. The roadblock is working with the GS20 status word. I would like to have several indicators for drive status. These indicators need a discrete tag.

 

How can a discrete tag be generated from the 16 bit status word? The first thought was using the Event Manager, but I don't see any way to mask the word for the bits needed.

 

Hopefully this is straightforward, and I'm overlooking something!


  • ADC TechnologyGroup_05 (AutomationDirect)

    This would be easier if you were using a PLC with this setup. However, since you are connecting the C-More directly to the drive, this is a possible approach.

    Attached is an image of an example Tag Name Database entry that breaks down a 16-bit unsigned word into individual discrete bits. I've also attached a quick example of how one might use the the combination of status bits to populate a single tag. Use the Simulation to manipulate the bit states and see the Drive State change. Also, be sure to examine the Event Manager. This is NOT a complete project. This is just something to get you started. Hope this helps.

     

    Example_TagNameDB

    Expand Post
    • kewakl (Customer)

      Nice example.

      As the CMore logic part is limited to 4 tags, I thought that I would expand on your example.

      It may have a timing glitch - I have no way to test it on real device right now.

      It seems to work in the simulator.

      If you can see an issue, please mention it here. Thank you.

       

      On the SYS CLOCK200MS tag = true, zero a WORD tag.

      In the event manager, after the ZERO event, using the SYS CLOCK200MS tag as condition, rebuild the WORD tag with orders of the power of 2..

       

       

      Expand Post
      • jvan (Customer)

        When I have a minute, I'll give your sample file a try. Currently, I'm using the same method as the ADC sample file, and it's working fine. Will check, but I think I'm polling at 200ms.

  • jvan (Customer)

    Thank you for the quick response! I fully understand this would be much easier to accomplish with a PLC in the mix, but this project just doesn't warrant that.

     

    Looks like I was on the right track with the event manager, but had a brain lapse on using multiple tags to trigger the event! This is exactly the pointer I needed.