|
|
|
@ -264,11 +264,11 @@ namespace Module.EMeter.ModbusTcp
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 吸收有功电能二次侧
|
|
|
|
|
/// </summary>
|
|
|
|
|
private float _show_energy;
|
|
|
|
|
private decimal _show_energy;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 吸收有功电能二次侧 003FH~0040H(吸收有功电能)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public float F_ShowEnergy
|
|
|
|
|
public decimal F_ShowEnergy
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
@ -533,8 +533,8 @@ namespace Module.EMeter.ModbusTcp
|
|
|
|
|
var CT = _client.ByteTransform.TransInt16(operateResult1.Content, 8);
|
|
|
|
|
//_total_active_power = _client.ByteTransform.TransUInt16(_client.Read("x=3;45", 150).Content, 4);
|
|
|
|
|
//_total_active_energy = _client.ByteTransform.TransSingle(_client.Read("x=3;45", 150).Content, 56) / 1000f;
|
|
|
|
|
var transInt16 = (new decimal(_client.ByteTransform.TransUInt16(operateResult2.Content, 0)) * 65536 + _client.ByteTransform.TransUInt16(operateResult2.Content, 2) / new decimal(1000f)) * new decimal(PT) * new decimal(CT);
|
|
|
|
|
_show_energy = (float)transInt16;
|
|
|
|
|
var transInt16 = ((new decimal(_client.ByteTransform.TransUInt16(operateResult2.Content, 0)) * 65536 + _client.ByteTransform.TransUInt16(operateResult2.Content, 2) )/ new decimal(1000f)) * new decimal(PT) * new decimal(CT);
|
|
|
|
|
_show_energy = transInt16;
|
|
|
|
|
MEMeterParamResult paramRlt = new MEMeterParamResult()
|
|
|
|
|
{
|
|
|
|
|
F_EqmCode = _eqm_code,
|
|
|
|
|