Fold down south wall automation

Been trying to automate my South wall using a Denkovi relay controller on Viking and I have a working script but thought I would bounce it off of this crew since it seems like it isn’t very elegant.

Relay 1 applies 12v to the retract contact for my actuators and Digital Input 2 is a limit switch that closes when the wall if fully opened.

I couldn’t figure out how to use the “Repeat Block” command without causing an infinite loop, so I came up with this idea of nested blocks with a timeout as the trigger. Wall works 99% of the time but I do get the occasional freeze when one of the actuators doesn’t move in perfect sync.

As I said, it does seem to be working and the flow looks right to me but there has to be a better way.

At the very least, you have something to point at and laugh.

Another way to approach this is to use a counter as a boolean. Add your relay control and messaging as needed. I don’t have any way to test this, but I have 91.7% confidence it will work. Best of luck.

1 Like