Announcement

Collapse
No announcement yet.

How to monitor output module?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • daakers
    started a topic How to monitor output module?

    How to monitor output module?

    What is the best way to monitor all outputs of an output module? I need to know when all outputs are off on a given module. I really don't want to have to enter all of them as N.C. contacts, I am hoping maybe having a word or double word of all points of a output module and compare that to 0?? This was pretty easy with the DL205 stuff and Do-More but no seeing it in the P-Series.
    P2-550

  • kewakl
    replied
    Since PAC does not allow iteration through I/O, I will(depending on project) map all Ins and all Outs to bool arrays.
    This way, I can iterate through In/Out (as bool arrays)
    If you do this, you can use ArrayStatistics (STA) to SUM the bits in the In/Out array(s)

    Leave a comment:


  • RogerR
    replied
    Use the Pack Bits instruction.
    Output to a numeric tag
    Input boolean tags to each bit number.

    Compare the output numeric tag to zero to see if any are on.

    Leave a comment:


  • daakers
    replied
    Thanks that's what I was looking for.

    Leave a comment:


  • pbw
    replied
    Use Pack Bits Instruction or Select Summation.
    Attached Files

    Leave a comment:

Working...
X