Is possible to use RS485 to read a CMOS laser sensor?
- vermilion
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
15 Jul 2026 02:53 #347775
by vermilion
Is possible to use RS485 to read a CMOS laser sensor? was created by vermilion
Hola. I want to use a CMOS laser sensor with an RS485 interface and find out if it is possible to use the RS485 terminal on the 7i96s board to read the sensor values. My goal is to use the laser to measure height and move the Z-axis to a specific initial height on a plasma cutting machine. I consulted Gemini AI, and it indicated that I needed to flash new firmware to enable this function; consequently, I visited the Mesa website and downloaded the hostmot2 file for the 7i96s. Could someone confirm if that hostmot2 file allows me to use the 7i96s's RS485 port in the way I intend? Thank you very much
.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
-
- Offline
- Platinum Member
-
Less
More
- Posts: 4764
- Thank you received: 1464
15 Jul 2026 09:52 #347785
by Todd Zuercher
Replied by Todd Zuercher on topic Is possible to use RS485 to read a CMOS laser sensor?
I've never attempted it myself, but supposedly it should be possible.
linuxcnc.org/docs/html/drivers/mesa_modbus.html
I have always used an ordinary serial port (such as a USB to RS485 adapter dongle) to communicate with Modbus devices using the MB2Hal driver.
linuxcnc.org/docs/html/drivers/mesa_modbus.html
I have always used an ordinary serial port (such as a USB to RS485 adapter dongle) to communicate with Modbus devices using the MB2Hal driver.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 17999
- Thank you received: 5287
15 Jul 2026 15:48 #347792
by PCW
Replied by PCW on topic Is possible to use RS485 to read a CMOS laser sensor?
What protocol does the sensor use?
Modbus is supported by Mesa FPGA cards with the hm2-modbus/PktUART
drivers.
If your sensor does not use Modbus, fora Mesa card, it would require
a driver part like hm2-modbus communicating with the PktUART driver
Modbus is supported by Mesa FPGA cards with the hm2-modbus/PktUART
drivers.
If your sensor does not use Modbus, fora Mesa card, it would require
a driver part like hm2-modbus communicating with the PktUART driver
Please Log in or Create an account to join the conversation.
- vermilion
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
15 Jul 2026 17:44 #347794
by vermilion
Replied by vermilion on topic Is possible to use RS485 to read a CMOS laser sensor?
Okay, the first option is using the USB adapter, but having a long USB cable is a bit inconvenient for my setup; the electronics are at the back of the machine and the PC is in front, in an external rack. Still, if there's no other way, I don't mind—though I wonder if the reaction time is slower via USB compared to RS485? This matters because it involves the sensor I want to use to measure the plasma's Z-axis. Then again, it might not really matter, since the head doesn't move while measuring the Z-distance; it just measures and calculates, then moves directly to the initial cutting height.
Please Log in or Create an account to join the conversation.
- vermilion
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
15 Jul 2026 17:50 #347796
by vermilion
Replied by vermilion on topic Is possible to use RS485 to read a CMOS laser sensor?
The manual specifies 8-bit asynchronous MODBUS via 2-pin RS-485 (A+ and B-); so, do I need to flash the pktUART driver? That is done by updating the firmware and using terminal commands, right? Gemini AI suggested something along those lines.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 17999
- Thank you received: 5287
15 Jul 2026 22:50 #347800
by PCW
Replied by PCW on topic Is possible to use RS485 to read a CMOS laser sensor?
Yes, you would use 7i96s_pktv3.bin firmware.
The following user(s) said Thank You: vermilion
Please Log in or Create an account to join the conversation.
- Todd Zuercher
-
- Offline
- Platinum Member
-
Less
More
- Posts: 4764
- Thank you received: 1464
16 Jul 2026 16:59 #347809
by Todd Zuercher
Replied by Todd Zuercher on topic Is possible to use RS485 to read a CMOS laser sensor?
If you are using a USB to RS485 adapter you are not running a USB cable to your device. These adapters generally don't have a USB cable at all, and are just a dongle you plug into your computer's USB port. You then run a RS485 cable from there to your device. As to speed, I'm pretty sure USB is quite a bit faster than RS485.
Please Log in or Create an account to join the conversation.
- jtrantow
- Offline
- Premium Member
-
Less
More
- Posts: 146
- Thank you received: 26
17 Jul 2026 07:11 - 19 Jul 2026 16:45 #347812
by jtrantow
Replied by jtrantow on topic Is possible to use RS485 to read a CMOS laser sensor?
I have previously used 485 dongles but I think the mesa board connection is a cleaner wiring solution. I have used mb2hal but hm2-modbus is much easier for me.
I also found hm2-modbus/mesa refresh to offer much faster refresh than hm2hal/USB dongle which was important with some spindle calculations I was using to calculate gear ratios.
My advise is get the correct firmware and enjoy the cleaner wiring, easier message setup, and faster response with the mesa connection.
I also found hm2-modbus/mesa refresh to offer much faster refresh than hm2hal/USB dongle which was important with some spindle calculations I was using to calculate gear ratios.
My advise is get the correct firmware and enjoy the cleaner wiring, easier message setup, and faster response with the mesa connection.
Last edit: 19 Jul 2026 16:45 by jtrantow. Reason: Clarity
The following user(s) said Thank You: NWE
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.096 seconds