You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lj_plc/DataBlockHelper/DBHelpers/Db2110Help.cs

51 lines
2.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataBlockHelper.DBHelpers
{
public class Db2110Help: DBHelper
{
public Db2110Help()
{
bytes = PlcConnect.Instance.Read("DB2110.3384.0", 28).Content;
var content = bytes.ToArray();
queA0 = PlcConnect.Instance.ByteTransform.TransInt16(content, 0);
queA1 = PlcConnect.Instance.ByteTransform.TransInt16(content, 2);
queA2 = PlcConnect.Instance.ByteTransform.TransInt16(content, 4);
queA3 = PlcConnect.Instance.ByteTransform.TransInt16(content, 6);
queA4 = PlcConnect.Instance.ByteTransform.TransInt16(content, 8);
queB0 = PlcConnect.Instance.ByteTransform.TransInt16(content, 10);
queB1 = PlcConnect.Instance.ByteTransform.TransInt16(content, 12);
queB2 = PlcConnect.Instance.ByteTransform.TransInt16(content, 14);
queB3 = PlcConnect.Instance.ByteTransform.TransInt16(content, 16);
queB4 = PlcConnect.Instance.ByteTransform.TransInt16(content, 18);
queB5 = PlcConnect.Instance.ByteTransform.TransInt16(content, 20);
queB6 = PlcConnect.Instance.ByteTransform.TransInt16(content, 22);
queB7 = PlcConnect.Instance.ByteTransform.TransInt16(content, 24);
queB8 = PlcConnect.Instance.ByteTransform.TransInt16(content, 26);
}
public short queA0 { get; set; }
public short queA1 { get; set; }
public short queA2 { get; set; }
public short queA3 { get; set; }
public short queA4 { get; set; }
public short queB0 { get; set; }
public short queB1 { get; set; }
public short queB2 { get; set; }
public short queB3 { get; set; }
public short queB4 { get; set; }
public short queB5 { get; set; }
public short queB6 { get; set; }
public short queB7 { get; set; }
public short queB8 { get; set; }
}
}