background image

       BusWorks

  

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

       ___________________________________________________________________________________________ 

- 14 - 

 
The Reset Slave query simply sends the slave address, 

function code, sub-function code, and data (data is ignored and 
simply echoed back), with error check (CRC LRC).  A Reset 
Slave response is simply an echoed acknowledge that is returned 
just before the reset is executed.  Allow a few seconds following 
reset to reinitiate communication with a module. 
 

Reset Slave Example Query 

Field Name 

Example Value (Hex) 

Slave Address 

247 (F7) 

Function Code 

08 (08) 

Sub-Function High Order Byte 

0 (00) 

Sub-Function Low Order Byte 

1 (01) 

Data Field High-Order Byte 

0 (00) 

Data Field Low Order Byte 

0 (00) 

Error Check (LRC or CRC) 

-- 

 
Reset Slave Example Response (Sent Prior To Reset) 

Field Name 

Example Value (Hex) 

Slave Address 

247 (F7) 

Function Code 

08 (08) 

Sub-Function High Order Byte 

0 (00) 

Sub-Function Low Order Byte 

1 (01) 

Data Field High-Order Byte 

0 (00) 

Data Field Low Order Byte 

0 (00) 

Error Check (LRC or CRC) 

-- 

 
For Modbus software that does not support the Reset Slave 

function, an alternate method of generating a module reset is 
provided via a write to the Module Reset Register (See Reset 
Module Register 40011 of Register Map). 
 

Modbus Data Field 
 

The data field of a message frame contains a multiple of 8 

bits that provides the slave with any additional information the 
slave requires to complete the action specified by the function 
code.  The data field typically includes register addresses, count 
values, and written data.  The data field can be nonexistent (zero 
length) as not all messages require data. 
 

If no error occurs, the data field of a response from a slave 

will return the requested data.  If an error occurs, the data field 
returns an exception code (see Modbus Exceptions) that the 
master application can use to determine the next action to take.

 

 
Supported Data Types 
 

All I/O values are accessed via 16-bit Input Registers or 16-

bit Holding Registers (see Register Map).  Input registers contain 
information that is read-only.  For example, the current input 
value read from a channel, or the states of a group of digital 
inputs.  Holding registers contain read/write information that may 
be configuration data or output data.  For example, the high limit 
value of an alarm function operating at an input, or an output 
value for an output channel.   
 

I/O values for 900MB models are represented by the 

following simple data types for temperature, percentage, and 
discrete on/off. 

 

Summary Of Data Types Used By 900MB Modules 

Data Types 

Description 

Count Value 

A 16-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 represent 

±

100%.  For example, -100%, 0% and 

+100% are represented by decimal values 
–20000, 0, and 20000, respectively.  The 
full range is –163.84% (-32768 decimal) to 
+163.835% (+32767 decimal).   

Temperature 

A 16-bit signed integer value with resolution 
of 0.1

°

C/lsb.  For example, a value of 

12059 is equivalent to 1205.9

°

C, a value of 

–187 equals –18.7

°

C.  The maximum 

possible temperature range is –3276.8

°

C to 

+3276.7

°

C. 

Discrete 

A discrete value is generally indicated by a 
single bit of a 16-bit word.  The bit 
number/position typically corresponds to 
the discrete channel number for this model.  
Unless otherwise defined for outputs, a 1 
bit means the corresponding output is 
closed or ON, a 0 bit means the output is 
open or OFF.  For inputs, a value of 1 
means the input is in its high state (usually 
>> 0V), while a value of 0 specifies the 
input is in its low state (near 0V). 

 

Modbus Error Checking Fields 

 

Modbus networks employ two methods of error checking:  

parity checking (even or odd parity, or none), and frame checking 
(Cyclical Redundancy Check). 
 

Parity Checking 

 

A Modbus device can be configured for Even or Odd parity 

checking, or for no parity checking, and this determines how the 
parity bit of the data frame is set. 
 

If even or odd parity checking is selected, the number of 1 

bits in the data portion of each character frame is counted.  Each 
character in RTU mode contains 8 bits.  The parity bit will then be 
set to a 0 or a 1, to result in an even (Even parity), or odd (Odd 
parity) total number of 1 bits.  For example, if an RTU character 
frame contains the following eight data bits: 1100 0011, then 
since the total number of 1 bits is 4 (already an even number), 
the frame’s parity bit will be 0 if even parity is selected.  If odd 
parity is used, then the parity bit will be set to 1, making the total 
number of bits an odd number (five). 
 

When a message is transmitted, the parity bit is calculated 

and applied to the frame of each character transmitted.  The 
receiving device counts the quantity of 1 bits in the data portion of 
the frame and sets an error flag if the count differs from that sent.  
As such, parity checking can only detect an error if an odd 
number of bits are picked up or dropped off from a character 
frame during transmission.  For example, if odd parity is 
employed and two 1 bits are dropped from a character, the result 
is still an odd count of 1 bits.  Note that all devices on a Modbus 
network must use the same parity.  If no parity checking is 
selected, then no parity bit is transmitted and no parity check is 
made.  An additional stop bit is transmitted to fill out the character 
frame for the no parity selection. 

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: