USB-L111 USB-L111 User Manual Version: V1.0 2012M05 To properly use the product, read this manual thoroughly is necessary. Part No.: 81-0211100-010 1
Revision History Date Revision Description 2011/8/5 1.0 Document creation. 2
Copyright 2010 TPM The product, including the product itself, the accessories, the software, the manual and the software description in it, without the permission of TPM Inc. ( TPM ), is not allowed to be reproduced, transmitted, transcribed, stored in a retrieval system, or translated into any language in any form or by any means, except the documentation kept by the purchaser for backup purposes. The names of products and corporations appearing in this manual may or may not be registered trademarks, and may or may not have copyrights of their respective companies. These names should be used only for identification or explanation, and to the owners benefit, should not be infringed without any intention. The product s name and version number are both printed on the product itself. Released manual visions for each product design are represented by the digit before and after the period of the manual vision number. Manual updates are represented by the third digit in the manual vision number. Trademark MS-DOS and Windows 95/98/NT/2000/XP, Visual Studio, Visual C++, Visual BASIC are registered trademarks of Microsoft. BCB (Borland C++ Builder) is registered trademark of Borland. Other product names mentioned herein are used for identification purposes only and may be trademarks and/or registered trademarks of their respective companies. 3
Electrical safely To prevent electrical shock hazard, disconnect the power cable from the electrical outlet before relocating the system. When adding or removing devices to or from the system, ensure that the power cables for the devices are unplugged before the signal cables are connected. Disconnect all power cables from the existing system before you add a device. Before connecting or removing signal cables from motherboard, ensure that all power cables are unplugged. Seek professional assistance before using an adapter or extension card. These devices could interrupt the grounding circuit. Make sure that your power supply is set to the voltage available in your area. If the power supply is broken, contact a qualified service technician or your retailer. Operational safely Please carefully read all the manuals that came with the package, before installing the new device. Before use ensure all cables are correctly connected and the power cables are not damaged. If you detect and damage, contact the dealer immediately. To avoid short circuits, keep paper clips, screws, and staples away from connectors, slots, sockets and circuitry. Avoid dust, humidity, and temperature extremes. Do not place the product in any area where it may become wet. If you encounter technical problems with the product, contact a qualified service technician or the dealer. 4
Contents CONTENTS... 5 1. PRODUCTION INTRODUCTION... 6 1.1. DEVICE DESCRIPTION... 6 1.1.1. Features... 6 1.1.2. Specifications... 7 1.2. APPLICATION DEVELOPMENT... 7 2. INSTALLATION... 8 2.1. PRODUCT PACKING AND ACCESSORIES... 8 2.2. PRODUCT PLACEMENT... 8 2.3. HARDWARE INSTALLATION... 9 2.3.1. Hardware configuration... 9 2.3.2. USB slot selection... 9 2.3.3. Installation & remove procedures... 9 2.3.4. Troubleshooting... 9 2.4. DRIVER INSTALLATION... 9 2.5. CONNECTORS... 10 2.5.1. Motionnet extension connector... 10 3. MOTIONNET INTRODUCTION... 12 3.1. WHAT IS MOTIONNET?... 12 3.2. MOTIONNET FUNCTIONS... 12 3.3. ADVANTAGE OF MOTIONNET... 13 3.4. MOTIONNET PRODUCT FAMILY... 15 3.5. USB-L111 API LIST... 16 3.5.1. _USB_L111_initial... 17 3.5.2. _USB_L111_mnet_initial... 18 3.5.3. _USB_L111_mnet_GetRing... 19 5
1. Production Introduction USB-L111 Motionnet master controller device is designed for users who need to quickly and easily develop powerful applications, such as motion control and the control of digital and analog I/O s. USB-L111 is a standard USB master control device consisting high speed real-time network extension called Motionnet. TPM optimizes the software to help you to get the advanced Motionnet profiles as quickly as possible. 1.1. Device Description USB-L111 is a basic product of Motionnet series. The product is designed for standard USB interface form factor. This master device can connect slave modules up to 64. There are categories of the slave modules, digital I/O, analog I/O, motion control and miscellaneous functions. The USB-L111 interacts with Motionnet slave modules are illustrated in the following figure. Figure 1-1: USB-L111 function block 1.1.1. Features Max. 20Mbps transfer rate 1 Motionnet ring Max. 64 Motionnet slave modules support Programmable digital input notify event Easy installation with RJ45 phone jack and LED diagnostic 6
1.1.2. Specifications Number of Ring: 1 Serial interface: half duplex RS-485 with transformer isolation Cable type: CAT5 UTP/STP Ethernet cable Surge protection: 10KV Transmission speed: 2.5Mbps,5Mbps, 10Mbps and 20Mbps Data flow control : automatic Communication distance: Max. 100m (20Mbps/32 slave module) Slave module function: digital I/O slave module Power consumption: +5V DC at 0.5A typical Working temperature: 0 to 60 1.2. Application Development Figure 1-2: Motionnet application development 7
2. Installation This chapter describes how to install USB-L111. Please refer to the following subsections to install the USB-L111 properly. 2.1. Product Packing and Accessories The product includes the following items. USB standard high speed serial control device X1 USB-L111 driver installation disk X1 User manual X1 If any of these items missing or damaged, please contact your dealer. Please also keep the shipping materials and carton in case of necessary to ship the product in the future. 2.2. Product Placement The USB-L111 layout and onboard I/O interfaces are introduced as follows. Figure 2-1: hardware PCB layout Name CN1 USB connector Description 8
Name CN2 SW1 RJ-45, Motionnet slave module link port USB IP setting. Description Table 2-1: I/O interfaces on USB-L111 2.3. Hardware Installation 2.3.1. Hardware configuration USB-L111 is a standard extension device of PCI for PC system. All of the functions in base system, such as the memory allocation, I/O port locations and the address assignment should be setup by BIOS of the system. Users could install a new device of USB-L111 e asily. 2.3.2. USB slot selection User s PC will generally have both USB 2.0 and 1.1 spec. ports. USB-L111 is the standard USB spec. 2.0 device. If you plug USB-L111 to USB 1.1 port, the efficiency of the communication will be slow down. 2.3.3. Installation & remove procedures 1. Please read this manual first, including installation steps or other point for attention. 2. To install the software before you insert the USB-L111 USB cable to USB port. 3. To insert USB-L111 USB cable to USB port. Please make sure that all relative software for USB-L111 operation is closed before installing the hardware. 4. When users want to remove the USB-L111, it is necessary to close all the USB-L111 operating software first. After closing all the operating software, it is safe to remove the USB cable from the USB port. 2.3.4. Troubleshooting If your system does not install USB-L111 correctly, please follow standard installation steps to reinstall USB-L111 again. If the system still cannot install correctly after the reinstallation of the USB-L111, please contact your supplier with the technology service. 2.4. Driver Installation 1. Please take notice of that this driver of USB-L111 only can be installed on Windows 2000/XP/7 systems. Before installing this product, please make sure that your operating system is confirmed to the requirement 9
of the product. 2. Inserting the CD which could be automatic start installation procedure into the CD-ROM of user s PC. Let the operating system start to install driver automatically. 3. After the program on the CD started, please follow the installation steps which showing on the program to install the driver of this product or software utility. 4. Make sure that the driver / software utility of this product had finished installation. Please reboot user PC system. Ensure that driver installation is right and the software utility of this product can be run correctly over this PC system. 2.5. Connectors 2.5.1. Motionnet extension connector Figure 2-2: Motionnet extension (CN2 for USB-L111) Pin Label Description 1 NC Reserved 2 NC Reserved 3 RS485+ RS485 Differential Signal(+) 4 NC Reserved 5 NC Reserved 6 RS485- RS485 Differential Signal(-) 7 NC Reserved 8 NC Reserved Table 2-2: Motionnet extension pin definition Figure 2-3: RS-485 extension port 2.5 USB IP setting (SW1) 10
Figure 2-4: SW1 Pin1 Pin2 USB IP Off Off 0 Off On 1 On Off 2 On On 3 11
3. Motionnet Introduction 3.1. What Is Motionnet? Motionnet is a super high-speed serial communication system. The G9000 devices provide input/output control, motor control, CPU emulation and message communication with high speed serial communications (up to 20Mbps) all of which are required by current Factory Automation techniques. Motionnet always transfers 4 bytes of data in 15.1μsec using cyclic communication to control input and output. While this data is being transferred, it can communicate a maximum of 256 bytes, such as motor control data, and the LSI controls the data transmission using interrupts. Communication times can be calculated using formulas, allowing users to see that Motionnet guarantees the real-time oriented support needed by FA industries. 3.2. Motionnet Functions Figure 3-1: Motionnet system architecture Provides a communication protocol based on the RS485 standard. Can communicate variable length of data from 1 to 128 words (when a 16-bit CPU is used) An LSI center device (G9001) controls the bus. I/O wiring can be greatly reduced by using a G9002 I/O device. Motor control wiring can be reduced by using a G9003 PCL. Using a G9004 CPU emulation device reduces the wiring for general devices connected to a CPU. Data can be exchanged between CPUs by changing the G9004 mode. 12
New devices can be added to the system on the fly. Systems can be isolated using pulse transformers. Transfer speed up to 20 Mbps. Maximum 64 slave devices for each serial line on a master device. Input/output control of up to 256 ports (2048 points), motion control of up to 64 axes, and LSI control of up to 128 devices. Input/output and status communication time for each device when inputting/outputting and reading status data for each device, the system automatically refreshes the center device RAM each communication cycle. (Cyclic communication: 15.1 µsec./local device) When 32 local devices are connected (1024 points of input/output): 0.49 msec. When 64 local devices are connected (2048 points of input/output): 0.97 msec. Data communication time cyclic communication can be interrupted with a command from the CPU. Data communication time: 19.3 µsec. to send or receive 3 bytes (e.g. when writing feed amount data to the G9003). Data communication time: 169.3 µsec. to send or receive 256 bytes. Serial communication connection cable. Multi-drop connections using LAN cables or dedicated cables. Total cable length of one line: 100 m (20 Mbps/32 local boards) (10 Mbps/64 local boards). Cable length between local boards: 0.6 m or longer. 3.3. Advantage of Motionnet It is possible to connect from center to terminal controller parts by one cable. SENSOR SENSOR SENSOR SENSOR SENSOR SENSOR SENSOR SENSOR MOTOR Motion.NET 100m Master Extension Analog I /O Digital I/O Motion SENSOR SENSOR SENSOR SENSOR SENSOR SENSOR SENSOR SENSOR MOTOR WIRE-SAVING / LONG-DISTANCE Figure 3-2: wire-saving and long-distance support In cyclic communication, a communication cycle is as follows when a 20 Mbps speed is selected. 13
Number of local devices Communication cycle Remarks 8 0.12 ms If all of the local devices connected are I/O devices, 256 input/output points can be used. 16 0.24 ms If all of the local devices connected are I/O devices, 512 input/output points can be used. 32 0.49 ms If all of the local devices connected are I/O devices, 1024 input/output points can be used. 64 0.97 ms If all of the local devices connected are I/O devices, 2048 input/output points can be used. If a different number of local devices are connected, or when the communication cycle is interrupted by data communications, refer to the calculation formulas in the user's manual to calculate the time latency. Master 20Mbps Slave Module x 64 Slave CYCLE TIME 64 Slaves < 1.04ms 1.04ms 0.56ms 32 64 NODE 512 -DI / 512-DO 1024 -DI / 1024-DO On 20Mbps, Max. Cycle Time = 15.1 x NODE + 71.4 [FIFO Time] in us HIGH-SPEED / TIME-DETERMINISTIC Figure 3-3: high-speed and time deterministic support 14
3.4. Motionnet Product Family Figure 3-4: Motionnet product family 15
3.5. USB-L111 API List Function name _USB_L111_initial _USB_L111_mnet_initial _USB_L111_mnet_GetRing Description Get the amount of USB-L111 on PC Connect the assigned IP to Motionnet resource Get the ring number of the Motionnet resource 16
3.5.1. _USB_L111_initial Description: Get the amount of USB-L111 on PC Syntax: U16 _USB_L111_initial (U16 *exist_usb_l111); Argument: [input] U16 * exist_usb_l111 : the return value of exist_usb_l111 is the amount of installed device. Return: 0 ERR_NoError : The system was initialed successfully. Others : Please reference to the Appendix error table. 17
3.5.2. _USB_L111_mnet_initial Description: Connect the assigned IP to Motionnet resource. Syntax: U16 _USB_L111_mnet_initial (U16 USB_IP); Argument: [input] U16 USB_IP : USB-L111 is the value of IP set by SW1 Return: 0 ERR_NoError : The system was initialed successfully. Others : Please reference to the Appendix error table. 18
3.5.3. _USB_L111_mnet_GetRing Description: Get the ring number of the Motionnet resource. Syntax: U16 _USB_L111_mnet_GetRing (U16 USB_IP); Argument: [input] U16 USB_IP : assigned USB-L111 IP Return: The value of the ring number 19