timL
Member
I need help to program a CPM2C-20CDTC-D to drive a step motor and a air cylinder.
The process is simple, but I have not done any ladder programming before, any help will be appreciated.
inputs: push button momentary switch for "on"
optoelectric sensor for motor "home" position
possible 2 limit switchs for air cylinder position
output: 24v signal to pneumatic valve1
24v signal to pneumatic valve2
a pulse train to a step motor drive
signal for motor enable/disable
process:
1. start when "on" button is pressed, latch on
2. set pulse frequency (speed) and pulse counter steps)
3. step motor homing
4. set counter n=18
5. while counter n>0
6. delay 1 sec
7. switch on valve1 to push a part into position
8. delay 10 sec
9. switch off valve1
10. switch on valve2 to retreive the part
11.delay 1 sec
12. send a pulse train to step motor drive
to turn the motor 20 degree
13. counter n=n-1
14. loop back to 5
15. when n=0, release latch, stop.
may be some indicator lightson off can be added. I hope some one have more experince can help me out. Thank you for reading.
The process is simple, but I have not done any ladder programming before, any help will be appreciated.
inputs: push button momentary switch for "on"
optoelectric sensor for motor "home" position
possible 2 limit switchs for air cylinder position
output: 24v signal to pneumatic valve1
24v signal to pneumatic valve2
a pulse train to a step motor drive
signal for motor enable/disable
process:
1. start when "on" button is pressed, latch on
2. set pulse frequency (speed) and pulse counter steps)
3. step motor homing
4. set counter n=18
5. while counter n>0
6. delay 1 sec
7. switch on valve1 to push a part into position
8. delay 10 sec
9. switch off valve1
10. switch on valve2 to retreive the part
11.delay 1 sec
12. send a pulse train to step motor drive
to turn the motor 20 degree
13. counter n=n-1
14. loop back to 5
15. when n=0, release latch, stop.
may be some indicator lightson off can be added. I hope some one have more experince can help me out. Thank you for reading.