Difference between revisions of "Ime Conto D2"

From HSYCO
Jump to navigation Jump to search
 
Line 28: Line 28:
 
  io mbus.1.8199 : $pf = io mbus.1.8199, $pf + "%", $pf + $pfs, $powerf = $pf
 
  io mbus.1.8199 : $pf = io mbus.1.8199, $pf + "%", $pf + $pfs, $powerf = $pf
 
  io mbus.1.8201 : $f = io mbus.1.8201, $f / 10, $f round 1, $frequency = $f
 
  io mbus.1.8201 : $f = io mbus.1.8201, $f / 10, $f round 1, $frequency = $f
  time or $energy : datalogger edl = $energy, datalogger edl3h = $energy, log = "energy: " $energy  
+
  $energy : uiset ac.energy.text =  $energy
  $voltage : uiset ac.voltage.text =  $voltage, log = "voltage: " $voltage
+
  $voltage : uiset ac.voltage.text =  $voltage
 
  $current : uiset ac.current.text = $current   
 
  $current : uiset ac.current.text = $current   
 
  $power : uiset ac.power.text = $power, power = $power, log = "power: " $power, uiset ac.power.w.text = $power " W"
 
  $power : uiset ac.power.text = $power, power = $power, log = "power: " $power, uiset ac.power.w.text = $power " W"
 
  $powerf : uiset ac.powerf.text = $powerf
 
  $powerf : uiset ac.powerf.text = $powerf
 
  $frequency : uiset ac.frequency.text = $frequency
 
  $frequency : uiset ac.frequency.text = $frequency

Latest revision as of 16:00, 8 May 2014

IME Conto D2 is a single-phase energy meter with modbus support.

What to I need?

Hsyco, of course. A Modbus/gateway or a FTDI RS485 cable. For further information consult the Modbus IO server page.

First steps

IME Conto D2 has to be configured following the instruction of the data sheet. Configure the Modbus address, baud rate, parity using the dip switches. In this example we will use: 9600,8,1,0,0 and Modbus address 1. Connect the IME Conto D2 to a Modbus bus. Assuming that we are using a FTDI RS485-USB gateway, this is the connections scheme:

IME Conto D2-1.png

In Settings add a RTU Modbus communication port:

IME Conto D2-2.png

Events Programming

Add this lines to events.txt:

hsycostart: $pfs = "(?)", programtimer mbusread = repeat 4
programtimer mbusread : io mbus.1.8192 mbus.1.8194 mbus.1.8196 mbus.1.8202 = readholdingregisters:uint, io mbus.1.8200 mbus.1.8201 mbus.1.8199 = readholdingregisters:ushort										
io mbus.1.8192 : $v = io mbus.1.8192, $v / 1000, $v round 1, $voltage = $v
io mbus.1.8194 : $c = io mbus.1.8194, $c / 1000, $c round 1, $current = $c
io mbus.1.8196 : $p = io mbus.1.8196, $p / 100, $p round 0, $power = $p
io mbus.1.8202 : $e = io mbus.1.8202, $e / 10, $e round 1, $energy = $e
io mbus.1.8200 = 1 : $pfs = " (L)"
io mbus.1.8200 = 2 : $pfs = " (C)"
io mbus.1.8199 : $pf = io mbus.1.8199, $pf + "%", $pf + $pfs, $powerf = $pf
io mbus.1.8201 : $f = io mbus.1.8201, $f / 10, $f round 1, $frequency = $f
$energy : uiset ac.energy.text =  $energy
$voltage : uiset ac.voltage.text =  $voltage
$current : uiset ac.current.text = $current   
$power : uiset ac.power.text = $power, power = $power, log = "power: " $power, uiset ac.power.w.text = $power " W"
$powerf : uiset ac.powerf.text = $powerf
$frequency : uiset ac.frequency.text = $frequency