knife direction

65 views
Skip to first unread message

Abd nanaa

unread,
Feb 21, 2021, 7:04:24 AM2/21/21
to dxf2gcode-users
good day's 

 i have cutter machine by knife, how can direct the knife as x y running by separate servo motor
can i obtain special axis for knife  through  g code generating 



best regards for all


Christian Kohlöffel

unread,
Feb 23, 2021, 1:33:17 AM2/23/21
to dxf2gco...@googlegroups.com

Hi,

 

i am not sure if i did understand it right. You want to have a dedicated axis with an servo, which is giving you the angular orientation on the XY Plane (Z-Axis). I am not sure how this could work with G2 and G3, since this is normally interpolated and calculated by the maschine. However for Lines you can use the S_Ang or E_Ang Parameters, which are giving you the direction of the line. Please check the Postprocessor WIKI. However you need to generate a special Postprocessor and if this is not enough maybe you need to adapt some lines of code. If you know exactly what you want to do I can point you to the lines where you need to change a bit.

 

Regards

Christian

--
--
You received this message because you subscribed to the Google
Groups-group "dxf2gcode-users".
To post a message, send mail to dxf2gco...@googlegroups.com
To unsubscribe, send mail to dxf2gcode-use...@googlegroups.com
See http://groups.google.de/group/dxf2gcode-users?hl=en for more options
and the dxf2gcode project page at http://code.google.com/p/dxf2gcode/
---
You received this message because you are subscribed to the Google Groups "dxf2gcode-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dxf2gcode-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dxf2gcode-users/5e46d615-3a13-4d69-bbae-b6e1ade30bd3n%40googlegroups.com.

Abd nanaa

unread,
Feb 26, 2021, 1:23:24 AM2/26/21
to dxf2gco...@googlegroups.com
thank you very much Christian
 exactly it is, i try to make  axis drive the knife as X   Y runs.
please how you can point me, i know what i want to do and i have flexible processor i use PLC received G-CODE and i can add function. 

best regards


‫في الثلاثاء، 23 فبراير 2021 في 8:33 ص تمت كتابة ما يلي بواسطة ‪'Christian Kohlöffel' via dxf2gcode-users‬‏ <‪dxf2gco...@googlegroups.com‬‏>:‬

Christian Kohlöffel

unread,
Feb 26, 2021, 1:38:14 PM2/26/21
to dxf2gco...@googlegroups.com

Here find the link to the function which is doing the G-Code for Drag Knife.

 

Top Level here with start and end code:

https://sourceforge.net/p/dxf2gcode/sourcecode/ci/master/tree/source/dxf2gcode/core/shape.py#l478

 

For Arcs and Lines imported from DXF here:

https://sourceforge.net/p/dxf2gcode/sourcecode/ci/master/tree/source/dxf2gcode/core/arcgeo.py#l406

https://sourceforge.net/p/dxf2gcode/sourcecode/ci/master/tree/source/dxf2gcode/core/linegeo.py#l187

 

 

 

For the use of the existing Parameters check the Wiki:

https://sourceforge.net/p/dxf2gcode/wiki/Postprocessor%20Configuration/

 

Refer to those, but those are only calculated an forward for ARC’s not for lines. You will see that in the previously linked files for LINE and ARC.:

 

"%AngS"
The starting angle of an Arc in deg.

"%-AngS"
The negative starting angle of an Arc in deg.

"%AngE"
The end angle of an Arc in deg.

"%-AngE"
The negative end angle of an Arc in deg.

 

Here you can find the Postprocessor, if you want to add other variables or similar and make them useable in the way the current  prostprocessor does …

https://sourceforge.net/p/dxf2gcode/sourcecode/ci/master/tree/source/dxf2gcode/postpro/postprocessor.py#l339

 

 

regards

Christian

 

PS: If you make it in the way that it’s still compatible with the existing function I would be able to update the branch with it …

Reply all
Reply to author
Forward
0 new messages