ForMotorVFD

dep_deliver
我叫锄头 11 months ago
parent 079edf24d1
commit 9c83153493

@ -13,39 +13,42 @@ namespace DataBlockHelper.Entity.DB91Entity
byte byt = content[0]; byte byt = content[0];
Auto_BT = byt.GetBit(0); AutoMode = byt.GetBit(0);
Man_BT = byt.GetBit(1); ManualMode = byt.GetBit(1);
Start_A = byt.GetBit(2); Start_A = byt.GetBit(2);
Stop_A = byt.GetBit(3); Stop_A = byt.GetBit(3);
Start_M = byt.GetBit(4); Start_M = byt.GetBit(4);
Stop_M = byt.GetBit(5); Stop_M = byt.GetBit(5);
AlarmReset = byt.GetBit(6); AlarmReset = byt.GetBit(6);
EXT_Estop = byt.GetBit(7); EXT_Estop = byt.GetBit(7);
byt = content[1]; byt = content[1];
Running= byt.GetBit(0);
AutoMode = byt.GetBit(0); Alarm = byt.GetBit(1);
ManMode = byt.GetBit(1); Error = byt.GetBit(2);
VVVF_OK = byt.GetBit(2);
Running = byt.GetBit(3); Enable = byt.GetBit(3);
Alarm = byt.GetBit(4);
Error = byt.GetBit(5); Polarity = byt.GetBit(4);
Enable = byt.GetBit(6);
Polarity = byt.GetBit(7);
SetSpeed_A = PlcConnect.Instance.ByteTransform.TransSingle(content, 2); SetSpeed_A = PlcConnect.Instance.ByteTransform.TransSingle(content, 2);
SetSpeed_M = PlcConnect.Instance.ByteTransform.TransSingle(content, 6); SetSpeed_M = PlcConnect.Instance.ByteTransform.TransSingle(content, 6);
ACT_Speed = PlcConnect.Instance.ByteTransform.TransSingle(content, 10); ACT_Speed = PlcConnect.Instance.ByteTransform.TransSingle(content, 10);
} }
public bool Auto_BT { get; private set; } public bool AutoMode { get; private set; }
public bool Man_BT { get; private set; } public bool ManualMode { get; private set; }
public bool Start_A { get; private set; } public bool Start_A { get; private set; }
public bool Stop_A { get; private set; } public bool Stop_A { get; private set; }
public bool Start_M { get; private set; } public bool Start_M { get; private set; }
public bool Stop_M { get; private set; } public bool Stop_M { get; private set; }
public bool AlarmReset { get; private set; } public bool AlarmReset { get; private set; }
public bool EXT_Estop { get; private set; } public bool EXT_Estop { get; private set; }
public bool AutoMode { get; private set; }
public bool ManMode { get; private set; } public bool ManMode { get; private set; }
public bool VVVF_OK { get; private set; } public bool VVVF_OK { get; private set; }
public bool Running { get; private set; } public bool Running { get; private set; }

Loading…
Cancel
Save