Moxa IA3341-LX Инструкция по эксплуатации онлайн [70/72] 170917

Moxa IA3341-LX Инструкция по эксплуатации онлайн [70/72] 170917
IA3341 Linux User’s Manual Programmer’s Guide
6-15
Support Ranges
The AI channels support 0-10 V in voltage mode and 4-20 mA in current mode. If the current of
the AI channel source is below 4 mA the current value is still sent to MODBUS TCP clients. If AI
channels are on but no device is connected to them, a small value close to zero might be sent to
MODBUS TCP clients. The TC channels support the following Celsius value ranges for 8
different sensor types.
TC Sensor Type Minimum Value Maximum Value
J 0 750
K -200 1250
T -200 350
E -200 900
R -50 1600
S -50 1760
B 600 1700
N -200 1300
MODBUS TCP Client API Functions
To access IA3341-LX channels easily a set of C/C++ MODUBS TCP client API functions are
provided. The API functions for IA3341-LX and Windows are both supported. The API functions
are implemented in library libmbtcp.a for the IA3341-LX and static library mbtcp.lib and DLL
mbtcp.dll for Windows. The declarations of the API functions are in mbapi.h, and all of them are
in the IA3341-LX CD. There are six API functions, shown below. The sample program
mbapi_demo.c uses the API functions and related files are also in the CD for reference.
Initialize MODBUS TCP connection environment
int mbtcp_init();
Input: none
Output: none
Return:
0 for success and negative value for failure
Release MODBUS TCP connection environment
int mbtcp_release();
Input: none
Output: none
Return:
0 for success and negative value for failure
Create MODBUS TCP connection handler and connect to MODBUS TCP server
int mbtcp_connect(char *ip, unsigned short port, void **hndl);
Input:
<ip> IP address of MODBUS TCP server
<port> port number of MODBUS TCP server
Output:
<hndl> MODBUS TCP connection handler

Содержание

Похожие устройства

Скачать