Reload Program Through Pin

More
06 Apr 2016 21:25 #72873 by andypugh
Replied by andypugh on topic Reload Program Through Pin

bogie6040 wrote: I also got the error to go away but it still doesn't work, so this won't work with a pyvcp type hal pin??


How is the not-working made manifest?

Perhaps add something else to the script to check that it is actually trying to do something.

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

More
03 Mar 2019 07:53 - 03 Mar 2019 07:55 #127573 by nkp
Replied by nkp on topic Reload Program Through Pin
in axisrc:
if hal_present == 1 :
    ucomp = hal.component("axisui.user")
    ucomp.newpin("reload_file",hal.HAL_BIT,hal.HAL_IN)
    ucomp.ready()
    
def user_live_update():
    if ucomp["reload_file"] == 1:
        print "!!axisrc_reload_file!!"
        ucomp["reload_file"] = 0
        commands.reload_file()
Last edit: 03 Mar 2019 07:55 by nkp.

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

More
04 Mar 2019 08:59 #127670 by pl7i92
Replied by pl7i92 on topic Reload Program Through Pin
best is to use a User Mcode like

#!/bin/bash
# axis reload after g92 M100
axis-remote --reload
exit 0

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

More
13 Jul 2019 22:33 #139272 by Blackwind
I know this is years old, but nowhere i read that permisions is given to the m code file to allow executing file as a program. Will not run and not return to manual mode....
anyway i got an error if in axis in manual mode i run some script trough mdi gcode/mcode...
regards
rick

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

More
14 Jul 2019 03:53 #139282 by cmorley
Replied by cmorley on topic Reload Program Through Pin

pl7i92 wrote: best is to use a User Mcode like

#!/bin/bash
# axis reload after g92 M100
axis-remote --reload
exit 0


Why do you say this is best?

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

More
28 Jul 2019 15:57 #140808 by pl7i92
Replied by pl7i92 on topic Reload Program Through Pin
it sets up the whole system to the newest condition

we work on 5 Mashines like that
every mashine only got 1 NGC in nc_files that is served from the CAD room
the Mashine MEN only needs to press one button for the next order
or if he did not pressed the FINISH order button he reloads the Mashine owned G-code

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

More
28 Jul 2019 17:19 #140815 by cmorley
Replied by cmorley on topic Reload Program Through Pin
That's exactly what he is trying to do - reload the program.
You are using axis-remote, he is using python extensions to AXIS.

Chris M

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

Time to create page: 0.103 seconds
Powered by Kunena Forum