G code example

Home Forum Stewart/Gough Platforms G code example

This topic contains 6 replies, has 0 voices, and was last updated by Avatar Anonymous 6 years, 4 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #5918
    Avatar
    Anonymous

    Hi,Dan,i have my platform set . but l know nothing about g code,could you give me some g code examples to test?

    #6373
    Avatar
    Anonymous

    G00 Z10;

    will make the platform rise 10mm.

    G00 X10 Y-10;

    will make the platform move X+10mm and Y-10mm.

    G00 A15 B10 C5;

    will tilt, and roll, and twist (pan) the platform.

    G00 X0 Y0 Z0 A0 B0 C0; will send it back to the start position.

    One of my many goals is to write a java app that simulates the platform and lets you send many commands in sequence.

    #6374
    Avatar
    Anonymous

    I see, so the unit for A,B,C rotation is degree?

    #6372
    Avatar
    Anonymous

    Correct. Note that the range of motion is limited to the heim joints (tamiya parts). I have been working for over a year to secure better connectors. Every supplier I’ve found has been uncooperative.

    #6378
    Avatar
    Anonymous

    Have you thought about using universal joints for the range of motion (full 180°) with a swivel to take care of unwanted torque? They’re used all over the place in the nitro RC cars, rather robust, probably come in sufficiently small sizes, and I imagine are made rather inexpensively in bulk. In fact, if you can use more mass produced RC parts I’m sure you could improve the platform’s stability and durability, while keeping the cost the same.

    #6375
    Avatar
    Anonymous

    Hi Aquillux! Good thinking.

    Did you mean parts like the traxxas TRX-1951?

    I tried that when I made my first platform out of metal with linear actuators. There are two challenges.

    1. They have a lot of play
    Each universal joint has got at least 1mm of wiggle room, which quickly adds up to make for an unstable end effector.

    2. They don’t have a nice way to attach to other things
    I used to cut off the shaft completely and just use the joint. There’s a convenient hole right in the center, I think it was there to let air escape when the part was being injection molded. Unfortunately you can’t screw in much or you hit the ball in the center of the joint. It might be possible to put an M5 or M6 tap in the ends of the shafts and put in a great big screw. I haven’t tried it. Most people don’t have a tap & dye set and doing the work myself will mean the part is no longer cheap.

    Although… I’m willing to accept I am wrong if you can show me how 🙂

    #6376
    Avatar
    Anonymous

    The G code example above have unit of cm..
    ex: Z 0.5 = 0.5 cm=5mm down

    #6377
    Avatar
    Anonymous

    yes, correct. I wrote z10 and i should have said z1.0 for 10mm.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.