Advanced Search

Search Results (Searched for: )

  • jeff_HATC
  • jeff_HATC
08 Nov 2011 11:50

Rotary "A" won't reset to zero after 360 degrees

Category: G&M Codes

I am cutting a part for a career fair. It is basically a round peice on a rotary table and it is cut into 4 slices like a pie. I cut each quarter then rotate the table 90 degrees. I run through this cycle 4 times

The program is something like this. (I am using AXIS)

repeat 4 times
cut section 1
rotate A90
cut section 2
rotate A180
cut section 3
rotate A 270
cut section 4
rotate 360. (My table is now physically back to zero its starting palce)
G92 A0 (but my display is at 360, so I force it to zero)
endrepeat
G92.1 A0 (trying to clean out register 5241 from 1,440 degrees to zero back to zero)
(that is 90 degrees x 4 slices= 360 x 4 repeats = 1440 degrees total)
G00 X0 Y0 Z1.0 A0

Ok here is the problem. After the 4th rotate, I want A to go back to zero. Why run the rotary table 360 degrees backwards, when it can just rotate forward 90 deglees forward? But when I do that, the display accumulates from 360 to 360+90=450. So I put the G92 in to set A back to zero after each 4 quarters are cut. Ok, fine so far. But at the end of the 4th repeat, I ussue G92.1 to set the register 5241 back to zero...as I know it is accumulating the G92's. The display then says A=1440 and runs the table back to zero for 1440 degrees...kind of defeating the whole purpose and wasting a lot of step motor time.

This is what I would like to do (in this order)
1) At the end of the 4th quarter I would like to home A to Zero. Can this be done by issuing some type of G code?

2) G10 sets variables to certain values for the cordinate system. Can it do this for register 5241?

3) I am not sure why a rotary table would be allowed to go past 360 anyways. Any way to force it to see 360 and zero as the same position?

Jr
  • Rick G
  • Rick G's Avatar
08 Nov 2011 10:57
Replied by Rick G on topic Joystick hal file with axis lockout

Joystick hal file with axis lockout

Category: HAL Examples

The lock out is an Interesting idea. Nice addition.

but if you use the x & y joystick to jog the table it's very easy to move both axis's at the same time if you move the joystick at anything but a perfect 360, 180, 270 or 90 degree angle

You can also use "deadzone" for the sticks to avoid that problem in jogging and a similar set up to avoid it with incremental moves.

Rick G
  • BigJohnT
  • BigJohnT's Avatar
07 Nov 2011 21:22
Replied by BigJohnT on topic Joystick hal file with axis lockout

Joystick hal file with axis lockout

Category: HAL Examples

No, your correct the one on the wiki is just a basic jogging one... I need the X and Y lockout on my plasma.

John
  • Davenc
  • Davenc
07 Nov 2011 20:29 - 07 Nov 2011 23:56
Replied by Davenc on topic Joystick hal file with axis lockout

Joystick hal file with axis lockout

Category: HAL Examples

The one on wiki does not have the axis lock out like mine does. I used the one on wiki as an example for mine but if you use the x & y joystick to jog the table it's very easy to move both axis's at the same time if you move the joystick at anything but a perfect 360, 180, 270 or 90 degree angle. With mine it's not possible to do that as it locks out the other axis. Unless there is different hal file in wiki that I'm not aware of this file is different.
  • BigJohnT
  • BigJohnT's Avatar
07 Nov 2011 18:09
Replied by BigJohnT on topic Joystick hal file with axis lockout

Joystick hal file with axis lockout

Category: HAL Examples

Thanks for sharing.

Sounds similar to my Simple Remote Pendant on the wiki with the added bonus of the e-stop and power buttons.

John
  • Davenc
  • Davenc
07 Nov 2011 14:54 - 07 Nov 2011 14:59
Joystick hal file with axis lockout was created by Davenc

Joystick hal file with axis lockout

Category: HAL Examples

Thought I would share this to save people the headache of doing what I had to do to get it working. This is for a 3 axis x,y, z cnc mill. I cannot take the credit for the code as I pieced it together from various sources but the molten metal guy Ed provided the base for the axis lockout and I just altered it for my machine. I'm happy with it and it does everything I need it to do for now. My X2 has the cncfusion kit and I'm using the xylotex motor kit with the latest version of EMC2 2.4xxx. Almost forgot but I'm using the logitec $20 joypad.

This configuration offers:
Estop shut down and power up on the two left front buttons.

Axis lockout on both the hat and left joystick. This is important in that it prevents you from accidentally moving the X & Y axis at the same time thereby trashing your work piece. With the mode switch on (red LED lit) the hat is locked out and with the mode switch off the left X & Y joystick is locked out.

Three different speeds using the left buttons. The lowest speed when using the joystick can be jogged at .00025 increments. Note that you have to hold one of the speed buttons down to start movement and then you can let it up. This prevents an accidental movement of and axis when one of the buttons are inadvertently pushed.

File Attachment:

File Name: custom_pos...f1ad.hal
File Size:5 KB
  • M4MazakUser
  • M4MazakUser
06 Nov 2011 23:22
Replied by M4MazakUser on topic conversational input

conversational input

Category: O Codes (subroutines) and NGCGUI

-had an error in the taper rough/finishing sub, here is the fixed version.

File Attachment:

File Name: bup_subs-7...e6f61.gz
File Size:32 KB
  • pklecz
  • pklecz
06 Nov 2011 21:58
Replied by pklecz on topic Problem with G41/G42 command

Problem with G41/G42 command

Category: G&M Codes

Now I have corrected the g10 line and it works. Thank you werry much :)

Now I will write how i solve my problem

So

G10 L1 P1 R1.17 (This line sets in the Tool Table in the first position in the tool table (L1) in the first pocket (P1) tool with the radius of 1.17).
G43 H1 (This command activates the tool table and it is important to show what kind of tool will you use in this case H1 where 1 is the first tool from the tool table)
And then
G41 or G42 after the lead move.


PS: My first problem was in the G10 command i wrote T1 and my Emc2 didnt show me an error. And my second problem was that I didnt write G43 with the H1. I write only g43 because iam stupid :P

Thanks all for your help

PS2: sorry for my english :P
  • M4MazakUser
  • M4MazakUser
06 Nov 2011 21:41 - 06 Nov 2011 23:21
Replied by M4MazakUser on topic conversational input

conversational input

Category: O Codes (subroutines) and NGCGUI

An updated set of lathe cycles, with many bugfixes.

Feel free to remove the auto toolchange calc, and use as a standalone cycle.

only works with 2.5 -due to tool nose radius calcs, and auto calc of toolchange point. (variables)

- i use these cycles daily, but! always check toolpath, -Trust nothing!
  • BigJohnT
  • BigJohnT's Avatar
06 Nov 2011 20:59
Replied by BigJohnT on topic Problem with G41/G42 command

Problem with G41/G42 command

Category: G&M Codes

Did you fix the G10 L1 line?

John
  • pklecz
  • pklecz
06 Nov 2011 20:48
Replied by pklecz on topic Problem with G41/G42 command

Problem with G41/G42 command

Category: G&M Codes

Yes I did look at the examples in the manual.

When I add G43 to my gcode there is no tool compensation when I run the gcode.

Iam using a tool 2.34 [mm] wide. The radius of my tool is 1.17 [mm].





PS: I had no problem with tool compensation earlier, but then one day The EMC2 stoped to compensate the tool diameter. I had runed the same gcode as earlier but it didint work. I even had reinstaled the whole ubuntu with emc2 but this didint work. So maybe it is something with the Emc2 i dont know.


Thx for all reply
  • BigJohnT
  • BigJohnT's Avatar
06 Nov 2011 20:27 - 06 Nov 2011 20:47
Replied by BigJohnT on topic Problem with G41/G42 command

Problem with G41/G42 command

Category: G&M Codes

Did you look at the examples in the manual?

After adding G43 to your tool line what didn't work? You need to be specific to get help. Does the tool table contain the proper diameter of the tool loaded?

I loaded your code and added G43 but I get an error on line 7 about your G10 P value being out of range.

When I comment the G10 line I get an error about lead in move too small for tool diameter but I don't know what diameter your using.

And there is no T word for G10 L1...

Fixing the G10 error I'm back to you didn't program a long enough lead in move...

Fixing the lead in move and you have moves that are too big for the tool diameter...

Switching to inside the box compensation G42 your file runs with the G10 line fixed as well...

John
  • pklecz
  • pklecz
06 Nov 2011 18:21
Replied by pklecz on topic Problem with G41/G42 command

Problem with G41/G42 command

Category: G&M Codes

I tried with g43 but it do not work.

I think i tried everything. I even tried to reinstal the system but it do not work.

Maybe if you could send me a simple gcode of a square 50x50 mm that works for you with a tool compensation.

Iam desperative now i dont know what iam doing wrong :(

Pliz help

And thx for help
  • cmorley
  • cmorley
05 Nov 2011 23:06 - 06 Nov 2011 06:53
Replied by cmorley on topic Re:pncconf - feature requests

Re:pncconf - feature requests

Category: PnCConf Wizard

yes I suspected this was going to be the answer.
since mode 1 or 2 doesn't add anything that PNCconf configures then mode 0 it is.
It would be trivial for the user to change modes and add the HAL commands for the pins.
  • BigJohnT
  • BigJohnT's Avatar
05 Nov 2011 22:40
Replied by BigJohnT on topic Re:pncconf - feature requests

Re:pncconf - feature requests

Category: PnCConf Wizard

That makes sense even to me.

John
Displaying 286501 - 286515 out of 288272 results.
Time to create page: 13.826 seconds
Powered by Kunena Forum