How to use LinuxCNC to control slave

More
07 Aug 2019 01:08 #141558 by cheng

Use a hex inverter to connect a slave motor


"hex"? Yeah, well, maybe my problem is not clear. I'm using the EtherCAT protocol and LinuxCNC. If I'm using a single-chip microcomputer, such as stm32, I need to burn hex.

by cheng

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

More
07 Aug 2019 20:36 - 07 Aug 2019 23:34 #141632 by Grotius
@Cheng,

Nice you can move the motor with your key board arrow's.
Left / Right is for x axis
Up / Down if for y axis

In the source code you can change direction of keyboard button's. I have example on stock for that option.

If you make a gcode file like this :

(DxfDecoder version 1.0.0)
(Designed in QT C++, 5.12.3 GCC 64 Bit)
(Provided by Grotius CNC Machines B.V 2019, licence GPL2)
G21 (Metric)
G40 (Cutter compensation off)
G90 (Absolute distance mode)
G64P0.01 (Accuracy 0.01mm of the actual path)
S45
F2500
G00 X0
G00 X100
G01 X0
G01 X100
M30 (it will work if your motor is connected as x axis)

Or for y axis :
(DxfDecoder version 1.0.0)
(Designed in QT C++, 5.12.3 GCC 64 Bit)
(Provided by Grotius CNC Machines B.V 2019, licence GPL2)
G21 (Metric)
G40 (Cutter compensation off)
G90 (Absolute distance mode)
G64P0.01 (Accuracy 0.01mm of the actual path)
S45
F2500
G00 Y0
G00 Y100
G01 Y0
G01 Y100
M30 (it will work if your motor is connected as y axis)

Normally it's a good practice to do this research yourself.

Cheng, please upload the file in previous post in zip format.
Thank you !!
Last edit: 07 Aug 2019 23:34 by Grotius.

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

More
08 Aug 2019 01:10 - 08 Aug 2019 01:10 #141648 by cheng

Normally it's a good practice to do this research yourself.

Grotius, thank you for your help. I've never been in contact with machine control before. I majored in electrical engineering and automation in my university. I am now engaged in work related to LinuxCNC,EtherCAT. Therefore, there is a lack of knowledge in this area. I'm working hard. Maybe you can tell me what kind of knowledge I need to master. For example, now I know I should go deep into Gcode.

Cheng, please upload the file in previous post in zip format.

I uploaded compressed files in zip format .

File Attachment:

File Name: file.zip
File Size:2 KB
Thank you again for your help.
Attachments:
Last edit: 08 Aug 2019 01:10 by cheng.

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

More
08 Aug 2019 02:58 #141650 by cheng
hi
I have a strange question. Why some images can be converted to Gcode in LinuxCNC. There are other pictures that are wrong.

Is there anything I don't know.

The picture that caused the error


error warning



successful picture
Attachments:

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

Time to create page: 0.353 seconds
Powered by Kunena Forum