Laser head with 10 laser diodes

More
17 May 2022 04:36 #243129 by Gus71
Hi...
I need help:
-I have an axis driven by a stepper motor
-This axis has a head with 10 laser diodes that I want to turn on and off independently
-I have expanded the digital outputs and would like to switch them while the axis is moving
Grid mode:
- E.g:
- G90
- G0 x10 M64 (P1...P10) ; Laser ON
- G0 x20 M65 (P1...
P10) ; Laser OFF
- G0 x30

The problem is the axis stops at the M command!

Question:
1) How to solve the problem?
2) Is it even possible?

Thanks in advance...

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

More
17 May 2022 10:27 #243136 by andypugh
Try M62 / M63 instead.

(I don't guarantee that it will work, but it might)

Also try using G1 with a high feed rate rather than G0.
The following user(s) said Thank You: Gus71

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

More
17 May 2022 12:16 #243142 by Gus71
Thanks for the info, but I've already tried... unfortunately it doesn't work either...

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

More
17 May 2022 12:29 #243146 by andypugh
Which LinuxCNC version?

It might be worth experimenting with G61 / G64 etc:
linuxcnc.org/docs/stable/html/user/user-...#_trajectory_control
The following user(s) said Thank You: Gus71

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

More
17 May 2022 12:31 #243148 by Gus71
LinuxCNC2.8.2 / Debian10.10

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

More
17 May 2022 12:51 #243151 by andypugh

LinuxCNC2.8.2 / Debian10.10

You have the latest trajectory planner, then.

Have you checked the G64 / G61 settings? 
The following user(s) said Thank You: Gus71

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

More
17 May 2022 13:29 #243156 by Gus71
That works: many many thanks

How did you know?

F1000

M62 P1 ; (laser ON)
G1X10
M63 P1 ; (laser off)
G1X20

..etc...
G30

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

More
17 May 2022 13:38 #243160 by Gus71
how can I check the G64 / G61 settings?

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

More
17 May 2022 14:16 #243162 by andypugh

how can I check the G64 / G61 settings?

Most of the GUIs report it in a Status window. It's on the MDI tab in Axis, for example. (Active G-codes) 
 
The following user(s) said Thank You: Gus71

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

More
17 May 2022 18:12 #243185 by Todd Zuercher
It is best never to assume the status of important g-codes like G64. Best practice is to always explicitly set them at the beginning of every g-code file. (This is what is called having a good "Preamble" for your g-code.) Usually it is simple to set up your CAM software or post processor so that they will all ways be inserted at the start of each file. Then you never have to worry about them again.
The following user(s) said Thank You: Gus71

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

Time to create page: 0.074 seconds
Powered by Kunena Forum