Automate Test Stand Motor Sequences with Click PLC: Looping Instructions for Multiple Cycles

Question:

I am a beginner in using a Click C0-02DD1-D to operate a test stand. The task is to activate the motor for a specific duration, then pause before running the motor in reverse for another set duration, and repeat this process multiple times. I have successfully set up a sequence of timers and a counter, but I am struggling to loop back for multiple cycles. Currently, I can only run one cycle at a time by using a physical push button. In addition to the timers, I also require a continuous output (Y3) and analog voltage (AD1V) throughout all cycles. My PLC setup includes hardwired switches and indicator lights, but I plan to incorporate a C-More HMI in the final test stand. I would greatly appreciate any assistance with this project, as I aim to automate several test stands in the future. The program in progress is attached.

Top Replies

Utilize an integer to track your progress and easily navigate through the steps. For example, if you are at step 0 and press the blue button, move to step 1. Follow this sequence: if step = 1, activate timer1; if step = 2, activate timer2; if step = 3, activate timer3; if step = 4, activate timer4; if step = 5, increase the counter. Once each timer is complete, progress to the next step accordingly. When the counter is complete, return to step 0, otherwise return to step 1. In step 1, initiate the motor, and so on.

Before posting, I was beaten to it! If you have a set sequence that remains consistent, implementing a state/step based routine is a clean and effective approach. This method not only simplifies troubleshooting but also makes it easier to make changes in the future. Start by clearly defining your States/Steps in plain language: 0: Waiting to begin 1: Reset count 2: Activate forward motor for X seconds 3: Deactivate and wait for X seconds 4: Activate reverse motor for X seconds 5: Deactivate and wait for X seconds 6: Increase count 7: If count reaches XX, go back to state 0 - Otherwise, proceed to state 2. Consider combining some of these steps to streamline the process and reduce the number of states.

Thank you for the prompt response, Cheeseface. I'm a bit unsure about your instructions regarding the steps. Currently, my 4 timed cycles are functioning well, but I need to loop the sequence around 25 times. I am considering placing the timers in a drum that can then be repeated a certain number of times.

You were almost there, just one more branch needed: The CTD1 counter value mentioned by @CheeseFace and @Jeev is the crucial "step".

When it comes to achieving a goal, there are multiple strategies to choose from. The image provided illustrates the 4s+4s+4s+3s cycle using just one timer. Additionally, rungs 2-4 can potentially be streamlined by incorporating a single Drum instruction.

You seem to be making good progress with your PLC setup! To cycle through automatically instead of manually triggering with the push button, you might want to consider using an internal control relay. This relay behaves like your physical push button and can loop your sequences without the need for manual intervention. Start it off with your physical button, but then let the internal relay handle the rest of the process. Be sure to set conditions so that it turns off after your desired number of cycles. For the continuous output (Y3) and analog voltage (AD1V) throughout all cycles, you can attach them parallel with the main control relay to keep them active through the cycles. As you advance and incorporate a C-More HMI into your setup, you can replace the hardwired switches and indicator lights with more versatile functions on the HMI interface. Remember, PLC programming is a gradual process, so don't hesitate to experiment and continuously improve your program.

Hello, it seems like you're making good progress! For looping through multiple cycles, consider looking into the use of shift registers. By shifting a '1' through the register, you could trigger each step of your process in sequence, from starting the motor, to pausing, to running the motor in reverse. Now, to have this loop on its own without a physical button, you may need to implement an end cycle condition that feeds back into the start condition of your sequence. In terms of your need for a continuous output (Y3) and an analog voltage (AD1V) throughout the cycles, ensure they’re placed outside of the single cycle loop so they maintain their state independently throughout all cycles. Looking forward to seeing your final setup with the C-More HMI, 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: 1. How can I set up looping instructions for multiple cycles in my Click PLC to automate test stand motor sequences?

Answer: - To set up looping instructions for multiple cycles in your Click PLC, you can utilize a combination of timers, counters, and ladder logic programming. By incorporating loop logic in your program, you can automate the process of activating the motor, pausing, running in reverse, and repeating for multiple cycles.

FAQ: 2. What is the best way to incorporate continuous output and analog voltage requirements while looping motor sequences in a Click PLC?

Answer: - To maintain continuous output (Y3) and analog voltage (AD1V) throughout all cycles in your Click PLC program, ensure that these components are integrated within the loop logic. By updating the outputs and analog values within the loop, you can sustain the required signals during each cycle of the motor sequence.

FAQ: 3. How can I transition from using physical push buttons to incorporating a C-More HMI in my test stand automation project?

Answer: - To transition from physical push buttons to a C-More HMI in your test stand automation project, establish communication between the Click PLC and the HMI device. Configure the HMI to interact with the PLC program, allowing for user input, monitoring, and control of the motor sequences. Ensure seamless integration for a user-friendly interface in the final test stand setup.

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