AutomationDirect
Search
Login | Register
Accounts & Orders
Cart
0
$0.00

Recent Orders

View and Manage | Request Cancellation

Your Account

Account Home

Checkout   $0.00


  • My Orders
  • Product Returns (RMAs)
  • Pay Proforma Invoices
  • Pay Freights
  • Invoices / Invoice Reprint
  • Quotes / Favs / BOMs
  • Packing List Reprint
  • My Product Docs
  • Credit Application
  • Tax Exemption
| Direct Sales in US and Canada | 1-800-633-0405 | About Us | Contact Us | Line Card
Products | Support
| Compare
  
Ordering Tools  
warning Cookies are not enabled on your browser.
Cookies are required for our site. Please enable cookies in your browser preferences to continue.
+
Navigation
+
Shopping Categories
  • Barcode / RFID / Vision
  • Bulk Wire & Cable
  • Cables (Terminated)
  • Circuit Protection / Fuses / Disconnects
  • Communications
  • Drives & Soft Starters
  • Enclosure Thermal Management & Lights
  • Enclosures & Racks
  • Field I/O
  • HMI (Human Machine Interface)
  • Hydraulic Components
  • Motion Control
  • Motor Controls
  • Motors
  • Pneumatic Components
  • Power Products (Electrical)
  • Power Transmission (Mechanical)
  • Process Control & Measurement
  • Programmable Controllers
  • Pushbuttons / Switches / Indicators
  • Relays / Timers
  • Safety
  • Sensors / Encoders
  • Stacklights
  • Structural Frames / Rails
  • Tools & Test Equipment
  • Valves
  • Water (Potable) Components
  • Wiring Solutions
  • Retired Products
+
Learn More
  • Brand Line Card
  • What's New
  • E-newsletter
  • Online PDF Catalog
  • Video Tutorials
  • Company Reviews
  • Learning Library
  • Affordable Training
  • Free Online PLC training
  • Cybersecurity
+
In Depth Product Sites
  • Programmable Logic Controllers
  • Productivity1000 PLCs
  • Productivity2000 PLCs
  • Productivity3000 PLCs
  • ProductivityCODESYS
  • LS Electric XGB Series PLCs
  • ProductivityOpen
  • CLICK PLCs
  • Do-more H2 PLCs or
    Do-more T1H Series
  • Do-more BRX PLCs
  • C-more Touch Panels
  • AC & DC Drives
  • Motion Control Components
  • Servos
  • StrideLinx
  • Pneumatics
+
Product Selectors &
Configuration Utilities
  • PLC Family Selector
  • P1000 PLC Systems
  • P2000 PLC Systems
  • P3000 PLC Systems
  • ProductivityCODESYS
  • CLICK PLC Systems
  • Do-more® BRX PLC Systems
  • LS-Electric® XGB PLC Systems
  • Productivity®Open Systems
  • AC Motors
  • Datalogic® Safety Light Curtains
  • LS-Electric® Servo Systems
  • Nitra® Pneumatic Grippers
  • Object Detection (Sensors)
  • PAL Controller Configurator
  • Precision Gearbox Selector
  • Protos X® Field I/O
  • Quadritalia® Modular Enclosures
  • Stellar® Soft Starters
  • Stepper System Selector
  • SureFrame T-slot Extrusion
  • SureMotion® XYZ Gantry
  • SureServo2® System Selector
  • SureStep® Linear Actuators
  • Timing Belts & Pulleys
  • Werma® Stacklights
  • ZIPLinks

WEG CFW VFD Modbus RTU from AutomationDirect


Related Products

CFW300A01P6S1NB20
CFW300A01P6S1NB20 Thumbnail
CFW300A02P6S1NB20
CFW300A02P6S1NB20 Thumbnail
CFW300A04P2S1NB20
CFW300A04P2S1NB20 Thumbnail
CFW300A06P0S1NB20
CFW300A06P0S1NB20 Thumbnail
CFW300A01P6S2NB20
CFW300A01P6S2NB20 Thumbnail
CFW300A02P6S2NB20
CFW300A02P6S2NB20 Thumbnail
CFW300A04P2S2NB20
CFW300A04P2S2NB20 Thumbnail
CFW300A06P0S2NB20
CFW300A06P0S2NB20 Thumbnail
CFW300A07P3S2NB20
CFW300A07P3S2NB20 Thumbnail
CFW300A01P6T2NB20
CFW300A01P6T2NB20 Thumbnail
CFW300A02P6T2NB20
CFW300A02P6T2NB20 Thumbnail
CFW300A04P2T2NB20
CFW300A04P2T2NB20 Thumbnail
CFW300A06P0T2NB20
CFW300A06P0T2NB20 Thumbnail
CFW300A07P3T2NB20
CFW300A07P3T2NB20 Thumbnail
CFW300B10P0B2DB20
CFW300B10P0B2DB20 Thumbnail
CFW300B15P2T2DB20
CFW300B15P2T2DB20 Thumbnail
CFW300-CRS232
CFW300-CRS232 Thumbnail
CFW300-CRS485
CFW300-CRS485 Thumbnail
CFW300-CUSB
CFW300-CUSB Thumbnail
CFW300-KHMIR
CFW300-KHMIR Thumbnail
CFW300-IODR
CFW300-IODR Thumbnail
CFW300-IOAR
CFW300-IOAR Thumbnail
CFW300-IOADR
CFW300-IOADR Thumbnail
CFW300-IOAENC
CFW300-IOAENC Thumbnail
CFW300-KFA-S1-S2
CFW300-KFA-S1-S2 Thumbnail
CFW300-KFB-S2
CFW300-KFB-S2 Thumbnail
CFW-WPS
CFW-WPS Thumbnail
CFW300-FAN-A
CFW300-FAN-A Thumbnail
CFW300-FAN-B
CFW300-FAN-B Thumbnail
CFW100A01P6S120G2
CFW100A01P6S120G2 Thumbnail
CFW100B02P6S120G2
CFW100B02P6S120G2 Thumbnail
CFW100A01P6S220G2
CFW100A01P6S220G2 Thumbnail
CFW100B02P6S220G2
CFW100B02P6S220G2 Thumbnail
CFW100C04P2S220G2
CFW100C04P2S220G2 Thumbnail
CFW100-KHMIR
CFW100-KHMIR Thumbnail
CFW100-IOD
CFW100-IOD Thumbnail
CFW100-IOAR
CFW100-IOAR Thumbnail
CFW100-IOADR
CFW100-IOADR Thumbnail
CFW100-IOA
CFW100-IOA Thumbnail
CFW100-CUSB
CFW100-CUSB Thumbnail
CFW100-CRS485
CFW100-CRS485 Thumbnail
CFW100-IOP
CFW100-IOP Thumbnail
CFW100-KFABC-S2
CFW100-KFABC-S2 Thumbnail
CFW100-KFABC-S1
CFW100-KFABC-S1 Thumbnail
PLMP
PLMP Thumbnail
15570800
15570800 Thumbnail
15571879
15571879 Thumbnail
15571881
15571881 Thumbnail
15574655
15574655 Thumbnail
15575067
15575067 Thumbnail
15572625
15572625 Thumbnail
15572689
15572689 Thumbnail
15575202
15575202 Thumbnail
15575701
15575701 Thumbnail
15575716
15575716 Thumbnail
15576540
15576540 Thumbnail
15577077
15577077 Thumbnail
15342437
15342437 Thumbnail
15342760
15342760 Thumbnail
15342909
15342909 Thumbnail
15572819
15572819 Thumbnail
15572908
15572908 Thumbnail
15573714
15573714 Thumbnail
15573819
15573819 Thumbnail
15573823
15573823 Thumbnail
15575568
15575568 Thumbnail
15575577
15575577 Thumbnail
15575665
15575665 Thumbnail
15575699
15575699 Thumbnail
15575707
15575707 Thumbnail
15576919
15576919 Thumbnail
15577021
15577021 Thumbnail
15577211
15577211 Thumbnail
15577452
15577452 Thumbnail
15733937
15733937 Thumbnail
15734064
15734064 Thumbnail
15734119
15734119 Thumbnail
14990863
14990863 Thumbnail
14991103
14991103 Thumbnail
14991753
14991753 Thumbnail
14938005
14938005 Thumbnail
14938047
14938047 Thumbnail
14938113
14938113 Thumbnail
14975838
14975838 Thumbnail
14938655
14938655 Thumbnail
14991953
14991953 Thumbnail
14992148
14992148 Thumbnail
14976517
14976517 Thumbnail
14976809
14976809 Thumbnail
14977065
14977065 Thumbnail
14977266
14977266 Thumbnail
14977397
14977397 Thumbnail
14978365
14978365 Thumbnail
14978573
14978573 Thumbnail
14989840
14989840 Thumbnail
14990985
14990985 Thumbnail
14991517
14991517 Thumbnail
14937890
14937890 Thumbnail
14938041
14938041 Thumbnail
14938111
14938111 Thumbnail
14975783
14975783 Thumbnail
14938547
14938547 Thumbnail
14991899
14991899 Thumbnail
14992113
14992113 Thumbnail
14975888
14975888 Thumbnail
14976683
14976683 Thumbnail
14976814
14976814 Thumbnail
14977261
14977261 Thumbnail
14977391
14977391 Thumbnail
14977629
14977629 Thumbnail
14978548
14978548 Thumbnail
CFW320A01P6S1NB20
CFW320A01P6S1NB20 Thumbnail
CFW320A02P6S1NB20
CFW320A02P6S1NB20 Thumbnail
CFW320A04P2S1NB20
CFW320A04P2S1NB20 Thumbnail
CFW320A06P0S1NB20
CFW320A06P0S1NB20 Thumbnail
CFW320A01P6S2NB20
CFW320A01P6S2NB20 Thumbnail
CFW320A02P6S2NB20
CFW320A02P6S2NB20 Thumbnail
CFW320A04P2S2NB20
CFW320A04P2S2NB20 Thumbnail
CFW320A06P0S2NB20
CFW320A06P0S2NB20 Thumbnail
CFW320A07P3S2NB20
CFW320A07P3S2NB20 Thumbnail
CFW320A01P6T2NB20
CFW320A01P6T2NB20 Thumbnail
CFW320A02P6T2NB20
CFW320A02P6T2NB20 Thumbnail
CFW320A04P2T2NB20
CFW320A04P2T2NB20 Thumbnail
CFW320A06P0T2NB20
CFW320A06P0T2NB20 Thumbnail
CFW320A07P3T2NB20
CFW320A07P3T2NB20 Thumbnail
CFW320B10P0B2DB20
CFW320B10P0B2DB20 Thumbnail
CFW320B15P2T2DB20
CFW320B15P2T2DB20 Thumbnail
CFW320A01P1T4NB20
CFW320A01P1T4NB20 Thumbnail
CFW320A02P6T4NB20
CFW320A02P6T4NB20 Thumbnail
CFW320A03P5T4NB20
CFW320A03P5T4NB20 Thumbnail
CFW320A04P8T4NB20
CFW320A04P8T4NB20 Thumbnail
CFW320B07P6T4NB20
CFW320B07P6T4NB20 Thumbnail
CFW320C11P0T4NB20
CFW320C11P0T4NB20 Thumbnail
CFW320C14P0T4NB20
CFW320C14P0T4NB20 Thumbnail
CFW320B01P1T4DB20
CFW320B01P1T4DB20 Thumbnail
CFW320B02P6T4DB20
CFW320B02P6T4DB20 Thumbnail
CFW320B03P5T4DB20
CFW320B03P5T4DB20 Thumbnail
CFW320B04P8T4DB20
CFW320B04P8T4DB20 Thumbnail
CFW320B07P6T4DB20
CFW320B07P6T4DB20 Thumbnail
CFW320C11P0T4DB20
CFW320C11P0T4DB20 Thumbnail
CFW320C14P0T4DB20
CFW320C14P0T4DB20 Thumbnail
CFW320-CRS232
CFW320-CRS232 Thumbnail
CFW320-CRS485
CFW320-CRS485 Thumbnail
CFW320-CUSB
CFW320-CUSB Thumbnail
CFW320-IODR
CFW320-IODR Thumbnail
CFW320-IOAR
CFW320-IOAR Thumbnail
CFW320-IOAENC
CFW320-IOAENC Thumbnail
MMF-uDrives
MMF-uDrives Thumbnail
CFW320-KHMIR
CFW320-KHMIR Thumbnail
CFW320-KFA-S1-S2
CFW320-KFA-S1-S2 Thumbnail
CFW320-KFB-S2
CFW320-KFB-S2 Thumbnail
CFW320-CETH
CFW320-CETH Thumbnail
CFW320-IOP
CFW320-IOP Thumbnail
CFW320-IODF
CFW320-IODF Thumbnail
CFW320-KFA-T2
CFW320-KFA-T2 Thumbnail
CFW320-KFB-T2
CFW320-KFB-T2 Thumbnail
CFW320-KFA-T4
CFW320-KFA-T4 Thumbnail
CFW320-KFB-T4
CFW320-KFB-T4 Thumbnail
CFW320-KFC-T4
CFW320-KFC-T4 Thumbnail


To learn more: https://www.AutomationDirect.com/drives?utm_source=zBwMfvKxI1M&utm_medium=VideoTeamDescription

(VID-DR-0119)

Learn how the PID algorithms work with hands-on real world demos instead of theoretical math. In this video we will experiment with the PID coefficients to help give you a better feel for how they work together and how to adjust them to give you the best possible PID tuning.

Online Support Page: https://community.automationdirect.com/s/?utm_source=zBwMfvKxI1M&utm_medium=VideoTeamDescription

**Please check our website for our most up-to-date product pricing and availability.


Hide Transcript
View Transcript

To talk to a WEG variable frequency drive via Modbus RTU, you just: wire it to your controller, configure the drive for serial communications, send Modbus commands to run/stop the drive, change direction, jog, etc., and read and write Modus registers to change or view parameters in the drive. Let’s do a quick example using a CLICK PLC and a WEG CFW100 drive. And while I am using a CLICK PLC for this demo, the same concepts will apply to any PLC. The WEG drives don’t have communications built-in, so you’ll need to add an RS485 module and wire it to the controller like this. Let’s add an external selector switch on digital input 4 so we can quickly switch between local operation of the drive from the front panel keypad and HMI and remote operation where we will control the drive from a PLC via Modbus RTU. And remember that while we are using a WEG CFW100 drive in this demo, everything we do here applies to the WEG CFW300 drives too. Wiring is done, time to configure the drive. I’m going to reset the drive to factory default, so you know exactly where I am starting from. Before we do anything though, let’s go to parameter 12 and make sure the drive sees the switch on digital input 4. Yep, the 4th bit lights up. Perfect. We need to configure the serial port, configure the digital input, configure remote mode for serial operations and enter our motor specs. To configure the drive’s serial communications, you just setup these parameters. We’re gonna use these default values, so we don’t need to do anything here. Of course, we will have to make sure the CLICK PLC matches these . Next, we need to add the local-remote switch. I’ll go to parameter 220 and set it to a 4 to tell the drive we are using a digital input to control switching between local and remote modes. And let’s go to parameter 266 and set it to a 9 to tell digital input 4 it will be used as the local remote switch. Now we need to tell the drive that when it is in remote mode, to get the speed reference, forward reverse, run/stop and jog from the serial interface. Give me a second to enter those. One side note: Parameter 226 is set to a 5 and while that tells the drive forward and reverse will be controlled by serial commands, it also tells the drive that if power is lost that it should default to forward when power returns. If you put a 6 here, it still tells the drive to use serial commands for forward and reverse, but to resume in the reverse direction if power is lost. Normally you will want a 5 here, but it’s nice to know you have the option. Ok, the drive is now configured to use Modbus RTU for its commands when in REMOTE mode. Finally, these are the values I entered for my motor, yours will probably be different, of course. If we go to parameter 680 we can see the device status and if I switch the local remote switch, sure enough, the switch is changing the drive between modes, so we must have configured it correctly. Perfect. Ok, well, there are only two things you need to know to talk to the drive via Modbus RTU. First, to control the drive your controller needs to write to parameter 682 and set or clear the appropriate bits. For example, to run the motor in reverse, you would set the run bit, the enable, clear the forward bit and write the result to Parameter 682. Second, to read and write any parameter in the drive, all you have to remember is the parameter number IS the Modbus address offset. Depending on your controller, you may need to add the base address and/or the plus one yourself. We’ll have to do both of those in the CLICK PLC so let’s bring up a little four rung program I threw together to demonstrate Modus communications. On the rising edge of C1 we send the contents of register DS1 to slave 1 using the single register write, to this address which is parameter 682 plus the ModBus base address and the plus one we need. How did I know to use 400000 for the base address? Easy, I just looked it up in the Help file. For an 06 register write I need the 400,000 range starting at ONE, not Zero – which is what told me I needed that plus one to shift the WEG parameters into this range because the WEG parameters start at 0. So, to command the drive to run, we just set the appropriate bits in DS1 - which I listed here for quick reference - and toggle the C1 contact. To reverse direction, clear bit 2 and toggle C1 again. That’s all there is to commanding the drive. I added an identical instruction except it sends register DS2 which I have preformatted with a stop command so I can quickly stop the drive by toggling C2 without having to remember which bits to set. Toggling C3 is identical except it sends a new drive frequency in DS3 to parameter 683. And the last rung reads the drive status register when we toggle C4. These are all of the bit definitions for the status register. I created a data view to make it easy to see what’s going on. These are the control bits, the data registers and the error bits. I connected to the PLC, transferred the program and the PLC is currently running. Ok. Let’s switch the drive over to remote mode so it can accept our Modbus messages. Let’s send a run command. That is, we want to RUN, with the drive enabled, in the forward direction, so we want to send a 7 which I’ll put in register DS1 and write the value to the PLC. Now we toggle C1 to issue the run command we stored in DS1 and we see the motor start to turn at the default min frequency. To change that to reverse we want to RUN, with the drive enabled, in the reverse direction, so we put a 3 in DS1, write that value out to the PLC and toggle C1. And sure enough the motor ramps down and then ramps back up in the opposite direction. To change the motor speed, we just put the frequency we want here – BUT – it’s important to remember this isn’t a frequency number like 33 Hz. Instead it’s a number in this range. Where 0 to 60Hz corresponds to this range or this in hex. So a quarter of the 60 Hz – which is 15 Hz – would be a quarter of this. So, to get 15 Hz we would put a 2047 here. But, just to remind us this isn’t a direct frequency number, I’m going to change this to a hex format and enter that number in hex to get the 15 Hz and update the value to the PLC. I’m also using hex because if you look at the drive frequency in parameter 681 on the LCD display, it shows up in hex – another reminder that this isn’t a direct frequency number. So now when we issue the change frequency command it takes the value in DS3 and sends it to the motor and we see the motor ramp up to 15 Hz. A negative number will reverse the direction. So, the good news is you can easily change the frequency of the drive via Modbus. The bad news is you will have to scale it to the correct number before sending it. Finally, let’s take a look at the drive status by watching DS4 and toggling the get status bit. This is easier to view in hex, so I’ll switch that. 1302 looks like this in binary so we see that we are in remote mode, we are running in the in this direction – forward and reverse is relative to your setup of course - the drive output is enabled, the motor is running, and we don’t care about these bits. I’ve already created the STOP command, so we just toggle the STOP command to stop the motor and it ramps down to zero. Now if we toggle the status bit we see this which says we are in remote mode and the drive is enabled, but it is not running. So, given those couple examples, you should now be able to read and write any register you want in the drive and command the drive all via Modbus. By the way, I got all of this from the WEG Modbus manual, so be sure to check that out if you need more details. In particular, if you get a Modbus error, the manual tells you what each error is. Click here to see all of the videos in this series. Click here to subscribe to our YouTube channel so you will be notified when we publish new videos and click here to learn about all of AutomationDirect’s free award-winning support options.



No data returned!
An error has occurred! Please contact support
Videos Home > WEG CFW VFD Modbus RTU from AutomationDirect
Contact, Connect & More
Sign Up
to receive:
FREE e-Newsletter
sign up today!
Connect With Us
Social Media Channels:
linkedin    facebook    x    instagram    youtube
Company Information
About Us
Brand Line Card
System Integrator Program
International Sales
Panel Builder Program
Site Help
Company Reviews
Download Price List
Contact Us
Contact Options
1-800-633-0405
Monday - Friday
9 a.m. - 6 p.m. ET
excluding holidays
Career Opportunities
Voted #1 mid-sized employer in Atlanta
We're a great place to work!
Check out our job openings

Need Training?
Affordable Training by Interconnecting Automation
Free Online PLC Training
FREE Video Tutorials
Information & News
What's New / In The News
FREE e-Newsletter
Automation Notebook
Product Literature
White Papers
News, Product and Training Bulletins
E-Books
Shop with confidence
Checked   Safe & Secure
payment methods


We accept VISA, MasterCard, Discover, American Express, PayPal or company purchase orders.
AutomationDirect

BBB Accredited

Voted #1 mid-sized employer in Atlanta
Check out our job openings

Copyright © 1999-2025 AutomationDirect.  ALL RIGHTS RESERVED.
Site Map     Send Us your Feedback     Unsubscribe     Email Preferences     Legal & Business Policies     YouTube Terms of Service
Clear login credentials



Back to Top


spinner Updating...
Info
„