Hello everyone, I'm currently exploring the most effective approach for my project. In simple terms, I need to create a PLC program for an automated band saw that utilizes a mechanical crank for material shuttle measurement. The band saw has a maximum travel distance of 25 inches, meaning that for cutting a 50-inch part, the shuttle needs to be set to 25" and the shuttle operation must be repeated in the PLC program. I am working with RSLogix 5000 version 20.04 and an older CompactLogix AB PLC. If anyone has suggestions on the optimal method to achieve this, I would greatly appreciate it. I am in the initial stages of developing the program and my plan is to first establish the manual routines before transitioning to automation using SFC. For instance, by utilizing the recipe function on our HMI to determine the required number of shuttle movements to position the part, which will then be stored as an integer in a tag. I am considering using structured text to execute the shuttle sequence by decrementing the number after each step, checking if it has reached 0, and repeating the process until it does before moving on to the next step, such as clamping the vice and cutting the material. While this specific task is new to me, I am confident that I can find a solution. However, I would appreciate input on the most efficient approach. If possible, providing an example would be extremely helpful.
If you have never attempted an SFC before, here are some steps you could try. If the length is less than or equal to 25, proceed to step 100. If the length is greater than 25 but less than or equal to 50, go to step 150. If the length is greater than 50 but less than or equal to 75, go to step 200. Step 100 involves incrementing the required length, clamping, cutting, and preparing for the next cut. There are multiple steps involved in this process. In step 150, you increment by 25 inches, clamp, retract, adjust to the correct length, clamp, cut, and prepare for the next cut. Step 200 involves incrementing the length three times. It is crucial to document everything and include plenty of comments. Maintenance personnel must fully understand the program, troubleshooting techniques, and issue resolution to avoid receiving calls at night, weekends, or during vacations. I hope these instructions are helpful for you.
If you're looking to enhance your skill set using a ladder, ST & SFC, there's no need to overcomplicate things. Keep it simple by practicing your skills on experiments rather than real projects, as suggested by James. One approach is to base the part length on multiples of 25. To determine the number of shuttles needed, divide the required length by 25. For instance, a length of 25 would require 1 shuttle, 50 would require 2, and so on. Each shuttle operation reduces the shuttle count until it reaches 0, at which point the part is cut. Here's a basic outline: - Step 0: IDLE - Step 10: Divide the length by 25 and store in the tag "Shuttle_amount" - Step 20: If "Shuttle_amount" > 0, go to step 30, else go to step 50 - Step 30: Call shuttle routine, decrease "Shuttle_Amount", return to step 20 - Step 50: Call clamp & cut routine - Step 200: Return to step 0 or 10 for repeats This simple program focuses on coordinating movements without specific logic for controlling outputs. It assumes that actual movements will be handled in separate routines. Alternatively, you can use the step numbers to manage everything in a single program block, which may be more convenient for the maintenance team. Incremental adjustments can be made as needed, with a minimum increment of 10 typically recommended to allow for flexibility in adding steps.
When engaging in a learning activity, consider utilizing Sequential Function Chart (SFC). However, for straightforward sequences, SFC may be excessive and cumbersome. Experiment with constructing linear sequences in ladder logic (a template may be available on the forum) to become familiar with their appearance.
James Mcquade emphasized the importance of thorough documentation and abundant comments in code for seamless maintenance. It is vital for maintenance staff to be well-versed in the program to effectively troubleshoot and fix issues to avoid late-night or weekend calls. Following James' advice, incorporating a string output in the logic can provide operators and maintenance personnel with clear insights into the process, facilitating self-troubleshooting and issue resolution when necessary.
Calculating the number of steps or using multiple IF-ELSE-IF clauses may not be necessary in this scenario. Instead, it is recommended to streamline the process by coordinating the movement of the saw and shuttle simultaneously. At step 0, ensure the saw and shuttle are fully retracted. Once both components are retracted, proceed to step 5 where inputs are awaited and parameters such as total cut length (TCL) and cut length per shuttle (CLPS) are set. Pressing the start button with TCL and CLPS values greater than 0 will advance the process to step 10. In step 10, the system will determine whether to stop or move to the next cut based on the TCL value. If TCL is less than CLPS, CLPS will be adjusted accordingly before advancing to step 20. During step 20, the saw is advanced by CLPS for the cut. After completion, move to step 30 where the saw is retracted, and TCL is decremented by CLPS. If TCL reaches 0, transition back to step 0. Proceed to step 40 to advance the shuttle for the next cut or finalize the process. Consider implementing a non-functional step 200 as a buffer at the end to prevent skipping functional steps. Additionally, having separate tags for total cut length and cut length per shuttle can streamline communication between the HMI and logic control. Be prepared to handle invalid operator inputs, physical malfunctions, and external emergency stops within the code for a seamless operation.
Hey there! You seem to be on the right track with your project. I'd definitely recommend structured text as well for your application - it makes the whole process of incrementing/repeating sequences a bit easier to handle. In terms of efficiency, consider adding an error-checking step in your sequence. This could look like a routine that gets called after each shuttle operation which checks if the part is correctly positioned before moving on. In case of any misalignment, the PLC could either attempt a correction or halt the process for manual intervention. A time-delay for double checking the shuttle position could also be beneficial, ensuring the shuttle has complacently stopped before the check is conducted. This approach saves material by securing precise cuts and prevents damage to the machine.
Sounds like you're on a good path! One suggestion for your PLC program could be to take advantage of the LOOP and END_LOOP instructions when constructing your sequence. Looping can be used to control the shuttle movements as a function of the tag value you'd be storing. It can check the tag value at the start of the loop and decrement it until it is zero. It's a more elegant and manageable approach compared to using structured text, and makes your code easier to understand and debug. Additionally, you might consider using CASE instructions to control the different states of your system—such as moving, clamping, and cutting. This would allow your PLC code to be more organized and efficient.
It sounds like you're on the right track with your plan to first establish manual routines before diving into automation. Using structured text for the shuttle sequence seems like a solid approach, especially for controlling the decrementing integer for the number of movements. You might also consider using a FOR loop, which could simplify your code by automatically handling the counting for you. Additionally, don't forget to include error-checking to prevent any issues if the movement exceeds the 25-inch limit. For the recipe function, it could be helpful to store both the total required movements and the current position as separate tags, so you can easily manage and debug the shuttle's state. Good luck with your project!
✅ Work Order Management
✅ Asset Tracking
✅ Preventive Maintenance
✅ Inspection Report
We have received your information. We will share Schedule Demo details on your Mail Id.
Answer: - The PLC program is needed to control the shuttle movement of a band saw equipped with a mechanical crank for material measurement.
Answer: - The band saw has a maximum travel distance of 25 inches.
Answer: - The program is being developed using RSLogix 5000 version 20.04 and an older CompactLogix AB PLC.
Answer: - The approach being considered involves utilizing structured text to execute the shuttle sequence by decrementing a number after each step until it reaches 0, then moving on to the next step in the process.
Answer: - The plan is to first establish manual routines and then transition to automation using Sequential Function Chart (SFC) methodology, potentially by utilizing the recipe function on the HMI to determine the required number of shuttle movements.
Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.