Data Acquisition Framework
API for Tags Programming
|
Typedefs | |
typedef struct mxmodbus_ | mxmodbus |
mxmodbus instance | |
Functions | |
mxmodbus * | mxmodbus_new () |
Create mxmodbus. More... | |
void | mxmodbus_delete (mxmodbus *self) |
Delete mxmodbus instance. More... | |
int | mxmodbus_read (mxmodbus *self, const char *equipment_name, const char *tag_name, int timeout_ms, value_t *value, value_type_t *value_type) |
Read Modbus tag. More... | |
int | mxmodbus_write (mxmodbus *self, const char *equipment_name, const char *tag_name, int timeout_ms, value_t value, value_type_t value_type) |
Write Modbus tag. More... | |
void mxmodbus_delete | ( | mxmodbus * | self | ) |
mxmodbus* mxmodbus_new | ( | ) |
int mxmodbus_read | ( | mxmodbus * | self, |
const char * | equipment_name, | ||
const char * | tag_name, | ||
int | timeout_ms, | ||
value_t * | value, | ||
value_type_t * | value_type | ||
) |
Read Modbus tag.
[in] | self | modbus instance |
[in] | equipment_name | Equipment Name |
[in] | tag_name | Tag Name |
[in] | timeout_ms | read timeout in millisecond |
[out] | value | Tag Value |
[out] | value_type | Tag Value's Type |
int mxmodbus_write | ( | mxmodbus * | self, |
const char * | equipment_name, | ||
const char * | tag_name, | ||
int | timeout_ms, | ||
value_t | value, | ||
value_type_t | value_type | ||
) |
Write Modbus tag.
[in] | self | Modbus instance |
[in] | equipment_name | Equipment name |
[in] | tag_name | Tag name |
[in] | timeout_ms | Write timeout in milliseconds |
[in] | value | Tag value |
[in] | value_type | Tag value type |