- LinuxCNC
- General LinuxCNC Questions
- Every time I boot LinuxCNC, the Xg54 position reading increase 256
Every time I boot LinuxCNC, the Xg54 position reading increase 256
- xin
- Offline
- New Member
-
Less
More
- Posts: 1
- Thank you received: 0
11 Jul 2026 07:17 #347672
by xin
Every time I boot LinuxCNC, the Xg54 position reading increase 256 was created by xin
LinuxCNC is 3.4.9.
I am using the gmoccapy interface with EtherCAT bus-controlled drives equipped with absolute encoders. The values HOME_OFFSET = 0 and HOME = 0 are set in my INI file. The zero point has already been configured on the drive, yet every time I boot LinuxCNC, the Xg54 position reading increases by 256 compared to the previous session. why?
I am using the gmoccapy interface with EtherCAT bus-controlled drives equipped with absolute encoders. The values HOME_OFFSET = 0 and HOME = 0 are set in my INI file. The zero point has already been configured on the drive, yet every time I boot LinuxCNC, the Xg54 position reading increases by 256 compared to the previous session. why?
Please Log in or Create an account to join the conversation.
- rodw
-
- Offline
- Platinum Member
-
Less
More
- Posts: 12047
- Thank you received: 4113
13 Jul 2026 10:37 #347734
by rodw
Replied by rodw on topic Every time I boot LinuxCNC, the Xg54 position reading increase 256
First the Linuxcnc version you quote is invalid. What is it really?
Second, 256 is a very signiicant number for computers because an 8 bit number (1 byte) counts from 0-255 which a computer's way of counting from 1-256.
The G54 values are stored in the var file. I could not see exactly what us the varibale number on a quick look. I would check this after you close to make sure its not being incremented on close,
My guess is that Linuxcnc will be OK but somehow outside of LinuxCNC, your encoder value is incremented by 1 X 8 bit byte.
Second, 256 is a very signiicant number for computers because an 8 bit number (1 byte) counts from 0-255 which a computer's way of counting from 1-256.
The G54 values are stored in the var file. I could not see exactly what us the varibale number on a quick look. I would check this after you close to make sure its not being incremented on close,
My guess is that Linuxcnc will be OK but somehow outside of LinuxCNC, your encoder value is incremented by 1 X 8 bit byte.
Please Log in or Create an account to join the conversation.
- onceloved
-
- Offline
- Premium Member
-
Less
More
- Posts: 133
- Thank you received: 59
13 Jul 2026 21:43 #347752
by onceloved
Replied by onceloved on topic Every time I boot LinuxCNC, the Xg54 position reading increase 256
ini配置中注释或删除这行试试POSITION_FILE = position.txt
具体作用http://linuxcnc.org/docs/stable/html/config/ini-config.html#sub:ini:sec:traj
具体作用http://linuxcnc.org/docs/stable/html/config/ini-config.html#sub:ini:sec:traj
Please Log in or Create an account to join the conversation.
- LinuxCNC
- General LinuxCNC Questions
- Every time I boot LinuxCNC, the Xg54 position reading increase 256
Time to create page: 0.139 seconds