background image

 

Quickstart Guide  

ABB PLC and drives integration using Modbus RTU 

 

 

 

 

 

 

 

 

 

Summary of Contents for ACS310

Page 1: ...Quickstart Guide ABB PLC and drives integration using Modbus RTU...

Page 2: ...COM1 Master at the bus line end 11 AC500 eCo COM2 Master at the bus line end 12 Drive configuration 13 Starting up ACS310 drives with embedded Modbus RTU 14 Starting up ACS355 drives with FMBA 01 Modb...

Page 3: ...ives integration Library Manager 26 PLC logic 27 Download program to PLC 32 Create boot project 33 Test the program 34 Read and write more data between PLC and drive optional 36 Visualizations 43 Add...

Page 4: ...sible damage caused by using the material in this application shown examples data project tools etc Safety instructions Follow all safety instructions delivered with the used components Read the compl...

Page 5: ...PLC and drives integration using Modbus RTU Modbus RTU 5 PLC and drives integration Setup example Control Builder Plus AC500 PLC ABB ACS Drives ETHERNET or serial connection Modbus RTU ABB Modbus RTU...

Page 6: ...les Fieldbus shield The shield should always be connected in a Modbus RTU line The purpose of the shield is to protect against EMC disturbances and reflection on the bus line For connection examples s...

Page 7: ...S connect with bridges YES connect with bridges Pull up pull down resistor size 470 470 270 270 475 Pull up pull down resistors connection point Master CPU COM port Master CPU COM port Master CPU COM...

Page 8: ...ral rules Installation where total cable length is more than 50 m o Use CPU AC500 rather than AC500 eCo or AC500 eCo with TK506 RS 485 isolator for COM1 Installation where there is a risk that ground...

Page 9: ...t be reduced Terminating resistors 120 W at both line ends Remarks Cables with PVC core insulation and a core diameter of 0 8 mm can be used up to a length of appr 250 m In this case the bus terminati...

Page 10: ...odbus RTU 10 PLC and drives integration Installation examples Best connection of shield is to connect directly to the mounting plate of the cabinet as near as possible to the AC500 The mounting plate...

Page 11: ...uide ABB PLC and drives integration using Modbus RTU Modbus RTU 11 PLC and drives integration AC500 COM1 Master at the bus line end AC500 COM2 Master at the bus line end AC500 eCo COM1 Master at the b...

Page 12: ...Quickstart Guide ABB PLC and drives integration using Modbus RTU Modbus RTU 12 PLC and drives integration AC500 eCo COM2 Master at the bus line end...

Page 13: ...l or from drive specific pc tool DriveWindow Light for ACS355 and ACS550 DriveStudio for ACS850 and ACSM1 Drive Composer for ACS880 and DriveWindow for ACS800 Note All parameter settings are based on...

Page 14: ...s RTU master 53 05 PROFILE ABB DRV FULL Communication profile ABB Drives Drive power down and power up for the new fieldbus settings to take effect 10 01 EXT 1 COMMANDS COMM Fieldbus interface as sour...

Page 15: ...tual speed feedback 53 11 Actual Value2 105 303 Actual value2 e g torque 105 303 Status Word 1 Drive power down and power up for the new fieldbus settings to take effect 10 01 EXT 1 COMMANDS COMM COMM...

Page 16: ...master 53 05 PROFILE ABB DRV FULL Communication profile ABB Drives Drive power down and power up for the new fieldbus settings to take effect 10 01 EXT 1 COMMANDS COMM Fieldbus interface as source fo...

Page 17: ...n and power up for the new fieldbus settings to take effect 10 01 EXT 1 STRT STP DIR COMM CW Fieldbus interface as source for start and stop 11 02 EXT1 EXT2 SELECT COMM CW Fieldbus interface as source...

Page 18: ...0 Refresh settings optional Refreshes the settings of parameters 58 01 58 09 10 01 Ext1 start func FB Fieldbus interface as source for start and stop 12 01 EXT1 EXT2 SEL P 02 36 bit 15 Fieldbus interf...

Page 19: ...refresh Configure Updates fieldbus settings groups 50 to 57 19 11 Ext1 Ext2 selection Mcw Bit11 06 01 Fieldbus interface as source to switch to EXT2 control location 20 01 Ext 1 commands Fieldbus A F...

Page 20: ...ord 1 to the drive 53 02 FBA DATA OUT2 2 Speed reference as Data Word 2 to the drive 51 27 FBA PAR REFRESH REFRESH Updates fieldbus settings groups 50 to 53 10 01 EXT1 START FUNC FBA Fieldbus interfac...

Page 21: ...e and main changes can be seen in the library manager of CODESYS only For older Versions of Control Builder Plus you can download the installation package in the following way from o www abb com PLC o...

Page 22: ...ng steps Hardware configuration File New Project Choose AC500 project and name the project Choose PLC device according to your equipment and then Add device Double click CPU_parameters and configure a...

Page 23: ...ation Double click COMX_Modbus to configure the Modbus settings Do at least the following settings Set Baudrate Parity Data bits and Stop bits 1 according to settings in actual drive Set Operation mod...

Page 24: ...low the connection if question comes up Connect an Ethernet cable between PC and PLC or via a switch Open the IP configuration tool from the Tools menu and press the Scan button Select actual PLC from...

Page 25: ...ab contains your Functions Function blocks and Programs 2 Data types In this tab along with the standard data types you can define your own user specific data types 3 Visualizations In this tab you ca...

Page 26: ...CSDrivesBase_AC500_V20 lib and ACSDrivesComModRTU_AC500_V20 lib library files from the PS553 DRIVES catalog under the standard CODESYS library catalog and click Open The libraries are added to the pro...

Page 27: ...d control drive application Compile your project choose Rebuild all from the Project menu Right click PLC_PRG in the POUs tab and choose Convert Object Choose Target Language FBD and click OK Right cl...

Page 28: ...ogram Drive1 PRG in the example to call for it from the main program Double click your new program and add a box as described above This time press F2 while the block title is selected and choose ACS_...

Page 29: ...nnect the function block inputs and outputs according to your needs In the example below the block will always be enabled COM port 1 of the PLC is used the drive has Modbus node number 1 default timeo...

Page 30: ...Quickstart Guide ABB PLC and drives integration using Modbus RTU Modbus RTU 30 PLC and drives integration...

Page 31: ...oast stop by setting DriveCoastStop TRUE Fault reset by setting DriveResetFault TRUE positive edge Speed reference is set by the variable SpeedRef as a value between 20000 and 20000 where 20000 corres...

Page 32: ...of your PC port or Ethernet adapter should belong to the same subnet as the CPU 192 168 0 XXX XXX between 1 and 255 Choose Login from the Online menu and in the following pop up window click Yes Then...

Page 33: ...U Modbus RTU 33 PLC and drives integration Create boot project In online mode Login choose Create boot project from the Online menu With this command the compiled project is stored to the flash in suc...

Page 34: ...put variable and choose Write Values from the Online menu 3 When the READY output is TRUE blue 1 then set the SPEED_REF input 2 to desired speed value and START input TRUE 3 Write values from the Onli...

Page 35: ...Quickstart Guide ABB PLC and drives integration using Modbus RTU Modbus RTU 35 PLC and drives integration...

Page 36: ...50 or in parameters 58 35 to 58 58 for ACS850 and ACQ810 The supported number of parameters that can be read in this way depend on actual drive type for instance 6 parameters can be read from ACS355 o...

Page 37: ...Quickstart Guide ABB PLC and drives integration using Modbus RTU Modbus RTU 37 PLC and drives integration The parameter values from the drive are then written to the new array variable 6...

Page 38: ...nd drives integration Example Read drive data with ACS_MOD_READ_N_PRM Values are read from Modbus register addresses according to user choice No additional parameter settings in the drive are necessar...

Page 39: ...2 2 parameters will be read in this example PRM_NUM Start address of parameters to be read 3 parameters 12 02 and 12 03 will be read in this example DATA is connected via an ADR block to a new variabl...

Page 40: ...Quickstart Guide ABB PLC and drives integration using Modbus RTU Modbus RTU 40 PLC and drives integration Note Several ACS_MOD_READ_N_PRM blocks can be activated at the same time See example below...

Page 41: ...1 Set function block inputs according to EN is connected to an execute variable of type BOOL 1 At rising edge the variable is written once PRIO Left unconnected NVAR Number of parameters to write 3 2...

Page 42: ...drives integration using Modbus RTU Modbus RTU 42 PLC and drives integration Note Several ACS_MOD_WRITE_N_PRM blocks can be used in the program See example below Note The variable is only written at a...

Page 43: ...and drive Go offline Logout from the Online menu Right click Visualizations in the Visualizations tab 1 and choose Add Object give the visualization page a suitable name From the new page choose Visua...

Page 44: ...ntil all pop up windows are closed Tip Tick the Structured box in the Input assistant window for a better overview On the same page create a visualization window for the drive control Insert Visualiza...

Page 45: ...n be changed from the visualization window Note In this example all block inputs have already been connected to the function blocks so they cannot be changed from the visualization view Some examples...

Page 46: ...dd the new program to the main program by copying Network 0001 to Network 0002 and rename the block in Network 0002 to according to your new program Double click and open the new program Change SLAVE...

Page 47: ...tents Target system AC500 S500 ACS Drives Libraries User s manual Modbus Adapter Module FMBA 01 3AFE68586704 User s manual Modbus Adapter Module RMBA 01 3AFE 64498851 Modbus Protocol Manual RS 485 Ada...

Page 48: ...more information please contact your local ABB representative or visit www abb com drives www abb com drivespartners Copyright 2012 ABB All rights reserved Specifications subject to change without not...

Reviews: