35
Serial/Ethernet/USB Communication (SCOM) Interface
IND100084-18
SCOM Section: Interface
Commands to control the global settings that affects communication/protocol behaviour.
"CBR" - COM Ports Baudrate Configuration
This command is used to configure the baudrate on COM ports. The command will select between RS232 and
RS485 port. There are two available options for baudrate: 9600 and 115200.
This command to configure baudrate on:
Byte #
0
1
2
3
4
5
6
7
8
9
0x07 0xFF 0x43 0x42 0x52 0x02 IHCHK COM
BAUD
IDCHK
COM:
Define the COM Port.
Range: Valid levels in table:
0x00
RS232 Port
0xFF
RS485/422 Port
Baudrate:
Define the COM Port's baudrate.
Range: Valid levels in table:
0x00
9600 bps
0xFF
115200 bps
After unit reset the value is set to: last stored value.
After microcontroller reset the value is set to: last stored value.
(All bytes = 0x00 if the type number is not yet programmed)
Write:
Set the COM Baudrate.
Example:
Set RS232 Port to 9600 bps:
0x07
0xFF
0x43
0x42
0x52
0x02
0x20
0x00
0x00
0xFF
ACK reply from unit:
0x06
0xFF
0x43
0x42
0x52
0x02
0x21
0x00
0x00
0xFF
Read:
Get the COM port baudrate status. Length of DATA must be 1.
Example:
Get RS232 Baudrate:
0x07
0xFF
0x43
0x42
0x52
0x01
0x21
0x00
0xFF
ACK reply from unit:
0x06
0xFF
0x43
0x42
0x52
0x02
0x21
0x00
0xFF
0x00