| Home | Member Area | Links | Events | Publications | Promotions |
LabVIEW drivers - Carlo Gavazzi WM14 power analyzer and Modbus
[LabVIEW vi collection]
[LabVIEW links]
[LabVIEW store]
[programming topics] [drivers] [utilities] [projects] [events] [related topics]
Carlo Gavazzi - WM14 power analyzerThe information provided by Carlo Gavazzi is a good starting point for creating a vi to control the WM14 power analyzer. The following text describes the requirements for controlling several power analyzers.
Making the connectionThe WM14 can be connected to a PC trough a RS485 connection. Your PC should be equiped with a special add-on card or you should apply a RS232-to-RS485 converter. You can select either a 2 wire or a 4 wire connection. A proven connection is 2 wire with a 2 channel Advantech RS422/485 card.
Establishing the right protocolThe protocol the WM14 uses, is a subset of the Modbus protocol. The settings for the serial connection are as follows:
Commands and responses are allways followed by an error check. A command consists of:
The right addressSeveral power analyzers or modules can be connected to a single RS485 port when each module has been given an unique address. The modules can be given an address from 0 upto 255; the default address is 0.The address can be changed with the front panel menu.
DownloadsLabVIEW library wm14.llbLibrary file containing:
crc-16.vireturns the error-checking character used by the Modbus protocol
wm14-tester.vitop-level vi; test program which allows to select any module and variable
See alsoPower management application for methanol factory.
Bart Boshuizen, 2006/04/05
|
|