Sign in to follow this  
Followers 0
waus

Resetting a SFC program

9 posts in this topic

Hello, I'm building a program for a FX1N PLC with 4 SFC programs in four different tasks. One SFC progam in a task. Now I want to reset a single SFC (so that it starts from the initial step) from a task other then the ones running a SFC program. I'm programming it with GX IEC Developer 6.01 ES2. I'm aware of the existens of a variable with !RESET! as comment but when i declare it as a global var and set this var, it will reset all the SFC programs so that's not an option. I also tried resetting the state coils of the SFC I want to reset, but then I get a compiler error with the message "Access to system adresses is denied" so that doesn't work either. Does anyone know how I can do this?

Share this post


Link to post
Share on other sites
doesn't anybody know? Or is it a really stupid question?

Share this post


Link to post
Share on other sites
waus, Your questionis valid. I have personally no experience programming in SFC in GX IEC. I did check out the !RESET! address, but this is only described as emergency stop of all SFC programs. If it maybe possible to add a parallel branch which always executes. When your "exit" conditon occurs, jump to the end block, which in turn should call up the initial step??? Don't know if what I'm saying (typing) makes sense? I am sure there are experts on SFC here which will assist you. Regards, WayneS

Share this post


Link to post
Share on other sites
Sorry, can't help. Have never needed to or wanted to programme in SFC. Stepladder (STL) no probelm, but not SFC

Share this post


Link to post
Share on other sites
GX IEC Developer is not actively marketed here in the US, since use of IEC programming is not that widespread here. I've never had a chance to work with it. Sorry.

Share this post


Link to post
Share on other sites
Hi waus Im using GX Developer. but I don't know differences betwen GX and GX IEC. Im using zrst ?nstruction.Firstly I build a general Control near the SFC blocks which is writing in ladder.And for example Im writing -||--------------[ZRST S0 S100] this instruction is resetting the first 100 steps

Share this post


Link to post
Share on other sites
hey cauchy, I tried the zrst instruction in a ladder diagram, but then I get the message "Access to system adresses is denied" like I said in my start post. What do you mean with "I build a general Control near the SFC blocks"?

Share this post


Link to post
Share on other sites
waus, Post your program for us. Maybe one of us will be able to figure out a way to do what you require??

Share this post


Link to post
Share on other sites
I ve post an example about blocks.There are 2 blocks. One of them is SFC and other is ladder. Ladder is General Control. Im using ZRST instruction in this ladder and its resetting SFC's steps. general_control.bmp

Share this post


Link to post
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
Sign in to follow this  
Followers 0