
adccommunitymod (AutomationDirect) asked a question.
How to monitor output module?
Created Date: July 25,2018
Created By: daakers
**** 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.****
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
Created Date: July 25,2018
Created by: daakers
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
Created Date: July 25,2018
Created by: pbw
Use Pack Bits Instruction or Select Summation.
Created Date: July 25,2018
Created by: daakers
Thanks that's what I was looking for.
Created Date: July 25,2018
Created by: RogerR
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.
Created Date: July 25,2018
Created by: kewakl
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)