beautypg.com

ProSoft Technology MVI94-MCM-MHI User Manual

Page 93

background image

MVI94-MCM ♦ Flex I/O Platform

Reference

Serial Communications Modbus Communication Module

User Manual

ProSoft Technology, Inc.

Page 93 of 109

March 29, 2011

Data Field: In a normal response, the server may return data or statistics in the

data field (any information that was requested in the request). In an exception

response, the server returns an exception code in the data field. This defines the

server condition that caused the exception.
The following table shows an example of a Master request and server exception

response.

Request

Response

Field Name

(Hex)

Field Name

(Hex)

Function

01

Function

81

Starting Address Hi

04

Exception Code

02

Starting Address Lo

A1

Quantity of Outputs Hi 00

Quantity of Outputs Lo 01


In this example, the Master addresses a request to server device. The function

code (01) is for a Read Output Status operation. It requests the status of the

output at address 1245 (04A1 hex). Note that only that one output is to be read,

as specified by the number of outputs field (0001).
If the output address is non-existent in the server device, the server will return

the exception response with the exception code shown (02). This specifies an

illegal data address for the Slave.

This manual is related to the following products: