Advanced Search

Search Results (Searched for: )

  • PCW
  • PCW's Avatar
Today 15:00
Replied by PCW on topic I hate the 7i97T

I hate the 7i97T

Category: Configuration Tools

Here is a sample 7I97/7I97T hal/ini configuration:

 

File Attachment:

File Name: basic7i97_...7-11.zip
File Size:4 KB


There's also an experimental pncconf version that supports the 7I97 you might try:

forum.linuxcnc.org/plasmac/55286-servo-d...ofit?start=10#331289

 
  • Aciera
  • Aciera's Avatar
Today 12:46

Very small 4 axis mill for cutting plastic materials

Category: Show Your Stuff

Yes of course, already set and configured ( i think), but a bit fuzzy on G53 vs G54 values, as i have G54 X0Y0 at the center of the C axis, but G53 are far from it.


trt-kinematics have parameters to compensate for offsets between the machine reference point and the rotation-point of the table rotary:

See for example 'xyzac-trt.ini':
# not currently supported by xyzac-trt-gui:
HALCMD = setp xyzac-trt-kins.x-rot-point 0
HALCMD = setp xyzac-trt-kins.y-rot-point 0
HALCMD = setp xyzac-trt-kins.z-rot-point 0

Note though that, as indicated, the vismach simulation does not support these.

Yup, know of any good open source one?


I do not.
  • Aciera
  • Aciera's Avatar
Today 12:13
Replied by Aciera on topic Hurco BMC 30 AP

Hurco BMC 30 AP

Category: CNC Machines

Try this:

1. in your config folder create a new folder named 'python' and put the two attached files 'remap.py' and 'toplevel.py' into this new folder

2.  replace the entries in your  [PYTHON] section of your ini file with this:
PATH_PREPEND= ./python
PATH_APPEND= /home/cnc/linuxcnc/nc_files/remap_lib/python-stdglue
TOPLEVEL= ./python/toplevel.py
LOG_LEVEL = 0 

 
  • vanlap02
  • vanlap02
Today 12:03 - Today 13:45

Seeking Guidance on Mitsubishi MR-J3 Serial Encoder Protocol (J-A22/J-A24) for M

Category: General LinuxCNC Questions

Hi everyone,I am a Master's student currently working on my thesis, which involves designing a custom, low-voltage FOC Servo Driver to control a Mitsubishi MR-J3 motor (equipped with the 18-bit absolute encoder, model J-A22/J-A24).My goal is to achieve full closed-loop control (current, speed, and position) using a custom control board. I am determined to implement the encoder decoder myself rather than using commercial converter modules, as the academic board requires a deep dive into the firmware.What I have done so far:
  1. Hardware Interface: I designed a custom PCB utilizing a high-speed RS-485 transceiver (MAX3485) connected to the USART peripheral of an STM32G4 MCU. The differential lines (MR/MRR) are properly terminated with a 120-ohm resistor.
  2. Signal Capture: I have configured the MCU's USART to run at 2.5 Mbps (8N1), utilizing DMA to handle the high-speed RX buffer without blocking the CPU.
  3. Prior Research: I have deeply analyzed open-source projects like STMBL and various threads on the LinuxCNC forum regarding the "Mit-A/Mit-B" protocols.
The Roadblock: While I can physically capture the serial stream, I am currently struggling with the deterministic behavior of the protocol:
  • The Request Command: I am trying to identify the exact initialization/request byte sequence that the Master needs to send to "wake up" or poll the encoder continuously. I tried sending
    0x02
    and
    0x1A
    based on some older J2S documentation, but the encoder response is inconsistent.
  • Frame Parsing & CRC: Once the encoder responds, I receive an 7-to-9 byte packet. I am trying to figure out how the 18-bit position data is packed across these bytes (Little-Endian shifting vs. Scrambled bits), and what specific CRC-8 polynomial (and initial value) is used to validate the frame.
I am not looking for ready-made code or copy-paste libraries. I want to understand the underlying data structure and state machine of this specific encoder protocol so I can write my own robust driver.If anyone has any documentation, logic analyzer captures, or insights regarding the J-A22/J-A24 protocol frame format, your guidance would be an absolute lifesaver for my thesis progress.Thank you so much for your time and expertise!Best regards,
lap
 Master's Student in Mechatronics Engineering
  • Aciera
  • Aciera's Avatar
Today 11:21 - Today 11:34

Very small 4 axis mill for cutting plastic materials

Category: Show Your Stuff

  


Modified filter script:
 

File Attachment:

File Name: LinuxCNC_p..._axis.py
File Size:4 KB


Tested with /sim/axis/vismach/5axis/table-rotary-tilting/xyzac-trt.ini with the following modifications to the ini file:

[DISPLAY]
            GEOMETRY = XYZ-CA

NOTE that trt-kins and trt-vismach simulations uses unconventional rotational directions so the tool cone in the preview is on the opposite side of the path. 

[FILTER]
PROGRAM_EXTENSION = .pts points file
pts = ./LinuxCNC_pts_filter_4_axis.py

A axis max limits need to be expanded to be able to tilt the table to 90° for the vismach simulation
[AXIS_A]
       MAX_LIMIT =   90


[JOINT_3]
       MAX_LIMIT =   90
  • tuxcnc
  • tuxcnc
Today 11:19
Replied by tuxcnc on topic I hate the 7i97T

I hate the 7i97T

Category: Configuration Tools

A bad workman blames his tools ...
  • Onkelmat
  • Onkelmat's Avatar
Today 10:24
I hate the 7i97T was created by Onkelmat

I hate the 7i97T

Category: Configuration Tools

Just a short rant how hard it is to setup this freaking card. Pnconfig wizard doesn´t work for it. You have to go the full manual way and it´s already a pain to get Mesa CT running and working. Some python needs to be installed, but thats a chapter by itself already. If you went through all the steps to finally get it recognized by Mesa CT and try to run that config with linuxcnc it doesn´t even find the card and exits with an error that the network isn´t reachable. I hate it so much i´ll throw it in the trash and go back to my 5i25 + 7i77. I´ll get a 5i26 for compability.
  • 5_Zylinder
  • 5_Zylinder
Today 09:07
Replied by 5_Zylinder on topic Hurco BMC 30 AP

Hurco BMC 30 AP

Category: CNC Machines

Hi, thanks for your help. Unfortunately, I misunderstood something last time. I have uploaded my complete LinuxCNC folder as an attachment.
  • xin
  • xin
Today 07:17

Every time I boot LinuxCNC, the Xg54 position reading increase 256

Category: General LinuxCNC Questions

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?
  • cmorley
  • cmorley
Yesterday 00:12

qtDragon: Auto Return to Manual Mode After an MDI Command so MPG works

Category: Qtvcp

The switching to MDI mode is sometimes a limitation of linuxcnc.
There are a lot of 'manual' things that linuxcnc requires MDi for.

But it is also hard to predict what each users expects and also hard to control for whatever way a user sets up a machine.

Which tool probe are you using? versa, basic or the convenience button for touchoff?
  • tommylight
  • tommylight's Avatar
Yesterday 23:34

Very small 4 axis mill for cutting plastic materials

Category: Show Your Stuff

So, the .pts files contain a path on the surface of a 3d model as consecutive 3d points and you are trying to post process this to create 4axis (xyzc) gcode where the c axis keeps the tool perpendicular to the model surface.

Yes.

Seems you are basically trying to use a python filter script to do what a CAM and post prosessor would usually do.

Yes.

You could use dx and dy from the pts file to calculate the tool orientation angle in the xy-plane (ie the c axis value) that keeps the tool perpendicular to the path segment.

How?
I used some Gemini generated scripts but all had issues with ... everything.

In order to keep the tool positioned on the work piece while the c-axis moves you need TCP kinematics.

Yes of course, already set and configured ( i think), but a bit fuzzy on G53 vs G54 values, as i have G54 X0Y0 at the center of the C axis, but G53 are far from it.

The 1mm tool path offset could possibly be achieved by simply using a 2mm bull nose bit (depends on the required detail resolution of course).

I do not think this is important much, the material is soft, both of them, so has to just pierce the thin one (0.8-1mm) and does not matter if it goes deeper, as long as that "deeper" is under 4-5mm.

Of course, the proper and easy way to do this would be to use a CAM :)

Yup, know of any good open source one?
reminds me, have to check FreeCad if it can do anything about it, but this adds another layer for the client to deal with, while the script/filter one is neat, open the file, home the machine (has switches), run.
  • HIBA
  • HIBA
Yesterday 21:46

Flexi-HAL – “hard limits tripped”, home inputs read as permanently triggered

Category: Computers and Hardware

Hi, I bought a used Rat Rig StrongHold that ran fine for the previous owner. I re-flashed a fresh Flexi-Pi image and now I’m stuck. Setup: • Rat Rig StrongHold, Flexi-HAL (STM32F4, SPI), Raspberry Pi 4• LinuxCNC 2.9.8, QtDragon_hd 1.5• remora-flexi config (~/linuxcnc/configs/flexi-hal/)• Gantry: TWO Y motors (joint.1 + joint.3), but only ONE Y limit sensor• Sensors: Heschen SN04-N2 (inductive, NPN, NC) Problem: • Status shows “hard limits tripped”, machine won’t turn ON• HOME X / HOME Y / HOME Z read as triggered (red) permanently in the INPUTS panel, machine sitting free in the middle• The separate “LIMIT” input does NOT light up Key finding — this is the important part: • If I DISCONNECT a limit switch, NOTHING changes — the home input stays triggered.• So the input reads as permanently active regardless of whether a sensor is connected or not.• Toggling .not on the home-sw-in lines in the HAL does nothing either. Commenting the lines out completely also changes nothing.• The sensors themselves work fine (LED on sensor and breakout board switches with metal, they have power). I did NOT change any wiring — it’s exactly as it ran for the previous owner. So it seems the inversion/logic is not on the LinuxCNC side at all. My question: Where does the limit/home input polarity get set for the Flexi-HAL? Is it a grblHAL firmware setting on the board itself (like $5 invert limit pins, or an NC/NO setting), separate from the LinuxCNC HAL/INI? If so, how do I read and change it — through LinuxCNC, or do I need to connect to the board another way? Since disconnecting the switch doesn’t change the input at all, I suspect the board is configured to expect the opposite switch type (or the pins are inverted at the firmware level). Also (probably separate): MODBUS ERRORS counter keeps climbing (was ~174, rising), FAULT 0x0 — that’s the VFD/RS485 side (vfdmod, set for Durapulse GS10 by default). Happy to post photos of the board, breakout PCB, INPUTS panel, and my full HAL/INI. Thanks a lot!
  • Aciera
  • Aciera's Avatar
Yesterday 18:39
Replied by Aciera on topic Hurco BMC 30 AP

Hurco BMC 30 AP

Category: CNC Machines

Re: forum.linuxcnc.org/30-cnc-machines/42689...0-ap?start=80#346618

1. These two errors are connected. The parameter #<_tool_in_spindle> is not defined because 'change_prolog' cannot be found.

2. Looking at your ini file it seems that your paths are messed up. TOPLEVEL should point to the file 'toplevel.py' not just some folder:
[PYTHON]
PATH_PREPEND = python
TOPLEVEL = /home/cnc/linuxcnc/nc_files/remap_lib/python-stdglue/python/
PATH_APPEND = /home/cnc/linuxcnc/nc_files/remap_lib/python-stdglue/



[RS274NGC]

PARAMETER_FILE = linuxcnc.var
#SUBROUTINE_PATH = /home/cnc/linuxcnc/nc_files/remap_lib/python-stdglue/python/
#USER_M_PATH = /home/cnc/linuxcnc/nc_files/hurcoMCODE
#REMAP= M6 modalgroup=6 ngc=sub_progs/Werkzeugwechsel_Main

SUBROUTINE_PATH = ./
#REMAP=M6   modalgroup=6 ngc=toolchange
REMAP=M6   modalgroup=6  prolog=change_prolog ngc=toolchange epilog=change_epilog

# parameters exposed by setspeed_prolog/evaluated by setspeed_epilog:
#<speed>

#REMAP= S prolog=setspeed_prolog ngc=setspeed epilog=setspeed_epilog

Since we don't have your complete config folder there is no telling where you have the relevant files but if you compare your setting with the built in 'sim/axis/remap/extend-builtins/' you might get some ideas.

(You will find the [PYTHON] section at the very bottom of the ini file below):
github.com/LinuxCNC/linuxcnc/blob/2.9/co.../extend-builtins.ini
  • JohnnyCNC
  • JohnnyCNC's Avatar
Yesterday 18:30
Replied by JohnnyCNC on topic manual tool change with tool length probe

manual tool change with tool length probe

Category: G&M Codes

Sorry, been away for a while. I will get them posted soon.
  • 5_Zylinder
  • 5_Zylinder
Yesterday 17:09
Replied by 5_Zylinder on topic Hurco BMC 30 AP

Hurco BMC 30 AP

Category: CNC Machines

Hi everyone,
I’ve tried a few more times to solve my problem, but unfortunately, I’m not getting anywhere. Perhaps someone can tell me how to fix the issue so I can get the tool changer up and running.
Displaying 1 - 15 out of 14463 results.
Time to create page: 4.458 seconds
Powered by Kunena Forum