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/Controls/Mesnac.Controls.Feeding/CombinedMixer.cs

318 lines
9.4 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Mesnac.Controls.Base;
namespace Mesnac.Controls.Feeding
{
/// <summary>
/// 组合密炼机
/// </summary>
[ToolboxBitmap(typeof(Mixer2), "ICONS.mixer.bmp")]//新添加的代码
public partial class CombinedMixer : FeedingControl
{
#region 事件定义
/// <summary>
/// 报警事件
/// </summary>
public event EventHandler OnAlarm;
#endregion
#region 事件属性
private List<DesignAction> _alarmActionList = new List<DesignAction>();
public List<DesignAction> AlarmActionList
{
get { return this.mixer21.AlarmActionList; }
set { this.mixer21.AlarmActionList = value; }
}
#endregion
public CombinedMixer()
{
InitializeComponent();
this.mixer21.OnAlarm += new EventHandler(mixer21_OnAlarm);
}
private void mixer21_OnAlarm(object sender, EventArgs e)
{
if (OnAlarm != null)
{
OnAlarm(this.mixer21, System.EventArgs.Empty);
}
}
private void CombinedMixer_Resize(object sender, EventArgs e)
{
this.Width = 391;
this.Height = 178;
}
/// <summary>
/// 导开机动画属性
/// </summary>
public string BatchFeederStatusName
{
get { return this.batchFeeder1.StatusName; }
set { this.batchFeeder1.StatusName = value; }
}
/// <summary>
/// 导开机状态
/// </summary>
public BatchFeeder.Statuses BatchFeederStatus
{
get { return this.batchFeeder1.Status; }
set { this.batchFeeder1.Status = value; }
}
/// <summary>
/// 胶料称动画属性
/// </summary>
public string RubberWeightStatusName
{
get { return this.rubberWeight1.StatusName; }
set { this.rubberWeight1.StatusName = value; }
}
/// <summary>
/// 胶料称状态
/// </summary>
public RubberWeight.Statuses RubberWeightStatus
{
get { return this.rubberWeight1.Status; }
set { this.rubberWeight1.Status = value; }
}
/// <summary>
/// 胶料称电机状态动画属性
/// </summary>
public string RubberWeightMotorStatusName
{
get { return this.rubberWeight1.MotorStatusName; }
set { this.rubberWeight1.MotorStatusName = value; }
}
/// <summary>
/// 胶料称电机状态
/// </summary>
public OnOffStatuses RubberWeightMotorStatus
{
get { return this.rubberWeight1.MotorStatus; }
set { this.rubberWeight1.MotorStatus = value; }
}
/// <summary>
/// 胶料称设定值
/// </summary>
public double RWSetValue
{
get { return this.rubberWeight1.SetValue; }
set { this.rubberWeight1.SetValue = value; }
}
/// <summary>
/// 胶料称称量值动画属性
/// </summary>
public string RWWeightValueName
{
get { return this.rubberWeight1.WeightValueName; }
set { this.rubberWeight1.WeightValueName = value; }
}
/// <summary>
/// 胶料称称量值
/// </summary>
public double RWWeightValue
{
get { return this.rubberWeight1.WeightValue; }
set { this.rubberWeight1.WeightValue = value; }
}
/// <summary>
/// 传输带动画属性
/// </summary>
public string TransmissionBeltStatusName
{
get { return this.transmissionBelt1.StatusName; }
set { this.transmissionBelt1.StatusName = value; }
}
/// <summary>
/// 传输带状态
/// </summary>
public TransmissionBelt.Statuses TransmissionBeltStatus
{
get { return this.transmissionBelt1.Status; }
set { this.transmissionBelt1.Status = value; }
}
/// <summary>
/// 传送带光电开关状态动画属性
/// </summary>
public string CsdSensorStatusName
{
get { return this.transmissionBelt1.SensorStatusName; }
set { this.transmissionBelt1.SensorStatusName = value; }
}
/// <summary>
/// 传送带光电开关状态
/// </summary>
public OnOffStatuses CsdSensorStatus
{
get { return this.transmissionBelt1.SensorStatus; }
set { this.transmissionBelt1.SensorStatus = value; }
}
/// <summary>
/// 传送带电机状态动画属性
/// </summary>
public string CsdMotorStatusName
{
get { return this.transmissionBelt1.CsdMotorStatusName; }
set { this.transmissionBelt1.CsdMotorStatusName = value; }
}
/// <summary>
/// 传送带电机状态
/// </summary>
public OnOffStatuses CsdMotorStatus
{
get { return this.transmissionBelt1.CsdMotorStatus; }
set { this.transmissionBelt1.CsdMotorStatus = value; }
}
/// <summary>
/// 上顶栓上动画属性
/// </summary>
public string SdsUpStatusName
{
get { return this.mixer21.SdsUpStatusName; }
set { this.mixer21.SdsUpStatusName = value; }
}
/// <summary>
/// 上顶栓中动画属性
/// </summary>
public string SdsMiddleStatusName
{
get { return this.mixer21.SdsMiddleStatusName; }
set { this.mixer21.SdsMiddleStatusName = value; }
}
/// <summary>
/// 上顶栓下动画属性
/// </summary>
public string SdsDownStatusName
{
get { return this.mixer21.SdsDownStatusName; }
set { this.mixer21.SdsDownStatusName = value; }
}
/// <summary>
/// 上顶栓上状态
/// </summary>
public Mixer2.SdsDeviceStatuses SdsUpStatus
{
get { return this.mixer21.SdsUpStatus; }
set { this.mixer21.SdsUpStatus = value; }
}
/// <summary>
/// 上顶栓中状态
/// </summary>
public Mixer2.SdsDeviceStatuses SdsMiddleStatus
{
get { return this.mixer21.SdsMiddleStatus; }
set { this.mixer21.SdsMiddleStatus = value; }
}
/// <summary>
/// 上顶栓下状态
/// </summary>
public Mixer2.SdsDeviceStatuses SdsDownStatus
{
get { return this.mixer21.SdsDownStatus; }
set { this.mixer21.SdsDownStatus = value; }
}
/// <summary>
/// 上顶栓状态
/// </summary>
public Mixer2.sdsStatuses SdsStatus
{
get { return this.mixer21.sdsStatus; }
set { this.mixer21.sdsStatus = value; }
}
/// <summary>
/// 加料门动画属性
/// </summary>
public string JlmStatusName
{
get { return this.mixer21.jlmStatusName; }
set { this.mixer21.jlmStatusName = value; }
}
/// <summary>
/// 加料门状态
/// </summary>
public Mixer2.jlmStatuses JlmStatus
{
get { return this.mixer21.jlmStatus; }
set { this.mixer21.jlmStatus = value; }
}
/// <summary>
/// 密炼机动画属性
/// </summary>
public string MixerStatusName
{
get { return this.mixer21.mixerStatusName; }
set { this.mixer21.mixerStatusName = value; }
}
/// <summary>
/// 密炼机状态
/// </summary>
public Mixer2.mixerStatuses MixerStatus
{
get { return this.mixer21.mixerStatus; }
set { this.mixer21.mixerStatus = value; }
}
/// <summary>
/// 卸料门动画属性
/// </summary>
public string XlmStatusName
{
get { return this.mixer21.xlmStatusName; }
set { this.mixer21.xlmStatusName = value; }
}
/// <summary>
/// 卸料门状态
/// </summary>
public Mixer2.xlmStatuses XlmStatus
{
get { return this.mixer21.xlmStatus; }
set { this.mixer21.xlmStatus = value; }
}
#region 报警
/// <summary>
/// 上顶栓报警信息属性
/// </summary>
public string SdsAlarmValue
{
get { return this.mixer21.SdsAlarmValue; }
set { this.mixer21.SdsAlarmValue = value; }
}
/// <summary>
/// 加料门报警信息属性
/// </summary>
public string JlmAlarmValue
{
get { return this.mixer21.JlmAlarmValue; }
set { this.mixer21.JlmAlarmValue = value; }
}
/// <summary>
/// 卸料门报警信息属性
/// </summary>
public string XlmAlarmValue
{
get { return this.mixer21.XlmAlarmValue; }
set { this.mixer21.XlmAlarmValue = value; }
}
#endregion
}
}