#include <string>
#include <iostream>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include "modbus_exception.hpp"
Go to the source code of this file.
Classes | |
class | modbus |
Modbus Operator Class. More... | |
Macros | |
#define | MAX_MSG_LENGTH 260 |
Enumerations | |
enum | { READ_COILS = 0x01 , READ_INPUT_BITS = 0x02 , READ_REGS = 0x03 , READ_INPUT_REGS = 0x04 , WRITE_COIL = 0x05 , WRITE_REG = 0x06 , WRITE_COILS = 0x0F , WRITE_REGS = 0x10 } |
Function Code. More... | |
enum | { EX_ILLEGAL_FUNCTION = 0x01 , EX_ILLEGAL_ADDRESS = 0x02 , EX_ILLEGAL_VALUE = 0x03 , EX_SERVER_FAILURE = 0x04 , EX_ACKNOWLEDGE = 0x05 , EX_SERVER_BUSY = 0x06 , EX_GATEWAY_PROBLEMP = 0x0A , EX_GATEWYA_PROBLEMF = 0x0B } |
Exception Codes. More... | |
#define MAX_MSG_LENGTH 260 |
Definition at line 31 of file modbus.hpp.
anonymous enum |
Function Code.
Enumerator | |
---|---|
READ_COILS | |
READ_INPUT_BITS | |
READ_REGS | |
READ_INPUT_REGS | |
WRITE_COIL | |
WRITE_REG | |
WRITE_COILS | |
WRITE_REGS |
Definition at line 34 of file modbus.hpp.
anonymous enum |
Exception Codes.
Enumerator | |
---|---|
EX_ILLEGAL_FUNCTION | |
EX_ILLEGAL_ADDRESS | |
EX_ILLEGAL_VALUE | |
EX_SERVER_FAILURE | |
EX_ACKNOWLEDGE | |
EX_SERVER_BUSY | |
EX_GATEWAY_PROBLEMP | |
EX_GATEWYA_PROBLEMF |
Definition at line 46 of file modbus.hpp.