| | |
| | | using System; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.Text; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | |
| | | throw new Exception($"ã{detail.plcdetail_remark}ã,DBå°å{detail.plcdetail_db + "." + detail.plcdetail_value},æªå®ä¹æ°æ®ç±»å{detail.plcdetail_valtype}"); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /// <param name="detail"></param> |
| | | /// <param name="client"></param> |
| | | /// <param name="value"></param> |
| | | /// <returns></returns> |
| | | public static object Write(dt_plcinfodetail detail, PLCClient client, object value) |
| | | { |
| | | try |
| | | { |
| | | return (client.Write(detail.plcdetail_db + "." + detail.plcdetail_value, value)); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw; |
| | | } |
| | | } |
| | | } |
| | | } |