Skip to content

How to use Excel to monitor and edit Allen-Bradley Drive Parameter

  • by

ย 

First, what is the advantage to use Excel to monitor Powerflex Drive /VFD?

ย 

* You can get the whole picture, by monitor all the important parameter in one page. This can be quite useful during commissioning.

* Can do copy paste, add formula, add chart, note etc which can be useful for analysis and understand better.

* It is easy and quick to set up.

Okay.

๐—›๐—ผ๐˜„ ๐˜๐—ผ ๐— ๐—ผ๐—ป๐—ถ๐˜๐—ผ๐—ฟ ๐—”๐—น๐—น๐—ฒ๐—ป-๐—•๐—ฟ๐—ฎ๐—ฑ๐—น๐—ฒ๐˜† ๐—ฃ๐—ผ๐˜„๐—ฒ๐—ฟ๐—ณ๐—น๐—ฒ๐˜… ๐—ฑ๐—ฟ๐—ถ๐˜ƒ๐—ฒ ๐—ฝ๐—ฎ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜๐—ฒ๐—ฟ ๐—ณ๐—ฟ๐—ผ๐—บ ๐—˜๐˜…๐—ฐ๐—ฒ๐—น ๐˜€๐—ฝ๐—ฟ๐—ฒ๐—ฎ๐—ฑ๐˜€๐—ต๐—ฒ๐—ฒ๐˜?

Use RS Linx as DDE (Dynamic Data Exchange) Server. So just need Microsoft Excel and RS Linx Classic (not Light version) installed in PC.

Here is the procedure:

โ–ช๏ธFirst Create DDE Topic in RS Linx.

1. Open RSLinx and click DDE/OPC then Click Topic Configuration

2. Right click in the Top List window and click โ€™Newโ€™

3. Enter in a name for your topic and press enter

4. With the topic name highlighted in the Topic List window, browse to the drive on the right window and highlight the drive.

5. Click โ€™Applyโ€™ then go to the โ€™Data Collectionโ€™ tab.

6. Under โ€™Processor Type,โ€™ select โ€™Device w/ EDS Parametersโ€™

โ–ช๏ธSecond, Open up Microsoft Excel ;

Type the formula in the one of the Excel cell with The syntax

=RSLinx|’topic name’!’class code:instance:attribute,datatype,L1,C1′

Example for a PowerFlex 525:

=RSLINX|’PF525′!’147:5:9,u16,L1,C1′

Example for a PowerFlex 755:

=RSLinx|’PF755′!’147:11:9,f32,L1,C1โ€™

Topic Name – The previous created topic name in RS Linx

Class Code – 147 (DPI parameter object)

Instance = Parameter number (if parameter in port 0)

Attribute =9 (the parameter value)

Datatype- u stands for unsigned, f stands for floating point and 32 stands for 32 bits

๐—›๐—ผ๐˜„ ๐—ฎ๐—ฏ๐—ผ๐˜‚๐˜ ๐˜๐—ผ ๐—ฒ๐—ฑ๐—ถ๐˜ ๐——๐—ฟ๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฎ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜๐—ฒ๐—ฟ?

Let say parameter 31 [Motor NP Volts] on Powerflex 525.

Here is the procedure:

1. Save Excel file as Book1.xlsm (Macro Enabled Excel file)

If the Developer tab is not there; click on File menu, click on Options, Customize Ribbon on the left, click Developer checkbox.

2. Create a button in Excel to modify the drive parameter value. Click on Insert in the Excel Developer tab, then select the Command Button in the ActiveX Controls.

3. Somewhere on your spreadsheet click and drag to create a new button.

4. Right Click on the Button, Assign Macro, Click Edit and it will open Visual Basic where you can program the button.

5. Add the code from sample image to change Parameter 31 [Motor NP Volts].

The code uses an explicit message to write the value in cell D6 to Parameter 31 [Motor NP Volts].

The code needs to have the correct data type for the parameter your are writing to.

That’s it.

Leave a Reply

Your email address will not be published. Required fields are marked *