Használati útmutató Moxa M-3413

Olvassa el alább 📖 a magyar nyelvű használati útmutatót Moxa M-3413 (129 oldal) a nincs kategorizálva kategóriában. Ezt az útmutatót 7 ember találta hasznosnak és 2 felhasználó értékelte átlagosan 4.5 csillagra

Oldal 1/129
ioLogik MXIO DLL API Reference
Second Edition, June 2008
www.moxa.com/product
© 2008 Moxa Inc., all rights reserved.
Reproduction without permission is prohibited.
ioLogik MXIO DLL API Reference
The software described in this manual is furnished under a license agreement, and may be used only in
accordance with the terms of that agreement.
Copyright Notice
Copyright © 2008 Moxa Inc.
All rights reserved.
Reproduction without permission is prohibited.
Trademarks
Moxa is a registered trademark of Moxa Inc.
All other trademarks or registered marks in this manual belong to their respective manufacturers.
Disclaimer
Information in this document is subject to change without notice, and does not represent a commitment on the
part of Moxa.
Moxa provides this document “as is,” without warranty of any kind, either expressed or implied, including, but
not limited to, its particular purpose. Moxa reserves the right to make improvements, and/or changes to this
manual, or to the products, and/or the programs described in this manual, at any time.
Information provided in this manual is intended to be accurate, and reliable. However, Moxa assumes no
responsibility for its use, or for any infringements on the rights of third parties that may result from its use.
This manual might include unintentional technical or typographical errors. Changes are made periodically to the
information herein to correct such errors, and these changes are incorporated into new editions of the manual.
Technical Support Contact Information
www.moxa.com/support
Moxa Americas:
Toll-free: 1-888-669-2872
Tel: +1-714-528-6777
Fax: +1-714-528-6778
Moxa China (Shanghai office):
Toll-free: 800-820-5036
Tel: +86-21-5258-9955
Fax: +86-10-6872-3958
Moxa Europe:
Tel: +49-89-3 70 03 99-0
Fax: +49-89-3 70 03 99-99
Moxa Asia-Pacific:
Tel: +886-2-8919-1230
Fax: +886-2-8919-1231
Table of Contents
Chapter 1. Overview ....................................................................................................1-1
What is the MXIO Linux Library? ....................................................................................... 1-2
Supported Platforms ............................................................................................................. 1-2
Supported I/O Modules ........................................................................................................ 1-2
Moxa Library Comparison ................................................................................................... 1-2
Chapter 2. Programming Flow....................................................................................2-1
Connecting to a Single Ethernet I/O..................................................................................... 2-2
Connecting to Multiple Ethernet I/O .................................................................................... 2-3
Connecting to a Single Serial I/O......................................................................................... 2-4
Connecting to Multiple RS-485 I/O ..................................................................................... 2-5
Connecting to the ioLogik E2000 and Attached RS-485 I/O................................................ 2-6
Modbus Command Sets vs. Direct I/O Command Sets........................................................ 2-7
Modbus Command Sets................................................................................................ 2-7
Direct I/O Command Sets............................................................................................. 2-7
Chapter 3. MXIO API Overview ...................................................................................3-1
System Command Sets......................................................................................................... 3-2
RS-485/RS-232 I/O Connect Commands ..................................................................... 3-2
Ethernet I/O Connect Commands................................................................................. 3-2
General Commands ...................................................................................................... 3-2
Special Commands for ioLogik E2000, R2000 ............................................................ 3-2
Special Commands for ioLogik 4000 ........................................................................... 3-2
Modbus Command Sets........................................................................................................ 3-3
Direct I/O Command Sets..................................................................................................... 3-3
Digital Input Commands............................................................................................... 3-3
Digital Input Commands for ioLogik E2000, R2000 ................................................... 3-3
Digital Input / Output Mode Commands for ioLogik E2000........................................ 3-3
Counter Commands for ioLogik E2000, R2000 ........................................................... 3-4
Digital Output Commands............................................................................................ 3-4
Digital Output Commands for ioLogik E2000, R2000................................................. 3-5
Digital Output Commands for ioLogik 4000................................................................ 3-5
Pulse Output Commands for ioLogik E2000, R2000 ................................................... 3-5
Analog Input Commands.............................................................................................. 3-6
Analog Input Commands for ioLogik E2000, R2000................................................... 3-6
Analog Output Commands ........................................................................................... 3-6
Analog Output Commands for ioLogik E2000, R2000 ................................................ 3-7
Analog Output Commands for ioLogik 4000 ............................................................... 3-7
RTD Commands ........................................................................................................... 3-7
Thermocouple Commands............................................................................................ 3-8
Click&Go Logic Commands................................................................................................ 3-8
Active I/O Message Commands ........................................................................................... 3-8
Chapter 4. System Command Sets ............................................................................4-1
RS-232/RS-485 I/O Connect Commands ............................................................................. 4-2
Ethernet I/O Connect Commands......................................................................................... 4-4
General Commands .............................................................................................................. 4-5
Special Commands for ioLogik E2000, R2000 .................................................................... 4-7
Special Commands for ioLogik 4000 ................................................................................... 4-7
Chapter 5. Modbus Command Sets ...........................................................................5-1
Chapter 6. Direct I/O Command Sets .........................................................................6-1
Digital Input Commands ...................................................................................................... 6-2
Digital Input Commands for ioLogik E2000, R2000 ........................................................... 6-3
Counter Commands for ioLogik E2000, R2000................................................................... 6-6
Digital Output Commands.................................................................................................. 6-18
Digital Output Commands for ioLogik E2000, R2000....................................................... 6-22
Digital Input/Output Commands for ioLogik E2000.......................................................... 6-25
Digital Output Commands for ioLogik 4000...................................................................... 6-27
Pulse Output Commands for ioLogik E2000, R2000 ......................................................... 6-29
Analog Input Commands.................................................................................................... 6-42
Analog Input Commands for ioLogik E2000, R2000......................................................... 6-44
Analog Output Commands ................................................................................................. 6-50
Analog Output Commands for ioLogik E2000, R2000 ...................................................... 6-58
Analog Output Commands for ioLogik 4000 ..................................................................... 6-63
RTD Commands ................................................................................................................. 6-65
Thermocouple Commands.................................................................................................. 6-84
Chapter 7. Click&Go Logic Commands .....................................................................7-1
Chapter 8. Active I/O Message Commands ...............................................................8-1
Chapter 9. Return Codes.............................................................................................9-1
Chapter 10. Product Model and ID Reference Table.................................................10-1
ioLogik 4000 ...................................................................................................................... 10-1
ioLogik E2000 and R2000.................................................................................................. 10-2
1
1
1
11
1
1
1
11
Chapter 1. Overview
This reference introduces the MXIO Linux Library for Moxa’s ioLogik 4000, E2000, and R2000
remote I/O.
The following topics are covered in this chapter:
What is the MXIO Linux Library?
Supported Platforms
Supported I/O Modules
Moxa Library Comparison
ioLogik MXIO DLL API Reference Overview
1-3
Function Windows PC-Linux 2.4
PC-Linux 2.6
UC-7110-LX
UC-7112-LX
UC-7408-LX
UC-7420-LX IA-240-LX
DI_Reads 3 3 3 3 3
DI_Read 3 3 3 3 3
DO_Reads 3 3 3 3 3
DO_Writes 3 3 3 3 3
DO_Read 3 3 3 3 3
DO_Write 3 3 3 3 3
DO_GetSafeValues 3 3 3 3 3
DO_SetSafeValues 3 3 3 3 3
DO_GetSafeValue 3 3 3 3 3
DO_SetSafeValue 3 3 3 3 3
AI_Reads 3 3 3 3 3
AI_Read 3 3 3 3 3
AI_ReadRaws 3 3 3 3 3
AI_ReadRaw 3 3 3 3 3
AO_Reads 3 3 3 3 3
AO_Writes 3 3 3 3 3
AO_Read 3 3 3 3 3
AO_Write 3 3 3 3 3
AO_ReadRaws 3 3 3 3 3
AO_WriteRaws 3 3 3 3 3
AO_ReadRaw 3 3 3 3 3
AO_WriteRaw 3 3 3 3 3
AO_GetSafeValues 3 3 3 3 3
AO_SetSafeValues 3 3 3 3 3
AO_GetSafeValue 3 3 3 3 3
AO_SetSafeValue 3 3 3 3 3
AO_GetSafeRaws 3 3 3 3 3
AO_SetSafeRaws 3 3 3 3 3
AO_GetSafeRaw 3 3 3 3 3
AO_SetSafeRaw 3 3 3 3 3
RTD_Reads 3 3 3 3 3
RTD_Read 3 3 3 3 3
RTD_ReadRaws 3 3 3 3 3
RTD_ReadRaw 3 3 3 3 3
RTD2K_ResetMin 3 3 3 3 3
RTD2K_ResetMins 3 3 3 3 3
RTD2K_ResetMax 3 3 3 3 3
RTD2K_ResetMaxs 3 3 3 3 3
RTD2K_ReadMinRaw 3 3 3 3 3
RTD2K_ReadMinRaws 3 3 3 3 3
RTD2K_ReadMaxRaw 3 3 3 3 3
RTD2K_ReadMaxRaws 3 3 3 3 3
RTD2K_ReadMin 3 3 3 3 3
RTD2K_ReadMins 3 3 3 3 3
RTD2K_ReadMax 3 3 3 3 3
2
2
2
22
2
2
2
22
Chapter 2. Programming Flow
The process used to obtain access to a remote I/O device on an ioLogik is similar for both Ethernet
and serial interfaces. Five different scenarios are described below.
The following topics are covered:
Connecting to a Single Ethernet I/O
Connecting to Multiple Ethernet I/O
Connecting to a Single Serial I/O
Connecting to Multiple RS-485 I/O
Connecting to the ioLogik E2000 and Attached RS-485 I/O
Modbus Command Sets vs. Direct I/O Command Sets
¾ Modbus Command Sets
¾ Direct I/O Command Sets
ioLogik MXIO DLL API Reference Programming Flow
2-2
Connecting to a Single Ethernet I/O
The MXIO Linux Library establishes a data tunnel using Modbus commands to communicate with
the Ethernet I/O. Access is usually established using TCP port number 502.
ioLogik 4000 remote I/O
IP: 192.168.8.1
Port: 502
ioLogik E2000 Ethernet I/O
IP: 192.168.8.1
Port: 502
Three steps are required to access remote I/O data using the MXIO Linux Library.
1. Use MXEIO_Connect to connect to the Ethernet I/O using IP:Port (e.g., 192.168.8.1:502).
MXEIO_Connect should return a handle.
2. Use the handle to access the desired I/O point with Modbus commands or direct I/O
commands.
3. To finish the operation, use MXEIO_Disconnect to release Windows system resources.
Program Flow I.
Connecting to a Single Ethernet I/O
MXEIO Connect
Direct I/O
Command Sets Modbus Command Sets
MXEIO Disconnect

Termékspecifikációk

Márka: Moxa
Kategória: nincs kategorizálva
Modell: M-3413

Szüksége van segítségre?

Ha segítségre van szüksége Moxa M-3413, tegyen fel kérdést alább, és más felhasználók válaszolnak Önnek




Útmutatók nincs kategorizálva Moxa

Moxa

Moxa UPort 1450I Útmutató

1 Április 2025
Moxa

Moxa OnCell G3150 Útmutató

21 Augusztus 2024
Moxa

Moxa ioLogik R1241 Útmutató

21 Augusztus 2024
Moxa

Moxa 4101-MB-PBS Útmutató

21 Augusztus 2024
Moxa

Moxa MGate EIP3270 Útmutató

21 Augusztus 2024
Moxa

Moxa M-3411 Útmutató

21 Augusztus 2024
Moxa

Moxa M-1600 Útmutató

21 Augusztus 2024
Moxa

Moxa TCC-80-RP Útmutató

21 Augusztus 2024

Útmutatók nincs kategorizálva

Legújabb útmutatók nincs kategorizálva

MOZA

MOZA SR-P Útmutató

10 Április 2025
CaterChef

CaterChef 445001 Útmutató

9 Április 2025
IFM

IFM E40581 Útmutató

9 Április 2025
Livn

Livn Bolt Útmutató

9 Április 2025
Livn

Livn Beats Útmutató

9 Április 2025
IFM

IFM O3R252 Útmutató

9 Április 2025