trellend
Industrial
- Aug 4, 2015
- 18
I've got the ram moving forward to limit switch (based on physical user switch), then when switch is reversed, ram goes back to starting limit switch, as long as user holds in the switch.
[ ]-[/]-( ) Easy
I'd like to automate this so a momentary switch makes it latch, drive to limit, pause, then fire the other valve to bring it back to limit switch and stop.
I've seen how to latch
--------------[/Limit]--------------------(O)
| |
--[O]---------
I've been programming C/C++/C#/Pascal/ASM for ages, and I'm just trying to help some friends that have a dead machine. I went with the Click PLC, for cost. I've never done PLC, but have done quite a bit of micro controller work.
//Example if you wanted to scribble, or just plain comment about it is fine. I'm new to this.
X0 out limit
X1 in limit
X2 momentary user button
y0 Ram out
y1 Ram in
If anyone could explain the normal way this is done, I'd appreciate it.
I was thinking of just using a memory bit for each stage, switch sets bit (and master busy bit). Bit drives forward until limit, clears bit and sets new bit.
New bit triggers the reverse function to limit then clears bit and master busy bit.
Or is this typically done using a load of Or Not And logic only?
This is only the tip of the iceberg in this project, but if I can get some standard practices for readability, the rest is just more of the same.
Thanks
Charles
[ ]-[/]-( ) Easy
I'd like to automate this so a momentary switch makes it latch, drive to limit, pause, then fire the other valve to bring it back to limit switch and stop.
I've seen how to latch
| |
--[O]---------
I've been programming C/C++/C#/Pascal/ASM for ages, and I'm just trying to help some friends that have a dead machine. I went with the Click PLC, for cost. I've never done PLC, but have done quite a bit of micro controller work.
//Example if you wanted to scribble, or just plain comment about it is fine. I'm new to this.
X0 out limit
X1 in limit
X2 momentary user button
y0 Ram out
y1 Ram in
If anyone could explain the normal way this is done, I'd appreciate it.
I was thinking of just using a memory bit for each stage, switch sets bit (and master busy bit). Bit drives forward until limit, clears bit and sets new bit.
New bit triggers the reverse function to limit then clears bit and master busy bit.
Or is this typically done using a load of Or Not And logic only?
This is only the tip of the iceberg in this project, but if I can get some standard practices for readability, the rest is just more of the same.
Thanks
Charles