Power Engineering 
K-JIANG
NameDescriptionContent
Current Location:

Eaton MTL838B-MBF Analogue Multiplexer Receiver

From:Eaton | author:Mr.Chen | Time :2026-03-30 | 542 view: | 🔊 Click to read aloud ❚❚ ▶ | Share:

Modbus message framing

Modbus messages must be structured (or 'framed') so that the different Modbus

components can detect the start, content structure and end point of a message. It also

allows any errors to be detected.

The framing used depends on the transmission mode chosen - ASCII  or RTU.

ASCII message framing

In ASCII mode, messages start with a 'colon' (:), which in hex is '3A'. The message

end is shown by 'carriage return/line feed' (CRLF) or 'OD OA' in hex .

The allowable characters for all other fields are hexadecimal 0-9. A-F. Networked

components monitor the bus continuously for the 'colon' character and when one is

received, they decode the next field (the address field) to find out if the address is for

that slave. If the address is for another slave, then no action is taken, and the slave

returns to monitoring for the 'colon' character. If  the field following the colon is the

address of the slave in question, then the slave continues to read the message and to

act on it's contents.

Intervals of up to one second can elapse between characters within the message, but

if an interval is greater than this, then the device assumes that an error has occurred.

If the delay occurs in the 'query' to a slave, then the addressed slave will discard the

message received up to that point and wait till the next message (marked by the colon

start character) is received.

RTU message framing

In RTU mode, the message begins with a gap in transmission of at least 3.5 character

periods. Network components monitor the bus continuously and when a 'silent' period

of more than 3.5 character periods is detected, the first character following the

transmission gap is translated to determine if it corresponds to the device's own

address.

The end of the transmitted message is marked by a further interval of at least 3.5

character periods duration. An new message can only begin after this interval.

The entire message field must be transmitted as a continuous stream. If an interval of

more than 1.5 character periods is detected during transmission of the message, then

the message is assumed to be incomplete and the device returns to waiting for the

next device address. The action taken on receipt  of an incomplete message is as for

receipt of an incorrect message, and it is ignored.

If a new message begins within 3.5 characters periods of the end of the previous

frame, the device again ignores the message.

The message fields

The address field

Slave addresses may be in the range 1 to 247 with Modbus (1 to 255 with JBUS). A

slave is addressed by the master placing the relevant address in the address field of

the query message. When the slave sends its response, it places its own address in

the message field to indicate to the master that the correct slave is replying.

Address '0' is used for 'broadcast' messages. All suitable slaves read them, but do not

provide responses to such query messages.

The function field

Function codes may be in the range 1 - 255. though not all functions will be supported

by all devices. When a message is sent from a master to a slave, the function code

defines the action that is required from the addressed slave. Examples of action

requested by the various function codes include: read input status; read register

content; change a status within the slave; etc..

When the slave sends its response to the master, it will repeat the function code

received, to indicate that the slave has understood the query and acted accordingly. If

the query instruction could not be carried out by the slave, an 'exception response' is

generated and the function code and data fields are used to inform the master of the

reason for the exception.

The exception response is generated by returning the original function code from the

master, but with its most significant bit set to '1'. Further information regarding the

exception response is passed to the master via the data field of the response

message. This tells the master what kind of error occurred and allows it to take the

most appropriate action - either to repeat the original message, to try and diagnose

what has happened to the slave, to set alarms or to take whatever action is most

appropriate.

The data field

The data field transmits a number of hexadecimal values, each in the range 00 to FF.

In ASCII transmission mode this is made up of a pair of characters, in RTU it is a

single character.

A significant aspect of the communication between the master and it's slaves, that is

not defined by Modbus, is the encoding of numerical data. Modbus allows the

manufacturers of devices to determine which data encoding techniques are available

to users of the device. The encoding of data is discussed on page 13.

The data field is used to provide the slave with any additional information needed to

perform the function requested in the query. This would typically be a register address,

a register range or a value. With some functions, the data field is not required and will

not be included in the query.

If no errors occur, the data field of the response is used by the slave to pass data back

to the master.

If an error occurs, the data field is used to pass more information to the master relating

to the nature of the fault detected.

Byte count data

The responses to a number of queries require the slave to inform the master of the

number of data bytes that are being returned in the response, and this requires a

special implementation within the data field.

A typical example of this would be when the master has requested the slave to

communicate the status of a range of registers. The slave responds by repeating the

function code and it's own address, followed by the data field. The first byte of the data

field identifies the number of bytes that are being returned that contain the register

status information.

As was mentioned earlier, ASCII mode requires two 8-bit bytes to communicate a

single register content, compared to RTU which only requires a single 8-bit byte. This

difference is ignored when the byte count field is calculated, and the number of bytes

indicated is identical to the number of bytes communicated in RTU mode, but is half

the actual number of bytes communicated in ASCII mode.

The error check field

The error checking technique employed on the Modbus network depends on the

transmission mode selected. With ASCII the technique used is based on an LRC

(Longitudinal Redundancy Check) and with RTU a CRC (Cyclical Redundancy Check).

In both cases, the characters transmitted in the error check field are calculated by the

transmitting device and included in the resulting transmission. The receiving device

calculates what the error check field should contain, on receipt of the message, and

compares it with the error check field in the received message. If these two values do

not match exactly, then the receiving device knows that it has not received the

message correctly, and disregards it.

In both modes, parity checking can be optionally selected.

A fuller explanation of the error checking techniques used by Modbus is given in

Appendix A.

Data Encoding and Scaling

As has been mentioned earlier, an important area of the communication along the

network, that is not defined by the Modbus protocol, is the encoding of numerical data.

A related problem is the adoption of a scaling system for the data once it has been

encoded. (Note: this is an area which requires careful consideration by users of the

MTL838B-MBF.)

There is no problem here for manufacturers who are supplying complete systems,

based on the Modbus network, as they can select a data encoding and scaling system

appropriate to their needs. However, for manufacturers who are supplying products for

general use, there is no possibility that they will be able to determine which data

encoding system will be used by their customers, and they must allow the data

encoding technique to be user selectable.

Three data encoding techniques are the most popular - IEEE, 16-bit unsigned and 16

bit offset.

A further area of difficulty associated with the encoding of data is the way in which the

data is scaled - to provide a resolution of the measured value appropriate to the

requirements of  each application.

Users attempting to configure and scale analogue units via the Modbus master and

network may find considerable difficulty with this issue. If specifically designed

software is available for configuration and scaling of Modbus devices, this may be the

simplest and most convenient method of scaling and encoding data. An example

of this is the PCS83 software, which is available from Eaton's MTL product line for

configuring the MTL838B-MBF. This makes encoding and scaling decisions

transparent to the user.

The difficulties of implementing an encoding and scaling regime for the MTL838B-MBF

via the Modbus host are discussed in depth on page 37. Users are strongly

recommended to read this section before selecting the configuration method to be

used with the MTL838B-MBF.

  • Hirschmann RSPM-cover 942 131-001 Cover for RSPM modules
  • Hirschmann RSPM22-8TX-EEC 942 106-006 DIN Rail Mount Switches
  • Hirschmann RSPM20-8SFP Fast Ethernet media module for RSPE Switches
  • Hirschmann RSPM20-8SFP-EEC 942 106-005 DIN Rail Mount Switches
  • Hirschmann RSPM20-8TX-EEC 942 106-004 DIN Rail Mount Switches
  • Hirschmann RSPE37-8TX/4C-EEC-3S 942 084-006 DIN Rail Mount Switches
  • Hirschmann RSPE35-8TX/4C-EEC-2HV-3S 942 084-005 DIN Rail Mount Switches
  • Hirschmann RSPE32-8TX/4C-EEC-2A 942 084-004 DIN Rail Mount Switches
  • Hirschmann RSPE30-8TX/4C-EEC-2HV-3S 942 084-003 DIN Rail Mount Switches
  • Hirschmann RSPE30-8TX/4C-EEC-2HV-3S 942 084-003 DIN Rail Mount Switches
  • Hirschmann RSPE30-8TX/4C-2A 942 084-002 DIN Rail Mount Switches
  • Beckhoff EL4732 | EtherCAT Terminal, 2-channel analog output, voltage
  • Beckhoff EL4712 | EtherCAT Terminal, 2-channel analog output, current
  • Beckhoff ELX4184 | EtherCAT Terminal, 4-channel analog output, current
  • Beckhoff ELX4181 | EtherCAT Terminal, 1-channel analog output, current
  • Beckhoff ELX4154 | EtherCAT Terminal, 4-channel analog output, current
  • Beckhoff EL4134-0030 | EtherCAT Terminal, 4-channel analog output, voltage, ±10 V, 16 bit
  • Beckhoff EL4134 | EtherCAT Terminal, 4-channel analog output, voltage, ±10 V, 16 bit
  • Beckhoff EL4132 | EtherCAT Terminal, 2-channel analog output, voltage, ±10 V, 16 bit
  • Beckhoff EL4124 | EtherCAT Terminal, 4-channel analog output, current, 4…20 mA, 16 bit
  • Beckhoff EL4122 | EtherCAT Terminal, 2-channel analog output, current, 4…20 mA, 16 bit
  • Beckhoff EL4114 | EtherCAT Terminal, 4-channel analog output, current, 0…20 mA, 16 bit
  • Beckhoff EL4112-0010 | EtherCAT Terminal, 2-channel analog output, current, ±10 mA, 16 bit
  • Beckhoff EL4112 | EtherCAT Terminal, 2-channel analog output, current, 0…20 mA, 16 bit
  • Beckhoff EL4104 | EtherCAT Terminal, 4-channel analog output, voltage, 0…10 V, 16 bit
  • Beckhoff EL4102 | EtherCAT Terminal, 2-channel analog output, voltage, 0…10 V, 16 bit
  • Beckhoff EL4038 | EtherCAT Terminal, 8-channel analog output, voltage, ±10 V, 12 bit
  • Beckhoff EL4034 | EtherCAT Terminal, 4-channel analog output, voltage, ±10 V, 12 bit
  • Beckhoff EL4032 | EtherCAT Terminal, 2-channel analog output, voltage, ±10 V, 12 bit
  • Beckhoff EL4031 | EtherCAT Terminal, 1-channel analog output, voltage, ±10 V, 12 bit
  • Beckhoff EL4028 | EtherCAT Terminal, 8-channel analog output, current, 4…20 mA, 12 bit
  • Beckhoff EL4024 | EtherCAT Terminal, 4-channel analog output, current, 4…20 mA, 12 bit
  • Beckhoff EL4022 | EtherCAT Terminal, 2-channel analog output, current, 4…20 mA, 12 bit
  • Beckhoff EL4021 | EtherCAT Terminal, 1-channel analog output, current, 4…20 mA, 12 bit
  • Beckhoff EL4018 | EtherCAT Terminal, 8-channel analog output, current, 0…20 mA, 12 bit
  • Beckhoff EL4014 | EtherCAT Terminal, 4-channel analog output, current, 0…20 mA, 12 bit
  • Beckhoff EL4012 | EtherCAT Terminal, 2-channel analog output, current, 0…20 mA, 12 bit
  • Beckhoff EL4011 | EtherCAT Terminal, 1-channel analog output, current, 0…20 mA, 12 bit
  • Beckhoff EL4008 | EtherCAT Terminal, 8-channel analog output, voltage, 0…10 V, 12 bit
  • Beckhoff EL4004 | EtherCAT Terminal, 4-channel analog output, voltage, 0…10 V, 12 bit
  • Beckhoff EL4002 | EtherCAT Terminal, 2-channel analog output, voltage, 0…10 V, 12 bit
  • Beckhoff EL4001 | EtherCAT Terminal, 1-channel analog output, voltage, 0…10 V, 12 bit
  • Beckhoff EL4172 | EtherCAT Terminal, 2-channel analog output, multi-function
  • Beckhoff ED4174 | EtherCAT Terminal, 4-channel analog output, multi-function
  • Beckhoff ED4172 | EtherCAT Terminal, 2-channel analog output, multi-function
  • Beckhoff ED4078 | EtherCAT Terminal, 8-channel analog output, multi-function
  • Beckhoff EL4078 | EtherCAT Terminal, 8-channel analog output, multi-function
  • Beckhoff ED4074 | EtherCAT Terminal, 4-channel analog output, multi-function
  • Beckhoff EL4074 | EtherCAT Terminal, 4-channel analog output, multi-function
  • Beckhoff ED4072 | EtherCAT Terminal, 2-channel analog output, multi-function
  • Beckhoff EL4072 | EtherCAT Terminal, 2-channel analog output, multi-function
  • Beckhoff EM3712 | EtherCAT Terminal, 2-channel analog input, relative pressure
  • Beckhoff EM3701 | EtherCAT Terminal, 1-channel analog input, differential pressure
  • Beckhoff ELX3351-0090 | EtherCAT Terminal, 1-channel analog input, measuring bridge
  • Beckhoff ELX3351 | EtherCAT Terminal, 1-channel analog input, measuring bridge
  • Beckhoff ELX3314-0090 | EtherCAT Terminal, 4-channel analog input, temperature
  • Beckhoff ELX3314 | EtherCAT Terminal, 4-channel analog input, temperature
  • Beckhoff ELX3312-0090 | EtherCAT Terminal, 2-channel analog input, temperature
  • Beckhoff ELX3312 | EtherCAT Terminal, 2-channel analog input, temperature
  • Beckhoff ELX3252 | EtherCAT Terminal, 2-channel analog input, potentiometer
  • Beckhoff ELX3204-0090 | EtherCAT Terminal, 4-channel analog input, temperature
  • Beckhoff ELX3204 | EtherCAT Terminal, 4-channel analog input, temperature
  • Beckhoff ELX3202-0090 | EtherCAT Terminal, 2-channel analog input, temperature
  • Beckhoff ELX3202 | EtherCAT Terminal, 2-channel analog input, temperature
  • Beckhoff ELX3184 | EtherCAT Terminal, 4-channel analog input, current, 4…20 mA
  • Beckhoff ELX3181 | EtherCAT Terminal, 1-channel analog input, current, 4…20 mA
  • Eaton ELC-PA10AADR ELC Logic Controller, 10 I/O
  • EATON CORPORATION A200M3CX MOTOR STARTER
  • Eaton Cutler Hammer CB00002 Vacon PC00002-H Power Board CX/CXL, 30kW / 500V
  • Eaton EL1600USBDIN CPU
  • EATON MTL CP-DYNB-DI 16CH DI FTA CC Base Board,MTL16ATEXCPDYNX
  • Eaton ELC2-PV28NNDR-2 AND ELC-EX16NNDR-2 Programmable Logic Controller
  • EATON 40071361110 CEAG LP-STAR UNIT, 220-240V INPUT/OUTPUT
  • EATON CEAG CU CG-S , 40071360300 Control Unit
  • EATON EX16NNDRW4520024 Logic Controller Module 250VAC 50/60HZ 1.5AEATON EX16NNDRW4520024 Logic Controller Module 250VAC 50/60HZ 1.5A
  • EATON ELCPV28NNDR CONTROLLER 28I/O 16INPUT DC 120OUTPUT RELAY
  • EATON CORPORATION CAN-16DI/P / CAN16DIP STOCK 1276-A
  • Eaton ELC2-PV28NNDR PV Controller, 28 I/O, 16 DI, 12 RO
  • Eaton ELC-EX16NNDR Programmable Logic Controller Digital Expansion Module 16 I/O
  • EATON CORPORATION 104-1193-006 MOTOR
  • Eaton Crouse Hinds CLD Programmer /Field Unit P/N.T6527-50-03-00
  • Eaton Vickers EEA-PAM-513-A-33 Replace of EEA-PAM-513-A-32 Power Amplifier
  • EATON COOPER Crose-Hinds 9373-FB-PS-SS-040, MTL field bus barrier system 12-Spur
  • EATON DURANT 58820-400 TOTALIZER 5882-0 58820400
  • Hirschmann MM3-1FXS2/3TX1(-EEC) MICE3000 media modules
  • Hirschmann MM4-4TX/SFP MICE4000 media modules
  • Hirschmann MM3-4FLM4 MICE3000 media modules
  • Hirschmann MM20-Z6Z6Z6Z6 Open variant media modules
  • Hirschmann MM3-1FXL2/3TX1 MICE3000 media modules
  • Hirschmann MM3-2FXM2/2TX1(-EEC) MICE3000 media modules
  • Hirschmann MM3-4FXS2 MICE3000 media modules
  • Hirschmann MM3-2FXS2/2TX1 MICE3000 media modules
  • Hirschmann MM20-F4F4F4F4 Open variant media modules
  • Hirschmann MM2-2FXS2 MICE2000 media modules
  • Hirschmann MM2-2FXM2 MICE2000 media modules
  • Hirschmann MM2-4FXM3 MICE2000 media modules
  • Hirschmann MM2-2FLM4 MICE2000 media modules
  • Hirschmann MM2-4TX1(-EEC) MICE2000 media modules
  • Hirschmann MM2-2FXM3/2TX1 Media module for MICE Switches
  • Eaton PXR-PCAM IL120009EN Ethernet (Modbus TCP)
  • Eaton PXR-ECAM-MTCP IL0131132EN Ethernet (Modbus TCP)
  • Eaton MTL PAC8000 8507-BI-DP BIM and 8701-CA-BI Carrier PROFIBUS DP Bus Interface Module and Carrier
  • Eaton EBR-Z high impedance bus differential relay
  • Eaton EBR-3000 high impedance bus differential relay
  • Eaton EGR5000 generator relay
  • Eaton EDR-5000 Distribution Protection Relay
  • Eaton F810 Redundant fieldbus power for Foxboro I/A series™ control system
  • Eaton 5073E-T 7-Port + 3-Combo Port Gigabit Managed Ethernet Switch
  • Eaton 2080E-T 8-Port Managed Ethernet Switch
  • Eaton 1080E-T 8-Port Ethernet switch
  • Eaton 1050E-T 5-Port Basic Ethernet Switch
  • Eaton TD150048EN Power Xpert energy meter series
  • Eaton NZMH2-4-A200 NZM complete molded case circuit breaker
  • Eaton NZMH3-AE600-NA NZM complete molded case circuit breaker
  • Eaton NZMB2-AF250-NA NZM complete molded case circuit breaker
  • Eaton NZMN4-AEF600-NA NZM complete molded case circuit breaker
  • Eaton NZMH4-AE1250-S1 NZM complete molded case circuit breaker
  • Eaton NZMH4-AE1600 NZM complete molded case circuit breaker
  • Eaton NZMN2-A125-NA NZM complete molded case circuit breaker
  • Eaton NZMH4-AE1200-NA NZM complete molded case circuit breaker
  • Eaton NZMH2-VEF200-BT-NA NZM complete molded case circuit breaker
  • Eaton NZMH2-AF175-BT-NA NZM complete molded case circuit breaker
  • Eaton NZMB1-AF70-NA NZM complete molded case circuit breaker
  • Eaton NZMB2-AF70-BT-NA NZM complete molded case circuit breaker
  • Eaton NZMB2-A80-BT-NA NZM complete molded case circuit breaker
  • Eaton NZMH2-A63-NA NZM complete molded case circuit breaker
  • Eaton NZMB2-AF15-NA NZM complete molded case circuit breaker
  • Eaton NZMN2-A40-NA NZM complete molded case circuit breaker