Moxa ioPAC 8020-9-RJ45-C-T [20/66] Analog input

Moxa ioPAC 8020-5-RJ45-C-T [20/66] Analog input
Developer's Guide for Moxa RTU Controllers Programmer's Guide
2-12
MX_DO_Relay_CurrentCount_Set
UINT32 MX_DO_Relay_CurrentCount_Set(UINT32 slot, UINT32 start, UINT32 count, UINT32
*buf);
Writes current counts to appointed DO channels. These current counts will change specific DO channel
statuses according to the buf parameter. Current Counts of Relay can be modified by the user at run-time, but
Total Counts of Relay cannot be changed after starting.
Input Parameters
slot
start
count
buf
Return Value
Result of the call
Notes
ioLogik W5348-C series only
Analog Input
MX_AI_Value_RAW_Get
UINT32 MX_AI_Value_RAW_Get(UINT32 slot, UINT32 start, UINT32 count, INT32 *buf);
Reads a given AI channel raw value. The channel raw value 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_Value_ENG_Get
UINT32 MX_AI_Value_ENG_Get(UINT32 slot, UINT32 start, UINT32 count, float *buf);
Reads a given AI channel engineering value. The channel engineering value 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.

Содержание

Скачать