
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
Содержание myDatalogEASY V3
Страница 2: ......
Страница 13: ...Chapter 2 Declaration of conformity Chapter 2 Declaration of conformity Rev 05 13 ...
Страница 14: ......
Страница 42: ......
Страница 76: ......
Страница 88: ......
Страница 102: ......
Страница 110: ......
Страница 116: ......
Страница 234: ......
Страница 244: ......
Страница 252: ......
Страница 254: ......
Страница 266: ......
Страница 276: ......