lebai sdk
1.1.28
lebai c++ sdk with swig to support sereval languages.
|
modbus相关的接口. More...
Functions | |
void | lebai::l_master::Robot::write_single_coil (std::string device, std::string addr, bool value) |
写单个线圈. More... | |
void | lebai::l_master::Robot::wirte_multiple_coils (std::string device, std::string addr, std::vector< bool > values) |
写多个线圈 More... | |
std::vector< bool > | lebai::l_master::Robot::read_coils (std::string device, std::string addr, unsigned int num) |
读线圈 More... | |
std::vector< bool > | lebai::l_master::Robot::read_discrete_inputs (std::string device, std::string addr, unsigned int num) |
读离散输入 More... | |
void | lebai::l_master::Robot::write_single_register (std::string device, std::string addr, unsigned int value) |
写单个寄存器 More... | |
void | lebai::l_master::Robot::write_multiple_registers (std::string device, std::string addr, std::vector< unsigned int > values) |
写多个寄存器 More... | |
std::vector< unsigned int > | lebai::l_master::Robot::read_holding_registers (std::string device, std::string addr, unsigned int num) |
读保持寄存器 More... | |
std::vector< unsigned int > | lebai::l_master::Robot::read_input_registers (std::string device, std::string addr, unsigned int num) |
读输入寄存器 More... | |
modbus相关的接口.
std::vector<bool> lebai::l_master::Robot::read_coils | ( | std::string | device, |
std::string | addr, | ||
unsigned int | num | ||
) |
读线圈
device | 设备名称. |
addr | 寄存器地址. |
num | 连续数量. |
std::vector<bool> lebai::l_master::Robot::read_discrete_inputs | ( | std::string | device, |
std::string | addr, | ||
unsigned int | num | ||
) |
读离散输入
device | 设备名称. |
addr | 寄存器地址. |
num | 连续数量. |
std::vector<unsigned int> lebai::l_master::Robot::read_holding_registers | ( | std::string | device, |
std::string | addr, | ||
unsigned int | num | ||
) |
读保持寄存器
device | 设备名称 |
addr | 寄存器地址 |
num | 连续数量 |
std::vector<unsigned int> lebai::l_master::Robot::read_input_registers | ( | std::string | device, |
std::string | addr, | ||
unsigned int | num | ||
) |
读输入寄存器
device | 设备名称 |
addr | 寄存器地址 |
num | 连续数量 |
void lebai::l_master::Robot::wirte_multiple_coils | ( | std::string | device, |
std::string | addr, | ||
std::vector< bool > | values | ||
) |
写多个线圈
device | 设备名称. |
addr | 寄存器地址. |
values | 待设置的值. |
void lebai::l_master::Robot::write_multiple_registers | ( | std::string | device, |
std::string | addr, | ||
std::vector< unsigned int > | values | ||
) |
写多个寄存器
device | 设备名称. |
addr | 寄存器地址. |
values | 待设置的值. |
void lebai::l_master::Robot::write_single_coil | ( | std::string | device, |
std::string | addr, | ||
bool | value | ||
) |
写单个线圈.
device | 设备名称. |
addr | 寄存器地址. |
value | 待设置的值. |
void lebai::l_master::Robot::write_single_register | ( | std::string | device, |
std::string | addr, | ||
unsigned int | value | ||
) |
写单个寄存器
device | 设备名称. |
addr | 寄存器地址. |
value | 待设置的值. |