jonfarrugia
Member
I'm working on a project that is using a virtual axis to control a hydraulic cylinder and a proportioning valve.
Originally the hydraulic PID Position was controller via the virtual axis. We have had to modify the controls. When the cylinder is commanded to move we issue a MAM to the new position but depending on the distance to the target we may go to an open loop control. So basically there is a closed loop control that uses the Virtual Axis and an open loop control. When the open loop control gets close to the target, we move to a close loop control. The issue I'm having is that during open loop control, the cylinder moves faster then the virtual axis is commanding. So when I am within tolerence of the target position and switch back to closed loop via the virtual axis, the trajectory generator takes awhile to catch up before it says the move is complete.
I'm looking to find a way to change the virtual axis trajectory to equal the target position which in turn should cause the MAM to be Done and hold the target position.
Originally the hydraulic PID Position was controller via the virtual axis. We have had to modify the controls. When the cylinder is commanded to move we issue a MAM to the new position but depending on the distance to the target we may go to an open loop control. So basically there is a closed loop control that uses the Virtual Axis and an open loop control. When the open loop control gets close to the target, we move to a close loop control. The issue I'm having is that during open loop control, the cylinder moves faster then the virtual axis is commanding. So when I am within tolerence of the target position and switch back to closed loop via the virtual axis, the trajectory generator takes awhile to catch up before it says the move is complete.
I'm looking to find a way to change the virtual axis trajectory to equal the target position which in turn should cause the MAM to be Done and hold the target position.