ioPAC RTU Controllers
C/C++ Sample Code Programming Guide
|
Modules | |
RTD_TYPE | |
Sample Code:
rtd.c
MODULE_RW_ERR_CODE MX_RTU_Module_RTD_Eng_Value_Get | ( | UINT8 | slot, |
UINT8 | start, | ||
UINT8 | count, | ||
float * | buf, | ||
struct Timestamp * | time | ||
) |
[in] | slot | slot 0: Built-in IO Ports, slot 1 ~ 12: Expansion IO Ports. |
[in] | start | The first channel to get. |
[in] | count | The number of channels to get. |
[out] | buf | The RTD value for the corresponding channels. |
[out] | time | Timestamp of RTD data. |
MODULE_RW_ERR_CODE MX_RTU_Module_RTD_Type_Get | ( | UINT8 | slot, |
UINT8 | start, | ||
UINT8 | count, | ||
UINT8 * | buf | ||
) |
[in] | slot | slot 0: Built-in IO Ports, slot 1 ~ 12: Expansion IO Ports. |
[in] | start | The first channel to get. |
[in] | count | The number of channels to get. |
[out] | buf | The TC type for the corresponding channels. |
MODULE_RW_ERR_CODE MX_RTU_Module_RTD_Unit_Get | ( | UINT8 | slot, |
UINT8 | start, | ||
UINT8 | count, | ||
UINT8 * | buf | ||
) |
[in] | slot | slot 0: Built-in IO Ports, slot 1 ~ 12: Expansion IO Ports. |
[in] | start | The first channel to get. |
[in] | count | The number of channels to get. |
[out] | buf | The RTD unit for the corresponding channels. |
MODULE_RW_ERR_CODE MX_RTU_Module_RTD_Min_Eng_Get | ( | UINT8 | slot, |
UINT8 | start, | ||
UINT8 | count, | ||
float * | buf | ||
) |
[in] | slot | slot 0: Built-in IO Ports, slot 1 ~ 12: Expansion IO Ports. |
[in] | start | The first channel to get. |
[in] | count | The number of channels to get. |
[out] | buf | The minimal RTD value that have occurred for the corresponding channels. |
MODULE_RW_ERR_CODE MX_RTU_Module_RTD_Max_Eng_Get | ( | UINT8 | slot, |
UINT8 | start, | ||
UINT8 | count, | ||
float * | buf | ||
) |
[in] | slot | slot 0: Built-in IO Ports, slot 1 ~ 12: Expansion IO Ports. |
[in] | start | The first channel to get. |
[in] | count | The number of channels to get. |
[out] | buf | The maximal RTD value that have occurred for the corresponding channels. |
MODULE_RW_ERR_CODE MX_RTU_Module_RTD_Burnout_Status_Get | ( | UINT8 | slot, |
UINT8 | start, | ||
UINT8 | count, | ||
UINT8 * | buf | ||
) |
[in] | slot | slot 0: Built-in IO Ports, slot 1 ~ 12: Expansion IO Ports. |
[in] | start | The first channel to get. |
[in] | count | The number of channels to get. |
[out] | buf | The RTD status for the corresponding channels. |
MODULE_RW_ERR_CODE MX_RTU_Module_RTD_Offset_Get | ( | UINT8 | slot, |
UINT8 | start, | ||
UINT8 | count, | ||
float * | buf | ||
) |
[in] | slot | slot 0: Built-in IO Ports, slot 1 ~ 12: Expansion IO Ports. |
[in] | start | The first channel to get. |
[in] | count | The number of channels to get. |
[out] | buf | The user-defined offset for the corresponding channels. |
MODULE_RW_ERR_CODE MX_RTU_Module_RTD_Type_Set | ( | UINT8 | slot, |
UINT8 | start, | ||
UINT8 | count, | ||
UINT8 * | buf | ||
) |
[in] | slot | slot 0: Built-in IO Ports, slot 1 ~ 12: Expansion IO Ports. |
[in] | start | The first channel to set. |
[in] | count | The number of channels to set. |
[in] | buf | The RTD type for the corresponding channels. |
MODULE_RW_ERR_CODE MX_RTU_Module_RTD_Unit_Set | ( | UINT8 | slot, |
UINT8 | start, | ||
UINT8 | count, | ||
UINT8 * | buf | ||
) |
[in] | slot | slot 0: Built-in IO Ports, slot 1 ~ 12: Expansion IO Ports. |
[in] | start | The first channel to set. |
[in] | count | The number of channels to set. |
[in] | buf | The RTD unit for the corresponding channels. |
MODULE_RW_ERR_CODE MX_RTU_Module_RTD_Min_Eng_Reset | ( | UINT8 | slot, |
UINT32 | channel_flags | ||
) |
[in] | slot | slot 0: Built-in IO Ports, slot 1 ~ 12: Expansion IO Ports. |
[in] | channel_flags | Reset the minimal RTD value that have occurred for the specified channel. The bit 0 represents channel 0 will be reset and so on. |
MODULE_RW_ERR_CODE MX_RTU_Module_RTD_Max_Eng_Reset | ( | UINT8 | slot, |
UINT32 | channel_flags | ||
) |
[in] | slot | slot 0: Built-in IO Ports, slot 1 ~ 12: Expansion IO Ports. |
[in] | channel_flags | Reset the maximal RTD value that have occurred for the specified channel. The bit 0 represents channel 0 will be reset and so on. |
MODULE_RW_ERR_CODE MX_RTU_Module_RTD_Offset_Set | ( | UINT8 | slot, |
UINT8 | start, | ||
UINT8 | count, | ||
float * | buf | ||
) |
[in] | slot | slot 0: Built-in IO Ports, slot 1 ~ 12: Expansion IO Ports. |
[in] | start | The first channel to set. |
[in] | count | The number of channels to set. |
[in] | buf | The user-defined offset for the corresponding channels. |
MODULE_RW_ERR_CODE MX_RTU_Module_RTD_Calibration_Set | ( | UINT8 | slot, |
UINT8 | start, | ||
UINT8 | count, | ||
float * | buf | ||
) |
[in] | slot | slot 0: Built-in IO Ports, slot 1 ~ 12: Expansion IO Ports. |
[in] | start | The first channel to set. |
[in] | count | The number of channels to set. |
[in] | buf | The current temperatures for the corresponding channels. |