How to Control a PWM Gripper

More
1 year 7 months ago #323538 by meister
i use M68 to control my rc-servo gripper's
so i can control it by gcode and for the gui i use mdi commands and a vcp gui with buttons to set some fixed positions

[HALUI]
MDI_COMMAND = M68 E0 Q-100
MDI_COMMAND = M68 E0 Q-75
MDI_COMMAND = M68 E0 Q0
MDI_COMMAND = M68 E0 Q75
MDI_COMMAND = M68 E0 Q100

www.youtube.com/shorts/Tp3savo-MGs

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #328935 by robocidalmaniac
Please do you have any more details on this?
How do you use the M68 to open?
How do you use the M68 to close?
Do you have M68 (number value)?

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #328940 by PCW
Replied by PCW on topic How to Control a PWM Gripper
www.linuxcnc.org/docs/html/gcode/m-code.html#mcode:m68

See the note about the hal pin.

Looks like meister was using different numbers for different positions
some likely being fully open and some fully closed
The following user(s) said Thank You: meister

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #328958 by meister
exactly, the servo is configured as an analog output and can be controlled with values from -100 (open) to +100(closed).
Code:
net sig_motion_analog-out-00 <= motion.analog-out-00 net sig_motion_analog-out-00 => rio.gripper.position

Please Log in or Create an account to join the conversation.

Time to create page: 0.124 seconds
Powered by Kunena Forum