Looping a Program in Xinje PLC

@drbitboy @parky
However, I was able to successfully execute both my main program and the homing program using flows (STL), which I have attached herewith. So that the main program is in STL 2 and the homing is in STL 1. Whenever, home sensor X2 is engaged; the program executes only the main program (S2) in a loop without any issue.

When X2 is not engaged the program (S1) homes the linear guide with the scissor, which is powered by the stepper motor. However, there is a tiny issue here. I feel as this is the final piece of my puzzle. S2 has to be triggered by S1 after homing. Now, until I restart the machine, after S1 has finished executing, S2 will not execute. I have tried using memory bits and timers but no luck. If you have got any idea in connecting S2 after S1, please do let me know.

@drbitboy Sorry that I am not aligning to your method immediately. This is because of the deadline I have to meet. For me to completely understand your RSLogix program and to match it with Xinje IDE it will take some time which I am currently struggling to find. I have already taken printouts of the program you have sent me and will definitely write it in Xinje during my free time in the days to come.

P:S: And thanks for introducing me to rubber duck debugging šŸ˜Š. I am now having my cute little panda šŸ¼ clung to the lid of my laptop to whom I am explaining the my code whenever I am stuck and has proven to be very useful during the past couple of days.
 

Attachments

  • PLC 1 with STLs.pdf
    118.9 KB · Views: 1

Similar Topics

hi people, i m new to Siemens S7 300 PLC. i wrote a ladder traffic light programme with just three LED's. my program runs well for all LED's but...
Replies
1
Views
1,824
Hi.. I would like to seek your help in one PLC program. I am currently doing a pick and place PLC program using FPWIN GR program. Everything...
Replies
2
Views
3,613
Looping program All, Any help here is appreciated.... Trying to use a AB Micrologic 1000 to simulate inputs to another machine to dry run it...
Replies
2
Views
1,732
Hello, I am programming a ladder routine that finds a part on a conveyor that has a given part number. I am having no problem finding the part and...
Replies
1
Views
1,908
I've got several ListBoxes that I want to perform the same function on. From my searches, you can accomplish this in VBA by using a FOR loop, but...
Replies
4
Views
2,888
Back
Top Bottom