Reload Program Through Pin

More
10 years 6 months ago - 10 years 6 months ago #72852 by andypugh
Replied by andypugh on topic Reload Program Through Pin

bogie6040 wrote: DOS style endings.... I have seen this in other posts, I have yet to see a definitive answer on what they look like or how to find them.


There is a (CR) at the end of the line "# EMBED_TAB_COMMAND = python camview.py -w {XID}"
I found it by turning on line-ending visibility in Notepad++
I think that there is a similar feature in gedit.

I don't understand what your getting at here....


You loaded the component. The pin existed then. what has changed since if the pin does not exist now after you load the component?
Last edit: 10 years 6 months ago by andypugh.

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

More
10 years 6 months ago #72867 by bogie6040
OK, got rid of the dos style ending..... It's really nice it doesn't tell you where it found the dos style ending - it's like an easter egg hunt after finding a text editor that will display the hidden characters.......
Why does it care anyway just ignore them.....

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??

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

More
10 years 6 months ago #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
7 years 7 months ago - 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()
Last edit: 7 years 7 months ago by nkp.

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

More
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 or Create an account to join the conversation.

More
7 years 3 months ago #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.

Time to create page: 0.347 seconds
Powered by Kunena Forum