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 V3
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 66).
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 147).
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 118).
152
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: ......