How to Effectively Restart an RSLogix 5000 Controller for First Scan Logic Testing

Question:

Hello, I’ve been exploring the knowledge base but haven’t yet found the right keywords to clarify my query about restarting the controller. I’m currently working with an L7 CPU and am focused on testing the program initialization logic, specifically the S:FS first scan bit. The only method I’ve discovered to effectively restart the controller and ensure that S:FS is set on the first scan is to go offline and perform a full download. This process is time-consuming, especially since no logic changes have been made. What I need is a way to restart my program from the first scan without unnecessary downloads or power cycling the system. Is there an alternative option to stop, reinitialize, and then restart the controller from the first scan? Thank you for your assistance.

Top Replies

To optimize your remote control setup, ensure that the CPU key is configured to Remote-Run Mode. If it isn't already set, utilize the Online software to transition the controller into Program Mode before switching it back to Remote Run. Please note that the S:FS status will be valid for one scan when you restart the Remote Run mode.

Excellent! Thank you so much!

Regarding program initialization, I have an additional query. How can I distinguish between a PLC power cycle and a complete download? In my understanding, a complete download occurs when I go offline in RSLogix and execute a full download, which involves switching the CPU mode from Program to Remote Run. After completing a full download, I intend to initialize my tags. Conversely, during a power cycle, I do not want my tags to initialize. From what I've gathered, in both scenarios—a full download as previously outlined and a power cycle—the S:FS (First Scan Status) is set during the first scan. Is there another internal bit or indicator that can inform me when the PLC has just undergone a power cycle? This rephrased version maintains the original meaning while enhancing clarity, uniqueness, and search engine optimization (SEO) through the use of relevant keywords.

Understanding the controller's operating system may seem complex at first, but it provides valuable insights into its functionality. For additional learning, consider exploring the Forum for Ron Beaufort's engaging ad-hoc lectures on the pre-scan process. Within the Logix operating system, there exists a feature known as the "Power Up Handler," which triggers only during the power-up sequence. This feature faults the controller with a designated power-up fault code, allowing you to reset the fault and implement any additional actions you deem necessary in the Power-Up Program. You can find detailed explanations in the fault handling programming guide available here: [Rockwell Automation Programming Guide](http://literature.rockwellautomation.com/idc/groups/literature/documents/pm/1756-pm014_-en-p.pdf). A simple approach could involve resetting the power-up fault and setting a BOOL tag for **PowerUp_First_Scan**. This method enhances your understanding of power-up sequences and fault management in Logix systems.

I opted for a straightforward approach by configuring a tag within the Power-Up Handler, successfully enabling power-up detection for my system. I was initially unaware that the program wouldn't restart automatically following a power cycle. However, I integrated the auto-acknowledge routine as outlined in the documentation, and now my program can autonomously recover after a power cycle. Interestingly, I remember experiencing different behavior when using a redundant CPU; it appears there were no significant faults after the power cycle, allowing the program to resume normal operation without requiring additional code to clear any errors. Thank you for the valuable insights!

It sounds like you're in a tricky spot with needing to test the first scan conditions without the overhead of a full download. One alternative you might consider is using a combination of reset commands or a specific routine in your program to simulate a first scan without going through the entire download process. Some controllers have features that allow you to reset the CPU state or specific tags, which might help trigger the S:FS bit without a full cycle. Double-check your controller's manual for options like a "soft reset" or "program reset" that could help streamline your testing. Good luck!

It sounds like you're in a bit of a tight spot! One option you might consider is using the “Reset” command within the programming environment, which can sometimes allow you to reinitialize the logic without the need for a full download. Depending on your specific setup, you may also want to check if there’s a way to trigger a "soft reset" or use any built-in diagnostic features that simulate a first scan without going offline. These methods can save you time and help avoid the hassle of power cycling or full downloads. Good luck, and I hope you find a more efficient solution!

More Replies →

Streamline Your Asset Management
See How Oxmaint Works!!

✅   Work Order Management

✅   Asset Tracking

✅   Preventive Maintenance

✅   Inspection Report

We have received your information. We will share Schedule Demo details on your Mail Id.

You must be a registered user to add a comment. If you've already registered,
sign in. Otherwise, register and sign in.

Frequently Asked Questions (FAQ)

FAQ: Q1: What is the purpose of the S:FS first scan bit in RSLogix 5000?

Answer: A1: The S:FS (First Scan) bit in RSLogix 5000 is used to identify the first scan cycle of the controller after it has been started or restarted. It allows programmers to execute specific initialization logic that should only occur once when the controller begins executing the program.

FAQ: Q2: How can I restart an RSLogix 5000 controller to set the S:FS bit without performing a full download?

Answer: A2: To set the S:FS bit without performing a full download, you can try placing the controller in Program mode and then back to Run mode. This action should trigger the first scan logic without the need to download the program again or power cycle the controller.

FAQ: Q3: Is there a way to test program initialization logic in RSLogix 5000 without power cycling the system?

Answer: A3: Yes, you can test program initialization logic by switching the controller between Program mode and Run mode. This approach will reinitialize the program and set the S:FS bit, allowing you to test the initialization logic without power cycling the entire system.

Ready to Simplify Maintenance?

Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.

Request Demo  →