
rjk-croc (Customer) asked a question.
How do I replicate this program in ProductivityBlocks?
I have been trying valiantly to understand how ProductivityBlocks works, but it just is not clicking for me since my experience is with ladder logic. I've attached what I want to do, and my understanding is that it should be possible to do all of that with a single helper function and arrays of I/Os being passed to the function. Is this even possible?
Also, please add an "Undo" function to ProductivityBlocks!
And yes I know this is a function block diagram and not a ladder program, but it was the fastest way to show what I'm trying to do. The program I used does not have XNOR or NAND, otherwise it would be even simpler.
I am not real familiar with Productivity Blocks but put together some example snippet code (see attached) to get you going:
https://github.com/AutomationDirect/ProductivityBlocks/wiki/Comparison%20Blocks
These are found under the ‘Operators’ tab of ProBlocks.
example
Much appreciated! I suppose I would then just change the Set String instruction to a Set Point in order to get a physical output.
It would be cool if I could pass an array to test in this way, but maybe simpler to just make 10 copies of the same blocks.