You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
174 lines
4.4 KiB
174 lines
4.4 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace EC.Utils.PLC
|
|
{
|
|
/// <summary>
|
|
/// 命令编码
|
|
/// </summary>
|
|
public partial class PLCCommandFunction_Package
|
|
{
|
|
/// <summary>
|
|
/// 心跳线 =0
|
|
/// </summary>
|
|
public static int HeartBeat { get; set; } = 1;
|
|
/// <summary>
|
|
/// 空箱获取指令
|
|
/// </summary>
|
|
public const int GetFullBox = 28;
|
|
/// <summary>
|
|
///PC->PLC 空箱扫描核对
|
|
/// </summary>
|
|
public const int PrintCodeError = 2;
|
|
|
|
/// <summary>
|
|
/// 通知传送带移动
|
|
/// </summary>
|
|
public const int BeltMove = 3;
|
|
/// <summary>
|
|
///PLC->PC 传送带 移动完成
|
|
/// </summary>
|
|
public const int MoveFinish = 3;
|
|
|
|
/// <summary>
|
|
/// PLC->PC 台车到位
|
|
/// </summary>
|
|
public const int WinderCarRec2 = 5;
|
|
|
|
/// <summary>
|
|
/// 拨丝机拨丝请求
|
|
/// </summary>
|
|
public const int RequestCutSilk = 6;
|
|
/// <summary>
|
|
///PC->PLC 取丝指令
|
|
/// </summary>
|
|
public const int CutBegin = 7;
|
|
/// <summary>
|
|
///PLC->PC 拨丝一次回复
|
|
/// </summary>
|
|
public const int ToBeltFinish = 8;
|
|
|
|
/// <summary>
|
|
///PLC->PC 拨丝完成回复
|
|
/// </summary>
|
|
public const int TakeAwayCodeGroup = 9;
|
|
|
|
/// <summary>
|
|
/// PLC->PC 人工检验抓取 删除
|
|
/// </summary>
|
|
public const int ManualQC = 10;
|
|
|
|
/// <summary>
|
|
///PLC->PC 称重抓取指令
|
|
/// </summary>
|
|
public const int WeighQC =11;
|
|
/// <summary>
|
|
/// 称重完成回复
|
|
/// </summary>
|
|
public const int WeighQCReply = 11;
|
|
/// <summary>
|
|
/// 放置完成回复
|
|
/// </summary>
|
|
public const int PutFinish = 27;
|
|
|
|
|
|
|
|
/// <summary>
|
|
///PLC->MES 分拣请求
|
|
/// </summary>
|
|
public const int RequestSorting = 12;
|
|
|
|
/// <summary>
|
|
///PC->PLC 分拣指令
|
|
/// </summary>
|
|
public const int Sorting = 13;
|
|
/// <summary>
|
|
///PLC->PC 分拣完成回复
|
|
/// </summary>
|
|
public const int SortingFinish = 14;
|
|
|
|
/// <summary>
|
|
///PC->PLC 空箱推箱入位备料区
|
|
/// </summary>
|
|
public const int NullBoxToReady = 15;
|
|
|
|
/// <summary>
|
|
///PC->PLC 空箱从备料区入包装位回复
|
|
/// </summary>
|
|
public const int NullBoxToPackageReply = 18;
|
|
/// <summary>
|
|
///PC->PLC 备料区->包装位(残箱/空箱、箱型)
|
|
/// </summary>
|
|
public const int NullBoxToPackage =32;
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// PLC->PC 机械手包装请求
|
|
/// </summary>
|
|
public const int PackageRequest = 19;
|
|
|
|
/// <summary>
|
|
/// PC->PLC 机械手包装指令 B011
|
|
/// </summary>
|
|
public const int PackageBeging = 20;
|
|
|
|
/// <summary>
|
|
/// 机械手抓取完成
|
|
/// </summary>
|
|
public const int GraspFinish = 33;
|
|
|
|
/// <summary>
|
|
/// PLC->PC 机械手包装完成回复
|
|
/// </summary>
|
|
public const int PackageFinish = 21;
|
|
|
|
|
|
/// <summary>
|
|
/// PC->PLC 残箱->备料区
|
|
/// </summary>
|
|
public const int GetHalfBox = 22;
|
|
|
|
/// <summary>
|
|
/// PLC->PC 调残箱回复
|
|
/// </summary>
|
|
public const int GetHalfBoxFinish = 23;
|
|
|
|
/// <summary>
|
|
/// PC->PLC 移出满箱
|
|
/// </summary>
|
|
public const int BoxOut = 24;
|
|
|
|
/// <summary>
|
|
/// PLC->PC 移出满箱回复
|
|
/// </summary>
|
|
public const int BoxOutFinish = 25;
|
|
|
|
/// <summary>
|
|
/// 残箱入残箱区
|
|
/// </summary>
|
|
public const int ReactionBoxFinish = 26;
|
|
|
|
/// <summary>
|
|
/// 放置称重丝饼指令
|
|
/// </summary>
|
|
public const int WeigPlace = 27;
|
|
|
|
/// <summary>
|
|
/// 放置成功回复
|
|
/// </summary>
|
|
public const int WeigPlaceReply = 27;
|
|
|
|
/// <summary>
|
|
/// 包装线故障信息
|
|
/// </summary>
|
|
public const int LineError = 30;
|
|
/// <summary>
|
|
/// 自动线汇流线故障信息
|
|
/// </summary>
|
|
public const int ConvergeError = 31;
|
|
}
|
|
}
|
|
|