Damian Posted July 15, 2011 Report Share Posted July 15, 2011 I just gave a class this morning on Unitronics/Visilogic and noticed that there is one common rookie mistake that seems to be made often with Visilogic. His problem, as he perceived it, was that he couldn't get his V130 to accept a numeric input. After fiddling around with his program a bit, and confirming that indeed the numeric input wasn't working, I started scanning through the ladder. Sure enough, he had used regular contacts to invoke HMI screen calls. The numeric input wasn't working because the screen call was being initiated every scan. This mistake seems to be common enough that it would be nice to maybe put some sort of warning at compile time if the logic sourcing the call does not contain a trasitional contact of some sort. I do realize that there are other methods of generating a one shot outside of using transitional contacts for HMI calls, and that it would be difficult to create a rule that would exclude all possible erroneous warnings for this, but I can't think of any other simple tests you can perform with Visilogic to help find this error. I still think it is worth some kind of warning as I have seen this cost many man hours by first time users. I also can't think of any good reason why you would ever want to call a screen in anything other than a one shot fashion. To this point, I think it should be considered to actually make the one-shot part of the call function itself. This way if someone invokes the HMI call it only invokes on the low to high transition of its enable input, and has to go from high to low again before you can re-invoke the call. There are other functions, such as for example the TCP init bocks, that may also deserve consideration for the transition being built into the block. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.