Feiyu/Model/StationMessage.cs
2026-01-29 19:53:25 +08:00

57 lines
1.7 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
public class StationMessage
{
/// <summary>
/// 安全互锁 false时表示正在占用公共区域
/// </summary>
public bool Safe { get; set; }
/// <summary>
/// 请求松手/拿好,
/// 取上站被物料时, 请求松手
/// 放到下站时,请求拿好
/// </summary>
public bool Request { get; set; }
/// <summary>
/// 确认松手/拿好
/// 后站请求松手时,回应True
/// 前站请求拿好时,回应True
/// </summary>
public bool Confirm { get; set; }
/// <summary>
/// 取料完成 当后站取走产品后,置位true,前站收到该信号后, 改变物料状态为ColorStr.White(无料),
/// </summary>
public bool GetDone { get; set; }
/// <summary>
/// 放料料完成 当产品放入后站后 ,置位true,后站收到该信号后, 改变物料状态为 ProductState ,
/// </summary>
public bool PutDone { get; set; }
/// <summary>
/// 产品数量
/// </summary>
public int ProductCount { get; set; } = 1;
/// <summary>
/// 产品状态 ColorStr.White(无料) Blue(有料) Green(良品) Red(不良)
/// 多个产品时,用;号分割
/// </summary>
public string ProductState { get; set; }
/// <summary>
/// 产品条码
/// 多个产品时,用;号分割
/// </summary>
public string ProductSN { get; set; }
public int Number { get; set; }
}
}