Baud Rate enumerations for SERIAL transport.
VB Imports MBLink ' ********************* ' * Create Controller Dim MBDevice As new Controller ' ********************** ' * create RTU serial transport class ' * COM1, 19200, N, 8, 1 Dim transport as new CommDriver transport.Driver = DRIVER.SERIAL transport.Protocol = PROTOCOL.RTU transport.ComPort = COMPORT.COM1 transport.Baud = BAUD.BAUD_19200 transport.Parity = PARITY.NONE transport.DataBits = DATABITS.DATABITS_8 transport.stopBits = STOPBITS.STOPBITS_1 ' ************************ ' * assign transport to Controller MBDevice.Transport = transport ' **************************** ' * connect to MODBUS device using tranport MBDevice.Connect() C# using MBLink; ///////////////////////////////// // Create Controller Controller MBDevice = new Controller(); ///////////////////////////////// // create RTU serial transport class // COM1, 19200, N, 8, 1 CommDriver transport = new CommDriver(); transport.Driver = DRIVER.SERIAL; transport.Protocol = PROTOCOL.RTU; transport.ComPort = COMPORT.COM1; transport.Baud = BAUD.BAUD_19200; transport.Parity = PARITY.NONE; transport.DataBits = DATABITS.DATABITS_8; transport.stopBits = STOPBITS.STOPBITS_1; ////////////////////////////// // assign transport to Controller MBDevice.Transport = transport; ////////////////////////////// // connect to MODBUS device using transport MBDevice.Connect();
| Member Name | Description |
|---|---|
| BAUD_300 | 300 Baud |
| BAUD_600 | 600 Baud |
| BAUD_1200 | 1200 Baud |
| BAUD_2400 | 2400 Baud |
| BAUD_4800 | 4800 Baud |
| BAUD_9600 | 9600 Baud |
| BAUD_19200 | 19.2K Baud |
| BAUD_384K | 38.4K Baud |
| BAUD_576K | 57.6K Baud |
| BAUD_115K | 115K Baud |
| BAUD_230K | 230K Baud |
Namespace: MBLink
Assembly: INGEAR.NET.MBLINK (in INGEAR.NET.MBLINK.dll)