Ethernet conection
- Abdulwhab
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 1
05 May 2019 06:46 #132812
by Abdulwhab
Ethernet conection was created by Abdulwhab
Hello all!
I hope someone could help with this. I want to know what kind of signals sent by Linuxcnc over Ethernet. Is it G-Code or what?
P.C I am new in this
Thanks
I hope someone could help with this. I want to know what kind of signals sent by Linuxcnc over Ethernet. Is it G-Code or what?
P.C I am new in this
Thanks
Please Log in or Create an account to join the conversation.
- pl7i92
-
- Offline
- Platinum Member
-
Less
More
- Posts: 1875
- Thank you received: 356
05 May 2019 08:43 - 05 May 2019 08:47 #132819
by pl7i92
Replied by pl7i92 on topic Ethernet conection
Attachments:
Last edit: 05 May 2019 08:47 by pl7i92.
Please Log in or Create an account to join the conversation.
- Abdulwhab
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 1
05 May 2019 14:05 #132839
by Abdulwhab
Replied by Abdulwhab on topic Ethernet conection
Thanks for your reply, but I would like to know what is the signals sent over Ethernet. is it the G-Code or what?
Thanks again
Thanks again
Please Log in or Create an account to join the conversation.
- pl7i92
-
- Offline
- Platinum Member
-
Less
More
- Posts: 1875
- Thank you received: 356
05 May 2019 14:11 #132842
by pl7i92
Replied by pl7i92 on topic Ethernet conection
depends on what driver you use
its HM_eth 32bit array
at ethercat a 16bit array
at Raspberry its 8bit array
and at Arduino cnc its a max of 5kbit to the system
ALL at 2way with ack to both sides
PC -> ETH BIT Array
ETH SHA256 -> PC
PC OK SHA265 BACK
ETH OK Workin Progress
ETH not ok -> PC resend
its HM_eth 32bit array
at ethercat a 16bit array
at Raspberry its 8bit array
and at Arduino cnc its a max of 5kbit to the system
ALL at 2way with ack to both sides
PC -> ETH BIT Array
ETH SHA256 -> PC
PC OK SHA265 BACK
ETH OK Workin Progress
ETH not ok -> PC resend
The following user(s) said Thank You: Abdulwhab
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18165
- Thank you received: 4915
05 May 2019 15:03 #132846
by PCW
Replied by PCW on topic Ethernet conection
This is really more of a general LinuxCNC question rather than a Ethernet question.
Normally LinuxCNC interprets GCode and provides position waypoints every
servo thread period to each joint. The servo thread period is usually 1 KHz.
External hardware like step generators or motor controllers can use these position waypoints directly or in conjunction with joint velocity values to provide interpolated motion between the waypoints. All of this is independent on how the data is transmitted.
This differs from many other CNC controls in that it does not use a buffered motion controller, LinuxCNC _is_ the real time motion controller.
So in answer to your question, for motion, position and perhaps velocity data is what is transmitted, and it is transmitted in real time at a typically 1 KHz rate regardless of the communication medium.
One exception is very simple hardware like parallel ports, in this case a LinuxCNC
software module takes the position waypoints and generates the individual steps,
no position data is transmitted.
Normally LinuxCNC interprets GCode and provides position waypoints every
servo thread period to each joint. The servo thread period is usually 1 KHz.
External hardware like step generators or motor controllers can use these position waypoints directly or in conjunction with joint velocity values to provide interpolated motion between the waypoints. All of this is independent on how the data is transmitted.
This differs from many other CNC controls in that it does not use a buffered motion controller, LinuxCNC _is_ the real time motion controller.
So in answer to your question, for motion, position and perhaps velocity data is what is transmitted, and it is transmitted in real time at a typically 1 KHz rate regardless of the communication medium.
One exception is very simple hardware like parallel ports, in this case a LinuxCNC
software module takes the position waypoints and generates the individual steps,
no position data is transmitted.
The following user(s) said Thank You: Abdulwhab
Please Log in or Create an account to join the conversation.
- Abdulwhab
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 1
05 May 2019 15:09 #132848
by Abdulwhab
Replied by Abdulwhab on topic Ethernet conection
Thanks a lot, that is what I am looking for
The following user(s) said Thank You: PCW
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 19695
- Thank you received: 6649
05 May 2019 22:24 - 06 May 2019 10:24 #132881
by tommylight
Replied by tommylight on topic Ethernet conection
Just a minor correction, ethernet port sends and recives data packets containing the information.
Last edit: 06 May 2019 10:24 by tommylight. Reason: To much coffee, no sleep !
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23197
- Thank you received: 4879
06 May 2019 22:15 #133004
by andypugh
Replied by andypugh on topic Ethernet conection
If you need more info on the protocol it is in the ethernet cards manuals, and can be downloaded from Mesa for free.
Also useful is the regmap, which says what data is stored in each register:
github.com/LinuxCNC/hostmot2-firmware/blob/master/src/regmap
There is enough information there to write your own driver, if that is what you want to do.
Also useful is the regmap, which says what data is stored in each register:
github.com/LinuxCNC/hostmot2-firmware/blob/master/src/regmap
There is enough information there to write your own driver, if that is what you want to do.
Please Log in or Create an account to join the conversation.
Time to create page: 0.092 seconds