background image

 

  

50

 

 

Because the transaction is handled locally within the gateway, write data 
checking is not available.  For example, if a write is performed to a register 
with a data value that is out-of-range of the corresponding “source port” 
object, no Modbus exception will be immediately returned.  However, the 
point will always reflect the “source port” status and object value.  In other 
words, if such an out-of-range write attempt is performed, the unsuccessful 
“source port” network write can be observed by reading the current 
(unchanged) value of the point during a subsequent Modbus transaction. 

 
 

14.1.1

 

Coil & Discrete Input Mappings 

The Modbus slave implementation provides read/write support for coils (0X 
references) and read-only support for discrete inputs (1X references).  These 
will collectively be referred to from here on out as simply “discretes”.  Accessing 
discretes does not reference any new physical data: discretes are simply 
indexes into various bits of Modbus registers.  What this means is that when a 
discrete is accessed, it is resolved by the gateway into a specific register, and a 
specific bit within that register.  The pattern of discrete-to-register/bit 
relationships can be described as follows: 
 
Discrete 1...16 map to register #1, bit0...bit15 (bit0=LSB, bit15=MSB) 
Discrete 17...32 map to register #2, bit0...bit15, and so on. 
 
Arithmetically, the discrete-to-register/bit relationship can be described as 
follows:  For any given discrete, the register in which that discrete resides can 
be determined by: 

 

⎥⎦

⎢⎣

+

=

16

15

discrete

register

 

…Equation 1 

 
Where the bracket symbols “

 

” indicate the “floor” function, which means that 

any fractional result (or “remainder”) is to be discarded, with only the integer 
value being retained. 
 
Also, for any given discrete, the targeted bit in the register in which that discrete 
resides can be determined by: 
 

 

16

%

)

1

(

=

discrete

bit

 

…Equation 2

 

 
Where “discrete” 

[1…65535], “bit” 

[0…15], and “%” is the modulus operator, 

which means that any fractional result (or “remainder”) is to be retained, with 
the integer value being discarded (i.e. it is the opposite of the “floor” function). 
 
From these equations, it can be seen that the largest register number that can 
be accessed via this discrete-to-register mapping method is 4096 (which 
contains discrete #65535). 
 

Summary of Contents for MBP-100

Page 1: ...NETWORK GATEWAY SERIES ICC INDUSTRIAL CONTROL COMMUNICATIONS INC MBP 100 MODBUS PLUS MULTIPROTOCOL NETWORK GATEWAY August 2008 ICC 10498 3 100 001...

Page 2: ...w network drivers are continuously being added and can be downloaded for free from our web site Before using the MBP 100 network gateway please familiarize yourself with the product and be sure to tho...

Page 3: ...CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS Life support devices or systems are devices or systems intended to sustain life and whose failure to perform when properly used in accordance wit...

Page 4: ...capacitors and therefore touching these areas may result in an electrical shock Always turn all drive input power supplies OFF and wait at least 5 minutes after the CHARGE lamp has gone out before con...

Page 5: ...5 Port Electrical Interfaces 19 6 Environmental Specifications 20 7 Maintenance and Inspection 21 8 Storage and Warranty 22 8 1 Storage 22 8 2 Warranty 22 9 LED Indicators 23 9 1 Toshiba ASD Common Se...

Page 6: ...iba RS485 ASD Protocol 54 14 5 Mitsubishi ASD Protocol 57 14 6 Teco Westinghouse ASDs 61 14 6 1 MA7200 61 14 6 2 PA7300 62 15 Modicon PLC Programming Examples 64 15 1 Ladder Logic and MSTR Instruction...

Page 7: ...ides the mapping information that allows requests from the various supported networks to be interpreted and stored in a common format This allows data to be routed from any supported network to any ot...

Page 8: ...7 2 Mechanical Diagrams 2 1 Enclosure Figure 1 Enclosure Dimensions units are inches...

Page 9: ...8 2 2 Mounting Clip Figure 2 Mounting Clip Dimensions units are inches...

Page 10: ...9 2 3 External Interface Chassis GND Modbus Plus Network Figure 3 Bottom View Reserved MMI RS232 port Modbus Plus Node Address Switches RS485 port AUX Power Modbus Plus Status LED Figure 4 Front View...

Page 11: ...10 ASD Link LEDs Data Write LEDs ASD 2 ASD 3 ASD 1 Figure 5 Top View...

Page 12: ...for connection of Toshiba 7 series 9 series 11 series or VF nC1 ASDs ASD connections use the same standard RJ45 style 8 conductor UTP patch cables any standard CAT5 Ethernet cable found in most elect...

Page 13: ...ailed information about the LED indicators and their meanings Field Upgradeable As new firmware becomes available the unit can be upgraded in the field by the end user Refer to section 16 for more inf...

Page 14: ...13 In all cases the unit can be easily unsnapped from the mounting clip to temporarily provide easier access to the chassis ground terminal or network connector...

Page 15: ...connector Be sure to follow all published guidelines pertaining to Modbus Plus network connections layout and routing 3 Connect the RS485 network to the pluggable terminal block Refer to section 5 fo...

Page 16: ...that the drives connected to each channel may simultaneously communicate to the unit at completely different baud rates parity settings etc Drives can be connected to the gateway on any ASD channel i...

Page 17: ...AWG category 5 CAT5 unshielded twisted pair UTP 8 conductor cables found in Ethernet networks in most office environments can be used The maximum allowable length for these cables is 5 meters Although...

Page 18: ...onnected from the drive 5 Connect the drive s common serial communication port to one of the ASD channels of the gateway with the communication cable communication cable is not included with the gatew...

Page 19: ...the power sources to all connected drives ON and verify that the drives function properly If the drives do not appear to power up or do not function properly immediately turn power OFF Repeat steps 2...

Page 20: ...etwork schematic of the RS485 interface circuitry Note that the Shield terminal has no internal connection its purpose is simply to provide a cable shield chaining location between devices The shield...

Page 21: ...vel do not expose to direct sunlight or corrosive explosive gasses Operating Temperature 10 50 C 14 122 F Storage Temperature 40 85 C 40 185 F Relative Humidity 20 90 without condensation Vibration 5...

Page 22: ...ble terminal blocks are fully seated in their headers Reseat if necessary Check that there are no defects in any attached wire terminal crimp points Visually check that the crimp points are not damage...

Page 23: ...e the unit in a well ventilated location When not using the unit for an extended period of time apply power at least once every two years and confirm that it still functions properly 8 2 Warranty The...

Page 24: ...s with the attached drive Figure 8 Toshiba Drive Connector Indicators The Data Write indicator is useful for confirming that a specific drive is having data written to it while the Drive Link indicato...

Page 25: ...42 ON OFF ON OFF ON ON 11 ON OFF ON OFF ON OFF 43 OFF OFF ON OFF ON ON 12 OFF OFF ON OFF ON OFF 44 ON ON OFF OFF ON ON 13 ON ON OFF OFF ON OFF 45 OFF ON OFF OFF ON ON 14 OFF ON OFF OFF ON OFF 46 ON OF...

Page 26: ...gateway boots up Switch 8 Firmware update switch Place in OFF position for normal operation and in the ON position only when new firmware is to be downloaded to the unit Refer to section 16 for more i...

Page 27: ...can have one of a selection of control protocols assigned to them The Modbus Plus port is always enabled Along with the protocol selection for the RS232 RS485 ports each of these ports also has a corr...

Page 28: ...is that although any protocol can read from or write to a point s internal value most of the time that point s value will simply be mirroring a remote data object that resides on one of the gateway s...

Page 29: ...ification to the previous example let s assume this time that register 14 of Modbus remote station address 8 is the speed command of a conveyor belt In this case point 5 of the gateway will be mirrori...

Page 30: ...t and source port assignments 4 Exit the serial console which will prompt you to update the gateway s internal configuration file and then reboot the unit 5 Download a copy of the unit s configuration...

Page 31: ...in use Connect the RJ45 end of the RS232 cable to the gateway s RS232 port and connect the DB9 end to the computer s serial port Make sure that CONFIG switch 7 is in the OFF up position to force the R...

Page 32: ...31 Figure 10 HyperTerminal Properties Connect To Figure 11 HyperTerminal Properties Connect To Configure...

Page 33: ...32 Figure 12 HyperTerminal Properties Settings...

Page 34: ...d practice to download a configuration file to your PC for backup purposes so that the original configuration can be restored if any unintended changes are made To enter the console simply type menu a...

Page 35: ...will be provided enclosed in quotation marks to delineate them from the description text whenever actually entering the console strings however do not include the quotation marks When additional data...

Page 36: ...5 Only 10 points are shown at a time of 100 total available in the unit Menu selection 2 More Points allows the next 10 points to be viewed Figure 15 View Edit Points Entering 1 with a point s number...

Page 37: ...er 2 allows you to change the point s timeout enable selection Refer to section 12 2 for more information about timeout processing Edit Timeout value Menu selection number 3 allows you to change the p...

Page 38: ...on serial port connections are point to point and therefore do not require targeting a drive at a specific address Edit Parameter Menu selection 2 allows you to edit the Toshiba ASD parameter that thi...

Page 39: ...selection 1 allows you to edit the network address of the Mitsubishi ASD that this point refers to Edit Parameter Menu selection 2 allows you to edit the Mitsubishi ASD parameter that this point will...

Page 40: ...o choose the Modbus read function code that will be used to read from the designated register The default setting of function code 03 read holding registers will access a holding register on the remot...

Page 41: ...allows you to assign a Modbus register accessible as either a holding register or input register to this point Figure 20 shows an example of how to change the current setting of 7 to 8 Note that this...

Page 42: ...2 allows modification of the offset within the Get Global Node s data block that this point will consume get from Figure 21 shows an example of changing this point s get offset from 0 to 10 in node 1...

Page 43: ...any offset offset values 0 31 from any node address values 1 64 very powerful peer to peer networking configurations can be created that entirely bypass the need for a PLC master executing MSTR instr...

Page 44: ...a assignments we can get a logical overview of the three relevant global data areas from Figure 22 Figure 23 and Figure 24 ignored ignored Point 1 value Point 5 value Offset 0 Offset 1 Offset 2 Offset...

Page 45: ...protocol selected for each port in order to access more detailed port information select the menu number corresponding to the desired port Menu selections 1 3 correspond to the Toshiba common serial...

Page 46: ...hat the baudrate for some protocols is determined by the specification and these will therefore ignore this setting Edit Parity Menu selection 3 allows you to change the parity for the selected port N...

Page 47: ...ongly recommended that a backup copy of the configuration file be downloaded from the unit to a PC One reason for this is in case it becomes necessary to restore a previous configuration at a later ti...

Page 48: ...y to send its configuration file via Xmodem Download the file now appears the user has 30 seconds to start the Xmodem download This can be performed in HyperTerminal by clicking the receive button on...

Page 49: ...rTerminal and initiate the Xmodem upload transaction Upon successful completion of the Xmodem upload the integrity of the file will be checked and if valid will be copied to both the unit s working me...

Page 50: ...dbus master protocols Supported Modbus slave functions are indicated in Table 3 Table 3 Supported Modbus Slave Functions Function Code Function 1 Read coils 2 Read input status 3 Read multiple registe...

Page 51: ...sed it is resolved by the gateway into a specific register and a specific bit within that register The pattern of discrete to register bit relationships can be described as follows Discrete 1 16 map t...

Page 52: ...tions 5 6 15 and 16 is supported Network characteristics selections o Baud rate 2400 4800 9600 19200 38400 bps o Parity odd even none 1 stop bit none 2 stop bits 14 1 3 Modbus RTU Master Supported Mod...

Page 53: ...ues in their literature which means that these register indices must have 1 added to them when entered into the gateway s Modbus master register field For example the Toshiba VF AS1 G9 drive s Modbus...

Page 54: ...assignments In this way the read registers and write registers functions can be used to perform transfers of larger blocks of registers using fewer Modbus Plus transactions compared to a situation wh...

Page 55: ...610 14 4 Toshiba RS485 ASD Protocol The gateway can act as a Toshiba ASD master via its RS485 port All Toshiba drives that implement the Toshiba protocol and provide either a built in or option based...

Page 56: ...an example detailed view of correctly positioned duplex selection jumpers Figure 31 RS485 Terminal Block CN3 and Duplex Selection Jumpers The Toshiba RS485 terminal block connections for G7 Q7 H7 W7 d...

Page 57: ...meter writes use the drive s RAM EEPROM data write W command For all writes that target the drive s EEPROM be sure to follow Toshiba s guidelines regarding the number of times a specific parameter can...

Page 58: ...i e connecting SDA RDA and SDB RDB When Using an FR A5NR Card Connect as shown in Figure 33 A TB 1 Signal Ground TB 3 B TB 2 Figure 33 FR A5NR Connections When Using the PU Port Connecting to the dri...

Page 59: ...can connect to the ASD via either the PU panel connector as indicated in Figure 35 or via the on board RS485 terminals Because both of these ports externally present a 4 wire RS485 network connecting...

Page 60: ...istics are dictated by parameters 117 124 PU port and 331 341 RS485 port Most of these parameters can be set as desired by the user However the following parameters must be set as indicated to success...

Page 61: ...ency command EEPROM 1003 Frequency monitor 1004 Output current monitor 1005 Output voltage monitor 1006 Special monitor 1007 Special monitor selection number 1008 Most recent 1 and 2 alarms alarm clea...

Page 62: ...he minimum timeout time that the gateway s port can be configured for is 1s to avoid nuisance timeout faults on the drive it is recommended to either set parameter Cn 27 to 0 0s if timeout checking is...

Page 63: ...e gateway s RS485 port A terminal to the PA M card s TB1 1 terminal the gateway s RS485 port B terminal to the PA M card s TB1 2 terminal and the gateway s RS485 port SG terminal to the PA M card s TB...

Page 64: ...63 known as register value of 37 which can then be entered in the Modbus master register assignment of a point on the gateway...

Page 65: ...1 Ladder Logic and MSTR Instructions Modicon PLCs that support Modbus Plus communications implement a special instruction called MSTR which allows them to initiate Modbus Plus message transactions via...

Page 66: ...the Control Block configuration depending on the selected MSTR function and whether or not network elements such as routers exist Specific examples of each MSTR function can be found in sections 15 3...

Page 67: ...e generated by the MBP 100 Additional error codes may be generated from other sources on the Modbus Plus network Table 8 MSTR Error Codes Error Code Hex Meaning 3001 Slave device does not support the...

Page 68: ...mmand by closing internal relay 1 The data response will be seen in the MSTR Data Area register 40100 15 4 MSTR Write Example The following example demonstrates how to use the MSTR instruction to writ...

Page 69: ...Modbus Plus network address 10 1 Set up a ladder logic program as shown in Figure 37 2 Set the top portion of the MSTR Instruction to 40070 This will be the starting address of the MSTR Control Block...

Page 70: ...tion to 40080 This will be the starting address of the MSTR Control Block Set the control block registers to the following values Address Description Register Value 40080 MSTR function global write 5...

Page 71: ...16 3 and the RS232 cable included with the gateway kit ICC part number 10425 Please be sure to read the firmware release notes and updated user s manual included with the BSP for any important notice...

Page 72: ...d procedures 16 3 1 Required Files When first downloaded the RFU utility files are compressed into one self extracting EXE distribution file Create a folder such as c RFU place the distribution file i...

Page 73: ...nds on the COM port you are using Click OK when complete Figure 40 Communications Options Window Next select the Setup File Locations menu item from the main screen The Choose File Locations window sh...

Page 74: ...s main screen This will automatically initiate the download process Alternatively select the File Load Flash Image menu item refer to Figure 42 Figure 42 Load Flash Image Menu Selection The flash ima...

Page 75: ...own all connected drives or momentarily removing all drive communication cables from the unit When the unit powers up again it will be running the new application firmware If the new firmware version...

Page 76: ...ONS INC Madison Office Houston Office 1600 Aspen Commons Suite 210 12300 Dundee Court Suite 212 Middleton WI USA 53562 4720 Cypress TX USA 77429 8364 Tel 608 831 1255 Fax 608 831 2045 http www iccdesi...

Reviews: