RogueFab
Member
Cliffnotes- My program has a problem (I think). Can you help me find it? The program is ignoring a microswitch sometimes.
I have a very simple project that is running off a PLC. The PLC is a Kinco CPU506. It is a 120v input PLC with a modest number of channels and speed (more than I need of both). It has little 24V DC power supply built into it. This machine runs a cycle and returns to a home position where it gets cycled again and again to make parts.
I'm attaching a screenshot of the program and linking to the video of the machine running. I highlighted the area in the program where the problem occurs. The problem is a micro switch input that gets ignored by the program. The microswitch has been tested and is working by itself. Every 5-20 cycles the machine will blow right past the microswitch even though the contacts are showing that the switch is doing it's job.
I can only assume there is some kind of overlap or data counting or reset of some kind that is preventing it from allowing that channel to be used. Otherwise how is this possible?
I have checked my voltage and its 23.4 volts when I close the switch in question. So I don't think the voltage is varying and dropping too low for the PLC to sense on the problem cycles.
I welcome feedback on this program of ANY kind. If you can think of ways to drastically simplify or clean up the logic, your comments are welcome. Even if they don't address the problem directly.
also, you may notice, network 5 is at the end of the program. I arranged them all in a sensible easy to follow order after I wrote the program, and the program stalls whenever I move Network 5 from the end. I didn't think the display order had any impact on the way the program executes, so this is another very slight issue I would like help resolving, though it likely will not have any impact on functionality. This is a house-keeping concern.
Video of the machine running with the program/PLC:
https://www.youtube.com/watch?v=o0jlt0uz9oY
Here is the image of the program. If you would like to have the program file (it is a .KPR file, if you can use those and want it, let me know).
Here is the wiring diagram for the machine (motor contactor details omitted).
I have a very simple project that is running off a PLC. The PLC is a Kinco CPU506. It is a 120v input PLC with a modest number of channels and speed (more than I need of both). It has little 24V DC power supply built into it. This machine runs a cycle and returns to a home position where it gets cycled again and again to make parts.
I'm attaching a screenshot of the program and linking to the video of the machine running. I highlighted the area in the program where the problem occurs. The problem is a micro switch input that gets ignored by the program. The microswitch has been tested and is working by itself. Every 5-20 cycles the machine will blow right past the microswitch even though the contacts are showing that the switch is doing it's job.
I can only assume there is some kind of overlap or data counting or reset of some kind that is preventing it from allowing that channel to be used. Otherwise how is this possible?
I have checked my voltage and its 23.4 volts when I close the switch in question. So I don't think the voltage is varying and dropping too low for the PLC to sense on the problem cycles.
I welcome feedback on this program of ANY kind. If you can think of ways to drastically simplify or clean up the logic, your comments are welcome. Even if they don't address the problem directly.
also, you may notice, network 5 is at the end of the program. I arranged them all in a sensible easy to follow order after I wrote the program, and the program stalls whenever I move Network 5 from the end. I didn't think the display order had any impact on the way the program executes, so this is another very slight issue I would like help resolving, though it likely will not have any impact on functionality. This is a house-keeping concern.
Video of the machine running with the program/PLC:
https://www.youtube.com/watch?v=o0jlt0uz9oY
Here is the image of the program. If you would like to have the program file (it is a .KPR file, if you can use those and want it, let me know).
Here is the wiring diagram for the machine (motor contactor details omitted).