New gcode cycle

More
13 years 3 months ago #36822 by ArcEye
Replied by ArcEye on topic New gcode cycle
Not quite with you on this, can you explain a bit further.

Are you trying to get #5410 into your GCode or your python code?

regards
The following user(s) said Thank You: jlviloria

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

More
13 years 3 months ago #36825 by jlviloria
Replied by jlviloria on topic New gcode cycle
www.linuxcnc.org/docs/devel/html/gcode/o...umbered_parameters_a


I'll try, patience with my English.

in NGCGUI can "import" parameters 5410, 5411, 5412, 5413, as follows:

#<tool_rad> = [# 5410/2]

in python with remap, as I can do?

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

More
13 years 3 months ago #36826 by ArcEye
Replied by ArcEye on topic New gcode cycle
I think you want to access it from python?

I don't know about python, but it is accessible in C from emcioStatus.tool.toolTable[x].diameter

If you look through the python / C bindings there is an equivalent to the C code
emcioStatusBuffer = new RCS_STAT_CHANNEL(emcFormat, "toolSts", "tool", emc_nmlfile);
to get the status buffer and access the information

I think you will find it in ../src/emc/usr_intf/axis/extensions/emcmodule.cc

regards
The following user(s) said Thank You: jlviloria

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

More
13 years 3 months ago #36840 by BigJohnT
Replied by BigJohnT on topic New gcode cycle
This may or may not be what your looking for:

www.linuxcnc.org/docs/html/common/python...xcnc_stat_attributes

The tool table and tool offsets can be obtained with the python interface.

JT
The following user(s) said Thank You: ArcEye, jlviloria

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

More
13 years 3 months ago #36854 by ArcEye
Replied by ArcEye on topic New gcode cycle
Yet another document I didn't know existed

That is certainly the library I meant

regards

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

More
13 years 3 months ago - 13 years 3 months ago #37004 by jlviloria
Replied by jlviloria on topic New gcode cycle
ArcEye,

looks like will work, I had some problems with radios, is the only way I've been able to focus the cycle.

##############
G18 G8


G1.1 Q47 X5 Z-10
G1.1 Q47 X10 Z-15
G1.1 Q47 X30 Z-25
G1.1 Q47 X40 Z-35
G1.1 Q47 X52 Z-50

G0 X55
Z2
G71 Q47 P1 R0.5 F1500
m2

each line is a segment of the cycle, but not registered as such.

I'm unintentionally the Mazatrol programming, with difference Mazatrol conversational language used.

Jorge Viloria





Attachments:
Last edit: 13 years 3 months ago by jlviloria.
The following user(s) said Thank You: ArcEye, Diederik

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

Time to create page: 1.799 seconds
Powered by Kunena Forum