How to use LinuxCNC to control slave

More
7 years 2 months ago #141558 by cheng

DinukaShehan wrote: 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 to join the conversation.

More
7 years 2 months ago #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 !!

Please Log in to join the conversation.

More
7 years 2 months ago #141648 by cheng

Grotius wrote: 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 .

Attachment not found

Thank you again for your help.

Please Log in to join the conversation.

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

Attachment not found

Attachment not found



error warning

Attachment not found




successful picture

Attachment not found

Attachment not found

Please Log in to join the conversation.

Time to create page: 0.074 seconds
Powered by Kunena Forum