Moxa ioPAC 8020-9-RJ45-C-T [22/66] Mx_ai_max_eng_get

Moxa ioPAC 8020-5-M12-C-T [22/66] Mx_ai_max_eng_get
Developer's Guide for Moxa RTU Controllers Programmer's Guide
2-14
MX_AI_Min_ENG_Get
UINT32 MX_AI_Min_ENG_Get(UINT32 slot, UINT32 start, UINT32 count, float *buf);
Reads min engineering values of appointed AI channels. These min engineering values will be written to the
buf parameter.
Input Parameters
slot
Slot index of the AI module (zero based). For ioLogik W5348, the slot index is always “0”
start
The first queried AI channel (zero based)
count
The number of queried AI channels
Output Parameters
buf
Return Value
To get the complete IO_ERR code list, please refer to the header file libmoxa_pgm.h
MX_AI_Max_ENG_Get
UINT32 MX_AI_Max_ENG_Get(UINT32 slot, UINT32 start, UINT32 count, float *buf);
Reads max engineering values of appointed AI channels. These max engineering values will be written
to the
buf parameter.
Input Parameters
slot
Slot index of the AI module (zero based). For ioLogik W5348, the slot index is always “0”
start
The first queried AI channel (zero based)
count
The number of queried AI channels
Output Parameters
buf
Return Value
To get the complete IO_ERR code list, please refer to the header file libmoxa_pgm.h
MX_AI_Range_Setting_Set
UINT32 MX_AI_Range_Setting_Set(UINT32 slot, UINT32 start, UINT32 count, UINT32 *buf);
Write a given AI channel range. The channel range will be changed according to the buf parameter.
Input Parameters
slot
Slot index of the AI module (zero based). For ioLogik W5348, the slot index is always “0”
start
The first queried AI channel (zero based)
count
The number of queried AI channels
buf
150 mV, 500 mV, 0 to 150 mV, 0 to 500 mV, and 0 to 5 V are not supported
Return Value
To get the complete IO_ERR code list, please refer to the header file libmoxa_pgm.h
MX_AI_Min_Reset
UINT32 MX_AI_Min_Reset(UINT32 slot, UINT32 start, UINT32 count);
Sets min raw and engineering values to be current values for appointed AI channels.
Input Parameters
slot
Slot index of the AI module (zero based). For ioLogik W5348, the slot index is always “0
start
The first queried AI channel (zero based)
count
The number of queried AI channels
Return Value
To get the complete IO_ERR code list, please refer to the header file libmoxa_pgm.h

Содержание

Скачать