Microtronics myDatalogEASY IoTmini User Manual page 105

Table of Contents

Advertisement

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
RS232_2_STOPBIT
RS232_PARITY_NONE
RS232_PARITY_ODD
RS232_PARITY_EVEN
RS232_7_DATABIT
RS232_8_DATABIT
RS232_FLOW_NONE
RS232_FLOW_RTSCTS
RS232_FULL_DUPLEX
RS232_HALF_DUPLEX
Configuration of the RS485 interface
Configuration flags for the RS485_Init() function
RS485_1_STOPBIT
RS485_2_STOPBIT
RS485_PARITY_NONE
RS485_PARITY_ODD
RS485_PARITY_EVEN
RS485_7_DATABIT
RS485_8_DATABIT
RS485_FLOW_NONE
RS485_FLOW_RTSCTS
RS485_HALF_DUPLEX
RS485_FULL_DUPLEX
RS485_120_OHM_NONE
RS485_120_OHM_ACT
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
data
len
Rev. 01
= 0b0000000000000001, // 1 stop bit
= 0b0000000000000010, // 2 stop bit
= 0b0000000000000000, // no parity
= 0b0000000000000100, // odd parity
= 0b0000000000001000, // even parity
= 0b0000000000000000, // 7 data bits
= 0b0000000000010000, // 8 data bits
= 0b0000000000000000, // no flow control
= 0b0000000001000000, // RTS/CTS hand shake
= 0b0000000000000000, // full duplex mode
= 0b0000000100000000, // half duplex mode
= 0b0000000000000001, // 1 stop bit
= 0b0000000000000010, // 2 stop bit
= 0b0000000000000000, // no parity
= 0b0000000000000100, // odd parity
= 0b0000000000001000, // even parity
= 0b0000000000000000, // 7 data bits
= 0b0000000000010000, // 8 data bits
= 0b0000000000000000, // no flow control
= 0b0000000001000000, // RTS/CTS hand shake
= 0b0000000000000000, // half duplex mode
= 0b0000000100000000, // full duplex mode
= 0b0000000000000000, // no load resistance
= 0b0000001000000000, // 120Ω load resistance
Array that contains the received data
Number of received bytes
Chapter 12 Device Logic (Pawn)
Explanation
105

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the myDatalogEASY IoTmini and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents