Sign in to follow this  
Followers 0
Guest student

STEP; SNXT

8 posts in this topic

hi Enclosed a programmed traffic light . The red light doesnt come. I surmise the HR area wasnt allocated right, even though i have downloaded the HR area from the data view editor to the PLC. Has a 1 to be set anywhere in the binary data view editor (eg 100000000000000) ? Thanking you in anticipation! traffic.doc

Share this post


Link to post
Share on other sites
Is that all there is to your ladder? Is there any END function? Are there any other steps? Why are you SNXT to 0000.01? Your step sequence is using HR0 as the Step word. If you use 253.13 (Always On) you will never leave step HR0000.00. If you have more ladder, please zip the CXP file and post it.

Share this post


Link to post
Share on other sites
hello Jay Well, i tried instead always_on a normal input, but i couldnt leave the 1st SNXT.I dont think always_on is the problem here ( i wanted a cyclic step programe).I rather think the problem lies with the HR area since i cant switch to the next step. Attached is word.doc and the syswin ladder. NB: i dont know what to do without you *hugs* Edited by student

Share this post


Link to post
Share on other sites
OK. You were definitely on the right track. You just got bitten by the HR bug. HR relays are battery backed and retain their status on power down. Apparently in your debug stage, you left an HR bit on all the time and there was no way to turn it off including power down. I have put a MOV statement at the top of your ladder which should take care of getting two HR bits on at the same time. I also used the first scan flag to start your sequence on power up. Other than that, you understand the concept of Step/Snxt. A traffic light (with apologies to PLCs.net) is an excellent use for Step sequences. I will post the code in the following post.

Share this post


Link to post
Share on other sites
Heres the ladder code: TRAFFIC1.SWP

Share this post


Link to post
Share on other sites
hi there yes it works. maybe it works too good now i cant stop the sequence @ the PLC.It runs and runs.... there must be a reset switch ?

Share this post


Link to post
Share on other sites
How about a enable switch in the first Step? Use Input 0.00.

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