base/protocols/modbus/consts.bro

Modbus
Namespace:Modbus
Source File:/scripts/base/protocols/modbus/consts.bro

Summary

Redefinable Options

Modbus::exception_codes: table &default = function &optional &redef  
Modbus::function_codes: table &default = function &optional &redef Standard defined Modbus function codes.

Detailed Interface

Redefinable Options

Modbus::exception_codes
Type:table [count] of string
Attributes:&default = function &optional &redef
Default:
{
   [10] = "GATEWAY_PATH_UNAVAILABLE",
   [11] = "GATEWAY_TARGET_DEVICE_FAILED_TO_RESPOND",
   [8] = "MEMORY_PARITY_ERROR",
   [1] = "ILLEGAL_FUNCTION",
   [5] = "ACKNOWLEDGE",
   [3] = "ILLEGAL_DATA_VALUE",
   [6] = "SLAVE_DEVICE_BUSY",
   [4] = "SLAVE_DEVICE_FAILURE",
   [2] = "ILLEGAL_DATA_ADDRESS"
}
Modbus::function_codes
Type:table [count] of string
Attributes:&default = function &optional &redef
Default:
{
   [12] = "GET_COMM_EVENT_LOG",
   [23] = "READ_WRITE_MULTIPLE_REGISTERS",
   [14] = "POLL_584_984",
   [143] = "WRITE_MULTIPLE_COILS_EXCEPTION",
   [150] = "MASK_WRITE_REGISTER_EXCEPTION",
   [20] = "READ_FILE_RECORD",
   [11] = "GET_COMM_EVENT_COUNTER",
   [10] = "POLL_484",
   [8] = "DIAGNOSTICS",
   [126] = "PROGRAM_584_984_2",
   [144] = "WRITE_MULTIPLE_REGISTERS_EXCEPTION",
   [1] = "READ_COILS",
   [149] = "WRITE_FILE_RECORD_EXCEPTION",
   [5] = "WRITE_SINGLE_COIL",
   [21] = "WRITE_FILE_RECORD",
   [129] = "READ_COILS_EXCEPTION",
   [17] = "REPORT_SLAVE_ID",
   [13] = "PROGRAM_584_984",
   [3] = "READ_HOLDING_REGISTERS",
   [19] = "RESET_COMM_LINK_884_U84",
   [130] = "READ_DISCRETE_INPUTS_EXCEPTION",
   [6] = "WRITE_SINGLE_REGISTER",
   [22] = "MASK_WRITE_REGISTER",
   [9] = "PROGRAM_484",
   [18] = "PROGRAM_884_U84",
   [125] = "FIRMWARE_REPLACEMENT",
   [133] = "WRITE_SINGLE_COIL_EXCEPTION",
   [135] = "READ_EXCEPTION_STATUS_EXCEPTION",
   [151] = "READ_WRITE_MULTIPLE_REGISTERS_EXCEPTION",
   [4] = "READ_INPUT_REGISTERS",
   [7] = "READ_EXCEPTION_STATUS",
   [16] = "WRITE_MULTIPLE_REGISTERS",
   [131] = "READ_HOLDING_REGISTERS_EXCEPTION",
   [152] = "READ_FIFO_QUEUE_EXCEPTION",
   [15] = "WRITE_MULTIPLE_COILS",
   [127] = "REPORT_LOCAL_ADDRESS",
   [24] = "READ_FIFO_QUEUE",
   [134] = "WRITE_SINGLE_REGISTER_EXCEPTION",
   [148] = "READ_FILE_RECORD_EXCEPTION",
   [2] = "READ_DISCRETE_INPUTS",
   [43] = "ENCAP_INTERFACE_TRANSPORT",
   [40] = "PROGRAM_CONCEPT",
   [132] = "READ_INPUT_REGISTERS_EXCEPTION"
}

Standard defined Modbus function codes.

Copyright 2016, The Bro Project. Last updated on December 19, 2018. Created using Sphinx 1.8.2.