Plug in a loop back plug (pins 2 and 3 connected) and run any terminal emulator ("screen", and Arduino IDE serial monitor are two convenient ones available on Linux) to see if you get back what you type. That will verify the port works and that you are addressing the correct one. Then check if you have the right baud, number of bits, and parity settings for your VFD. Is the VFD RS232 or RS485 serial? A lot of them are RS485 multidrop, which requires an adapter from the RS232 serial out of you pc.
-- Ralph ________________________________________ From: Danny Miller [dan...@austin.rr.com] Sent: Sunday, April 10, 2022 10:27 AM To: emc-users@lists.sourceforge.net Subject: Re: [Emc-users] Can't compile MODBUS VFD in 2.8.2 CAUTION: This email originated from outside the Walla Walla University email system. Nothing to unplug- it's a built-in RS232 DB9. Nothing enumerates across it. I'm baffled where to go. I see there's a port /ttyS0 from the command line. Launching LinuxCNC from the command line shows text warnings about Modbus timing out. It's just not communicating. I played with the loadusr command and recompiled the code with /ttyS0 as the new default if the command line option didn't take somehow. I'm pretty sure the x200 code and libmodbus are not the prob- something about config? I don't know where to look. I suppose the RS232 port itself could physically be busted, I could look at it with a logic anaylzer. Be nice to see if anything was trying to come out. I don't think it could be putting out valid traffic, if it did it I think the VFD would turn on. Hmm, it is going through an isolated RS232-MODBUS bridge. But that and the cable and VFD are known working. I put the cable back on the other machine and it works. I guess I could install a putty terminal and see if I can send UART traffic in and out to verify the port is working. Maybe I could give up on the built-in RS232 and try a USB FTDI to RS232? Danny On 4/9/2022 3:16 PM, andy pugh wrote: > On Sat, 9 Apr 2022 at 16:44, Danny Miller <dan...@austin.rr.com> wrote: > >> I tried specifying the port loadusr x200 device="/dev/ttyS0". I'm not >> sure how my serial ports are named. Would "/dev/ttyUSB0" be if that was >> an FTDI USB to serial device? > Plug and unplug it, see what appears and disappears in /dev/ > _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Femc-users&data=04%7C01%7Cralph.stirling%40wallawalla.edu%7C813e46896bba4ac1183c08da1b1730d7%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C1%7C637852083691589859%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=8%2B7yovA7CvdWhPjfF1eY2%2BW%2BaT8ZNz5RK2J9DkqCF%2Bk%3D&reserved=0 _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users