InovanceH3UTcpWrite 方法 |
名称 | 说明 | |
---|---|---|
WriteT(T) |
写入支持Hsl特性的数据,返回是否写入成功,该特性为HslDeviceAddressAttribute,详细参考api文档说明 (继承自 NetworkDeviceBase。)Write data that supports the Hsl attribute, and return whether the write was successful. The attribute is HslDeviceAddressAttribute, please refer to the api documentation for details. | |
Write(String, Double) |
写入double数据,返回是否成功 (继承自 NetworkDeviceBase。)Write double data, return whether the write was successful | |
Write(String, Int16) |
写入short数组,返回是否成功 (继承自 NetworkDeviceBase。)Write short array, return whether the write was successful | |
Write(String, Int32) |
写入int数据,返回是否成功 (继承自 NetworkDeviceBase。)Write int data, return whether the write was successful | |
Write(String, Int64) |
写入long数据,返回是否成功 (继承自 NetworkDeviceBase。)Write long data, return whether the write was successful | |
Write(String, Single) |
写入float数据,返回是否成功 (继承自 NetworkDeviceBase。)Write float data, return whether the write was successful | |
Write(String, String) |
写入字符串信息,编码为ASCII (继承自 NetworkDeviceBase。)Write string information, encoded as ASCII | |
Write(String, UInt16) |
写入ushort数组,返回是否成功 (继承自 NetworkDeviceBase。)Write ushort array, return whether the write was successful | |
Write(String, UInt32) |
写入uint数据,返回是否成功 (继承自 NetworkDeviceBase。)Write uint data, return whether the write was successful | |
Write(String, UInt64) |
写入ulong数据,返回是否成功 (继承自 NetworkDeviceBase。)Write ulong data, return whether the write was successful | |
Write(String, Double) |
写入double数组,返回是否成功 (继承自 ModbusTcpNet。)Write double array, return whether the write was successful | |
Write(String, Int32) |
写入int[]数组,返回是否成功 (继承自 ModbusTcpNet。)Write int array, return whether the write was successful | |
Write(String, Int64) |
写入long数组,返回是否成功 (继承自 ModbusTcpNet。)Write long array, return whether the write was successful | |
Write(String, Single) |
写入float数组,返回是否成功 (继承自 ModbusTcpNet。)Write float array, return whether the write was successful | |
Write(String, UInt32) |
写入uint[]数组,返回是否成功 (继承自 ModbusTcpNet。)Write uint array, return whether the write was successful | |
Write(String, UInt64) |
写入ulong数组,返回是否成功 (继承自 ModbusTcpNet。)Write ulong array, return whether the write was successful | |
Write(String, Boolean) |
写入汇川PLC一个bool数据,对于H3U情况,可以输入M0,SM0,S0,T0,C0,X0,Y0类型地址,对于XP系列而言,可以输入M0,S0,T0,C0,X0,Y0 (重写 ModbusTcpNetWrite(String, Boolean).)Write a bool data to Huichuan PLC. For H3U, you can enter M0, SM0, S0, T0, C0, X0, Y0 type address. For XP series, you can enter M0, S0, T0, C0, X0, Y0. | |
Write(String, Boolean) |
按位写入汇川PLC的数据信息,对于H3U情况,可以输入M0,SM0,S0,T0,C0,X0,Y0类型地址,对于XP系列而言,可以输入M0,S0,T0,C0,X0,Y0 (重写 ModbusTcpNetWrite(String, Boolean).)Write the data information of Huichuan PLC bit by bit. For H3U, you can enter M0, SM0, S0, T0, C0, X0, Y0 type addresses. For XP series, you can enter M0, S0, T0, C0, X0 , Y0 | |
Write(String, Byte) |
按字写入汇川PLC的数据信息,对于H3U情况,可以输入D0,SD0,R0,T0,C0类型地址,对于XP系列而言,可以输入D0,T0,C0 (重写 ModbusTcpNetWrite(String, Byte).)Write the data information of Huichuan PLC by word. For H3U, you can enter D0, SD0, R0, T0, and C0 type addresses. For XP series, you can enter D0, T0, and C0. | |
Write(String, Int16) |
写入汇川PLC的一个字数据,对于H3U情况,可以输入D0,SD0,R0,T0,C0类型地址,对于XP系列而言,可以输入D0,T0,C0 (重写 ModbusTcpNetWrite(String, Int16).)Write one word data of Huichuan PLC. For H3U, you can enter D0, SD0, R0, T0, C0 type address. For XP series, you can enter D0, T0, C0 | |
Write(String, UInt16) |
写入汇川PLC的一个字数据,对于H3U情况,可以输入D0,SD0,R0,T0,C0类型地址,对于XP系列而言,可以输入D0,T0,C0 (重写 ModbusTcpNetWrite(String, UInt16).)Write one word data of Huichuan PLC. For H3U, you can enter D0, SD0, R0, T0, C0 type address. For XP series, you can enter D0, T0, C0 | |
Write(String, String, Int32) |
写入指定长度的字符串信息,如果超出,就截断字符串,如果长度不足,那就补0操作,编码为ASCII (继承自 NetworkDeviceBase。)Write string information of the specified length. If it exceeds the value, the string is truncated. If the length is not enough, it is filled with 0 and the encoding is ASCII. | |
Write(String, String, Encoding) |
写入字符串信息,需要指定的编码信息 (继承自 NetworkDeviceBase。)Write string information, need to specify the encoding information | |
Write(String, String, Int32, Encoding) |
写入指定长度的字符串信息,如果超出,就截断字符串,如果长度不足,那就补0操作,编码为指定的编码信息 (继承自 NetworkDeviceBase。)Write string information of the specified length. If it exceeds the value, the string is truncated. If the length is not enough, then the operation is complemented with 0 , you should specified the encoding information |