background image

       BusWorks

  

Model 903MB/902MB/901MB Network I/O Module User’s Manual                                         Digital I/O 

       ___________________________________________________________________________________________ 

- 15 - 

 

CRC Error Checking 

 

RTU Mode message frames include an error checking 

method that is based on a Cyclical Redundancy Check (CRC).  
The error checking field of a frame contains a 16-bit value (two 8-
bit bytes) that contain the result of a Cyclical Redundancy Check 
(CRC) calculation performed on the message contents.   

 
The CRC value is calculated by the transmitting device and is 

appended to the message as the last field in a message—the low 
order byte is appended first, followed by the high-order byte.  
Thus, the CRC high-order byte is the last byte to be sent in a 
message.  The receiving device calculates a CRC during receipt 
of a message and compares the calculated value to that received 
in the CRC field.  If the two values differ, an error results. 

 
The CRC is started by first preloading the 16-bit CRC register 

to all 1’s.  Successive 8-bit bytes of the message (only the 8-data 
bits in each character—no start, stop, or parity bits) are applied to 
the current contents of the register, and each 8-bit character is 
exclusive OR’ed with the register contents.  The exclusive OR 
result is shifted in the direction of the least significant bit (lsb) of 
the CRC, with a zero placed into the most significant bit (msb).  
The lsb is then extracted and examined, if the lsb is a 1, the 
register is exclusive OR’ed with a preset fixed value.  If the lsb is 
a 0, no exclusive OR takes place.  This process is repeated until 
8 shifts have been performed.  After the last (eighth) shift, the 
next 8-bit byte is exclusive OR’ed with the register’s current 
contents, and the process repeats itself for 8 more shifts as 
described above.  The final contents of the CRC register after all 
the message bytes have been applied is the CRC value. 
 

Modbus Exceptions 

 

If an unsupported function code is sent to a module, then the 

exception code 01 (Illegal Function) will be returned in the data 
field of the response message.  If a holding register is written with 
an invalid value, then exception code 03 (Illegal Data Value) will 
be returned in the response message.  The following table lists 
possible exception codes: 

 
Modbus Exception Codes 

Code 

Exception

 

Description 

01 

Illegal Function 

The function code received in the 
query is not allowed or invalid. 

02 

Illegal Data 
Address 

The data address received in the 
query is not an allowable address 
for the slave or is invalid. 

03 

Illegal Data 
Value 

A value contained in the query 
data field is not an allowable value 
for the slave or is invalid. 

04 

Slave Device 
Failure 

An unrecoverable error occurred 
while the slave was attempting to 
perform the requested action. 

05 

Acknowledge 

The slave has accepted the 
request and is processing it, but a 
long duration of time is required to 
do so.  This response is returned 
to prevent a timeout error from 
occurring in the master. 

06 

Slave Device 
Busy 

The slave is engaged in 
processing a long-duration 
program command.  The master 
should retransmit the message 
later when the slave is free. 

 
Modbus Exception Codes…continued 

Code 

Exception

 

Description 

07 

Negative 
Acknowledge 

The slave cannot perform the 
program function received in the 
query.   This code is returned for 
an unsuccessful programming 
request using function code 13 or 
14 (code not supported by this 
model).  The master should 
request diagnostic information 
from the slave. 

08 

Memory Parity 
Error 

The slave attempted to read 
extended memory, but detected a 
parity error in memory.  The 
master can retry the request, but 
service may be required at the 
slave device. 

 

In a normal response, the slave echoes the function code of 

the original query in the function field of the response.  All 
function codes have their most-significant bit (msb) set to 0 (their 
values are below 80H).  In an exception response, the slave sets 
the msb of the function code to 1 in the returned response (i.e. 
exactly 80H higher than normal) and returns the exception code 
in the data field.  This is used by the master’s application to 
recognize an exception response and examine the data field for 
the exception code. 

 

MODULE SOFTWARE CONFIGURATION 

 

From the factory, each module has a default configuration as 

detailed in the INSTALLATION section of this manual.  Your 
application will likely differ from the default configuration and the 
module will need to be reconfigured.  Series 900MB modules 
may be configured by issuing the appropriate Modbus functions 
to the Register Map registers, as required to configure the unit.  
However, it is much simpler to use the 900MB Configuration 
Software to program and control the module parameters and 
operating modes.  This software is easy to use, self-explanatory, 
and complete configuration takes only a few minutes.  On-line 
help is built-in.  As such, a comprehensive guide to the use of this 
program is not necessary.  To begin configuration, you should 
already be familiar with Windows operation and have a basic 
understanding of module terminology as it relates to your model. 

 
Before You Begin 

1.     Have you installed the 900MB Configuration Program?  You 

should complete the MODULE INSTALLATION (Section 2.0) 
of this manual before proceeding. 

2.     Check that all necessary electrical connections have been 

made and that power is applied (module’s green LED ON). 

3.     Have you set the correct baud rate at the RS485 converter 

(or repeater if used)? 

4.     Have you tried communicating using the Default Mode?  

Press the “DFT” push-button of the module until the yellow 
status LED is flashing.  This sets the module’s 
communication parameters to 9600 baud, a slave address 
of 247, no parity, and one or two stop bits. 

5.     If you fail to communicate with the module or have a high 

degree of communication errors, try increasing the response 
delay time (See Response Delay Register 40010).  Some 
network converters or host/software systems cannot accept 
an immediate response from a slave device without the 
additional delay provided via this parameter. 

Summary of Contents for 901MB

Page 1: ...t With Sinking Outputs And Active Low Inputs USER S MANUAL ACROMAG INCORPORATED 30765 South Wixom Road P O BOX 437 Wixom MI 48393 7037 U S A Tel 248 295 0880 Fax 248 624 9234 Copyright 2000 Acromag In...

Page 2: ...ning any type of control or monitoring system This is especially important where economic property loss or human life is involved It is important that the user employ satisfactory overall system desig...

Page 3: ...m with open drain outputs for convenient loopback monitoring of the output state High Speed Data Rates Supports half duplex RS485 baud rates up to 115K baud Key 903MB Module Features continued Conveni...

Page 4: ...LE INSTALLATION This transmitter module is packaged in a general purpose plastic enclosure Use an auxiliary enclosure to protect the unit in unfavorable environments or vulnerable locations or to main...

Page 5: ...ck wire insulation 1 4 inch on each lead before installing into the terminal block Since common mode voltages can exist on signal wiring adequate wire insulation should be used and proper wiring pract...

Page 6: ...s not require advanced familiarity with the Modbus protocol REGISTER MAP Modbus registers are organized into the following reference types identified by the leading number of the reference address Ref...

Page 7: ...bps Default 3 14400bps 4 19200bps 5 28800bps 6 38400bps 7 57600bps 8 76800bps 9 115200bps 40003 2 0002 Parity Default 0 None 0 None 1 or 2 stop bits 1 Odd Parity Checking 2 Even Parity Checking Model...

Page 8: ...mapping mirroring to the Holding Register space The format of the registers are identical and you only need to offset your address by 43000 For example if you want to read Input Register 1 through the...

Page 9: ...itional stop bit is normally transmitted to fill out the character frame for no parity Acromag units will accept one or two stop bits with no parity Modbus Addresses The master device addresses a spec...

Page 10: ...s Example Response Field Name Example Value Hex Slave Address 247 F7 Function Code 1 01 Byte Count 2 02 Data Coils 7 0 170 AA Data Coils 11 08 10 0A Error Check LRC or CRC To summarize the status of c...

Page 11: ...mmarize the contents of register 40001 two bytes is slave address 247 00F7H The contents of register 40002 two bytes is the baud rate setting 2 9600bps The contents of register 40003 is the parity set...

Page 12: ...t No response is returned to broadcast queries from a master device Force Multiple Coils 15 902MB 903MB Models Only This command will simultaneously force a sequence of coils 0x reference addresses ei...

Page 13: ...ta High Third Reg 0 00 Preset Data Low Third Reg 2 02 Error Check LRC or CRC Preset Multiple Registers Example Response Field Name Example Value Hex Slave Address 247 F7 Function Code 16 10 Starting R...

Page 14: ...6 bit signed integer value representing an A D count a DAC count or a time value with a range of 32768 to 32767 Percentage A 16 bit signed integer value with resolution of 0 005 lsb 20000 is used to r...

Page 15: ...nt a timeout error from occurring in the master 06 Slave Device Busy The slave is engaged in processing a long duration program command The master should retransmit the message later when the slave is...

Page 16: ...tly loaded configuration file Use File Print Preview to view the current configuration or preview the print documentation Use File Print Setup to select a printer and font style Module Upload Configur...

Page 17: ...g download Select from 1 to 247 Address 247 is reserved for Default Mode Use the Baud Rate scroll bar to select a new baud rate to be used by the module following download Select 2400 4800 9600 Defaul...

Page 18: ...k monitoring of the output state The source leads of each port output channel are tied in common to the port return lead RTN The drain leads are pulled up to the port excitation terminal via resistor...

Page 19: ...f each module Please refer to Acromag s Service Policy Bulletin or contact Acromag for complete details on how to obtain service parts and repair PRELIMINARY SERVICE PROCEDURE Before beginning repair...

Page 20: ...only Observe proper polarity Inputs include transient suppression devices and series connected 100K resistors plus diode over voltage clamps to the internal 5V supply Sockets are provided for installa...

Page 21: ...vision 2 Groups A B C D Consult Factory ENVIRONMENTAL SPECIFICATIONS Operating Temperature 25 C to 70 C 13 F to 158 F Storage Temperature 40 C to 85 C 40 F to 185 F Relative Humidity 5 to 95 non conde...

Page 22: ...ect outside of Default Mode until a software or power on reset has occurred Watchdog Timer A hardware watchdog timer is built into the microcontroller that causes it to initiate a self reset if the co...

Page 23: ...cation flag bits 2 0 of the Module Status register will be set if any of the port output channels have not been written to over the specified time period or if any of the port input channels have not...

Page 24: ...EXC1 100K SIP RES SOCKET INPUT BUFFER CONTROLS MULTIPLEXER 5V 5V 5V MICRO 100K 100K 5V STATUS LED 100K 100K 100K 100K INTEGRATED OUTPUT CONTROLS 5V PWR LED DEFAULT MODE SWITCH PUSH FOR DEFAULT MODE U...

Page 25: ...5 CH 3 42 CH 8 TB2 TB2 21 EXC2 23 CH 5 34 D 24 26 RTN 31 COM TB4 PWR D B A TB3 TB4 PWR D TB3 RS232 PORT COM 11 12 CJC 0 45 RTN OUT3 TB1 15 IN1 TB2 42 OUT1 TB3 COM TB2 23 26 25 IN2 IN3 IN3 INPUTS 2 3 3...

Page 26: ...FLASHES IN DEFAULT MODE PUSH FOR DEFAULT MODE DFT 9 8 7 6 ON WHEN OUTPUT CONDUCTING OR WHEN INPUT LOW DIGITAL CHANNELS STATUS LED YELLOW RUN PWR LED GREEN TB4 ST RUN Acromag DEFAULT MODE SWITCH SHIELD...

Page 27: ...OUTPUT IS OFF 0 FOR INPUT ONLY UNITS MODEL 901MB 0900 902MB 0900 903MB 0900 PAGE 3 OF 4 ELECTRICAL CONNECTIONS LED V 902MB 903MB OFF ON TO OTHER 3 CHAN OF PORT 100K I O RTN SOLID STATE RELAY SSR OR L...

Page 28: ...CTED TO EARTH GROUND AT THE SAME POINT TO AVOID CIRCULATING GROUND CURRENTS NOTE 2 DIODE ADDED LOCAL TO INDUCTIVE LOAD TO SHUNT THE REVERSE EMF THAT IS GENERATED WHEN CURRENT THROUGH THE INDUCTOR RELA...

Reviews: