Deswin Posted May 22, 2017 Report Posted May 22, 2017 Hello folks!! I recently researching about how subroutine works in OMRON PLC because i want to apply in my project. So I make a example ladder diagram of subroutine and I dont know whether the ladder diagram is right or wrong. Please any PLC expert and pros can correct me. THanks for your concern guys
Jay Anthony Posted May 23, 2017 Report Posted May 23, 2017 This ladder is appropriate for calling Subroutine 0.
Deswin Posted May 24, 2017 Author Report Posted May 24, 2017 22 hours ago, Jay Anthony said: This ladder is appropriate for calling Subroutine 0. is the subroutine ladder diagram is correct. Another thing is what happen if is make subroutine with value 1
Jay Anthony Posted May 25, 2017 Report Posted May 25, 2017 Quote Another thing is what happen if is make subroutine with value 1 The SBS 1 must come before the SBN 0. It will be ignored if placed below any SBN.
Deswin Posted May 25, 2017 Author Report Posted May 25, 2017 6 hours ago, Jay Anthony said: The SBS 1 must come before the SBN 0. It will be ignored if placed below any SBN. What does that mean? I can't understand. Does it the SBN come first then the SBS next
Jay Anthony Posted May 25, 2017 Report Posted May 25, 2017 All SBN's must be placed at the last of the program. Any ladder program after the first subroutine will be ignored.
Deswin Posted May 26, 2017 Author Report Posted May 26, 2017 14 hours ago, Jay Anthony said: All SBN's must be placed at the last of the program. Any ladder program after the first subroutine will be ignored. SO how is the subroutine works baes on the shown ladder diagram. When the first coil 10000 is energize,it also activate the SBS also the coil in 10001 can be turn on or off and the coil 10002 is skipped and return to the first SBS. Am I right about the operation 0f this ladder diagram.
Deswin Posted May 26, 2017 Author Report Posted May 26, 2017 16 minutes ago, Jay Anthony said: Yes/ let say im about to runt eh cycle unlimited times and then stop for another operation like turn on the 10002 coil. SO what instruction should I used?
Deswin Posted May 27, 2017 Author Report Posted May 27, 2017 16 hours ago, Jay Anthony said: You obviously need local integrator help. I'm still noob on this CX programmer and the instructions. Im only know how to use some instruction but not the complicated one. Searching from you guys like pro can teach good experience :) :) :)
Jay Anthony Posted May 27, 2017 Report Posted May 27, 2017 You are on the wrong track with when to use subroutines and your latch circuits have no release contacts. Many programs can be established without using functions. How do you think we did it when there were no functions? What model PLC are you targeting? Are you using CX Simulator?
Deswin Posted May 28, 2017 Author Report Posted May 28, 2017 6 hours ago, Jay Anthony said: You are on the wrong track with when to use subroutines and your latch circuits have no release contacts. Many programs can be established without using functions. How do you think we did it when there were no functions? What model PLC are you targeting? Are you using CX Simulator? I'm using OMRON CP1E. What I mean is i try to make a subroutine program that I want the ladder diagram repeat the process again. until it reaches another rung to stop the loop process.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now