Chapter 13 Device Logic (Pawn)
13.2.6 RS232, RS485
13.2.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
13.2.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. 05
147
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: ......