Jump to content

Recommended Posts

Posted

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?

grafik.png.dc127eddfec4589f0dacfe649bfa5cb5.png

  • MVP 2023
Posted

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.

  • Like 1
Posted

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
Posted
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.

  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.