|
|
|
|
using HslCommunication;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace DataBlockHelper.Entity.DB2107Entity
|
|
|
|
|
{
|
|
|
|
|
public class SpeedEntity
|
|
|
|
|
{
|
|
|
|
|
public SpeedEntity(byte[] bytes)
|
|
|
|
|
{
|
|
|
|
|
//OperateResult<byte[]> read = PlcConnect.Instance.Read("DB2107.1324.0", 84);
|
|
|
|
|
|
|
|
|
|
var content = bytes.Skip(1324).Take(84).ToArray();
|
|
|
|
|
|
|
|
|
|
ManSpeed_D1 = PlcConnect.Instance.ByteTransform.TransSingle(content, 0);
|
|
|
|
|
ManSpeed_D2 = PlcConnect.Instance.ByteTransform.TransSingle(content, 4);
|
|
|
|
|
ManSpeed_D3 = PlcConnect.Instance.ByteTransform.TransSingle(content, 8);
|
|
|
|
|
ManSpeed_D4 = PlcConnect.Instance.ByteTransform.TransSingle(content, 12);
|
|
|
|
|
ManSpeed_G1 = PlcConnect.Instance.ByteTransform.TransSingle(content, 16);
|
|
|
|
|
ManSpeed_G2 = PlcConnect.Instance.ByteTransform.TransSingle(content, 20);
|
|
|
|
|
ManSpeed_G3 = PlcConnect.Instance.ByteTransform.TransSingle(content, 24);
|
|
|
|
|
ManSpeed_G4 = PlcConnect.Instance.ByteTransform.TransSingle(content, 28);
|
|
|
|
|
ManSpeed_G5 = PlcConnect.Instance.ByteTransform.TransSingle(content, 32);
|
|
|
|
|
ManSpeed_G6 = PlcConnect.Instance.ByteTransform.TransSingle(content, 36);
|
|
|
|
|
ManSpeed_G7 = PlcConnect.Instance.ByteTransform.TransSingle(content, 40);
|
|
|
|
|
ManSpeed_G8 = PlcConnect.Instance.ByteTransform.TransSingle(content, 44);
|
|
|
|
|
ManSpeed_H1 = PlcConnect.Instance.ByteTransform.TransSingle(content, 48);
|
|
|
|
|
ManSpeed_H2 = PlcConnect.Instance.ByteTransform.TransSingle(content, 52);
|
|
|
|
|
ManSpeed_H3 = PlcConnect.Instance.ByteTransform.TransSingle(content, 56);
|
|
|
|
|
ManSpeed_H4 = PlcConnect.Instance.ByteTransform.TransSingle(content, 60);
|
|
|
|
|
ManSpeed_S1 = PlcConnect.Instance.ByteTransform.TransSingle(content, 64);
|
|
|
|
|
ManSpeed_S5 = PlcConnect.Instance.ByteTransform.TransSingle(content, 68);
|
|
|
|
|
ManSpeed_S7 = PlcConnect.Instance.ByteTransform.TransSingle(content, 72);
|
|
|
|
|
ManSpeed_S11 = PlcConnect.Instance.ByteTransform.TransSingle(content, 76);
|
|
|
|
|
ManSpeed_S15 = PlcConnect.Instance.ByteTransform.TransSingle(content, 80);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public float ManSpeed_D1 { get; private set; }
|
|
|
|
|
public float ManSpeed_D2 { get; private set; }
|
|
|
|
|
public float ManSpeed_D3 { get; private set; }
|
|
|
|
|
public float ManSpeed_D4 { get; private set; }
|
|
|
|
|
public float ManSpeed_G1 { get; private set; }
|
|
|
|
|
public float ManSpeed_G2 { get; private set; }
|
|
|
|
|
public float ManSpeed_G3 { get; private set; }
|
|
|
|
|
public float ManSpeed_G4 { get; private set; }
|
|
|
|
|
public float ManSpeed_G5 { get; private set; }
|
|
|
|
|
public float ManSpeed_G6 { get; private set; }
|
|
|
|
|
public float ManSpeed_G7 { get; private set; }
|
|
|
|
|
public float ManSpeed_G8 { get; private set; }
|
|
|
|
|
public float ManSpeed_H1 { get; private set; }
|
|
|
|
|
public float ManSpeed_H2 { get; private set; }
|
|
|
|
|
public float ManSpeed_H3 { get; private set; }
|
|
|
|
|
public float ManSpeed_H4 { get; private set; }
|
|
|
|
|
public float ManSpeed_S1 { get; private set; }
|
|
|
|
|
public float ManSpeed_S5 { get; private set; }
|
|
|
|
|
public float ManSpeed_S7 { get; private set; }
|
|
|
|
|
public float ManSpeed_S11 { get; private set; }
|
|
|
|
|
public float ManSpeed_S15 { get; private set; }
|
|
|
|
|
}
|
|
|
|
|
}
|