Using a laser offset code PlasmaC (SOLVED)
- Clive S
- Offline
- Platinum Member
Less
More
- Posts: 2241
- Thank you received: 476
03 May 2020 15:16 - 04 May 2020 06:25 #166510
by Clive S
Using a laser offset code PlasmaC (SOLVED) was created by Clive S
I have just fitted a cross hair laser to my machine
I don't use ohmic so I think I can use that button for the code
Like
BUTTON_1_NAME = Laser\Offset
BUTTON_1_CODE = G54 G0 X-47.5 Y21.296
So when positioning the laser over the corner of the part I would do touch off
After the button press It moves to the correct position. What do I need to add to the code to make it do auto the touch off
Edit: Would this do it: G10 L20 P1 X0 Y0
Edit: Sorted. G10 L20 P1 X0 Y0 \ G54 G0 X-47.5 Y21.296 \ G10 L20 P1 X0 Y0
Gets me what I wanted.
I don't use ohmic so I think I can use that button for the code
Like
BUTTON_1_NAME = Laser\Offset
BUTTON_1_CODE = G54 G0 X-47.5 Y21.296
So when positioning the laser over the corner of the part I would do touch off
After the button press It moves to the correct position. What do I need to add to the code to make it do auto the touch off
Edit: Would this do it: G10 L20 P1 X0 Y0
Edit: Sorted. G10 L20 P1 X0 Y0 \ G54 G0 X-47.5 Y21.296 \ G10 L20 P1 X0 Y0
Gets me what I wanted.
Last edit: 04 May 2020 06:25 by Clive S. Reason: added text
The following user(s) said Thank You: phillc54
Please Log in or Create an account to join the conversation.
- bbsr_5a
- Offline
- Platinum Member
Less
More
- Posts: 544
- Thank you received: 105
04 May 2020 06:41 #166571
by bbsr_5a
Replied by bbsr_5a on topic Using a laser offset code PlasmaC (SOLVED)
you shoudt go for a single button that calls a ngc that does the job at once
o<laserzeroz> sub
G91 ( relative mode for probing)
G54 G1 X-47.5 Y21.296 F1000 ( go bach the crosshair offset)
G90 ( absolute mode)
G10 L20 P1 X0 Y0 (set new XY G54 Zero)
o<laserzero> endsub
M2
Please Log in or Create an account to join the conversation.
- Clive S
- Offline
- Platinum Member
Less
More
- Posts: 2241
- Thank you received: 476
04 May 2020 06:50 #166575
by Clive S
Can you please give me the reason as it seems to work fine.
Replied by Clive S on topic Using a laser offset code PlasmaC (SOLVED)
you shoudt go for a single button that calls a ngc that does the job at once
o<laserzeroz> sub G91 ( relative mode for probing) G54 G1 X-47.5 Y21.296 F1000 ( go bach the crosshair offset) G90 ( absolute mode) G10 L20 P1 X0 Y0 (set new XY G54 Zero) o<laserzero> endsub M2
Can you please give me the reason as it seems to work fine.
Please Log in or Create an account to join the conversation.
- phillc54
- Offline
- Platinum Member
Less
More
- Posts: 5698
- Thank you received: 2081
04 May 2020 07:00 #166578
by phillc54
Replied by phillc54 on topic Using a laser offset code PlasmaC (SOLVED)
You could just enter your X and Y offsets directly into G10 L20 P0 Xoffset Y offset.
Please Log in or Create an account to join the conversation.
- bbsr_5a
- Offline
- Platinum Member
Less
More
- Posts: 544
- Thank you received: 105
04 May 2020 07:04 #166580
by bbsr_5a
Replied by bbsr_5a on topic Using a laser offset code PlasmaC (SOLVED)
ofcause you can
but most like to move to zero point to confirm
and check DRO
but most like to move to zero point to confirm
and check DRO
Please Log in or Create an account to join the conversation.
- Clive S
- Offline
- Platinum Member
Less
More
- Posts: 2241
- Thank you received: 476
04 May 2020 07:07 #166582
by Clive S
I think I tried that and it worked it moved to the offset position but the dro showed the offset this means you need to set the dro back to zero.
Using the code that I proposed moves from the laser cross position to the offset and sets the dro to zero, with one button press.
Or am I missing something?
Replied by Clive S on topic Using a laser offset code PlasmaC (SOLVED)
You could just enter your X and Y offsets directly into G10 L20 P0 Xoffset Y offset.
I think I tried that and it worked it moved to the offset position but the dro showed the offset this means you need to set the dro back to zero.
Using the code that I proposed moves from the laser cross position to the offset and sets the dro to zero, with one button press.
Or am I missing something?
Please Log in or Create an account to join the conversation.
- bbsr_5a
- Offline
- Platinum Member
Less
More
- Posts: 544
- Thank you received: 105
04 May 2020 07:12 #166583
by bbsr_5a
Replied by bbsr_5a on topic Using a laser offset code PlasmaC (SOLVED)
you are right but you need to move incremental G91 from where you are
Please Log in or Create an account to join the conversation.
- phillc54
- Offline
- Platinum Member
Less
More
- Posts: 5698
- Thank you received: 2081
04 May 2020 07:12 #166584
by phillc54
Replied by phillc54 on topic Using a laser offset code PlasmaC (SOLVED)
Well you could move to X0 Y0 if you needed to.
Please Log in or Create an account to join the conversation.
- Clive S
- Offline
- Platinum Member
Less
More
- Posts: 2241
- Thank you received: 476
04 May 2020 07:25 #166586
by Clive S
Sorry Phill I am not sure I am understanding you.
If you have moved to the offset position and the dro is showing that position at this point moving to X0Y0 will put you back on the original laser mark. So would you not have to touch of at the offset position so that becomes X0Y0 so you can run the job from there.
My goal was to do the whole job in one button press. ie put the laser cross on the corner of the part then with one press the torch moves to the to the corner of the part with dro showing G54 X0Y0
But I am no expert
Replied by Clive S on topic Using a laser offset code PlasmaC (SOLVED)
Well you could move to X0 Y0 if you needed to.
Sorry Phill I am not sure I am understanding you.
If you have moved to the offset position and the dro is showing that position at this point moving to X0Y0 will put you back on the original laser mark. So would you not have to touch of at the offset position so that becomes X0Y0 so you can run the job from there.
My goal was to do the whole job in one button press. ie put the laser cross on the corner of the part then with one press the torch moves to the to the corner of the part with dro showing G54 X0Y0
But I am no expert
Please Log in or Create an account to join the conversation.
- phillc54
- Offline
- Platinum Member
Less
More
- Posts: 5698
- Thank you received: 2081
04 May 2020 07:36 #166587
by phillc54
Replied by phillc54 on topic Using a laser offset code PlasmaC (SOLVED)
If you want to move to the new X0 Y0 that is fine, you don't have to but it is best to do what you feel comfortable with.
The following user(s) said Thank You: Clive S
Please Log in or Create an account to join the conversation.
Moderators: snowgoer540
Time to create page: 0.091 seconds