OmronCipNetWrite 方法 |
名称 | 说明 | |
---|---|---|
WriteT(T) |
写入支持Hsl特性的数据,返回是否写入成功,该特性为HslDeviceAddressAttribute,详细参考api文档说明 (继承自 DeviceCommunication。)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数据,返回是否成功 (继承自 DeviceCommunication。)Write double data, return whether the write was successful | |
Write(String, Int16) |
写入short数据,返回是否成功 (继承自 DeviceCommunication。)Write short data, returns whether success | |
Write(String, Int32) |
写入int数据,返回是否成功 (继承自 DeviceCommunication。)Write int data, return whether the write was successful | |
Write(String, Int64) |
写入long数据,返回是否成功 (继承自 DeviceCommunication。)Write long data, return whether the write was successful | |
Write(String, Single) |
写入float数据,返回是否成功 (继承自 DeviceCommunication。)Write float data, return whether the write was successful | |
Write(String, String) |
写入字符串信息,编码为ASCII (继承自 DeviceCommunication。)Write string information, encoded as ASCII | |
Write(String, UInt16) |
写入ushort数据,返回是否成功 (继承自 DeviceCommunication。)Write ushort data, return whether the write was successful | |
Write(String, UInt32) |
写入uint数据,返回是否成功 (继承自 DeviceCommunication。)Write uint data, return whether the write was successful | |
Write(String, UInt64) |
写入ulong数据,返回是否成功 (继承自 DeviceCommunication。)Write ulong data, return whether the write was successful | |
Write(String, Boolean) |
写入单个Bool的数据信息。如果读取的是单bool变量,就直接写变量名,如果是bool数组的一个值,一律带下标访问,例如a[0] (继承自 AllenBradleyNet。)Write the data information of a single Bool. If the read is a single bool variable, write the variable name directly, if it is a value of the bool array, it will always be accessed with a subscript, such as a[0] | |
Write(String, Boolean) |
批量写入Boolean数组数据,返回是否成功 (继承自 AllenBradleyNet。)Batch write Boolean array data, return whether the write was successful | |
Write(String, Byte) |
当前写入字节数组使用数据类型 0xD1 写入,如果其他的字节类型需要调用 WriteTag(String, UInt16, Byte, Int32) 方法来实现。 (继承自 AllenBradleyNet。)The currently written byte array is written using the data type 0xD1. If other byte types need to be called WriteTag(String, UInt16, Byte, Int32) Method to achieve. | |
Write(String, Double) |
写入double数组,返回是否成功 (继承自 AllenBradleyNet。)Write double array, return whether the write was successful | |
Write(String, Int16) |
写入short数组,返回是否成功 (继承自 AllenBradleyNet。)Write short array, return whether the write was successful | |
Write(String, Int32) |
写入int[]数组,返回是否成功 (继承自 AllenBradleyNet。)Write int array, return whether the write was successful | |
Write(String, Int64) |
写入long数组,返回是否成功 (继承自 AllenBradleyNet。)Write long array, return whether the write was successful | |
Write(String, Single) |
写入float数组,返回是否成功 (继承自 AllenBradleyNet。)Write float array, return whether the write was successful | |
Write(String, UInt16) |
写入ushort数组,返回是否成功 (继承自 AllenBradleyNet。)Write ushort array, return whether the write was successful | |
Write(String, UInt32) |
写入uint[]数组,返回是否成功 (继承自 AllenBradleyNet。)Write uint array, return whether the write was successful | |
Write(String, UInt64) |
写入ulong数组,返回是否成功 (继承自 AllenBradleyNet。)Write ulong array, return whether the write was successful | |
Write(String, Byte) |
写入Byte数据,返回是否写入成功,默认使用类型 0xC2, 如果PLC的变量类型不一样,则需要指定实际的变量类型,例如PLC的变量 A 是0xD1类型,那么地址需要携带类型信息,type=0xD1;A (重写 AllenBradleyNetWrite(String, Byte).)Write Byte data and return whether the writing is successful. The default type is 0xC2. If the variable types of the PLC are different, you need to specify the actual variable type. For example, the variable A of the PLC is of type 0xD1, then the address needs to carry the type information, type= 0xD1;A | |
Write(String, String, Int32) |
写入指定长度的字符串信息,如果超出,就截断字符串,如果长度不足,那就补0操作,编码为ASCII (继承自 DeviceCommunication。)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) |
写入字符串信息,需要指定的编码信息 (重写 AllenBradleyNetWrite(String, String, Encoding).)Write string information, need to specify the encoding information | |
Write(String, String, Int32, Encoding) |
写入指定长度的字符串信息,如果超出,就截断字符串,如果长度不足,那就补0操作,编码为指定的编码信息 (继承自 DeviceCommunication。)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 |