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/DB2102Helper.cs

137 lines
10 KiB
C#

using DataBlockHelper.Entity.DB2102Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
1 year ago
using HslCommunication;
namespace DataBlockHelper.DBHelpers
{
public class DB2102Helper
{
1 year ago
private byte[] _bytes;
1 year ago
public DB2102Helper(byte[] bytes)
{
_bytes = bytes;
}
public DB2102Helper()
{
OperateResult<byte[]> db2102All = PlcConnect.Instance.Read("DB2102.0.0", 214);
_bytes = db2102All.Content;
}
public FOR_VALVE_DoubleEntity DV2PCP01 => new FOR_VALVE_DoubleEntity(130, _bytes);
public FOR_VALVE_DoubleEntity DV2PCP02 => new FOR_VALVE_DoubleEntity(132, _bytes);
public FOR_VALVE_DoubleEntity DV2PCP03 => new FOR_VALVE_DoubleEntity(134, _bytes);
public FOR_VALVE_DoubleEntity DV2PCP04 => new FOR_VALVE_DoubleEntity(136, _bytes);
public FOR_VALVE_DoubleEntity DV2PCP05 => new FOR_VALVE_DoubleEntity(138, _bytes);
public FOR_VALVE_DoubleEntity DV2PCP06 => new FOR_VALVE_DoubleEntity(140, _bytes);
public FOR_VALVE_DoubleEntity DV2PCP07 => new FOR_VALVE_DoubleEntity(142, _bytes);
public FOR_VALVE_DoubleEntity DV2PCP08 => new FOR_VALVE_DoubleEntity(144, _bytes);
public FOR_VALVE_DoubleEntity DV2PCP09 => new FOR_VALVE_DoubleEntity(146, _bytes);
public FOR_VALVE_DoubleEntity DV2PCP10 => new FOR_VALVE_DoubleEntity(148, _bytes);
public FOR_VALVE_DoubleEntity DV2PCP11 => new FOR_VALVE_DoubleEntity(150, _bytes);
public FOR_VALVE_DoubleEntity DV2PCP12 => new FOR_VALVE_DoubleEntity(152, _bytes);
public FOR_VALVE_DoubleEntity DV2PCP13 => new FOR_VALVE_DoubleEntity(154, _bytes);
public FOR_VALVE_DoubleEntity DV2PCP14 => new FOR_VALVE_DoubleEntity(156, _bytes);
1 year ago
public FOR_VALVE_SingleEntity BU1ASF01 => new FOR_VALVE_SingleEntity(0, _bytes);
public FOR_VALVE_SingleEntity BU1BSF01 => new FOR_VALVE_SingleEntity(2, _bytes);
public FOR_VALVE_SingleEntity BU1CSF01 => new FOR_VALVE_SingleEntity(4, _bytes);
public FOR_VALVE_SingleEntity BU1DSF01 => new FOR_VALVE_SingleEntity(6, _bytes);
public FOR_VALVE_SingleEntity BU1ESF01 => new FOR_VALVE_SingleEntity(8, _bytes);
public FOR_VALVE_SingleEntity BU1FSF01 => new FOR_VALVE_SingleEntity(10, _bytes);
public FOR_VALVE_SingleEntity BU1GSF01 => new FOR_VALVE_SingleEntity(12, _bytes);
public FOR_VALVE_SingleEntity BU1HSF01 => new FOR_VALVE_SingleEntity(14, _bytes);
public FOR_VALVE_SingleEntity BU1ISF01 => new FOR_VALVE_SingleEntity(16, _bytes);
public FOR_VALVE_SingleEntity BU1JSF01 => new FOR_VALVE_SingleEntity(18, _bytes);
public FOR_VALVE_SingleEntity BU1KSF01 => new FOR_VALVE_SingleEntity(20, _bytes);
public FOR_VALVE_SingleEntity BU1LSF01 => new FOR_VALVE_SingleEntity(22, _bytes);
public FOR_VALVE_SingleEntity BU1MSF01 => new FOR_VALVE_SingleEntity(24, _bytes);
public FOR_VALVE_SingleEntity BU1NSF01 => new FOR_VALVE_SingleEntity(26, _bytes);
public FOR_VALVE_SingleEntity BU1OSF01 => new FOR_VALVE_SingleEntity(28, _bytes);
public FOR_VALVE_SingleEntity BU1BLT01 => new FOR_VALVE_SingleEntity(30, _bytes);
public FOR_VALVE_SingleEntity BU1BLT02 => new FOR_VALVE_SingleEntity(32, _bytes);
public FOR_VALVE_SingleEntity BU1BLT03 => new FOR_VALVE_SingleEntity(34, _bytes);
public FOR_VALVE_SingleEntity BU1BLT04 => new FOR_VALVE_SingleEntity(36, _bytes);
public FOR_VALVE_SingleEntity BU1BLT05 => new FOR_VALVE_SingleEntity(38, _bytes);
public FOR_VALVE_SingleEntity BU1BLT06 => new FOR_VALVE_SingleEntity(40, _bytes);
public FOR_VALVE_SingleEntity BU1BLT07 => new FOR_VALVE_SingleEntity(42, _bytes);
public FOR_VALVE_SingleEntity BU2BLT01 => new FOR_VALVE_SingleEntity(44, _bytes);
public FOR_VALVE_SingleEntity BU2BLT02 => new FOR_VALVE_SingleEntity(46, _bytes);
public FOR_VALVE_SingleEntity BU2BLT03 => new FOR_VALVE_SingleEntity(48, _bytes);
public FOR_VALVE_SingleEntity BU2BLT04 => new FOR_VALVE_SingleEntity(50, _bytes);
public FOR_VALVE_SingleEntity BU2BLT05 => new FOR_VALVE_SingleEntity(52, _bytes);
public FOR_VALVE_SingleEntity BU3BLT01 => new FOR_VALVE_SingleEntity(54, _bytes);
public FOR_VALVE_SingleEntity BU3BLT02 => new FOR_VALVE_SingleEntity(56, _bytes);
public FOR_VALVE_SingleEntity BU3BLT03 => new FOR_VALVE_SingleEntity(58, _bytes);
public FOR_VALVE_SingleEntity BU3BLT04 => new FOR_VALVE_SingleEntity(60, _bytes);
public FOR_VALVE_SingleEntity BU3BLT05 => new FOR_VALVE_SingleEntity(62, _bytes);
public FOR_VALVE_SingleEntity BU3BLT06 => new FOR_VALVE_SingleEntity(64, _bytes);
public FOR_VALVE_SingleEntity BU3BLT07 => new FOR_VALVE_SingleEntity(66, _bytes);
public FOR_VALVE_SingleEntity BU4BLT01 => new FOR_VALVE_SingleEntity(68, _bytes);
public FOR_VALVE_SingleEntity BU4BLT02 => new FOR_VALVE_SingleEntity(70, _bytes);
public FOR_VALVE_SingleEntity BU4BLT03 => new FOR_VALVE_SingleEntity(72, _bytes);
public FOR_VALVE_SingleEntity BU4BLT04 => new FOR_VALVE_SingleEntity(74, _bytes);
public FOR_VALVE_SingleEntity BU4BLT05 => new FOR_VALVE_SingleEntity(76, _bytes);
public FOR_VALVE_SingleEntity BU4BLT06 => new FOR_VALVE_SingleEntity(78, _bytes);
public FOR_VALVE_SingleEntity BU4BLT07 => new FOR_VALVE_SingleEntity(80, _bytes);
public FOR_VALVE_SingleEntity BU5BLT01 => new FOR_VALVE_SingleEntity(82, _bytes);
public FOR_VALVE_SingleEntity BU5BLT02 => new FOR_VALVE_SingleEntity(84, _bytes);
public FOR_VALVE_SingleEntity BU5BLT03 => new FOR_VALVE_SingleEntity(86, _bytes);
public FOR_VALVE_SingleEntity BU5BLT04 => new FOR_VALVE_SingleEntity(88, _bytes);
public FOR_VALVE_SingleEntity BU2ASF01 => new FOR_VALVE_SingleEntity(90, _bytes);
public FOR_VALVE_SingleEntity BU2ASF02 => new FOR_VALVE_SingleEntity(92, _bytes);
public FOR_VALVE_SingleEntity BU2BSF01 => new FOR_VALVE_SingleEntity(94, _bytes);
public FOR_VALVE_SingleEntity BU2BSF02 => new FOR_VALVE_SingleEntity(96, _bytes);
public FOR_VALVE_SingleEntity BU2CSF01 => new FOR_VALVE_SingleEntity(98, _bytes);
public FOR_VALVE_SingleEntity BU2CSF02 => new FOR_VALVE_SingleEntity(100, _bytes);
public FOR_VALVE_SingleEntity BU2DSF01 => new FOR_VALVE_SingleEntity(102, _bytes);
public FOR_VALVE_SingleEntity BU2DSF02 => new FOR_VALVE_SingleEntity(104, _bytes);
public FOR_VALVE_SingleEntity BU1ADB01 => new FOR_VALVE_SingleEntity(106, _bytes);
public FOR_VALVE_SingleEntity BU1BDB01 => new FOR_VALVE_SingleEntity(108, _bytes);
public FOR_VALVE_SingleEntity BU1CDB01 => new FOR_VALVE_SingleEntity(110, _bytes);
public FOR_VALVE_SingleEntity BU1DDB01 => new FOR_VALVE_SingleEntity(112, _bytes);
public FOR_VALVE_SingleEntity BU1EDB01 => new FOR_VALVE_SingleEntity(114, _bytes);
public FOR_VALVE_SingleEntity BU1FDB01 => new FOR_VALVE_SingleEntity(116, _bytes);
public FOR_VALVE_SingleEntity BU1GDB01 => new FOR_VALVE_SingleEntity(118, _bytes);
public FOR_VALVE_SingleEntity BU1HDB01 => new FOR_VALVE_SingleEntity(120, _bytes);
public FOR_VALVE_SingleEntity BU1IDB01 => new FOR_VALVE_SingleEntity(122, _bytes);
public FOR_VALVE_SingleEntity BU1JDB01 => new FOR_VALVE_SingleEntity(124, _bytes);
public FOR_VALVE_SingleEntity BU1KDB01 => new FOR_VALVE_SingleEntity(126, _bytes);
public FOR_VALVE_SingleEntity BU1LDB01 => new FOR_VALVE_SingleEntity(128, _bytes);
1 year ago
public FOR_VALVE_SingleEntity BU1DRB01 => new FOR_VALVE_SingleEntity(158, _bytes);
public FOR_VALVE_SingleEntity BU2DRB01 => new FOR_VALVE_SingleEntity(160, _bytes);
public FOR_VALVE_SingleEntity BU3DRB01 => new FOR_VALVE_SingleEntity(162, _bytes);
public FOR_VALVE_SingleEntity BU4DRB01 => new FOR_VALVE_SingleEntity(164, _bytes);
public FOR_VALVE_SingleEntity BU1GEB01 => new FOR_VALVE_SingleEntity(166, _bytes);
public FOR_VALVE_SingleEntity BU2GEB01 => new FOR_VALVE_SingleEntity(168, _bytes);
public FOR_VALVE_SingleEntity BU3GEB01 => new FOR_VALVE_SingleEntity(170, _bytes);
public FOR_VALVE_SingleEntity BU4GEB01 => new FOR_VALVE_SingleEntity(172, _bytes);
public FOR_VALVE_SingleEntity BU5GEB01 => new FOR_VALVE_SingleEntity(174, _bytes);
public FOR_VALVE_SingleEntity BU6GEB01 => new FOR_VALVE_SingleEntity(176, _bytes);
public FOR_VALVE_SingleEntity BU7GEB01 => new FOR_VALVE_SingleEntity(178, _bytes);
public FOR_VALVE_SingleEntity BU8GEB01 => new FOR_VALVE_SingleEntity(180, _bytes);
public FOR_VALVE_SingleEntity BUWeter1 => new FOR_VALVE_SingleEntity(182, _bytes);
public FOR_VALVE_SingleEntity BUWeter2 => new FOR_VALVE_SingleEntity(184, _bytes);
public FOR_VALVE_SingleEntity BUWeter3 => new FOR_VALVE_SingleEntity(186, _bytes);
public FOR_VALVE_SingleEntity BUWeter4 => new FOR_VALVE_SingleEntity(188, _bytes);
public FOR_VALVE_SingleEntity BUWeter5 => new FOR_VALVE_SingleEntity(190, _bytes);
public FOR_VALVE_SingleEntity BUWeter6 => new FOR_VALVE_SingleEntity(192, _bytes);
public FOR_VALVE_SingleEntity BUWeter7 => new FOR_VALVE_SingleEntity(194, _bytes);
public FOR_VALVE_SingleEntity BUWeter8 => new FOR_VALVE_SingleEntity(196, _bytes);
public FOR_VALVE_SingleEntity BU1GEB02 => new FOR_VALVE_SingleEntity(198, _bytes);
public FOR_VALVE_SingleEntity BU2GEB02 => new FOR_VALVE_SingleEntity(200, _bytes);
public FOR_VALVE_SingleEntity BU3GEB02 => new FOR_VALVE_SingleEntity(202, _bytes);
public FOR_VALVE_SingleEntity BU4GEB02 => new FOR_VALVE_SingleEntity(204, _bytes);
public FOR_VALVE_SingleEntity BU5GEB02 => new FOR_VALVE_SingleEntity(206, _bytes);
public FOR_VALVE_SingleEntity BU6GEB02 => new FOR_VALVE_SingleEntity(208, _bytes);
public FOR_VALVE_SingleEntity BU7GEB02 => new FOR_VALVE_SingleEntity(210, _bytes);
public FOR_VALVE_SingleEntity BU8GEB02 => new FOR_VALVE_SingleEntity(212, _bytes);
}
}