UG-TS02∗∗∗-E022 PROGRAMMABLE CONTROLLERS PROSEC USERS MANUAL − Modbus Module − TOSHIBA CORPORATION T2-Series
Important Information Misuse of this equipment can result in property damage or human injury. Because controlled system applications vary widely, you should satisfy yourself as to the acceptability of this equipment for your intended purpose. In no event will Toshiba Corporation be responsible or liable for either indirect or consequential damage or injury that may result from the use of this equipment.
Safety Precautions This application guide is prepared for users of Toshiba programmable controller PROSEC T2-Series and EX100 Series (hereafter called T2). Read this guide and your PLC's manual thoroughly to use the PLC system safely. Hazard Classifications In this guide, the following two hazard classifications are used to explain the safety precautions. ! WARNING Indicates a potentially hazardous situation which, if not avoided, could result in death or serious injury.
About This Guide This guide describes how to setup and use the Toshiba EX10-MML11 Modbus module. When used in a Modbus network, the EX10-MML11 module allows any Modbus master to write to/read from the registers in an EX100 or T2 PLC using standard Modbus RTU protocol.
Contents Important Information................................................................................................................ ii Safety Precautions................................................................................................................... iii About This Guide ..................................................................................................................... iv Contents .................................................................................
1. Overview The Modbus module (ML11) is used to connect T2E, T2N, or EX100 PLCs to a Modbus Master. The addition of the EX10-MML11 (MODBUS Module) allows the T2E, T2N or EX100 PLC to communicate via standard MODBUS RTU protocol. This allows quick and easy access to the PLC registers by a standard MODBUS Master. Using the ML11 Modbus module any Modbus Master can read the status of registers in the PLC and write to registers in the PLC.
2. System Configuration From 1 to 32 T2E or T2N PLCs can be connected to a Modbus master using the Modbus module. 1 to 1 Configuration Modbus Master 1. Higher Level PLC 2. Distributed Control System 3.
1 to N Configuration Modbus Master 1. Higher Level PLC 2. Distributed Control System 3. Computer with SCADA or HMI Program RS485 T2 Maximum Configuration 1 Main Unit 3 Exp. Units Up to 32 Stations For high-speed data transfer, one of Toshiba’s Tosline Data Highway modules is recommended.
3.
4.
5. Modbus Module Operation 5.1. Modbus Commands When a MODBUS command is used, the Modbus module translates it to the corresponding T2 register access protocol.
5.2. Modbus Data Types and T2 Register Mapping This table shows how the different Modbus data types are mapped into T2 registers. In other words, a Modbus master would reference the following Modbus register ranges to access the corresponding T2 PLC registers. For example, Modbus Holding Register 4352 will map to T2 register D000, and Input Register 0000 will map to XW00. Data Type Coils Attribute Read/Write Modbus No.
Modbus – T2 Address mapping Example: Input module (XW000) Output Module (YW001) In this example, the T2 is being used As a Modbus Remote Terminal Unit slave. A Modbus master can access The I/O or data registers in the T2. See the following table for a Modbus to T2 address mapping example.
6. Modbus Module Setup The Toshiba Modbus module has been used reliably as a Modbus slave for several years. First it was used on Toshiba’s EX100 Series PLCs and now on the T2 Series PLCs. Before it can function as intended however, all the DIP switches must be properly set and all wiring connections must be correct. 6.1.
Transmission Rate (Baud Rate): Select the combination of the three switches "BR2", "BR1", and "BRO" for the desired communication speed. These are the 4th, 5th, and the 6th switches.
Parity Check: Select the parity check as odd, even or none. Use switches 7 and 8 to set the parity. PARITY PEN (7) EVN (8) NONE OFF ---- ODD ON OFF EVEN ON ON ASY and DLY switches: The ASY and DLY switches are not used on the EX10-MML11, and should be set to the “Off” position.
Example Configuration Settings: This section shows how to set the card up for network station address 2, 9600 baud, and no parity. 1) “ASY and DLY” Set these to the Off position. 2) "Station Address" •Set the Station number on the rotary switch to 2. • Set the HAD switch to OFF because our address is less than 16. 3) "Communication speed" For 9600 baud, the following settings are required.
4) "Parity check" For No Parity, the following settings are required. • PEN is off. • EVN is off. OFF ON ASY DLY HAD BR2 BR1 BR0 PEN EVN Switch settings for 9600 baud, no parity, and address less than 16.
6.2. Wiring Connection to the Modbus Module Sometimes it is necessary to convert from the standard RS485 to RS232 for connection to a Personal Computer. The wiring between the Modbus module and the converter must be set as follows: RS485 Converter TXA RXA TXB RXB SG Modbus Module RXA TXA RXB TXB SG Note: Different RS485 converters have different connections. For example, when one commonly available converter is used, TXA connects to RXB, TXB connects to RXA, etc.
7. CPU Setup for the Modbus Module Two lines of ladder logic are necessary to configure a T2 CPU for use with the Modbus module. 1 Communications Priority: To insure uninterrupted communications between the CPU and the Modbus module, the communications priority bit S0158 must be set ON. 2. Initialization: To initialize the Modbus module, write the initialization parameter into data register D1470. Register D1470 must be set to H5555 (21845 Decimal) before the Modbus module will start communicating.
8. Trouble Shooting The communication status LEDs can be used to verify correct operation of the Modbus module. During normal operation, the LED indicators flash as follows: • RXD LED: Flashes when the Modbus master sends a message to the EX10 -MML11. On a multi slave network, this can also flash when when the master polls other slaves, or when other slaves respond to the master. In general, it indicates activity on the network. • TXD LED: Flashes when that specific EX10-MML11 responds to the master.
9. Additional References Toshiba Corporation, Instruction Manual - EC300 Series Controller – ECBUS Transmission Interface Module – ML11. 6F8A0613 4th ed. Feb 1995. Tokyo, Japan. Toshiba Corporation, Computer Link Function Operation Manual. UM-TS03-E008, 3rd ed. Aug. 1977. Tokyo, Japan. Gould Modicon, Modbus Protocol Reference Guide. Andover, MA. Page 17 PI-MBUS-300 Rev B. Jan 1985.
TOSHIBA TOSHIBA INTERNATIONAL (EUROPE) LTD. 1 Roundwood Avenue Stockley Park, Uxbridge Middlesex UB11 1AR, UNITED KINGDOM Tel: 081 848 4466 Fax: 081 848 4969 E_mail nigels@toshibai.co.uk TOSHIBA INTERNATIONAL CORPORATION PTY. LTD. Unit 1, 9 Orion Road Lane Cove N.S.W. 2066, AUSTRALIA Tel: 02-428-2077 Telex: AA25192 E_mail: preston@toshiba.co.au TOSHIBA INTERNATIONAL CORPORATION TOSHIBA CORPORATION Industrial Equipment Division 13131 West Little York Road Houston, TX. 77041 U.S.A.