|
|
|
@ -15,7 +15,7 @@ namespace DataBlockHelper.DBHelpers
|
|
|
|
|
|
|
|
|
|
public Db2101Helper()
|
|
|
|
|
{
|
|
|
|
|
OperateResult<byte[]> db = PlcConnect.Instance.Read("DB2101.0.0", 154);
|
|
|
|
|
OperateResult<byte[]> db = PlcConnect.Instance.Read("DB2101.0.0", 216);
|
|
|
|
|
bytes = db.Content;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -48,25 +48,25 @@ namespace DataBlockHelper.DBHelpers
|
|
|
|
|
public Db2101LinEntity LinC => new Db2101LinEntity(144, bytes);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//public short Ya => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 186);
|
|
|
|
|
//public short Yb => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 188);
|
|
|
|
|
//public short Yc => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 190);
|
|
|
|
|
//public short Yd => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 192);
|
|
|
|
|
//public short Ye => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 194);
|
|
|
|
|
//public short Yf => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 196);
|
|
|
|
|
public short Ya => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 186);
|
|
|
|
|
public short Yb => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 188);
|
|
|
|
|
public short Yc => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 190);
|
|
|
|
|
public short Yd => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 192);
|
|
|
|
|
public short Ye => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 194);
|
|
|
|
|
public short Yf => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 196);
|
|
|
|
|
|
|
|
|
|
//public short Yg => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 198);
|
|
|
|
|
//public short Yh => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 200);
|
|
|
|
|
//public short Yi => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 202);
|
|
|
|
|
public short Yg => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 198);
|
|
|
|
|
public short Yh => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 200);
|
|
|
|
|
public short Yi => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 202);
|
|
|
|
|
|
|
|
|
|
//public short Yj => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 204);
|
|
|
|
|
//public short Yk => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 206);
|
|
|
|
|
//public short Yl => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 208);
|
|
|
|
|
//public short Ym => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 210);
|
|
|
|
|
public short Yj => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 204);
|
|
|
|
|
public short Yk => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 206);
|
|
|
|
|
public short Yl => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 208);
|
|
|
|
|
public short Ym => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 210);
|
|
|
|
|
|
|
|
|
|
//public short Yn => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 212);
|
|
|
|
|
public short Yn => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 212);
|
|
|
|
|
|
|
|
|
|
//public short Yo => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 214);
|
|
|
|
|
public short Yo => PlcConnect.Instance.ByteTransform.TransInt16(bytes, 214);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|