Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: Matamoros on October 01, 2024, 08:00:42 PM

Title: Mach4 using 2 serial ports at same time
Post by: Matamoros on October 01, 2024, 08:00:42 PM
Hi, I'm Jose, i'm new in here.

Some time ago I wrote a module to control an RS232 cooler and now I am writing a new module for MR-J3 servo drives via RS422, but I couldn't open this second port, does anyone know if it is possible to use more than one serial port at that time in mach4, would it be a problem in my code? My programming knowledge is basic. I will open and close the ports for each communication, but the chiller script updates the temperature continuously, so I would prefer to leave it open all the time.

Thanks for any help Jose
Title: Re: Mach4 using 2 serial ports at same time
Post by: Matamoros on October 06, 2024, 05:31:57 PM
I want to confirm that mach4 can open 2 pots at time, is only about take care of declare the port name correctly and differents names for the port variable.