
native RS485_Init(rs485, baudrate, mode, funcidx);
Initialises the RS485 interface
Parameter
Explanation
rs485
Number of the RS485 interface; is always 0 for the myDatalogEASY IoTmini
Note:
You can also use the predefined constant "RS485_ITF1" for this
parameter.
baudrate
Baud rate to be used. Observe the valid limits for the device being used (see
"Technical details about the RS485 interface" on page 56).
mode
Bit 0...1
1 = 1 stop bit
2 = 2 stop bits
Bit 2...3
0 = no parity
1 = uneven parity
2 = even parity
Bit 4...5
0 = 7 data bits
1 = 8 data bits
Bit 6...7
0 = no flow control
1 = RTS/CTS handshake
Bit 8
0 = half duplex mode
1 = full duplex mode
Bit 9
0 = no load resistance
1 = 120Ω load resistance
Note:
You can also use the predefined constants for this parameter (see
"Configuration of the RS485 interface" in the chapter "Constants" on page 105).
The constants can also be combined using the "or" conjunction.
funcidx
Index of the public function for the RS485 character receipt
Type of function: public func(const data{}, len);
Explanation
Return value
l
OK, if successful
l
ERROR_FEATURE_LOCKED, if the specified interface on the device is
not released
l
< OK, if another error occurs (see "Return codes for general purposes" in
chapter "Constants" on page 84).
110
Rev. 01
Содержание myDatalogEASY IoTmini
Страница 2: ......
Страница 11: ...Chapter 2 Declaration of conformity Chapter 2 Declaration of conformity Rev 01 11 ...
Страница 12: ......
Страница 34: ......
Страница 66: ......
Страница 78: ......
Страница 82: ......
Страница 186: ......
Страница 194: ......
Страница 196: ......
Страница 202: ......
Страница 205: ...Chapter 19 Document history Chapter 19 Document history Rev Date Changes 01 28 08 2020 First version Rev 01 205 ...
Страница 206: ......
Страница 208: ......