- Posts: 19306
- Thank you received: 0
Reload Program Through Pin
10 years 6 months ago #72873
by andypugh
How is the not-working made manifest?
Perhaps add something else to the script to check that it is actually trying to do something.
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 to join the conversation.
7 years 7 months ago #127573
by nkp
Replied by nkp on topic Reload Program Through Pin
in axisrc:
Code:
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()
Please Log in to join the conversation.
7 years 7 months ago #127670
by pl7i92
Replied by pl7i92 on topic Reload Program Through Pin
best is to use a User Mcode like
Code:
#!/bin/bash
# axis reload after g92 M100
axis-remote --reload
exit 0
Please Log in to join the conversation.
7 years 3 months ago #139272
by Blackwind
Replied by Blackwind on topic Reload Program Through Pin
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
anyway i got an error if in axis in manual mode i run some script trough mdi gcode/mcode...
regards
rick
Please Log in to join the conversation.
7 years 3 months ago #139282
by cmorley
Why do you say this is best?
Replied by cmorley on topic Reload Program Through Pin
pl7i92 wrote: best is to use a User Mcode like
Code:#!/bin/bash # axis reload after g92 M100 axis-remote --reload exit 0
Why do you say this is best?
Please Log in to join the conversation.
7 years 3 months ago #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
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 to join the conversation.
7 years 3 months ago #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
You are using axis-remote, he is using python extensions to AXIS.
Chris M
Please Log in to join the conversation.
Time to create page: 3.151 seconds
