gajtguy
Member
Hi folks. New to the forum, but been working with PLCs for several years now. Would like some advice on whether you would keep this logic, or craft a function block. Which is something I can't seem to wrap my head around.
Net result = I need %MW0 to be either a 0, 1 or 2 value for a two door salleyport (real doors, interlocked). This is so that an HMI display can show a normal mode (0), or both doors being opened is a violation (1) or they can change the mode so the salleyport is bypassed (2).
Right now I'm using 3 rungs for just 1 Sallyport. The job has 5 total. So would a function block be cleaner/better? Or is this 3 rung logic just fine?
.
Net result = I need %MW0 to be either a 0, 1 or 2 value for a two door salleyport (real doors, interlocked). This is so that an HMI display can show a normal mode (0), or both doors being opened is a violation (1) or they can change the mode so the salleyport is bypassed (2).
Right now I'm using 3 rungs for just 1 Sallyport. The job has 5 total. So would a function block be cleaner/better? Or is this 3 rung logic just fine?
.