snaggletto
Member
- Join Date
- Jul 2004
- Posts
- 61
Hello,
This is my first serious PLC project. I'm self educated, and trying to build a servo driven cut to length machine for our shop.
I'm using AD DL05, and AD Sureservo system, and Directsoft 5 (100 word demo version). I also have a C-more micro touch screen to input the quantity of parts to cut, and to select each of the 8 position presets.
One of the control options on the Sureservo amp is to use the internal indexer (pulse generator). There are 8 position presets accessed by turning on a unique combination of 3 inputs on the amp itself.
I've included some of my code below. As it sits, the motor will feed one length, count, and then activate the cutter when the "Servo at postion" signal from the amp turns on input X4 on the PLC.
The basic functionality is there, but I have to manually, and repeatedly turn on then off contact C27 to keep looping the program up until my counter is met. In other words, Y2, Y3, and Y4 need to turn on momentarily, just to get the servo moving. Then they need to turn off. The material gets cut when the servo reaches it's preset position. Then Y2, Y3 and Y4 need to cycle on/off again for the next feed length and so on.
I think a timer might be the answer, but the example I've found seems to be an 'on delay' and doesn't look like it would do what I want. I know there is an easy solution, I just haven't figured it out yet. Any help would be appreciated.
This is my first serious PLC project. I'm self educated, and trying to build a servo driven cut to length machine for our shop.
I'm using AD DL05, and AD Sureservo system, and Directsoft 5 (100 word demo version). I also have a C-more micro touch screen to input the quantity of parts to cut, and to select each of the 8 position presets.
One of the control options on the Sureservo amp is to use the internal indexer (pulse generator). There are 8 position presets accessed by turning on a unique combination of 3 inputs on the amp itself.
I've included some of my code below. As it sits, the motor will feed one length, count, and then activate the cutter when the "Servo at postion" signal from the amp turns on input X4 on the PLC.
The basic functionality is there, but I have to manually, and repeatedly turn on then off contact C27 to keep looping the program up until my counter is met. In other words, Y2, Y3, and Y4 need to turn on momentarily, just to get the servo moving. Then they need to turn off. The material gets cut when the servo reaches it's preset position. Then Y2, Y3 and Y4 need to cycle on/off again for the next feed length and so on.
I think a timer might be the answer, but the example I've found seems to be an 'on delay' and doesn't look like it would do what I want. I know there is an easy solution, I just haven't figured it out yet. Any help would be appreciated.
activate cutter
|X4|-------------(Y0)
|-(C30)
count parts
|C30|-----------|----------|
| CNT CT2 |
| K5 |
|C31|-----------|----------|
|CT2|-------------(C32)
feed material
|C27|---|\C32|-----------(Y2)
|-(Y3)
|-(Y4)
Last edited: