T BOX Manual
T BOX Manual
T BOX Manual
Operating manual
Catalog
1. INTRODUCTION ....................................................................................................... 4 1-1. SUMMARIZE ......................................................................................................................... 4 1-2. COMPATIBILITY .................................................................................................................. 4 1-3. PERFORMANCE CHARACTERISTIC........................................................................... 4 1-4. APPLIED FUNCTION AND FIELD ................................................................................. 4 2. INTERFACE AND DISPLAY ..................................................................................... 6 2-1. SERIAL PORT ..................................................................................................... 6 2-2. NETWORK INTERFACE .................................................................................... 6 2-3. POWER SUPPLY ................................................................................................. 7 2-4. EXTERNAL DIMENSION AND INSTALLATION ............................................. 7 2-5. DIP SWITCH........................................................................................................ 7 2-6. LED DISPLAY ..................................................................................................... 8 3. OPERATING STEP..................................................................................................... 9 3-1. HARDWARE SETTING AND CONNECTION ................................................... 9 3-2. SOFTWARE SETTING ...................................................................................... 10 4. THE CONNECTION BETWEEN TBOX AND SCADA ........................................... 14 5. APPLICATION EXAMPLES .................................................................................... 18
1-2. Compatibility
The whole Industrial Ethernet control system includes: T-BOX, networking PC,XC series PLC and upper computer software XCPpro (V3.0g available),TP series Industrial touch screen or OP series Text display, Network connectivity devices(hubs, routers, switches etc.) and transmission cable such as shielded twisted-pair cable or coaxial cable.
So, the Industrial Ethernet unit based on T-BOX has below applications: PLC program of IP device maintains and diagnoses with remote centralized PLC program of IP device monitors with remote centralized Traditional Modbus communication mode is one master multi-slave and slower. For multi-site large-scale device system, combined with T-BOX enables to realize data exchange function between master and slave PLC For example, in the below system, T-BOX supports Modbus/RTU serial device to access to Ethernet and constitutes an effective industrial control system, that realize the control system of multi-master multi-slave ,which enables control device to be applied in more complex environment and higher demands in industrial control system.
HMI 2 3 5
T-BOX
5
2 1 5 43 8 6 7
1 9 6
(2) When use RS-485 port, port A is +, port B is -, and connect port A, B with PLC port A, B. Attention: RS-232 port and RS-485 port cant be used at the same time. T-BOX serial connection device has some differences according to its working mode. Master mode: it can connect only one Modbus master device and many slave stations Slave mode: it only can connect Modbus slave device, the quantity is unlimited.
Pin S1 S2 S3 S4 S5 S6 S7 S8
Wire color Orange and white Orange Green and white Blue Blue and white Green Brown and white Brown
External dimension is 63mm102mm73.3mm (widthhighdeep) Use M3 snail to fix the module or install on the DIN46277 (width 35mm) track. Attention: 1. During installation, avoid metal bits or wire bits dropping into the module 2. Before connecting, please make sure the specs of the module and device are correct 3. Make sure the wire connection is firm. If not, some problem will occur such as data incorrect, short-circuit, etc. 4. When installing or connecting with the module, make sure the power is cut off
Function SLAVE mode MASTER mode Close server log on Open server log on IP address setting Use the static IP address (192.168.0.111) Undefined Undefined
There are 2 modes for TBOX IP configurations: (a) use static IP (b) use the IP set by users The priority is (a) > (b). (a): use static IP (DIP switch S3 is OFF) If users dont know the IP of TBOX or for initial use, please select default IP for TBOX. IP address: 192.168.0.111 Mask code: 255.255.255.0 Gateway: 192.168.0.1 DNS: 192.168.0.1 (b): use the users IP (DIP switch S3 is ON) Set IP address, mask code, gateway and DNS (same as default gateway)
3. Operating step
For Industry Ethernet control system, before connecting the target device into Industrial Ethernet, you have to configure the T-BOX parameters, please see the following steps:
C Make sure the PC has been connected in the network. D XC series PLC software XCPpro version requirements: For TBOX hardware v2.10, please use XCPpro v3.3 For TBOX hardware v2.0, please use XCPpro v3.0f
C double click the target TBOX, it shows the Edit TBOX device window:
Device ID: no need set, use default value Remote log in The aim of this part is to connect TBOX and its device to the WAN. It can remote maintenance the machine by remote server of TBOX. IP, Port, Server 2 name: If user uses XINJE company server, no need to set these parameters. If user can build his own server, input these parameters according to his server. Config network: When the DIP switch 3 is OFF, users can set parameters of the IP device including IP address, mask code, gateway, DNS (the same as default gateway). Then turn ON DIP switch 3, the network will recognize this TBOX. Serial port: Baud rate, databits, stopbits, parity, protocol can be modified. Please note the baud rate must be the same as the connected device.
Master/client The Edit TBOX device window will show the device type and version. When TBOX is in master mode, it will show TBOX_Master, the master mode parameters are effective. The client mode parameters will be ineffective. When TBOX is in slave mode, it will show TBOX_Slave, the client mode parameters are effective, the master mode parameters will be ineffective. TBOX_Master parameters: Protocol: UDP: effective, fast TCP: receiving/sending data is stable, occupy more sources Station IP table: station num: the station numbers controlled by master device in the Ethernet (slave station) IP: slave IP address TBOX_Slave parameters:
Send delay: TBOX will send the next command when received the answer from the slave station. Add delay between the answer and command to decrease the possibility of losing the command pack. Station table: the slave station in the Ethernet, support direct access. For example, in the following Industrial Ethernet, T-BOX1 is Master mode, T-BOX2 and T-BOX3 are all slave mode, the settings of T-BOX1 and T-BOX3 are as follows:
Modbus Slave device station NO.5 Modbus Slave device station NO.6 Modbus Slave device station NO.7 Modbus Slave device station NO.8
T-BOX2
T-BOX3
RS-485 Slave
Slave
Ethernet
T-BOX1
Master RS-485
Station IP table: station NO.5, NO.6 No.7 and NO.8 are slave station numbers. IP is the slave device IP address.
Station number table: station NO.6, NO.7 and NO.8, the purpose is to record the Modbus Slave device station numbers in the T-BOX.
TBOX comment It includes device name and content. They can be modified according to users demands, then click OK. D Click Write to TBOX, the click OK. All the parameters are effective. The existed device will be listed in the TCP_IP device window. Close this window.
E Click option /comm. Mode settings, it shows select communication mode window, please select UDP for communication mode, network type can be outer network or inner network. If there are many TBOX, only the target station works. Now, you can monitor and upload, download program of PLC via Ethernet.
(2) Select PC HMI software/Win800*600 or Win 1024*768 (according to your PC screen size).
(3) Click Next , then PLC port device select Thinget XC series
(4) Download port device select unused download port then click Next
(5) The parameters in below window: Name: TBOX log in name User ID: TBOX log in device ID. Please delete the - when input the ID. For example: ID 01-10-02-21-00-01-00-00 will be 0110012100010000.
Device: select the device in the drop-down list, then click Add. Server IP and port: TBOX remote log in IP and port. Click Next to finish the configuration.
Please note: for all the objects in the project, please change the PLC port to network device. For example: the lamp button, change PLC port to thinget XC series.
(7) After finishing the editing of project, click online simulation button to monitor the remote device.
5. Application examples
In the practical application, it can make the complicated system by connecting the devices into the industrial Ethernet. Touch screen 1 Touch screen 2
Master
Ethernet
Slave T-BOX3 T-BOX4 Slave Slave T-BOX5 Slave T-BOX6
In this system, there are 6 T-boxes, T-BOX1 and T-BOX2 are master mode, others are Slave T-BOX. Touch screen 1 and touch screen 2 are master device, PLC1, PLC2, PLC3 and PLC4 are all slave devices. The aim of this control system is to realize multi-master control multi-slave devices. Then, the detailed steps are shown as following: 1) Set 4 PLC station NO. to 1, 2, 3, 4 individually via XCPpro software. 2) Connect the T-boxes which are in Master mode and Slave mode with corresponding control devices. If it is the first time to use T-BOX, it cant be recognized. Please turn the DIP switch S3 off, use the static IP address and connect the T-boxes into the Industrial Ethernet in turn. After setting T-BOX in the XCPpro software, turn the DIP switch S3 on so as to set next T-BOX. If T-BOX has IP address, multi-T-BOX can be connected into the network at the same time and configured in the software. 3) In this example, set the IP address of each T-BOX, the IP address of T-BOX1 ~ T-BOX6 are 192.168.0.10, 192.168.0.20, 192.168.0.30, 192.168.0.40, 192.168.0.50, 192.168.0.60. In the edit TBOX device, please see the following detailed configuration:
After setting, click write to T-BOX. The following steps please refer to Operating step. Now, the parameters settings of T-BOX have been finished. If the 4 PLCs are close to each other, it can use 1 TBOX connect to 4 PLCs. The 4 PLCs connect together via RS485. Please see the below diagram:
Touch screen 1
Touch screen 2
Master
Ethernet
Slave RS485
T-BOX3
The settings of T-BOX3 are shown as the following: (turn on DIP switch 1)
The settings of T-BOX1 and T-BOX2 in the Master mode are shown as following: (turn off DIP switch 1)
The other steps are the same as the first example. According to actual conditions, user can select appropriate combination and communication method, so as to achieve optimal distribution
Xinje Electronic Co., Ltd. 4th Floor Building 7,Originality Industry park, Liyuan Development Zone, Wuxi City, Jiangsu Province 214072 Tel: (510) 85166657 Fax: (510) 85111290 www.xinje.com