|AutomationDirect Live Chat|
Learn how to connect a Do-more PLC to a GS4 Variable Frequency Drive (VFD) via Modbus RTU in this live tutorial Video/Demo from AutomationDirect.com.
We want a Do-more PLC to talk to a GS4 Drive over Modbus RTU. To do that, we just wire the Do-more’s 485 plus signal to the SG+ terminal and the minus signal to the SG minus terminal on the drive. And depending on how your system is setup you can decide if you need the ground wire or not. If we go to the Do-more System Configuration window, we see that the RTU Client is built into the Do-more so all we have to do is select it and make sure these settings match the drives settings. Normally you would change the drive parameters to match the RTU network that the PLC is on, but we don’t have a network set up yet and since we are here we’ll just change the PLCs parameters to match the drives defaults. We’re not using any Transmit control so that’s fine and we’ll leave RTS signal at Follows Transmitter. These default values up here are fine. Of course, we need to tell the serial port to use the RS485 Standard and we’ll add in the terminating resistor which you normally need at both ends of the 485 network cable. Let’s have C10 change the frequency to 33 Hz. To do that we need to communicate with the internal serial port Modbus client we just setup. This GS4 drive has a node ID of 1 so that’s fine. We want to write to a single register. Which register? The GS4 uses these registers which are at these addresses to control the drive via Modbus RTU. We want to change the speed – that’s parameter 9.26 – and we see in the manual that’s decimal address 42331. Do-more Designer ads the 4 for us so we just put 2331 here and the frequency we want, here. Let’s copy and paste that rung and use C11 to change the same frequency register to 55 Hz. I’ll copy and paste that rung again, and have C12 control the Forward direction. We need to put the forward direction parameter address here and forward is a zero. Copy and paste that and we’ll have C13 control the reverse direction which is the exact same thing except we send a 1 here. Copy and Paste it again and we’ll have C14 control Run which s at this address and run is a 1. Copy and Paste that rung and we’ll have C15 control STOP which is the same address but we send a zero. And let’s add an END Let’s give each of these control bits a name so they are easier to read in the data view. Oops! Looks like I forgot to accept that last change … Great. Now we have C15. Enter that name. Done. Great. Ok, I haven’t actually connected to the PLC yet, so I’ll go ahead and do that. And then I’ll go ahead and write the project to the PLC. Let’s bring up Data View and add C10 through C14. I’ve already configured this Drive for Modbus RTU – check out this video to learn how to do that - and it is in REMOTE mode so it’s just waiting for commands. The PLC is running and ready so if we activate the 33 Hz instruction, sure enough the drive changes frequency. If we activate the 55 Hz instruction – the drive reacts accordingly. If we toggle the forward bit and then the run instruction the motor starts turning and we see it is in the forward direction. Toggle the reverse contact and the motor changes direction and if we toggle the stop contact and the motor ramps to a stop. Exactly what we expected. And all we did was wire the two devices together, configured the built in serial port for Modbus RTU, and made sure it was in RS485 mode. And then we just issued some MWX instructions. That’s all there is to it. Click here to learn more about the GS4 Drive. Click here to learn about AutomationDirect’s free support options, and click here to subscribe to our YouTube channel so you will be notified when we publish new videos.