
Chapter 12 Device Logic (Pawn)
12.3.6 RS232, RS485
12.3.6.1 Constants
Configuration of the RS232 interface
Configuration flags for the RS232_Init() function
RS232_1_STOPBIT
= 0b0000000000000001, // 1 stop bit
RS232_2_STOPBIT
= 0b0000000000000010, // 2 stop bit
RS232_PARITY_NONE
= 0b0000000000000000, // no parity
RS232_PARITY_ODD
= 0b0000000000000100, // odd parity
RS232_PARITY_EVEN
= 0b0000000000001000, // even parity
RS232_7_DATABIT
= 0b0000000000000000, // 7 data bits
RS232_8_DATABIT
= 0b0000000000010000, // 8 data bits
RS232_FLOW_NONE
= 0b0000000000000000, // no flow control
RS232_FLOW_RTSCTS
= 0b0000000001000000, // RTS/CTS hand shake
RS232_FULL_DUPLEX
= 0b0000000000000000, // full duplex mode
RS232_HALF_DUPLEX
= 0b0000000100000000, // half duplex mode
Configuration of the RS485 interface
Configuration flags for the RS485_Init() function
RS485_1_STOPBIT
= 0b0000000000000001, // 1 stop bit
RS485_2_STOPBIT
= 0b0000000000000010, // 2 stop bit
RS485_PARITY_NONE
= 0b0000000000000000, // no parity
RS485_PARITY_ODD
= 0b0000000000000100, // odd parity
RS485_PARITY_EVEN
= 0b0000000000001000, // even parity
RS485_7_DATABIT
= 0b0000000000000000, // 7 data bits
RS485_8_DATABIT
= 0b0000000000010000, // 8 data bits
RS485_FLOW_NONE
= 0b0000000000000000, // no flow control
RS485_FLOW_RTSCTS
= 0b0000000001000000, // RTS/CTS hand shake
RS485_HALF_DUPLEX
= 0b0000000000000000, // half duplex mode
RS485_FULL_DUPLEX
= 0b0000000100000000, // full duplex mode
RS485_120_OHM_NONE
= 0b0000000000000000, // no load resistance
RS485_120_OHM_ACT
= 0b0000001000000000, // 120Ω load resistance
12.3.6.2 Callback functions
public func(const data{}, len);
Function to be provided by the script developer, that is called when characters are received via the
RS232 interface
Parameter
Explanation
data
Array that contains the received data
len
Number of received bytes
Rev. 01
105
Содержание 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: ......