AXIS to hal

More
13 Nov 2014 05:51 - 13 Nov 2014 05:59 #53050 by grzesiekzxr
AXIS to hal was created by grzesiekzxr
Hey guys,
I'm using Axis 2.5.2. and trying smething like: c.set _digital_output(18,0),
I putting it into axis.py number line 1995-2000.
My general problem is ,when I brake/stop not finished program ,some pins are stil active .
But mention solution not working for me .

Any idea?
Last edit: 13 Nov 2014 05:59 by grzesiekzxr.

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

More
13 Nov 2014 17:31 - 13 Nov 2014 17:32 #53061 by ArcEye
Replied by ArcEye on topic AXIS to hal
Hi

You will need to explain what you are doing.

The code at the lines you give appears to be the starting of a program and you are using the python interface to set EMC_MOTION_SET_DOUT
def task_run(*event):
        if run_warn(): return

        global program_start_line, program_start_line_last
        program_start_line_last = program_start_line;
        ensure_mode(linuxcnc.MODE_AUTO)
        c.auto(linuxcnc.AUTO_RUN, program_start_line)
        program_start_line = 0
        t.tag_remove("ignored", "0.0", "end")
        o.set_highlight_line(None)

What is your program using it for? There may be a much simpler way of doing it than hacking Axis.

regards
Last edit: 13 Nov 2014 17:32 by ArcEye.

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

More
14 Nov 2014 05:07 - 14 Nov 2014 05:16 #53071 by grzesiekzxr
Replied by grzesiekzxr on topic AXIS to hal
HI my axis.py line are
nr.1995 def task_stop(*event):
if s.task_mode == linuxcnc.MODE_AUTO and vars.running_line.get() != 0:
o.set_highlight_line(vars.running_line.get())
c.abort()
c.wait_complete()
nr. 2000 c.set_digital_output(18,0)

/home/grzegorz/realtime/master/src/emc/usr_intf/axis/scr




I'm using Eagle to create hal .
Example when I run my program there is much M64 p....and if program don't finish M65p...is absent ,thereby some pins are still active.

Thanks ,
Regards.
Last edit: 14 Nov 2014 05:16 by grzesiekzxr. Reason: mistake

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

More
26 Nov 2014 05:28 #53417 by grzesiekzxr
Replied by grzesiekzxr on topic AXIS to hal
Hallo,
Maybe there is another solution ?
I think that not only me interrupt a program, if something does not play in gcode :silly: .
How do you deal with such a problem?

regards.

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

Time to create page: 0.127 seconds
Powered by Kunena Forum