How to Enable Different Programs with Progstop and Progstart in Sysmac Studio

Question:

Hello everyone on the forum, and Happy New Year! I am seeking assistance with utilizing specific functions in Sysmac Studio to enable different programs based on digital input. Although I am able to stop a program using the "prog_stop" function, I am experiencing difficulties in enabling another program with the "prog_start" function. Whether I attempt to do so before or after stopping the initial program, I am encountering challenges. Can anyone provide guidance on this matter? Your help would be greatly appreciated. Thank you.

Top Replies

Could you please provide a screenshot demonstrating your approach? The code snippet should resemble the following: Out:=PrgStart('MyProgram', TRUE); (where Out is a BOOL tag). Are you referring to the entire program or just a specific section within it?

Hello and Happy New Year too! Make sure the program you're trying to start with "prog_start" has been appropriately downloaded to the controller and isn't already running. If you're trying to start it immediately after using "prog_stop" for another program, it could simply be a timing issue. You may need to introduce a delay or confirm the previous program's stop before initiating the next one. If the problem persists, checking your logic conditions and the PLC's program execution order would be beneficial. Hope you get it sorted out soon!

Hello and Happy New Year! I've faced a similar issue with Sysmac Studio before. It seems like you might be calling your "prog_start" function too quickly after "prog_stop". Your system might not have enough time to fully register the stoppage before it's asked to start the new program. What worked for me was adding a small delay between the stop and start functions, giving the controller a breather. Try deploying this method and see if it helps. Keep us posted!

Happy New Year! It sounds like you're on the right track with the `prog_stop` function, but I recommend double-checking the conditions under which you're trying to call `prog_start`. Make sure there isn't any lingering state from the previous program that might be causing the new one to not launch properly. Sometimes adding some delay or ensuring that all resources are properly released can help. Additionally, reviewing the documentation for any specific requirements or examples on transitioning between programs could shed some light. If you’re still having trouble, sharing the snippets of your code might help others provide more targeted advice. Good luck!

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.

To add a comment, please sign in or register if you haven't already..   

Frequently Asked Questions (FAQ)

FAQ: FAQs:

Answer: 1. How can I use the "prog_stop" function in Sysmac Studio to stop a program? - To stop a program using the "prog_stop" function in Sysmac Studio, you can call this function in your program code to halt the execution of a specific program.

FAQ: 2. How can I enable a different program using the "prog_start" function in Sysmac Studio?

Answer: - To enable another program using the "prog_start" function in Sysmac Studio, you can call this function to start the execution of a different program once the current program has been stopped.

FAQ: 3. What challenges might be encountered when trying to enable a program with the "prog_start" function after stopping an initial program?

Answer: - Challenges when enabling a program with the "prog_start" function after stopping an initial program could be related to sequence handling, program dependencies, or incorrect usage of the function within the logic.

FAQ: 4. Can you provide guidance on how to correctly use the "prog_start" function in Sysmac Studio to switch between programs based on digital input?

Answer: - To switch between programs based on digital input using the "prog_start" function, ensure that your logic handles the sequence correctly and that there are no conflicting instructions that might cause issues when enabling a different program.

FAQ: 5. How crucial is the order of operations when stopping and starting programs in Sysmac Studio using the "prog_stop" and "prog_start" functions?

Answer: - The order of operations when stopping and starting programs in Sysmac Studio using

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  β†’