adccommunitymod (AutomationDirect) asked a question.

P1000 32 parallel level alarm inputs energizing a single horn coil

Created Date: May 31,2019

Created By: Arbitrader

**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****

I am looking for a simpler way to program 32 separate level alarms to energize a horn coil. I know I can simply put the first level switch and horn coil on the first rung, and then add the remaining 31 level switches as parallel sub-rungs to the horn coil. However AD Tech support suggested simplifying this using bit addresses so I don't need all of these sub-rungs? I looked through all of the P1000 help files, and available videos and didn't find any examples that seemed to help. Any suggestions would be greatly appreciated.


  • adccommunitymod (AutomationDirect)

    Created Date: May 31,2019

    Created by: Arbitrader

    I am looking for a simpler way to program 32 separate level alarms to energize a horn coil. I know I can simply put the first level switch and horn coil on the first rung, and then add the remaining 31 level switches as parallel sub-rungs to the horn coil.

    However AD Tech support suggested simplifying this using bit addresses so I don't need all of these sub-rungs? I looked through all of the P1000 help files, and available videos and didn't find any examples that seemed to help.

    Any suggestions would be greatly appreciated.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: May 31,2019

    Created by: kewakl

    If you already have the bits allocated you could PACK BITS into a word and check if the word is nonzero.

    if you dont already have them allocated, make a 32-bit word for alarms - like ALARM.

    Then use bit 1 of the ALARM as ALARM:1, thru bit 32 as ALARM:32.

    You didnt say if the alarm bits are physical I/O.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: May 31,2019

    Created by: Arbitrader

    Kewaki, thank you for the suggestions. Alarm bits are not physical I/O.

  • adccommunitymod (AutomationDirect)

    Created Date: May 31,2019

    Created by: Arbitrader

    OK, I understand defining the allocated bits using Pack Bits, but don't know how to do the next two steps; "pack bits into a word and check if the word is nonzero ". Can you elaborate?

  • adccommunitymod (AutomationDirect)

    Created Date: May 31,2019

    Created by: kewakl

    Thank you for responding with your results.

  • adccommunitymod (AutomationDirect)

    Created Date: June 01,2019

    Created by: Adisharr

    Thank you for responding with your results.

    I second that, it's nice when people reply whether or not something worked. It makes people much more likely to help.