Example of MCS-64 with 5 channels and Profibus-Gateway
C0123C C0123C
PWR
Com
In 0
In 1
In 2
In 3
Out 0
Out 1
Out 2
Out 3
Err
Sig+
Sen+
Exc+
PWR
Com
LDM 88.1
Exc-
Sen-
Sig-
LDM 88.1
In 0
In 1
In 2
In 3
Out 0
Out 1
Out 2
Out 3
Err
Exc-
Sen-
Sig-
Sig+
Sen+
Exc+
Logic out
Logic in
BC
470uF
+HP
Load
Cells
FLINTEC Fl112081 B16
Mt1
ON DIP
1234
FLINTECFl112081 B16
FLINTEC
www.flintec.com
Exc+
Mt27
PWR
Com
In 0
In 1
In 2
In 3
Out 0
Out 1
Out 2
Out 3
Err
Sen+
C0123CC0123CC0123CC0123C
Mt2
Logic out
Logic in
T6
J14
R1
R2
BC
470uF
+HP
LDM 88.1
PWR
Com
In 0
In 1
In 2
In 3
Out 0
Out 1
Out 2
Out 3
Err
LDM 88.1
PWR
Com
In 0
In 1
In 2
In 3
Out 0
Out 1
Out 2
Out 3
Err
LDM 88.1
T26
Load
Cells
Mt28
Exc-
Sen-
Sig-
Sig+
Sen+
Exc+
Exc-
Sen-
Sig-
Sig+
Sen+
Exc+
Exc-
Sen-
Sig-
Sig+
Sen+
Exc+
Exc-
Sen-
Sig-
Sig+
Document no. G165-Rev1-GB
www.flintec.com
Manual MCS-64Page 1
Components of MCS-64 in overview
Base Board
MB 89.1
LDM 88.1
CGM 85,1
Load Cell
#1
Load Cell
#2
Load Cell
#64
LDM 88.1
#1
LDM 88.1
#2
RS485 - Bus
LDM 88.1
#64
RS 232
Service-Port
Gateway
- Profibus (PGM 68.1)
- CANopen (CGM 85.1)
- Ethernet (EGM 87.1)
Components of MCS-64
All boards have the same technical features:
Spring clips for load cell terminals in 6-wire-technique
•
• 4 DI’s via spring clip terminal blocks
•
4 DO’s via spring clip terminal blocks
Fieldbus
Extension Boards
MB 89.2
MB 89.3
MB 89.4
PGM 86.1
MB 89.1
EGM 87,1
•
Slot for one Gateway CGM 85.1 / PGM 86.1 / EGM 87.1
•
2 Slots for weighing processor LDM 88.1
•
RS 232 Service port
Extension Boards MB 89.2/.3/.4
•
2/4/8 Slots for weighing processor LDM 88.1
MB 89.2
MB 89.3
Base Board MB 89.1
Dim 104 x 135 mm
MB 89.4
Dim 79 x 135 mm
Dim 129 x 135 mm
Dimensions 229 x 135 mm
Page 2Manual MCS-64 Ethernet
Weighing Processor LDM 88.1
Remote Control Output
Start Filling Cycle
Trigger Signal
The digital weighing processor LDM 88.1 is a load cell
digitizing unit for precise measuring of loads in motion.
± 18 bit resolution (±260 000 d)
•
Excitation5VDC/50mA
•
2 400 Measurements/s internal,
•
600 Measurements/s external
mV/V calibration
•
4 DI’s
•
4DO’s
•
RS 485 bus, 115.2 kBaud
•
Digital Filter (FIR and IIR)
•
for static or dynamic weighing
•
processes
3 Firmware versions
•
LDM 88.1
Digital
Load Cell
Low-Pass
Filter
ADC
Digital Filter
IIR- / FIR
Input
1 ... 4
- Net
- Gros
- Average
- Dose
Digital
Output /
Setpoint
1 ... 4
binary format
RS 485 / 230 kBaud
LDM 88.1
LDM 88.1 Specifications
Linearity< 0.002 % FS
Excitation5 V DC, load cells 100-2 000 Ohm, 6 wire technique
Analogue input range±2.2 mV/V (bipolar)
Minimum input per vsi0.05 μV per interval non approved
Resolution±260 000 counts , ±18-Bit-A/D convertor
Conversion rate2400 measurements per second intern
Digital FilterFIR Filter 2.5 ... 19.7 Hz or IIR Filter 0.25 ... 18 Hz; programmable in 8 steps each
Calibrationsoftware calibration and set up
Computer interface internRS485/RS422, full duplex, 115 200 Baud, bus capability up to 64 devices
Weighing functionszero, gross, tare, net, filter etc.
Inputs4 opto-isolated inputs, 10 ... 30 V DC max. 3 mA
Outputs4 OC outputs, < 35 V DC, 500 mA
Temperature effectson zero5 ppm/°K typ.; max. < 10 ppm/°K
Temperature range–10 °C to +50 °C (operating); –30 °C to +80 °C (storage)
EnclosureAluminium, protection IP40
Dimensions80 x 23 x 100 mm, with two M3 fixing screws for mounting on boards MB89.1/2/3/4
Power supply12 ... 24 V DC ±10 %, < 60 mA,(reversed voltage, burst and ESD protected)
Power consumption1,5 W max.
EMCCE 73/23/EEC; 93/98/EEC and 89/336/EEC
Computer interface via Service Port MB 89.1RS232C, 115 200 Baud
Vibrationwithstands 1.0 G operational; 2.5 G non-operational
on span4 ppm/°K typ.; max. < 8 ppm/°K
Manual MCS-64 EthernetPage 3
Contents
Part A: Modbus on Ethernet.........................................................................................pages 6 - 13
Part B: Commands......................................................................................................pages 14 - 35
Part C: MCS-64 Components and Configuration........................................................pages 36 - 45
6.11 DOP software for Windows 2000/XP...........................................................................45
Manual MCS-64: Modbus on Ethernet
Page 5
1. INTRODUCTION
1.1. Identification and Scope
This document describes the system design for the Modbus on Ethernet (EGM 87.1) and up to
64 Load Cell Digitizing Modules (LDM88.x) using the Flintec backplane system. It describes the
functionality of the backplane, the protocol used on the backplane and the Modbus mapping used
to access the LDM88 modules via the EGM87 Gateway.
1.2. Purpose
The purpose of this document is to specify functionality and performance of the Gateway and the
Load Cell Digitizing Modules (LDM88) with the available firmware versions (standard 88.183,
filling 88.184, loss in weight 88.185).
2. SYSTEM DESIGN
2.1 General
This software connects an Ethernet network to the local backplane modules. The Gateway
transports commands and responses from and to the Ethernet.
Ethernet
Ethernet
Ethernet
ADAPTOR
ADAPTOR
LDM an d other IO
Up to 64 modules per backplane
BACKPLANE
Figure 1- ETHERNET Gateway in context
2.2 Backplane handling
The Gateway translates Modbus requests to local backplane requests and local backplane
responses to Modbus responses. The Modbus is currently fixed to port 502 using an UDP/IP
connection. Multiple register access through the Ethernet will produce multiple accesses on the
local backplane. The PLC response timeout must allow 3.125 ms for each register access
required.
However reading registers 2000 or 2004 will cache register 2060 also allowing the PLC to
acquire the corresponding qualifier to the weight values.
Page 6 Manual MSC-64: Modbus on Ethernet
2.3 Ethernet Gateway
The Ethernet Gateway is using a 10/100baseT on RJ45 connection (IEEE 802.3u standard).
The Gateway is essentially a server waiting for a node to connect to one of its services.
Application stacks:
Modbus Application Layer Setup
Port 502 Port 502 Port 23
MBAP MBAP TCP UDP TCP
IP IP IP
802.3 802.3 802.3
System stacks:
(echo / ping) (Dynamic IP addr.) (Address Resolution)
ICMP DHCP IP IP ARP
802.3 802.3 802.3
2.3.1 IP Settings
The IP address is set by connecting a terminal program (e.g. HyperTerm) to the DB9 service port
on the MB 89.1 Base board. After the system is powered up it is possible to communicate with
the Ethernet Gateway Module (EGM). After openening the gateway with command "OP 64" it is
possible to set and/or examine the gateway settings with the address command:
Command
op64 opens serial communication to the gateway
ai 192.168.1.29 sets the gateway’s IP address to “192.168.1.29”
ai selects a dynamic IP address (DHCP) for the gateway
a reads current MAC address and IP address of the gateway
Example:
op64
OK
a
mac=00:50:C2:70:50:62
ip= DHCP
2.3.2 The Modbus port
[Port 502, TCP/IP (Modbus) or UDP/IP (Modbus)]
The Modbus is a simple Master-Slave connection; the master asks and the slave answers.
Modbus over TCP or UDP is just another way of transporting Modbus communication. One of the
registers will be used to define a streaming port. When a client connects to this user-defined port
the gateway will scan the backplane and transmit the LDM data on a regular basis.
See Chapter 3 “Ethernet Gateway Profile” below.
2.3.3 The ASCII entry port
[Port 23, TCP/IP (Telnet)]
This entry is for simple setup and diagnostic use. It works as if you were connected to the service
port except it goes through the Ethernet. The HyperTerm program in Windows can access the
gateway in this manner. Refer to LDM 88.1 commands, see chapter 5.
Manual MCS-64: Modbus on Ethernet
Page 7
3 ETHERNET GATEWAY PROFILE
3.1 The Modbus Objects
All parameters and result data can be accessed in this way. Please note that many of the
registers in the 2000 – 20FF range require a local backplane access cycle per register. Reading
multiple registers in this range may produce a very long response time.
Below is the preliminary Modbus Map.
3.2 Communication Profile
The parameters which are critical for communication are determined in the communication
profile. This includes the data for manufacturer's product nomenclature, for identification, or the
parameters for object mapping.
Abbreviations used in the tables:
R = read only
R/W = read / write
W = write only (read will not be regarded as an error, but returns undefined results)
UI16 = Unsigned16 (single register)
UI32 = Unsigned32 (register pair)
Int16 = Signed16 (single register)
Int32 = Signed32 (register pair)
Float = 32 bit IEEE754 floating point (register pair)
Page 8 Manual MSC-64: Modbus on Ethernet
4 MODBUS MAPPING
The MBAP header “Unit Identifier” field is used to select a module in the backplane. Address 0
(zero) is reserved for broadcast. Address 1 to 64 is then used for direct communication with any
LDM in the backplane using registers in the range 2000-2FFF (hex). Access to the gateway
should use address 0xFF (255 dec) and registers in the range 3000-3FFF(hex).
Register Type Size Access Function
2000 – 201F Float 08 * 2 R/WData in Float Format
2020 – 205F Int32 16 * 2 R/WData in Integer Format
2060 – 207F Int16 08 * 1 RW Control/Status functions
2080 – 20FF (reserved)
2100 – 2FFF - - R/W Parameter pages
Data in Float Format
Register Type Size Access Data in Float Format
2000 Float 2 R Gross weight
2002 Float 2 R Net Weight
2004 Float 2 R/W Tare
2006 Float 2 R Dosed weight
2008 Float 2 R Average weight
Data in Integer Format
Register Type Size Access Data in Integer Format
2020 Int32 2 R Gross weight
2022 Int32 2 R Net Weight
2024 Int32 2 R/W Tare
2026 Int32 2 R Dosed weight
2028 Int32 2 R Average weight
202A Int32 2 R A/D sample
202C Int32 2 R Device ID
202E Int32 2 R FW Version
2030 Int32 2 R Device Status
2032 Int32 2 R ADC Reference
Control/Status Functions
Register Type Size Access Control/Status functions
2060 Int16 1 R Measurement Qualifier Values:
$0001 - Under range
$0002 - Over range
$0004 - Not within Zero range (not yet implemented, zero)
$0008 - Exactly zero
$0010 - No motion, still stand, steady state
$0020 - Tare set
$0040 - Preset tare (0=tare is measured, 1=tare is set by user)
$0080 - Invalid weighing (wire-break, A/D ref. out of range)
$0100 - Set-point 0 (source>limit)
$0200 - Set-point 1
$0400 - Set-point 2
$0800 - Set-point 3
$1000 - Filling in progress
$2000 - Filling has completed
$4000 - Average ready
$8000 - Cold start
Page 10 Manual MSC-64: Modbus on Ethernet
2061 Int16 1 R/W Bit commands. Functions regardless of the setting of the LDM
selector register.
Bit 1: Reset Zero (RZ)
Bit 2: Set Zero (SZ)
Bit 3: Reset Tare (RT)
Bit 4: Set Tare (ST)
Bit 5 – 7: unused
Bit 8 –15: LDM#
Write a “1” to activate function, reads as “1” until command done
2062 Int16 1 R/W Trigger: Functions regardless of the setting of the LDM selector
register.
Write the LDM number to trig LDM;
Write the LDM number + 80h(128 dec) to cancel measurements
(LDM 88.183 only)
Writing a Non-zero value starts filling process.
Writing a zero ABORTS filling process.
2066 Int16 1 R/W EEPROM functions:
Bit 1: Save analogue parameters (AS)
Bit 2: Save calibration (CS); TAC protected
Bit 3: Save general setup parameters (WP)
Bit 4: Save dosing parameters (SD)
Bit 5: Save setpoint parameters (SS)
Bit 6 –14: unused
Bit 15: Factory default; TAC protected
2067 Int16 1 R/W Set-point select [0..3]
2068 Int32 2 R/W Set-point source
206A Int32 2 R/W Set-point hysteresis
206C Int32 2 R/W Set-point Value
206E Int16 1 R Read the dose info:
Bit value Meaning
$0001 Coarse valve open
$0002 Fine valve open
$0004 Dose program running
$0008 Not used
$0010 Not used
$0020 Not used
$0040 Tare out of range – no filling in this cycle
$0080 Zero out of range
$FF00 The High byte has the following interpretation:
00= Idle
01= Waiting for trigger(2
nd
trigger)
02= Bottle on, calculating tare
03= Pre-fill
04= Main Filling
05= Fine Filling
06= In-flight delay
07= Post fill calculations
08= Post Filling
Manual MCS-64: Modbus on Ethernet
Page 11
Page 0 – General Parameter Values
Register Type Size Access General parameter values
2100 Int32 2 R/W Analog action
2102 Int32 2 R/W Analog high
2104 Int32 2 R/W Analog low
Register Type Size Access Mass Flow parameter values
2600 Int16 2 R/W Flow Control
2601 Int16 2 R/W Flow Status
Page 6 - Mass Flow Results
Register Type Size Access Mass Flow parameter values
2700 Float 2 R Mass Flow Value
2702 Float 2 R Mass Flow Trend
2704 Float 2 R Total Mass
Manual MCS-64: Modbus on Ethernet
Page 13
Part B
5 COMMANDS
These pages describe the ASCII commands as they must be used by the DOP software. For
each command the corresponding Modbus register and data types are shown in brackets [ ]
for reference.
5.1
System diagnosis – ID, IV, IS......................................................................................15
5.2 Calibration Commands – CE, CM, CI, DS, DP, CZ, CG AZ, AG, ZT, FD, CS.............16