101
Mach4 General Discussion / Re: Axis as a Spindle using Jog? (or Serial??)
« on: November 21, 2019, 01:13:27 PM »
RS232 is the standard communications protocol for serial and can support a single connection between 1 computer and 1 servo drive. RS485 is a multi-drop network that can support many nodes, but is limited to a Master-Slave type of network since no data flow control is present (unlike Ethernet). In the case of my CNC control system, I have a PC with a built in RS232 port. I use an RS232-RS485 adapter ($10 on eBay) to connect the computer to a multi-drop network using Cat5e cable as the media. I have 6 servo drives on the network, waiting for commands from the PC.
I also have an extra RS232 to RS485 converter to connect a laptop to the network to view the traffic. This has been incredibly helpful for setting up and troubleshooting my code.
I use a free program called PuTTy to access the network like a terminal. This cannot be used at the same time as Mach 4 serial since they would try to share the port. I would first try to make sure you can type your commands into PuTTy while connected to the drive and get everything to work. If you cannot do that, then serial in Mach 4 definitely wont work. When I am using Mach 4 serial, I often have my laptop with PuTTy open on the network viewing traffic.
I also have an extra RS232 to RS485 converter to connect a laptop to the network to view the traffic. This has been incredibly helpful for setting up and troubleshooting my code.
I use a free program called PuTTy to access the network like a terminal. This cannot be used at the same time as Mach 4 serial since they would try to share the port. I would first try to make sure you can type your commands into PuTTy while connected to the drive and get everything to work. If you cannot do that, then serial in Mach 4 definitely wont work. When I am using Mach 4 serial, I often have my laptop with PuTTy open on the network viewing traffic.