ESW-MBLIB: Ethernet Modbus C Library Software
Product short description:
- Universal support for five operating systems
- C source code provided
- Demo program included
Acromag’s Modbus C Library software greatly simplifies development of programs to interface with Acromag’s BusWorks® and EtherStax® Ethernet I/O products. The library also supports any standard Ethernet Modbus slave device that communicates via Modbus TCP/IP or UDP/IP protocol. This utility is ideal for developers that are unfamiliar with Modbus protocol or the framing of TCP/IP or UDP/IP messages.
The C library makes programming easy and portable by simply linking user code with the provided function calls (below). Most function calls require passing only a few parameters such as the IP address, Modbus register address, and
register count.
Codes | Functions
01 (01H) | Read Coil (Output) Status
02 (02H) | Read Input Status
03 (03H) | Read Holding Registers
04 (04H) | Read Input Registers
05 (05H) | Force Single Coil (Output)
06 (06H) | Preset Single Register
15 (0FH) | Force Multiple Coils (Outputs)
16 (10H) | Preset Multiple Registers
17 (11H) | Report Slave ID
Example Program
The included example program is menu-driven to help users build Modbus TCP/IP and UDP/IP commands. Menu selections let users configure, read, and write Ethernet I/O slave devices such as Acromag’s BusWorks and EtherStax products.
Users may also leverage this demonstration application into a tool for configuration or test by supplying commands and/or data values in the form of a text file. The program will execute each command in the text file as if it had been typed from the console terminal.
- Library of function routines simplify communication with I/O modules
- Function calls provided for a variety of operating systems
- C source code supplied
- Demonstration program included
- Saves development time
- Ideal for use with Acromag’s BusWorks and EtherStax I/O modules
- Compatible with any standard Modbus TCP/IP or UDP/IP device
Specs & Catalogs
-
900EN: 5-Port Ethernet Switch
- 10/100Mbps
- 15 to 36V DC power supply required
- Five shielded RJ-45 sockets, 8-pin, 10Base-T / 100Base-TX
$340Select options -
951EN, 952EN: Ethernet Analog and Discrete I/O Modules
- 4 analog inputs
- 2 analog output
- 6 discrete I/O channels
- Ethernet/IP, Modbus TCP/IP
- i2o peer-to-peer available for Modbus TCP/IP only
$755Select options -
958EN: Ethernet microBlox Interface Modules (Analog Input)
- 16-chanel single-ended voltage input
- DB25 port for microBlox modules
- Modbus TCP/IP communication
$640 – $865Read more -
961EN, 962EN: Ethernet Analog Input Modules
- 6-channel differential analog current or voltage input
- Ethernet/IP, Modbus TCP/IP
- i2o peer-to-peer available for Modbus TCP/IP only
$570Select options -
963EN, 964EN: Ethernet Analog Input Modules
- 12-channel single-ended analog current or voltage input
- Ethernet/IP or Modbus TCP/IP communication
$645Select options -
965EN: Ethernet Temperature Input Modules
- 4 or 6-channel thermocouple/milliVolt input
- Ethernet/IP, Modbus TCP/IP
- i2o peer-to-peer available for Modbus TCP/IP 6-channel only
$600 – $710Select options -
966EN: Ethernet Temperature Input Modules
- 4 or 6-channel RTD/resistance input
- Ethernet/IP, Modbus TCP/IP
- i2o peer-to-peer available for Modbus TCP/IP 6-channel only
$600 – $710Select options -
967EN: Ethernet Analog Input Modules
- 8-channel differential current input
- Modbus TCP/IP, 10/100Base-T(X), i2o peer-to-peer
$430 – $755Read more -
968EN: Ethernet Analog Input Module
- 8-channel differential analog voltage input
- Modbus TCP/IP, i2o peer-to-peer communication
$430 – $755Read more -
972EN, 973EN: Ethernet Analog Output Modules
- 4 or 6-channel DC current or voltage output
- Ethernet/IP, Modbus TCP/IP
- i2o peer-to-peer available for Modbus TCP/IP only
$600 – $710Select options -
981EN, 982EN, 983EN: Ethernet Discrete I/O Modules
- 12-channel discrete input and/or output
- Ethernet/IP, Modbus TCP/IP
- i2o peer-to-peer available for Modbus TCP/IP
$400 – $425Read more -
989EN: Ethernet Discrete I/O Modules with Counter / Timers
- 16-channel discrete I/O
- 8 counter/timers
- Modbus TCP/IP communication
$250 – $330Read more -
ES2113: Ethernet Discrete I/O Modules
- 96 bi-directional discrete I/O channels
- Modbus TCP/IP, i20 peer-to-peer communication
$1,200 – $1,670Select options -
ES2117: Ethernet Discrete I/O Modules
- 48 Channel-Isolated Discrete I/O (32 DC inputs, 16 AC/DC outputs)
- Modbus TCP/IP, i20 peer-to-peer
$1,310 – $1,805Read more -
ES2151: Ethernet Analog Input/Output Modules
- 32 analog current/voltage inputs
- 16 analog current outputs
- Modbus TCP/UDP, i2o communication
$2,560 – $3,055Read more -
ES2152: Ethernet Analog Input/Output Modules
- 32 analog current/voltage inputs
- 16 analog voltage outputs
- Modbus TCP/UDP, i2o communication
$2,445 – $2,940Select options -
ES2153: Ethernet Analog Input Modules
- 32 analog inputs (16 current + 16 voltages)
- Modbus TCP/IP, UDP/IP, i2o® peer-to-peer communication
$1,980 – $2,475Read more -
ES2161: Ethernet Analog Input Modules
- 32-channel differential analog current input
- Modbus TCP/IP or UDP/IP communication
$2,335 – $2,805Read more -
ES2162: Ethernet Analog Input Modules
- 32-channel differential analog voltage input with uB interface
- Modbus TCP/IP or UDP/IP communication
$2,225 – $2,695Read more -
ES2163: Ethernet Analog Input Modules
- 64-channel single-ended analog current input
- Modbus TCP/IP or UDP/IP communication
$3,250 – $3,725Read more -
ES2164: Ethernet Analog Input Modules
- 64-channel single-ended analog voltage input
- Modbus TCP/IP or UDP/IP communication
$3,140 – $3,615Read more -
ES2171: Ethernet Analog Output Modules
- 16 analog current outputs
- Modbus TCP/IP, UDP/IP, i2o® peer-to-peer communication
$1,590 – $2,085Read more -
ES2172: Ethernet Analog Output Modules
- 16 analog voltage outputs
- Modbus TCP/IP, UDP/IP, i2o® peer-to-peer communication
$1,585 – $2,085Read more -
XT1110: 16-Channel Discrete Ethernet I/O Modules with Sinking Outputs
- 16 discrete tandem input/output channels
- Input: 0-32V DC, TTL thresholds
- Output: 0-32V DC, open-drain, up to 250mA
- Ethernet Communication: Modbus TCP/IP, Ethernet/IP, Profinet, 10/100Base-T(X) PriorityChannel™ device determinism
- i2o® peer-to-peer available for Modbus TCP/IP only
- Power Requirement: 12 to 32V DC (2.5W)
$340Select options -
XT1120: 16-Channel Discrete Ethernet I/O Modules with Sourcing Outputs
- Input: 0-32V DC, TTL thresholds
- Output: 0-32V DC, open-drain, up to 300mA
- Power Requirement: 12 to 32V DC (2.5W)
- Modbus TCP/IP, Ethernet/IP, Profinet
- i2o® peer-to-peer available for Modbus TCP/IP only
$340Select options -
XT1210: 8-Channel Differential Analog Current Input Module
- 0-11mA, 0-20mA, 4-20mA, ±20mA, or 0-20 amps AC Input
- 8 analog differential current input channels
- 12 to 32V DC Power (2.8W)
- Modbus TCP/IP, Ethernet/IP, Profinet
- i2o® peer-to-peer available for Modbus TCP/IP only
$510Select options -
XT1220: 8-Channel Differential Analog Voltage Input Module
- ±5V, ±10V, 0-5V, 0-10V Input
- 8 analog differential voltage input channels
- 12 to 32V DC Power (2.8W)
- Modbus TCP/IP, Ethernet/IP, Profinet
- i2o® peer-to-peer available for Modbus TCP/IP only
$510Select options -
XT1230: 16-Channel Single-Ended Analog Current Input Module
- 0-11mA, 0-20mA, 4-20mA, ±20mA, or 0-20 amps AC Input
- 16 analog single-ended current input channels
- 12 to 32V DC Power (2.8W)
- Modbus TCP/IP, Ethernet/IP, Profinet
- i2o® peer-to-peer available for Modbus TCP/IP only
$615Select options -
XT1240: 16-Channel Single-ended Analog DC Voltage Input Module
- Input: ±5V, ±10V, 0-5V, 0-10V
- 16 analog single-ended voltage input channels
- 12 to 32V DC Power (2.8W)
- Modbus TCP/IP, Ethernet/IP, Profinet
- i2o® peer-to-peer available for Modbus TCP/IP only
$615Select options -
XT1530: Analog Output & Digital I/O Ethernet Modules
- 4 Analog DC Current Outputs
- 4 Discrete Voltage I/O Channels
- 12 to 32V DC Power (2.8W)
- Modbus TCP/IP, Ethernet/IP, Profinet
- i2o® peer-to-peer available for Modbus TCP/IP only
$520Select options -
XT1540: Analog Output & Digital I/O Ethernet Modules
- 8 Analog DC Voltage Outputs ±10V (calibrated), ±5V (sub-range)
- 4 Discrete Voltage I/O Channels 0-32V DC
- 12 to 32V DC Power (2.8W)
- Modbus TCP/IP, Ethernet/IP, Profinet
- i2o® peer-to-peer available for Modbus TCP/IP only
$555Select options
Additional information
Weight | 8 oz |
---|---|
Dimensions | 9 × 2.5 × 7.25 in |
Part Number | ESW-MBLIB: Ethernet Modbus C-Library Software, ESW-MBLIB_DEMO: Demo program for ESW-MBLIB |
Communication | i2o Peer-to-Peer, Modbus TCP/IP, Modbus UDP/IP |
Product Series | EtherStax Series |
-
Description
Acromag’s Modbus C Library software greatly simplifies development of programs to interface with Acromag’s BusWorks® and EtherStax® Ethernet I/O products. The library also supports any standard Ethernet Modbus slave device that communicates via Modbus TCP/IP or UDP/IP protocol. This utility is ideal for developers that are unfamiliar with Modbus protocol or the framing of TCP/IP or UDP/IP messages.
The C library makes programming easy and portable by simply linking user code with the provided function calls (below). Most function calls require passing only a few parameters such as the IP address, Modbus register address, and
register count.Codes | Functions
01 (01H) | Read Coil (Output) Status
02 (02H) | Read Input Status
03 (03H) | Read Holding Registers
04 (04H) | Read Input Registers
05 (05H) | Force Single Coil (Output)
06 (06H) | Preset Single Register
15 (0FH) | Force Multiple Coils (Outputs)
16 (10H) | Preset Multiple Registers
17 (11H) | Report Slave IDExample Program
The included example program is menu-driven to help users build Modbus TCP/IP and UDP/IP commands. Menu selections let users configure, read, and write Ethernet I/O slave devices such as Acromag’s BusWorks and EtherStax products.
Users may also leverage this demonstration application into a tool for configuration or test by supplying commands and/or data values in the form of a text file. The program will execute each command in the text file as if it had been typed from the console terminal.
-
Features & Benefits
- Library of function routines simplify communication with I/O modules
- Function calls provided for a variety of operating systems
- C source code supplied
- Demonstration program included
- Saves development time
- Ideal for use with Acromag’s BusWorks and EtherStax I/O modules
- Compatible with any standard Modbus TCP/IP or UDP/IP device
-
Specs & Data Sheets
Specs & Catalogs
-
Software
ESW-MBLIB-DEMO (Log in to download the file) -
Accessories
-
900EN: 5-Port Ethernet Switch
- 10/100Mbps
- 15 to 36V DC power supply required
- Five shielded RJ-45 sockets, 8-pin, 10Base-T / 100Base-TX
$340Select options -
951EN, 952EN: Ethernet Analog and Discrete I/O Modules
- 4 analog inputs
- 2 analog output
- 6 discrete I/O channels
- Ethernet/IP, Modbus TCP/IP
- i2o peer-to-peer available for Modbus TCP/IP only
$755Select options -
958EN: Ethernet microBlox Interface Modules (Analog Input)
- 16-chanel single-ended voltage input
- DB25 port for microBlox modules
- Modbus TCP/IP communication
$640 – $865Read more -
961EN, 962EN: Ethernet Analog Input Modules
- 6-channel differential analog current or voltage input
- Ethernet/IP, Modbus TCP/IP
- i2o peer-to-peer available for Modbus TCP/IP only
$570Select options -
963EN, 964EN: Ethernet Analog Input Modules
- 12-channel single-ended analog current or voltage input
- Ethernet/IP or Modbus TCP/IP communication
$645Select options -
965EN: Ethernet Temperature Input Modules
- 4 or 6-channel thermocouple/milliVolt input
- Ethernet/IP, Modbus TCP/IP
- i2o peer-to-peer available for Modbus TCP/IP 6-channel only
$600 – $710Select options -
966EN: Ethernet Temperature Input Modules
- 4 or 6-channel RTD/resistance input
- Ethernet/IP, Modbus TCP/IP
- i2o peer-to-peer available for Modbus TCP/IP 6-channel only
$600 – $710Select options -
967EN: Ethernet Analog Input Modules
- 8-channel differential current input
- Modbus TCP/IP, 10/100Base-T(X), i2o peer-to-peer
$430 – $755Read more -
968EN: Ethernet Analog Input Module
- 8-channel differential analog voltage input
- Modbus TCP/IP, i2o peer-to-peer communication
$430 – $755Read more -
972EN, 973EN: Ethernet Analog Output Modules
- 4 or 6-channel DC current or voltage output
- Ethernet/IP, Modbus TCP/IP
- i2o peer-to-peer available for Modbus TCP/IP only
$600 – $710Select options -
981EN, 982EN, 983EN: Ethernet Discrete I/O Modules
- 12-channel discrete input and/or output
- Ethernet/IP, Modbus TCP/IP
- i2o peer-to-peer available for Modbus TCP/IP
$400 – $425Read more -
989EN: Ethernet Discrete I/O Modules with Counter / Timers
- 16-channel discrete I/O
- 8 counter/timers
- Modbus TCP/IP communication
$250 – $330Read more -
ES2113: Ethernet Discrete I/O Modules
- 96 bi-directional discrete I/O channels
- Modbus TCP/IP, i20 peer-to-peer communication
$1,200 – $1,670Select options -
ES2117: Ethernet Discrete I/O Modules
- 48 Channel-Isolated Discrete I/O (32 DC inputs, 16 AC/DC outputs)
- Modbus TCP/IP, i20 peer-to-peer
$1,310 – $1,805Read more -
ES2151: Ethernet Analog Input/Output Modules
- 32 analog current/voltage inputs
- 16 analog current outputs
- Modbus TCP/UDP, i2o communication
$2,560 – $3,055Read more -
ES2152: Ethernet Analog Input/Output Modules
- 32 analog current/voltage inputs
- 16 analog voltage outputs
- Modbus TCP/UDP, i2o communication
$2,445 – $2,940Select options -
ES2153: Ethernet Analog Input Modules
- 32 analog inputs (16 current + 16 voltages)
- Modbus TCP/IP, UDP/IP, i2o® peer-to-peer communication
$1,980 – $2,475Read more -
ES2161: Ethernet Analog Input Modules
- 32-channel differential analog current input
- Modbus TCP/IP or UDP/IP communication
$2,335 – $2,805Read more -
ES2162: Ethernet Analog Input Modules
- 32-channel differential analog voltage input with uB interface
- Modbus TCP/IP or UDP/IP communication
$2,225 – $2,695Read more -
ES2163: Ethernet Analog Input Modules
- 64-channel single-ended analog current input
- Modbus TCP/IP or UDP/IP communication
$3,250 – $3,725Read more -
ES2164: Ethernet Analog Input Modules
- 64-channel single-ended analog voltage input
- Modbus TCP/IP or UDP/IP communication
$3,140 – $3,615Read more -
ES2171: Ethernet Analog Output Modules
- 16 analog current outputs
- Modbus TCP/IP, UDP/IP, i2o® peer-to-peer communication
$1,590 – $2,085Read more -
ES2172: Ethernet Analog Output Modules
- 16 analog voltage outputs
- Modbus TCP/IP, UDP/IP, i2o® peer-to-peer communication
$1,585 – $2,085Read more -
XT1110: 16-Channel Discrete Ethernet I/O Modules with Sinking Outputs
- 16 discrete tandem input/output channels
- Input: 0-32V DC, TTL thresholds
- Output: 0-32V DC, open-drain, up to 250mA
- Ethernet Communication: Modbus TCP/IP, Ethernet/IP, Profinet, 10/100Base-T(X) PriorityChannel™ device determinism
- i2o® peer-to-peer available for Modbus TCP/IP only
- Power Requirement: 12 to 32V DC (2.5W)
$340Select options -
XT1120: 16-Channel Discrete Ethernet I/O Modules with Sourcing Outputs
- Input: 0-32V DC, TTL thresholds
- Output: 0-32V DC, open-drain, up to 300mA
- Power Requirement: 12 to 32V DC (2.5W)
- Modbus TCP/IP, Ethernet/IP, Profinet
- i2o® peer-to-peer available for Modbus TCP/IP only
$340Select options -
XT1210: 8-Channel Differential Analog Current Input Module
- 0-11mA, 0-20mA, 4-20mA, ±20mA, or 0-20 amps AC Input
- 8 analog differential current input channels
- 12 to 32V DC Power (2.8W)
- Modbus TCP/IP, Ethernet/IP, Profinet
- i2o® peer-to-peer available for Modbus TCP/IP only
$510Select options -
XT1220: 8-Channel Differential Analog Voltage Input Module
- ±5V, ±10V, 0-5V, 0-10V Input
- 8 analog differential voltage input channels
- 12 to 32V DC Power (2.8W)
- Modbus TCP/IP, Ethernet/IP, Profinet
- i2o® peer-to-peer available for Modbus TCP/IP only
$510Select options -
XT1230: 16-Channel Single-Ended Analog Current Input Module
- 0-11mA, 0-20mA, 4-20mA, ±20mA, or 0-20 amps AC Input
- 16 analog single-ended current input channels
- 12 to 32V DC Power (2.8W)
- Modbus TCP/IP, Ethernet/IP, Profinet
- i2o® peer-to-peer available for Modbus TCP/IP only
$615Select options -
XT1240: 16-Channel Single-ended Analog DC Voltage Input Module
- Input: ±5V, ±10V, 0-5V, 0-10V
- 16 analog single-ended voltage input channels
- 12 to 32V DC Power (2.8W)
- Modbus TCP/IP, Ethernet/IP, Profinet
- i2o® peer-to-peer available for Modbus TCP/IP only
$615Select options -
XT1530: Analog Output & Digital I/O Ethernet Modules
- 4 Analog DC Current Outputs
- 4 Discrete Voltage I/O Channels
- 12 to 32V DC Power (2.8W)
- Modbus TCP/IP, Ethernet/IP, Profinet
- i2o® peer-to-peer available for Modbus TCP/IP only
$520Select options -
XT1540: Analog Output & Digital I/O Ethernet Modules
- 8 Analog DC Voltage Outputs ±10V (calibrated), ±5V (sub-range)
- 4 Discrete Voltage I/O Channels 0-32V DC
- 12 to 32V DC Power (2.8W)
- Modbus TCP/IP, Ethernet/IP, Profinet
- i2o® peer-to-peer available for Modbus TCP/IP only
$555Select options
-
-
Additional information
Additional information
Weight 8 oz Dimensions 9 × 2.5 × 7.25 in Part Number ESW-MBLIB: Ethernet Modbus C-Library Software, ESW-MBLIB_DEMO: Demo program for ESW-MBLIB
Communication i2o Peer-to-Peer, Modbus TCP/IP, Modbus UDP/IP
Product Series EtherStax Series
Please login to submit this form.