turner15429
Member
I am currently trying to figure out how to program a machine that has a rack and pinion driven by a 7.5 hp gear motor and a Mitsubishi D700 series VFD. I have a AB Ethernet IP encoder hooked up directly to the pinion drive shaft for location feedback. The drive has 3 inputs controlling it forward and reverse and a 4-20ma for speed. The sled is driven back and fourth at a distance and speed set by the user. The acceleration time and deceleration time are pertinently set in the VFD. The 4-20 just sets the max speed. The pinion only rotates 20 times max and I only need to +or- an inch so this doesn't have to be extremely accurate. My plan was to just to switch my output from forward to reverse when the counter gets to a certain set point. The main problem with this is I don't know how to calculate how many revolutions I'm going to get on the deceleration so I can subtract that from the set point. Any guidance would be great!