Well drbitboy, I got your code typed out and did a test run just turning the turret by hand. well with a small piece of pipe as it takes a little force. Just to make sure I didn't type something wrong and screw it up. I used your last post as the reference.
I input a number for DS1 and added a start button so i can manually trigger the program with a limit switch. Occasionally it would fire the CCW relay for some reason. That could have been just a bug after writing to the PLC. I feel like it was.
I would input a number, hit the switch but it wouldnt release the brake to start turning CW. So i modified the last rung of code to let it unlock the brake when CW was true. It didnt trigger the solenoid to stop at any location. I'm sure its nothing and a NC should be a NO or somthing. I didnt have a lot of time to troubleshoot it tonight as i didnt get in from work until late this evening and have to be back on the road early in the morning.
I did however input a 1 for ds1 and turned the turret, it didn't trigger the solenoid so i stopped on what i know is POS 1. tried to trigger the program again and it wouldnt proceed. So it recognizes the position which is why i feel like it is something petty.
I input a number for DS1 and added a start button so i can manually trigger the program with a limit switch. Occasionally it would fire the CCW relay for some reason. That could have been just a bug after writing to the PLC. I feel like it was.
I would input a number, hit the switch but it wouldnt release the brake to start turning CW. So i modified the last rung of code to let it unlock the brake when CW was true. It didnt trigger the solenoid to stop at any location. I'm sure its nothing and a NC should be a NO or somthing. I didnt have a lot of time to troubleshoot it tonight as i didnt get in from work until late this evening and have to be back on the road early in the morning.
I did however input a 1 for ds1 and turned the turret, it didn't trigger the solenoid so i stopped on what i know is POS 1. tried to trigger the program again and it wouldnt proceed. So it recognizes the position which is why i feel like it is something petty.