i have a grinding machine tool mounted on a sliding device attached to the c axis.
grinding pressure is actuated by a pneumatic cylinder controlled by a 0-10v proportional valve that want to control with the pwm signal
depending on the work piece shape, the grinding unit may be in any position (c-degree).
when it is in 12' position (90deg) the weight of the whole grinding unit gives a perfect pressure,
at 3' position gravity has no effect so i need to add about 2.8v to the valve in order to maintain proper grinding pressure.
at 6' position gravity works in negative direction and i have to compensate for both the grinding unit weight and add the grinding pressure (totaly about 4.5v)
so i want to use the pwm signal as a "gravity compensator/grinding pressure control".
the pwm signal has to be constantly on to keep the pneumatic cylinder at max out position so that the grinding unit doesnt float uncontrolled or it will slam into the opposite end as the c-axis turns.
the problem i had was that when the homing switch was tripped (my c-ref switch is placed in 12' position) the m3/pwm signal/cylinder pressure was cut out, and the sliding unit just dropped uncontrolled. i solved that now by setting up the switch as a probe instead of limit and i wrote a special c-axis homing script
anyway,
now i need to figure out a way to constantly pump out a s-value that is based on the current c-value
can i use a brain for that?
any advice would be highly appreciated
js