Jump to content

Direct store problem


Recommended Posts

I have making app for plc v570 but for some reason direct store  dont get value as you can see everything is good  but i don't understand why don't assign the value if i make some error can you explaing me pls. in the image you can see on net 96 the value is assigned but in 97 must change the value an cont change nothing.

 

storefails.png

Link to comment
Share on other sites

  • MVP 2023

Try seeing what is actually happening by doing an STL View of the network - right click on the network number itself and select "STL View" from the drop-down menu.

Often Visilogic will re-compile a large network and create local internal bits to run the logic.  You'll know it's doing this if you see LB 0 in the resulting statement list.  This is a downside of what Visilogic allows you to do by stacking outputs in series - it doesn't always work the way it looks like it should.  

The previous posts are probably correct - the PLC is probably solving mini-rungs and your reset of MB 49 has killed your STO block.

Joe T. 

  • Upvote 1
Link to comment
Share on other sites

  • MVP 2023

Just move the MB 49 Reset to the next rung gated by the MI 1 comparison. There is no reason to try to cram too much logic into a single rung. Unitronics will not charge you by the rung. :)

It's always better to break up outputs to have a single one for each rung to avoid large network compile problems.

  • Upvote 1
Link to comment
Share on other sites

  • MVP 2023
On 01/11/2016 at 0:13 AM, Flex727 said:

It's always better to break up outputs to have a single one for each rung

And here I was thinking I was old-fashioned in sticking to this routine.  Glad to see someone else always does this!

And thanks Joe for the STL View explain about recompiling.

cheers,

Aus

Link to comment
Share on other sites

19 hours ago, Ausman said:

And here I was thinking I was old-fashioned in sticking to this routine.  Glad to see someone else always does this!

And thanks Joe for the STL View explain about recompiling.

cheers,

Aus

I usually try to stick to one rung, one output.  Sometimes I get lazy, sometimes I don't.  The only way to guarantee your program works as intended is to do it every time.

We had a very weird issue once with a PLC controller test station that popped up after a software update with another manufacturer.  Turns out their compile routines changed slightly on how they processed the logic, which changed the order of the final program execution.  I've also seen the same issues when duplicating programs across two different manufacturers.

 

You are not alone.

 

Link to comment
Share on other sites

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.