Advanced Search

Search Results (Searched for: )

  • Aciera
  • Aciera's Avatar
27 Nov 2024 19:29 - 27 Nov 2024 19:29
  • Aciera
  • Aciera's Avatar
27 Nov 2024 19:26
Replied by Aciera on topic Call custom Mcode from Gui Button

Call custom Mcode from Gui Button

Category: Qtvcp

- Create a new HAL_COMMAND entry in the [HALUI] section of your ini file:
MDI_COMMAND = M101

- Make sure the [HAL] section of your ini file contains this entry:
HALUI = halui

Then connect the MDI_COMMAND in your hal file:
net coolant-flood => halui.mdi-command-00

Note that this will not work when a program is executing as this requires the controller to execute an MDI command.
  • csurimilan
  • csurimilan
27 Nov 2024 18:55 - 27 Nov 2024 19:21
Call custom Mcode from Gui Button was created by csurimilan

Call custom Mcode from Gui Button

Category: Qtvcp

Hello,
I have a question about coolant.
Im using costume made M-codes to controll the relays for my collant. (Air,flood,Mist => M100,M101,M102 and M105 turn off all)
I would like to know how can i address in the HAL file that if i press a button in the gui (qtDragon) that is turning on/off my coolant and of course i would like its working autoatically when the cnc is working. (Im using costume M-codes because im controlling more outputs)

net  coolant-flood  <= iocontrol.0.coolant-flood          //here i dont know how can i add the M101

thank you :)
 
  • Aciera
  • Aciera's Avatar
27 Nov 2024 18:52
Replied by Aciera on topic Original Gmoccopy setting all gone

Original Gmoccopy setting all gone

Category: General LinuxCNC Questions

  File "/home/raychar/linuxcnc/configs/my_LinuxCNC_machine/python/stdglue.py", line 59

    print "change_prolog: Toolchanger soft fault %d" % int(self.params[5601])

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

Indeed a python2 vs python3 issue. If you have not customized 'stdglue.py' you can try and replace stdglue.py in your config/python directory with the current file:
'configs/sim/gmoccapy/python/stdglue.py'
Displaying 22396 - 22399 out of 22399 results.
Time to create page: 0.368 seconds
Powered by Kunena Forum