vpotanka Posted March 30, 2023 Report Share Posted March 30, 2023 Hi, I have an issue with Unilogics Set Coil. It won't stay high even when I have no other instances of the tag in the program. I thought it was just the display being glitchy so I added a counter to verify. It deenergizes then reenergizes with every cycle. I've attached a very simple program for you to see the issue. This is pretty serious. How am I supposed to write a basic program? Thanks. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted March 30, 2023 MVP 2023 Report Share Posted March 30, 2023 Moved to the UniLogic Software forum. 3 hours ago, vpotanka said: It deenergizes then reenergizes with every cycle. What do you mean by this? Link to comment Share on other sites More sharing options...
Fernando Castro Posted March 30, 2023 Report Share Posted March 30, 2023 1 hour ago, vpotanka said: Hi, I have an issue with Unilogics Set Coil. It won't stay high even when I have no other instances of the tag in the program. I thought it was just the display being glitchy so I added a counter to verify. It deenergizes then reenergizes with every cycle. I've attached a very simple program for you to see the issue. This is pretty serious. How am I supposed to write a basic program? Thanks. just to clarify, on this screenshot rung 2 its continuously counting... I believe that you intended to count only if FirstScanBit changes from false to true. In that case the correct logic is to use a positive transition contact: ------|p|--------[Add]----- 1 Link to comment Share on other sites More sharing options...
Gabriel Franco Posted March 30, 2023 Report Share Posted March 30, 2023 Maybe the funtion where you have this code, is not being called anywhere. Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted March 30, 2023 MVP 2023 Report Share Posted March 30, 2023 I assure you the Set Bit works. If you want to upload your program we can have a closer look. On an unrelated and irrelevant personal note, I totally love the name of your company - Your logo matches the radio I have on my desk: Is there an antique radio fan in your organization? Joe T. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted March 30, 2023 MVP 2023 Report Share Posted March 30, 2023 By the way, @vpotanka, there is a first scan bit built into UniLogic. It's called "Ladder Initial Cycle" and can be found in the system "General" struct. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now