This table below shows the public static variables in the instance of ModbusCommonLoad that you can use in your program.
| Variable | Data type | Default | Description |
|---|---|---|---|
| ICHAR_GAP | WORD | WORD#0 | Maximum character delay time between characters. This parameter is specified in milliseconds and increases the anticipated period between the received characters. The corresponding number of bit times for this parameter is added to the Modbus default value of 35 bit times (3.5 character times). |
| RETRIES | WORD | WORD#2 | Number of retries that the master executes before the error code 0x80C8 for "No response" is returned. |
| EN_SUPPLY_VOLT | BOOL | FALSE | Enable diagnostics for missing supply voltage L+ |
| MODE | USINT | USINT#4 | Operating mode Valid operating modes are:
|
| LINE_PRE | USINT | USINT#0 | Receive line initial state Valid initial states are:
|
| BRK_DET | USINT | USINT#0 | Break detection The following are valid:
|
| EN_DIAG_ALARM | BOOL | FALSE | Activate diagnostics interrupt:
|
| STOP_BITS | USINT | USINT#1 | Number of stop bits;
|
1) Required setting for the use of PROFIBUS cables with CM 1241 for RS485