using Service.Init.Entity; namespace Service.Execute.Api; public class PlcApi { /// /// 是否远程模式 /// /// public static bool IsRemote() { return true; } /// /// 入口雷达检测 /// /// public static bool EntranceRadar() { //TODO:: return true; } /// /// 出口雷达检测 /// /// public static bool ExitRadar() { //TODO:: return true; } /// /// 写入口灯 /// 红灯:1020 /// 绿灯:1000 /// /// /// public static bool WriteEntranceLamp(int data) { return true; } /// /// 写出口灯 /// 红灯:1020 /// 绿灯:1000 /// /// /// public static bool WriteExistLamp(int data) { return true; } /// /// 下发选包 /// /// 入仓位,仓位号 /// 出仓位,仓位号 /// public static bool DistributeSelectPack(string inBinNo, string outBinNo) { return true; } /// /// 下发启动换电 /// /// public static bool StartSwapping() { return true; } /// /// 查看拍照状态 /// /// public static byte ChannelStatus() { return 0; } /// /// 读plc任务状态 /// /// public static byte ReadPlcTaskStatus() { return 0; } }