Résumé du contenu de la page N° 1
UG-TS02∗∗∗-E022
PROGRAMMABLE CONTROLLERS
PROSEC T2-Series
USERS MANUAL
− Modbus Module −
TOSHIBA CORPORATION
Résumé du contenu de la page N° 2
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. No patent liability is assumed by Toshiba Corporation with respect to use of
Résumé du contenu de la page N° 3
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. Indicates a potentially hazardous situation which, if not avoided, ! WARNING could result in death or serious
Résumé du contenu de la page N° 4
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. Page iv
Résumé du contenu de la page N° 5
Contents Important Information................................................................................................................ ii Safety Precautions................................................................................................................... iii About This Guide ..................................................................................................................... iv Contents .......................................................
Résumé du contenu de la page N° 6
Résumé du contenu de la page N° 7
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. This allows the Modbus Master to know the
Résumé du contenu de la page N° 8
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. Computer with SCADA or HMI Program RS485 T2E PLC I/O Modules Modbus Module T2 Minimum Configuration T2E CPU Power Supply Page 2
Résumé du contenu de la page N° 9
1 to N Configuration Modbus Master 1. Higher Level PLC 2. Distributed Control System 3. Computer with SCADA or RS485 HMI Program 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. Page 3
Résumé du contenu de la page N° 10
3. External Features and Switch Settings Page 4
Résumé du contenu de la page N° 11
4. Specifications ITEM SPECIFICATION INTERFACE TERMINAL BLOCK COMMUNICATION STYLE HALF-DUPLEX SIGNAL CONFIGURATION TXA/RXA TXB/RXB SYNCHRONIZATION START-STOP NETWORK TOPOLOGY PARTY LINE (MULTIDROP) COMMUNICATION SPEED 300, 600, 1200, 2400, 4800, 9600, 19200 bps TRANSMISSION DISTANCE 1 KM MAX COMMUNICATION MODE RTU MODE DATA LENGTH 8 BITS STOP BITS 1 BIT PARITY EVEN, ODD, NONE STATION NUMBER 1 TO 31 (DO NOT SELECT 0 OR 32) ERROR CHECK PARITY CRC NUMBER OF CHANNELS 1 CHANNEL
Résumé du contenu de la page N° 12
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. MODBUS FUNCTION CODE T2 COMMAND 01 Read Coil Status DR Read Device/Register 02 Read Input Status DR Read Device/Register DR Read Device/Register 03 Read Holding Register 04 Read Input Register DR Read Device/register 05 Force Single Coil DW Write Device Register DW Write Device
Résumé du contenu de la page N° 13
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 Attribute Modbus No. Offset Reg/Device Address (T2) Coils Read/Write 0**** 0000 to 0511 Y
Résumé du contenu de la page N° 14
Modbus – T2 Address mapping Example: Input module Output Module (XW000) (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. T2E CPU Modbus Module Modbus Address T2 Address T2 Data Type 30000 XW000 Input Register 40001 YW001 Output Register 44352 D0000 Data Register Note: When dea
Résumé du contenu de la page N° 15
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. Modbus Module DIP Switch Settings The following items are setup by DIP switches on the Modbus module: • Station number • Transmission rate (Baud r
Résumé du contenu de la page N° 16
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. Baud Rate BR2 BR1 BR0 19200 ON ON ON 9600 ON ON OFF 4800 ON OFF ON ON OFF OFF 2400 1200 OFF ON ON OFF ON OFF 600 300 OFF OFF ON OFF OFF OFF RESERVED Page 10
Résumé du contenu de la page N° 17
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) OFF ---- NONE ODD ON OFF ON ON EVEN ASY and DLY switches: The ASY and DLY switches are not used on the EX10-MML11, and should be set to the “Off” position. Page 11
Résumé du contenu de la page N° 18
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. • BR2 is on • BR1 is on • BR0 is off
Résumé du contenu de la page N° 19
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. Page 13
Résumé du contenu de la page N° 20
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 Modbus Module TXA RXA RXA TXA TXB RXB RXB TXB SG 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. Ple