Пример #1
0
 /// <summary>
 /// 强制写入位数据的通断,支持的类型参考文档说明
 /// </summary>
 /// <param name="address">地址信息</param>
 /// <param name="value">是否为通</param>
 /// <returns>是否写入成功的结果对象</returns>
 public override OperateResult Write(string address, bool value)
 {
     return(MelsecFxSerialOverTcp.WriteHelper(address, value, base.ReadBase));
 }
Пример #2
0
 /// <summary>
 /// 从三菱PLC中批量读取位软元件,返回读取结果,该读取地址最好从0,16,32...等开始读取,这样可以读取比较长得数据数组
 /// </summary>
 /// <param name="address">起始地址</param>
 /// <param name="length">读取的长度</param>
 /// <returns>带成功标志的结果数据对象</returns>
 /// <example>
 ///  <code lang="cs" source="ProcessControlService.CommunicationStandard_Net45.Test\Documentation\Samples\Profinet\MelsecFxSerial.cs" region="ReadBool" title="Bool类型示例" />
 /// </example>
 public override OperateResult <bool[]> ReadBool(string address, ushort length)
 {
     return(MelsecFxSerialOverTcp.ReadBoolHelper(address, length, base.ReadBase));
 }