Welding Commands via GCode

Hey there,

I have a UR10e with a Lorch S5 Speedpuls XT (Welding Mashine) mounted on it. Is it possible to implement welding commands in the Gcode so that the welding machine recognizes them when the code is executed via the robot?
Or does this have to be done using external software and if so, which one?
thanks in advance

Best regards

Continuing the discussion from Welding Commands via GCode:I’d love to know too

What do you mean with “welding commands”? I use G-code for dispensing and start the dispenser with the G-code. You can activate (and de-activate) multiple outputs with the G-code.

…
N160 M62 P0 ==> Starts output connected to P0 (toolpath settings)
…
N235 M63 P0 ==> Stops output connected to P0 (toolpath settings)

But maybe this is not what you had in mind.

1 Like

Thanks for your answer:)

I try to implement a command into the GCode which tells the connected welding mashine to “turn on” or “turn off”. I thought there might be a special command just for welding. What do you mean exactly with connected to P0?

When you go to the installation-tab and the URCAP "Toolpath:

You can see that a Port from the G-code (P0, P1, P2, …) can be connected to an input or output from the robot. With the outputs you can definitly switch on or off a welding machine…

1 Like

Okei I will try it today and give you feedback asap:)
So in my case I would have to choose the Output Port?

Yes,

  1. Connect your relay (or something else) to a Digital output X.
  2. In the Toolpath I/O settings set P0 (output) to the Digital output X.
  3. Integrate the code M62 P0 in your Gcode to start the output X
    and
  4. Integrate the code M63 P0 in your Gcode to stop the output X

When you run the Gcode. You will see that when the line “M62 P0” is reached, the output X will become high. This until the line “M63 P0” is reached. I have a Gcode-generator that creates Gcode from an Autocoad DXF file. I have integrated the “M62 P0” and “M63 P0” lines in the configuration file of the Gcode generator. So my dispensing units starts automatically…

Good luck.

1 Like

I looked and found these choices. The problem now is that I don’t know which one to choose. I also have to define the command for the welding process. The question now is how do I connect my relay to the digital output. How did you do that?
I apologize for not understanding this straight away. I’m new to the field. I hope you have some patience with me :slight_smile:

No worries. I looked quickly in the manual:

image

What I see… A start is when you connect X18-1 with X18-2. So you need a relay (NO: Normal-Open)

image

1 Like

Okei so, after i connected the relay what is the next step?

I’m really grateful for your help btw.

I would always check in between steps.

If you manually connect X18-1 with X18-2. Does the welding start (like you wanted)?

  • NO: In the manual of the Lorch welding machine there is a section about remote control
  • YES: Then OK, this is OK. Next step…

Next step: After you inserted the code (M62 P0 and M63 P0) and you chose a digital output. Run the robot program with the G-code and while running you can see in the IO-overview if the digital output gets high at the right time. Is this like you wanted?
==> If you need to insert a delay in the G-code. Use: “G4 P0.5” for example in the G-code. This is a delay of 0,5 seconds. To give the machine time to startup for example.

  • NO: You have to check your G-code or your toolpath settings
  • YES: Then OK, next step…

Next step: You can now connect the digital output to the relay (A1) and 0V to A2. This will make the relay switch when the digital output is high. Then connect the “relay 12 port” with X18-1 and the “relay 11 port” with X18-2. This will start the welder when the digital output is high.

Hope it works :slight_smile:

where did you find this graphic? I searched for it in the Manual of the UR10e but I didn’t find it:/

That was from the welding machine “Lorch S5 Speedpuls XT”

can you maybe send me that pdf? I also have a user manual of that maschine but maybe I have the wrong one. That would be great:)

spulse.pdf (6.3 MB)

Do you maybe know which relaly I need exactly?

You need a potential-free contact, for example the solenoid relay. For the solenoid part you need 24V DC. I use in my projects FINDER 94.74 (body) + FINDER 55.34.9.024.0040 (relay). I enclosed the datasheet.

However in your case, It is unlikely, but you could damage the welding unit. So maybe best to send them an email asking/explaining what you are trying to do. And how you can best remotely start the welding unit. Although section 9.8 of the “spulse” pdf I’ve send you is pretty clear…

33. Finder 94.74 +55.34.9.024.0040.pdf (3.9 MB)

l Contact the manufacturer and let you know if I have any further questions. Thank you very much for your help.
Have a great day!