
native RS485_Setbuf(rs485, rxbuf{}, rxlen, txbuf{}, txlen);
Provides the firmware with one buffer for sending and one for receiving characters via the RS485
interface from the RAM area reserved for the Device Logic. When this function is called, the system
switches from the 256 byte buffers integrated in the firmware to the transferred buffers.
Important note:
If necessary, this function may need to be called before the initialisation of the
RS485 interface via the "RS485_Init()" function.
Parameter
Explanation
rs485
Number of the RS485 interface; is always 0 for the myDatalogEASY V3
Note:
You can also use the predefined constant "RS485_ITF1" for this
parameter.
rxbuf
Static byte array that should be used as a buffer to receive characters via the
R485 interface
rxlen
Size of the receiving buffer in byte
Note:
If the function is called up again and the size is set to "0" during the
process, then the system switches back to the integrated buffer (256 bytes). The
transferred static byte array can then be used by the script again.
txbuf
Static byte array that should be used as a buffer to send characters via the RS485
interface
txlen
Size of the sending buffer in byte
Note:
If the function is called up again and the size is set to "0" during the
process, then the system switches back to the integrated buffer (256 bytes). The
transferred static byte array can then be used by the script again.
Explanation
Return value
l
OK, if successful
l
< OK, if an error occurs (see "Return codes for general purposes" in
chapter "Constants" on page 118)
154
Rev. 05
Summary of Contents for myDatalogEASY V3
Page 2: ......
Page 13: ...Chapter 2 Declaration of conformity Chapter 2 Declaration of conformity Rev 05 13 ...
Page 14: ......
Page 42: ......
Page 76: ......
Page 88: ......
Page 102: ......
Page 110: ......
Page 116: ......
Page 234: ......
Page 244: ......
Page 252: ......
Page 254: ......
Page 266: ......
Page 276: ......