CobryWZL Posted April 27, 2020 Report Posted April 27, 2020 Hi, in my current project I have a button on my touchscreen. If this button is pressed, MB33 is set and afterwards MB 10 should be set too. But, as you can see in the image below, the execution of the net stops before MB10. Basicly I copied this structure out of this tutorial : https://www.youtube.com/watch?v=8RyFPPE3Hdk&feature=youtu.be&t=572 In the tutorial they use the same sequence of contact and coil to turn a "LED" on the touchscreen on and off. Any ideas, why it doesnt work for me?
AlexUT Posted April 27, 2020 Report Posted April 27, 2020 Please check where in Ladder this MB is reset. 1
MVP 2023 Flex727 Posted April 27, 2020 MVP 2023 Report Posted April 27, 2020 Search your project for MB 10. If there is an MB 10 coil elsewhere it could be overriding. The other likely possibility is that this ladder net is in a subroutine that is not being called by the Main Routine. 1
CobryWZL Posted April 27, 2020 Author Report Posted April 27, 2020 Ah, okay. The ladder is in a subroutine. I thought the buttonclick would call it. So i have to call it in the main routine and the button click is just a condition for the further execution of the net? An why turns MB33 red when its not called?
MVP 2023 Flex727 Posted April 27, 2020 MVP 2023 Report Posted April 27, 2020 50 minutes ago, CobryWZL said: An why turns MB33 red when its not called? That is just something VisiLogic does when it's online with the PLC. It's not actually following the logic of your program - it is only checking the value of each operand and displaying it on the screen. 1
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