ICP DAS USA I-7540D manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121

Ir para a página of

Bom manual de uso

As regras impõem ao revendedor a obrigação de fornecer ao comprador o manual com o produto ICP DAS USA I-7540D. A falta de manual ou informações incorretas fornecidas ao consumidor são a base de uma queixa por não conformidade do produto com o contrato. De acordo com a lei, pode anexar o manual em uma outra forma de que em papel, o que é frequentemente utilizado, anexando uma forma gráfica ou manual electrónicoICP DAS USA I-7540D vídeos instrutivos para os usuários. A condição é uma forma legível e compreensível.

O que é a instrução?

A palavra vem do latim "Instructio" ou instruir. Portanto, no manual ICP DAS USA I-7540D você pode encontrar uma descrição das fases do processo. O objetivo do manual é instruir, facilitar o arranque, a utilização do equipamento ou a execução de determinadas tarefas. O manual é uma coleção de informações sobre o objeto / serviço, um guia.

Infelizmente, pequenos usuários tomam o tempo para ler o manual ICP DAS USA I-7540D, e um bom manual não só permite conhecer uma série de funcionalidades adicionais do dispositivo, mas evita a formação da maioria das falhas.

Então, o que deve conter o manual perfeito?

Primeiro, o manual ICP DAS USA I-7540D deve conte:
- dados técnicos do dispositivo ICP DAS USA I-7540D
- nome do fabricante e ano de fabricação do dispositivo ICP DAS USA I-7540D
- instruções de utilização, regulação e manutenção do dispositivo ICP DAS USA I-7540D
- sinais de segurança e certificados que comprovam a conformidade com as normas pertinentes

Por que você não ler manuais?

Normalmente, isso é devido à falta de tempo e à certeza quanto à funcionalidade específica do dispositivo adquirido. Infelizmente, a mesma ligação e o arranque ICP DAS USA I-7540D não são suficientes. O manual contém uma série de orientações sobre funcionalidades específicas, a segurança, os métodos de manutenção (mesmo sobre produtos que devem ser usados), possíveis defeitos ICP DAS USA I-7540D e formas de resolver problemas comuns durante o uso. No final, no manual podemos encontrar as coordenadas do serviço ICP DAS USA na ausência da eficácia das soluções propostas. Atualmente, muito apreciados são manuais na forma de animações interessantes e vídeos de instrução que de uma forma melhor do que o o folheto falam ao usuário. Este tipo de manual é a chance que o usuário percorrer todo o vídeo instrutivo, sem ignorar especificações e descrições técnicas complicadas ICP DAS USA I-7540D, como para a versão papel.

Por que ler manuais?

Primeiro de tudo, contem a resposta sobre a construção, as possibilidades do dispositivo ICP DAS USA I-7540D, uso dos acessórios individuais e uma gama de informações para desfrutar plenamente todos os recursos e facilidades.

Após a compra bem sucedida de um equipamento / dispositivo, é bom ter um momento para se familiarizar com cada parte do manual ICP DAS USA I-7540D. Atualmente, são cuidadosamente preparados e traduzidos para sejam não só compreensíveis para os usuários, mas para cumprir a sua função básica de informação

Índice do manual

  • Página 1

    The i-7540D CAN-Ethernet Gateway User’s Manual Warranty All products manufactured by ICP DAS are under warranty regarding defective materials for a period of one year from the date of delivery to the original purchaser. Warning ICP DAS assumes no liability for damages resulting from the use of this product. ICP DAS reserves the right to change th[...]

  • Página 2

    Table of Contents 1. Introduction ....................................................................................................... 4 1.1 Features .............................................................................................................. 5 1.2 Specifications .................................................................[...]

  • Página 3

    4.6 99C .................................................................................................................. 65 4.7 99RA ............................................................................................................... 66 4.8 99#P01 .........................................................................................[...]

  • Página 4

    1. Introduction “Embedded Internet” and “Embedded Et hernet” are hot topics today. Nowadays the Ethernet prot ocol becomes the de-fact o standard for local area network. Via Internet, connectivity is o ccurring everywhere, from home appliances to vending machines to testing equipm ent to UPS…etc. Using Ethernet for network in industrial a[...]

  • Página 5

    The main features and specificati on of this are described as below: 1.1 Features z RDC 80186-80 Embedded CPU, or compatible z Ethernet Protocol, TCP,UDP , IP, ICMP, ARP, HTTP z Reloadable Oper ating Software z Remote Configuration z Data transmitted by using TCP protocol z Diagnostics z COM driver support interrupt & 1K QUEUE Input & Outpu[...]

  • Página 6

    1.2 Specifications CPU CPU 80186, 80MHz or compatible SRAM 512K Bytes Flash 512K Bytes EEPROM 16K Bytes NVRAM 31 Bytes (battery backup, data valid up to 10 year) RTC (Real Time Clock ) Yes 64-bit Hardware Serial Number Yes Build-in Watchdog Timer Yes Communication Interface COM1 RS-232 (TXD, RXD, RTS, CTS, GND) COM2 RS-485 (D2+, D2-) CAN One CAN po[...]

  • Página 7

    i-7540D Software Utility tool: z CAN bus Baud Rate configuration; z CAN acceptance filt er configuration; z CAN 2.0A or 2.0B specific selection; z Setting the IP, Gateway and Ma sk of the network status; z Setting the Web ID and password z RS-232/RS-485 baud rate and data bit setting; z CAN bus pair connection par ameters configuration. z Provides [...]

  • Página 8

    1.3 VxComm Technology The i-7540D is designed as a RS-232/RS-485/CAN to Et hernet Gateway. So it follows that they can be used to link these RS-232/RS-485/CAN devices to central computer as follows: Figure 1-2: Application of i-7540D Compared to the RS-485 network, these Ethernet network hubs are already in existence for system network. Therefore, [...]

  • Página 9

    In some factories, there are old syst ems still running and in case. These old systems only support COM port applications . Therefore, the Vxcomm technology can be used to upgrade these old syst ems to support Ethernet network. To recap, the VxComm technology is useful as follows: z Provides a much easier interface for software programmers. z Keeps[...]

  • Página 10

    2. Hardware 2.1 Block Diagram Figure 2-1 is a block diagram illustrating the functions on the i-7540D module . It provides the 2500Vrms Isolation in the CAN interface site. And hardware media in RS-232 interface is only adopted 5-wire connection. Figure 2-1: Block diagram of i-7540D i-7540D CAN-Ethernet Gateway Use r’s Manual (Version 1.4, April/[...]

  • Página 11

    2.2 Pin Assignment CAN Bus Connector Bypass CAN Bus Connector CAN Bus Status LED Power LED 7-segment LED dis p la y s Ethernet 10/100 Base T RS-232 Port RS-485 Port Power Input INIT * pin Figure 2-2: Pin assignment on the i-7540D i-7540D CAN-Ethernet Gateway Use r’s Manual (Version 1.4, April/2008) 11[...]

  • Página 12

    2.2.1 RS-232 & RS-485 & Power supply Interface The I-7540D provides one RS-232 interf ace and one RS-485 interface with hardware flow control. The GND-signal of COM1 is shar ed with pin-9, GND. The pin assignment is shown in table 2-1. Table 2-1: COM Connector Pin Assignment Pin Name Description 1 CTS1 CTS pin of COM1 (RS-232) 2 RTS1 RTS pi[...]

  • Página 13

    2.2.2 Connect to CAN Bus In order to provide an easy CAN bus wiring, the i-7540 D supplies one CAN port with two CAN bus connector interfaces . Each connecter built on the i-7540D looks like as figure 2-3 and table 2-2. Table 2-2: CAN bus Connector Pin Assignment Pin No. Signal Description 1 N/A Not Connected 2 CAN_L CAN_L bus li ne (dominant low) [...]

  • Página 14

    2.2.3 Ethernet Connect The Ethernet (10/100 Base-T X) signals are routed to an RJ45 socket for easy connection using a standard CAT 3 or CAT 5 network cable. On power on of the i-7540D, it will auto-negotiate the network speed and connection. Table 2-3: Ethernet Connector Pin Assignment Pin Name Description 1 TX+ Transmit Data + 2 TX- Transmit Data[...]

  • Página 15

    2.3 Terminator resistor settings In order to minimize refl ection effects on the CAN bus line, the CAN bus lines have to be terminated at both ends by two terminal resistances. Based on the ISO 11898-2 spec, each terminal resistance is 120 Ω (or between 108 Ω ~132 Ω ). The length related resistance should have 70 m Ω /m. Users should check [...]

  • Página 16

    Therefore, the i-7540D m odule supplies a jumper for users to connect the terminator resistor or not. If users want to use this terminator resistor, please open the i-7540D cover and use the JP3 jumper to activate the 120 Ω terminator resistor built in the system, as in the fi gure 2-5. Note that the default setting is active. And about the J3 jum[...]

  • Página 17

    2.4 LED Indication The i-7540D provides the Converter function between the Ethernet port and the RS-232 & RS485 & CAN port. It can handle both 11-bits and 29-bits ID format according to whether it is a CAN 2.0A or 2.0B. It also provides some LEDs to indicate to users what situation the i-7540D is in. 2.4.1 Power LED There is a red indicator[...]

  • Página 18

    2.4.2 CAN bus indicator LED The i-7540D includes three single-color LED displays to indicate the status of module, network and I/O device. They are ER LED (it is red), TX LED (it is green), and RX LED (it is red). The Indicators assist maintenance personnel in quickly identifying a problem unit. The LED test is to be performed at power–up. When t[...]

  • Página 19

    z RX LED This LED indicates the status of message received. Table 2-8 shows t he conditions for RX status. Therefore, when the device receives CAN messages, the RX-LED would be flashed. Table 2-8 RX led conditions Condition Description Off No data is being received Flashing red Data is being received Solid red Receive error messages i-7540D CAN-Eth[...]

  • Página 20

    2.4.3 5-digits 7-Segment LED Displays The 5-digits 7-SEG LED will show as figure 2-6. Figure 2-6 7-SEG LED Displays The important information of i-7540D can be divided as follows: z Group-ID 11111: IP info rmation of this i-7540D z Group-ID 22222: baud rate of all ports z Group-ID 33333: configuration of all ports z Group-ID 44444: CAN bus pair con[...]

  • Página 21

    z LED-2~5: IP The LED will show Group-ID first, and then show its IP as the above diagram indicates. If users change IP, the val ue shown will change immediately. The default shipping IP = 192.168.255.1 Î the LED-show sequence is given as above diagram. The DHCP function formats are given as follows: z dHCP.0 Î DHCP function disable z dHCP.1 Î D[...]

  • Página 22

    The configuration of CAN port is given as follows: z LED-1: CAN port number z LED-2~5: CAN specification (2.0A or 2.0B) The connection-client and CAN bus pair connection information are given as follows: z Group-ID of 5-digit LED: 44444. z LED-1: indicator, can be 0 or 1 or 2 or 3 or 4 or 5. Indicator 0: z LED-2: ‘P’ for CAN bus pair connection[...]

  • Página 23

    3. Software Utilities We support some software utilities for users to set and test the status of the i-7540D. 1. i-7540D Utility The i-7540D Utility tool can be used to configure the operation condition between the CAN and Ethernet communi cations. Also it can be used to transmit or receive a CAN message for simple testing of the module’s functio[...]

  • Página 24

    3.1 i-7540D Utility The i-7540D Utility tool can be used to configure the operation condition between the CAN and Ethernet communications. Also it can be used to transmit or receive a CAN message for simple testi ng of the module’s functions. To start the “i-7540D Utility”, please install the i-7540D Utility setup file and run the i-7540D.exe[...]

  • Página 25

    3.1.1 Install & uninstall the i-7540D Utility Install i-7540D Utility Step1: Download the i-7540D Utility setup file from the web site http://www.icpdas.com/products/Remote_IO/can_bus/i-7540.htm or the CD-ROM disk following the pat h of “Fieldbus_CD:CAN Converteri-7540DUtility Step 2: Execute the setup.exe file to install i-7540D Utility[...]

  • Página 26

    Step 4: Click the “Next” button and a “Choose Destination Location” window will pop up for deciding the installation path. Figure 3-3: “Choose Destination Location” dialog Step 5: Click “Next” button and a “Ready to Install the Program” window will pop up to prompt user that the wizard is ready to begin the installation See figu[...]

  • Página 27

    Step 6: Click “Install” button and start to inst all the i-7540D Utili ty to the system. After finishing the process, a “Compl ete” window will po p up to prompt users that the successful completion of the installation. And click “Finish” button to exit. See figure 3-5. Figure 3-5: “Successful Completion of the Installation” dialog [...]

  • Página 28

    Uninstall i-7540D Utility You can uninstall i-7540D Utility softw are by the following means described below: Step 1: Click “Start” in the task bar, then c lick the “Control Panel” as shown in figure 3-7. Figure 3-7: Select settings Step 2: Click the “Add or Remove Programs” button icon to open the dialog. See figure 3-8. Figure 3-8: ?[...]

  • Página 29

    Step 3: Find out the i-7540D Utility, and click the Change/Remove button. See figure 3-9. Figure 3-9: Click “Add/Remove Programs” Step 4: Select the “Remove” option butt on, and press the “N ext” button to remove i-7540D Utility. See figure 3-10. Figure 3-10: “Modify, repair, or remove the program” dialog i-7540D CAN-Ethernet Gatewa[...]

  • Página 30

    Step 5: Click the button “Yes” to remove t he software as shown in figure 3-11. Figure 3-11: Click the button “Yes ” to remove the software Step 6: Finally, clic k the “Finish” button to finish the uninstall process. Figure 3-12: “Maintenance Complete” dialog. i-7540D CAN-Ethernet Gateway Use r’s Manual (Version 1.4, April/2008) 3[...]

  • Página 31

    3.1.2 How to configure the module parameters The following procedure will guide you on how to configure the communication parameters for the CAN and Ethernet interf ace. The configuration steps are depicted as below: 1. Connect the power source (the 10~30 DC volts) into the i-7540D module. 2. The i-7540D module’s Power LED will flash appro ximate[...]

  • Página 32

    5. Then the i-7540D configuration window will be brought out. The i-7540D Utility will show the communication information from the i-7540D module in the window, as shown in the following figure. i-7540D’s CAN Status Time-Stamp value res p onse or not Error code Res p onse or not Figure 3-14: Connect to the conf iguration mode of the i-7540D 6. Ch[...]

  • Página 33

    Note: If users click the “Defaults” ic on, all of the CAN communication parameters in the i-7540D will be set to the defaul t values, which are: CAN Specification = 2.0B CAN bus Baud rate = 1Mbps B T R 0 = 0 0 B T R 1 = 0 0 Acceptance Code = 00 00 00 00 Acceptance Mask = FF FF FF FF Error Response = No Timestamp Response = No 7. The “Network [...]

  • Página 34

    IP/Gateway/Mask/ Web ID/Password CAN Pair Status RS-232/RS485 Figure 3-15: Network status, CO M status and CAN pair status i-7540D CAN-Ethernet Gateway Use r’s Manual (Version 1.4, April/2008) 34[...]

  • Página 35

    3.1.3 How to set the Bus Timing Registers BTR0, BTR1: Set the special user-defined baud rate. Users can set arbitrary baud with these pa rameters. But users need to have the background of SJA1000 CA N controller and 82C251 CAN transceiver, and calculate the values of BT0 and BT1 by themselves (The clock frequency of CAN controller is 16MHz.). i-754[...]

  • Página 36

    3.1.4 How to set the Acceptance Code and Mask Acceptance Code (AC): The CAN ID bits that you want to get. Acceptance Mask (AM): The CAN ID bi ts that you want to filter. In the acceptance code, the bit value ‘1’ means that you want to get this CAN ID bit. And in the acceptance mask, the bit value ‘0‘ means that you want to filter this CAN I[...]

  • Página 37

    Note: 1. AccCode[0] means the most significant byte of AccCode and AccCode[3] means the least sign ificant byte of AccCode. 2. AccMask[0] means the most significant byte of AccMask and AccMask[3] means the least si gnificant byte of AccMask. 3. Bit10 is most significant bit and Bit0 is least significant bit. For example (In 29 bit ID message): AccC[...]

  • Página 38

    3.1.5 Enable Error Response Figure 3-16: Error Response When the i-7540D receives a command that it doesn’t accept, it will response syntax and/or communication error informati on to the host. These general error codes are shown in below table. AsciiToHex (Error code) Description 1 The head character of the command string is invalid. 2 The length[...]

  • Página 39

    3.1.6 Enable Time-stamp Response Figure 3-17: Time-Stamp Response When the time-stamp response is enabl ed, the i-7540D will send CAN message with it’s time-tick vale, hexadecimal eight ASCII chars for a unit of microsecond , to the host as it receive a CAN message. For example: Receive the first CAN message at 33B7AA17h us Receive the second CAN[...]

  • Página 40

    3.1.7 How to change web ID/PASSWORD configuration The i-7540D module has a built-in web server that allows user to easily configure the module from a remote location using a regular web browser. When users want to modify the configuration of i-7540D via Setup web page, they need to fill these two fields, ID and PASSWORD, with correct values. Or the[...]

  • Página 41

    If users want to change the ID and PASSW ORD, they need to modify these two parameters by using Utility tool. The default setting of ID is “7540D”, and default PASSWORD is “icpdas7540D”. i-7540D CAN-Ethernet Gateway Use r’s Manual (Version 1.4, April/2008) 41[...]

  • Página 42

    3.1.8 How to test the module transmission performance The following procedure will guide you to learning how to transmit/receive CAN messages to/from other devices/PCs by using the i-7540D converter. 1. Connect the i-7540D’s CAN port into t he CAN network, which must at least have one CAN device on the network. 2. Supply the 10~30 volts DC sourc [...]

  • Página 43

    6. Select the “Test” tab in order to te st the function of transmission and reception via the i-7540D module. In “Send CAN Message” frame, user can send the necessary CAN message to Ethernet port 10003 of 7540D. Then 7540D will transfer and transmit this message to CAN bus. In the “Send Command to 7540D” frame, users can send command to[...]

  • Página 44

    7. Users also can use the timer mode to send CAN message in fixed period. And the start/stop time would be display ed in Date/Time format. And when receiving correct CAN message, these CAN message will be displayed on the “Receive” box. Start/stop time of timer mode Fixed period to send CAN messa g e Figure 3-19: Timer mode to send CAN message [...]

  • Página 45

    3.1.9 How to use CAN Bus Pair Connecti on The firmware v1.06 or later and Utility v1.04 or later support CAN bus pair connection UDP/TCP function. User can re fer the following application to use this function. Note: After setting “Enable CAN Bus Pair Connec tion”, all data send to this i-7540D via Ethernet port 10003 will become no effective. [...]

  • Página 46

    Application 01: one-to-one communication CAN Bus Pair Connection by using UDP method (port: 57540). After setting “CAN Bus Pair connection Stat us” of the two i-7540D and re-start the system of them, CAN messages between “CAN Network 01” and “CAN Network 02” can be exchanged by UDP/IP pr otocol through Ethernet network. Note: When setti[...]

  • Página 47

    Application 02: one-to-many communication (broadcast) CAN Bus Pair Connection by using UDP method (port: 57540). 1. After setting “CAN Bus Pair connection Status” of these i-7540D and re-start the system of them, CAN messages on “CAN Network 01” will be sent to “CAN Network 02“ and “CAN Network 03“ by using UDP/IP protocol via Ether[...]

  • Página 48

    Application 03: One acts as a ser ver, the other acts as a client. CAN Bus Pair Connection by using TCP method (port: 10003). After setting “CAN Bus Pair connection Stat us” of the two i-7540D and re-start the system of them, CAN messages between CAN Network 01 and CAN Network 02 can be exchanged by TCP/IP prot ocol through Ethernet network. No[...]

  • Página 49

    3.2 MiniOS7 Utility MiniOS7 Utility is a tool for configuring, uploading files to all products embedded with ICPDAS MiniOS7. And it provides so me PC diagnostic tools which can help users to diagnose the status of the i-7540D and other controllers. Supported connection ways z COM Port Connection z Ethernet UDP & TCP Connection Maintenance z Upl[...]

  • Página 50

    3.2.1 Install the MiniOS7 Utility Step 1: The installation software can be obtained from the following location. 8000cd:NapdosMiniOS7utilityMiniOS7_utility or http://ftp.icpdas.com/pub/cd/8000cd/ napdos/minios7/utility/ minios 7_utility/ Step 2: Go to where you downloaded the file, and double-click on the installation file in Windows to execu[...]

  • Página 51

    3.2.2 PC Diagnostic tools The MiniOS7 Utility provides serial PC diagnostic tools. These PC diagnostic tools can be opened from the Tool s menu of MiniOS7 Utility. The PC Diagnostic tools include: z 7188XW : is the PC side utility for modules using the ICPDAS MiniOS7. It is the Win32 version of 7188x.exe. For 7188x.exe just can use the standard COM[...]

  • Página 52

    z Send232 : uses serial port (RS-232) interf ace to communicate with devices. And it can be used to test the Virtual COM technology. Set the Com port parameters of PC. Key-in the string that you want to send The send/receive messages will be displayed over here. i-7540D CAN-Ethernet Gateway Use r’s Manual (Version 1.4, April/2008) 52[...]

  • Página 53

    z SendTCP : uses TCP protocol to comm unicate with the 7188E/8000E/7540D and other devices from Ethernet. Step 1: Run SendTCP in host-PC. Step 2: Input the IP of i-7540D and press the “ Connect ” button to connect with i-7540D. And then it will display “7188E3 is connected”. i-7540D CAN-Ethernet Gateway Use r’s Manual (Version 1.4, April/[...]

  • Página 54

    Step 3: Send command “ 10 ” to the i-7540D. And it will response “7188E3 message. Step 4: Select “ Port 2 ” and “ CR ”. Then send “ $02M ” to read 7000 module’s ID which is connected to i-7540D’s COM2. If you enable 7000 module’s checksum function, select “ CS_CR ”. The “ CS_CR ” option will add two checksum bytes, t[...]

  • Página 55

    Step 5: If you want to change the 7540D’s COM ports settings, click “ Set ” to change them. The 7540D’s COM port that you want to configure is specified by “ Select Port ” combo list. Port 2 means you want to configure the 7188E’s COM2. 3 2 1 z 7188E : Command-prompt mode program, used to send data to specific machines using TCP proto[...]

  • Página 56

    3.3 VxComm Utility The VxComm (Virtual Comm) Driver and Vx Comm Utility are very easy to install and use. This document shows how to inst all and configure the driver correctly. For more information, please refer to section 5, VxComm application. i-7540D CAN-Ethernet Gateway Use r’s Manual (Version 1.4, April/2008) 56[...]

  • Página 57

    4. Support Command List For easy application, we provide 4 co mmand strings to allow users to send specific commands from i-7540D’s Ethernet port 10003 to CAN bus. And receivin g response message form CAN bus. Also, we provide several commands for i-7540D’s Ethernet port 10000 to set and get the status of 7540D . It can cover most applications [...]

  • Página 58

    Port 10000 Command Format: 99<Command> 99 : Specific command for getting or setting the status of the 7540D Table 4-2: Command list table (port 10000) Command Description S Read the status value of i-7540D C Clear CAN error flag and FIFO RA Reboot the i-7540D module. #P01 Read the RS-232 configuration #P02 Read the RS-485 configuration #P1 Re[...]

  • Página 59

    4.1 tIIILDD…<CR> Description: Send or receive a st andard CAN data frame. ¾ Syntax: tIIILDD…<CR> t Represent a standar d (2.0A) data frame. III 11 bits Identifier (000~7FF) L Data length (0~8) DD… Input data frame value a ccording to the data length (00~FF) ¾ Response: Valid command: No response Invalid command: ?<Error Code&[...]

  • Página 60

    4.2 TIIIL<CR> Description: Send or receive a standar d CAN remote frame. ¾ Syntax: TIIIL<CR> T Represents a standard (2.0A) remote frame. III 11 bits Identifier (000~7FF) L Data length (0~8) ¾ Response: Valid command: No response Invalid command: ?<Error Code><CR> ¾ Note: It is necessary to enable the “Error Response”[...]

  • Página 61

    4.3 eIIIIIIIILDD…<CR> Description: Send or receive an ex tended CAN data frame. ¾ Syntax: eIIIIIIIILDD…<CR> e Stands for the extended (2.0B) data frame. IIIIIIII 29 bits Identifier (00000000~1FFFFFFF) L Data length (0~8) DD… Input data frame value a ccording to the data length (00~FF) ¾ Response: Valid command: No response Inval[...]

  • Página 62

    4.4 EIIIIIIIIL<CR> Description: Send or receive an ext ended CAN remote frame. ¾ Syntax: EIIIIIIIIL<CR> E Stands for the extended (2.0B) CAN remote frame. IIIIIIII 29 bits Identifier (00000000~1FFFFFFF) L Data length (0~8) ¾ Response: Valid command: No response Invalid command: ?<Error Code><CR> ¾ Note: It is necessary to[...]

  • Página 63

    4.5 99S Description: Read the i-7540D CAN Baud Rate and error flag message. ¾ Syntax: 99S 99S Command character. ¾ Response: Valid Command: !CFFTTRRO<CR> Invalid command: ERROR ! Delimiter for valid command C current baud rate setting of CAN FF CAN register TT CAN transmit error counter RR CAN receive error counter O CAN FIFO Overflow flag [...]

  • Página 64

    Table 4-4: CAN status register list AsciiToHex( FF ) Name Value Function 1 Bus-off; the SJA100 is not involved in bus activities Bit 7 (MSB) Bus Status 0 Bus-on; the SJA1000 is involved in bus activities 1 Error; at least one of the error cou nter has reached or excee ded the CPU warning limit Bit 6 Error Status 0 Ok; both error counters are below [...]

  • Página 65

    4.6 99C Description: Clear the CAN error fl ag and FIFO on the module. ¾ Syntax: 99C 99C Command character. ¾ Response: Valid Command: No response. Invalid command: ERROR ¾ Note: After sending this command, the CA N receive and transmit FIFO will be clear. The error counter of recepti on and transmission will be set to zero. And the TX and RX LE[...]

  • Página 66

    4.7 99RA Description: Reboot the i-7540D module. Users can use this command to reboot the module in order to allow it to work in order again. ¾ Syntax: 99RA 99RA Command character ¾ Response: Valid Command: Reboot the i-7540D module. Invalid command: ERROR ¾ Example: Command: 99RA The i-7540D module will reboot after it had received this command[...]

  • Página 67

    4.8 99#P01 Description: Read the RS-232 configuration ¾ Syntax: 99#P01 99#P01 Command character ¾ Response: Valid Command: 061BBDSP Invalid command: ERROR 061 Delimiter for valid command BB RS-232 Baud rate D Data bit 0 = 7 bits data formation 1 = 8 bits data formation S Stop bit 0 = 1 stop bit 1 = 2 stop bits P Parity bits 0 = None 1 = Even 2 = [...]

  • Página 68

    ¾ Example: Command: 99#P01 Response: 0610B100 The response will show the followi ng results: RS-232 baud rate=115.2K bps, data bits=8, stop bits=1, none parity. Note: This comma nd can only be acc epted by 7540 D’s port 10000 i-7540D CAN-Ethernet Gateway Use r’s Manual (Version 1.4, April/2008) 68[...]

  • Página 69

    4.9 99#P02 Description: Read the RS-485 configuration ¾ Syntax: 99#P02 99#P02 Command character ¾ Response: Valid Command: 062BBDSP Invalid command: ERROR 062 Delimiter for valid command BB RS-485 Baud rate D Data bit 0 = 7 bits data formation 1 = 8 bits data formation S Stop bit 0 = 1 stop bit 1 = 2 stop bits P Parity bits 0 = None 1 = Even 2 = [...]

  • Página 70

    ¾ Example: Command: 99#P02 Response: 06207111 The response will show the following results: RS-485 baud rate=9600 bps, data bits=8, stop bits=2, even parity. Note: This comma nd can only be acc epted by 7540 D’s port 10000 i-7540D CAN-Ethernet Gateway Use r’s Manual (Version 1.4, April/2008) 70[...]

  • Página 71

    4.10 99#P1 Description: Read the CAN configuration ¾ Syntax: 99#P1 99#P1 Command character ¾ Response: Valid Command: 14PBCCCCCCCCMMMMMMMMET Invalid command: ERROR 14 Delimiter for valid command P CAN specification 0 = 2.0A 1 = 2.0B B CAN Baud rate CCCCCCCC 32 bits Acceptance Code Register (00000000~FFFFFFFF) MMMMMMMM 32 bits Acceptance Mask Regi[...]

  • Página 72

    ¾ Example: Command: 99#P1 Response: 140400000000FFFFFFFF00 The response will show the followin g results: CAN specification= 2.0A, CAN baud rate=125Kbps, acceptance code register=00000000, acceptance mask register=FFFFFFFF, disable error response, disable timestamp response. Note: This comma nd can only be acc epted by 7540 D’s port 10000 i-7540[...]

  • Página 73

    4.11 99#P1B Description: Read the CAN Bus Timing Register ¾ Syntax: 99#P1 99#P1B Command character ¾ Response: Valid Command: 06PBTTRR Invalid command: ERROR 06 Delimiter for valid command P CAN specification 0 = 2.0A 1 = 2.0B B CAN Baud rate TT CAN Bus Timing Register 0 (00~FF) RR CAN Bus Timing Register 1 (00~FF) CAN baud rate list B Descriptio[...]

  • Página 74

    ¾ Example: Command: 99#P1B Response: 06090014 The response will show the followin g results: CAN specification= 2.0A, CAN baud rate=User defined, BTR0=00, BTR1=14. Note: 1. This comma nd can only be accepted by 7540 D’s port 10000 2. Supported by the firmware v1.04 or later. i-7540D CAN-Ethernet Gateway Use r’s Manual (Version 1.4, April/2008)[...]

  • Página 75

    4.12 99$P0105BBDSP Description: Change the RS-232 confi guration of the i-7540D ¾ Syntax: 99$P0105BBDSP 99$P0105 Command character BB RS-232 Baud rate D Data bit 0 = 7 bits data formation 1 = 8 bits data formation S Stop bit 0 = 1 stop bit 1 = 2 stop bits P Parity bits 0 = None 1 = Even 2 = Odd RS-232 Baud rate list BB Description 00 110 bps baud [...]

  • Página 76

    ¾ Example: Command: 99$P01050B100 Response: OK Set the setting of RS-232 baud rate= 115.2Kbps, data bits=8, stop bit=1, none parity bit into the i-7540D and the 7540D response “OK” command to mean that the configurat ion of RS-232 has been changed. Note: This comma nd can only be acc epted by 7540 D’s port 10000 i-7540D CAN-Ethernet Gateway [...]

  • Página 77

    4.13 99$P0205BBDSP Description: Change the RS-485 confi guration of the i-7540D ¾ Syntax: 99$P0205BBDSP 99$P0105 Command character BB RS-485 Baud rate D Data bit 0 = 7 bits data formation 1 = 8 bits data formation S Stop bit 0 = 1 stop bit 1 = 2 stop bits P Parity bits 0 = None 1 = Even 2 = Odd RS-485Baud rate list BB Description 00 110 bps baud r[...]

  • Página 78

    ¾ Example: Command: 99$P02050B100 Response: OK Set the setting of RS-485 baud rate= 115.2Kbps, data bits=8, stop bit=1, none parity bit into the i-7540D and the 7540D response “OK” command to mean that the configurat ion of RS-485 has been changed. Note: This comma nd can only be acc epted by 7540 D’s port 10000 i-7540D CAN-Ethernet Gateway [...]

  • Página 79

    4.14 99$P114PBCC…MM…ET Description: Change the CAN configur ation of the i-7540D ¾ Syntax: 99$P114PBCCCCCCCCMMMMMMMMET 99$P114 Command character P CAN specification 0 = 2.0A 1 = 2.0B B CAN Baud rate CCCCCCCC 32 bits Acceptance Code Register (00000000~FFFFFFFF) MMMMMMMM 32 bits Acceptance Mask Register (00000000~FFFFFFFF) E Error response or no[...]

  • Página 80

    ¾ Example: Command: 99$P1140400000000FFFFFFFF00 Response: OK Set the setting of CAN specification=2.0A, CAN baud rate= 125 Kbps, acceptance code=00000000, acceptance mask=FFFFFFFF, disable error response, disable timestamp response into the i-7540D and the 7540D response “OK” command to mean that the configuration of CAN has been changed. Note[...]

  • Página 81

    4.15 99$P1B04TTRR Description: Change the CAN Bus Timing R egister of the i-7540D ¾ Syntax: 99$P1B04TTRR 99$P1B04 Command character TT Bus Timing Register 0 (00~FF) RR Bus Timing Register 1 (00~FF) ¾ Response: Valid Command: OK Invalid command: ERROR Note: 1. This comm and can only be accepted by 7540D’s port 10000 2. Supported by the firm ware[...]

  • Página 82

    4.16 99#PWID Description: Read the Wed ID configuration ¾ Syntax: 99#PWID 99#PWID Command character ¾ Response: Valid Command: LLxxxxx… Invalid command: ERROR LL Web ID data length, in hexadecimal format. xxxxx… Web ID saved in the EEPROM, the default Web ID setting is “7540D” ¾ Example: Command: 99$PWID Response: 057540D Read the Web ID[...]

  • Página 83

    4.17 99#PWPW Description: Read the Wed Password configuration ¾ Syntax: 99#PWID 99#PWPW Command character ¾ Response: Valid Command: LLxxxxx… Invalid command: ERROR LL Web password data length, in hexadecimal format. xxxxx… Web password saved in t he EEPROM, the default Web password setting is “icpdas7540D” ¾ Example: Command: 99$PWPW Re[...]

  • Página 84

    4.18 99$PWIDLLxxxxx… Description: Change the Wed ID configuration ¾ Syntax: 99$PWIDLLxxxxx… 99$PWID Command character LL Web ID data length, in hexadecimal format. xxxxx… Web ID data, at most 30 ASCII characters ¾ Response: Valid Command: OK Invalid command: ERROR ¾ Example: Command: 99$PWID047540 Response: OK Change the Web ID data settin[...]

  • Página 85

    4.19 99$PWPWLLxxxxx… Description: Change the Wed password configuration ¾ Syntax: 99$PWPWLLxxxxx… 99$PWPW Command character LL Web password data length, in hexadecimal format. xxxxx… Web password data that you want to configure. At most 30 ASCII characters ¾ Response: Valid Command: OK Invalid command: ERROR ¾ Example: Command: 99$PWID0512[...]

  • Página 86

    4.20 99#PPC Description: Read the CAN bus pair connection configuration. Here support three parameters, “enable can pair”, “TCP or UDP” and “Server or Client” ¾ Syntax: 99#PPC 99#PPC Command character ¾ Response: Valid Command: LLABC Invalid command: ERROR LL number of parameters A Enable CAN bus pair connecti on flag, 0: Disable, 1: [...]

  • Página 87

    4.21 99#PPIP Description: Read the destination IP of CAN bus pair connection. ¾ Syntax: 99#PPIP 99#PPIP Command character ¾ Response: Valid Command: XXX.XXX.XXX.XXX Invalid command: ERROR XXX.XXX.XXX.XXX Destination IP address. ¾ Example: Command: 99#PPIP Response: 192.168.255.2 Read the CAN bus pair connection desti nation IP of the 7540D, and [...]

  • Página 88

    4.22 99$PPCLLABC Description: Change the CAN bus pair connection configuration. After setting successfully, all parameters will take effective after system restart. ¾ Syntax: 99$PPCLLABC 99$PPC Command character LL number of parameter s, here fix to “03” A Enable CAN bus pair connecti on flag, 0: Disable, 1: Enable B Using TCP or UDP connectio[...]

  • Página 89

    4.23 99$PPIPxxx… Description: Change the CAN bus pair connection destination IP address. After setting successfully, all parameters will take effective after system re-start ¾ Syntax: 99$PPIPxxx… 99$PPIP Command character xxx… IP address, iii/ppp/III/PPP: 3 digits number Note: This IP address is effective when enable CAN bus pair connection [...]

  • Página 90

    4.24 General Error codes for commands from port 10003 Table 4-6: Error code table AsciiToHex (Error code) Description 1 The head character of the command string is invalid. 2 The length of the comm and string is invalid. 3 The value of CAN identifier is invalid. 4 The value of CAN data length is invalid. 5 Reserved i-7540D CAN-Ethernet Gateway Use [...]

  • Página 91

    5. VxComm Applications z Overview z Installing the VxComm Driver z Adding a i-7540D and confi guring the VxComm Driver z Removing a i-7540D z Uninstalling the VxComm Driver 5.1 Overview The VxComm (Virtual Comm) D river and VxComm Utility are very easy to install and use. The first thi ng to do is to find the insta llation file in the included CD. [...]

  • Página 92

    5.1.1 Architecture The VxComm Driver creates COM port(s) and maps them to the COM port(s) of the i-7540D . The user's RS-232 client pr ograms need only to change to the different COM port to access the serial devices that are allocated to the Internet or Ethernet network via the i-7540D . i-7540D CAN-Ethernet Gateway Use r’s Manual (Version [...]

  • Página 93

    5.1.2 Ports mapping Vxcomm Driver/Utility supports Port 1 to Port 3 in accessing COM1 to COM3 of the i-7540D. Another Port I/O is des igned to access the I/ O boards mounted on i-7540D, but it doesn’t use now . With the help of the VxComm Driver/Utility, uses can map remote COM port to become a virtual COM port of PC. One PC can control maximum n[...]

  • Página 94

    5.2 Installing the VxComm Driver Step 1: The installation software can be obtained from the following location. z http://ftp.icpdas.com/pub/cd/8000cd/napdos/7188e/tcp/vxcomm/ driver(pc)/ z 8000cd:Napdos7188eTCP vxcommdriver(pc) Please choose the version that suits your Windows operation system. z vxcomm2K_vNNNNN.exe for Windows 2000/XP z vxc[...]

  • Página 95

    Step 3: Select the “ Yes , …” option and click the Finish button to restart your computer. Step 4: After rebooting the computer , the VxComm Utility will ask you to configure the virtual COM port(s). Please refer to the next section (5.3) for more information. i-7540D CAN-Ethernet Gateway Use r’s Manual (Version 1.4, April/2008) 95[...]

  • Página 96

    5.3 Adding an i-7540D and conf iguring the VxComm Driver Step 1: Obtain the IP addre ss of the i7540D. The MiniOS7 Utility can help you in obtaining the IP address of the i-7540D. Note : The default IP address of the i-7540D is 192.168.255.1 Step 2: From the Winsows Start Menu, go to Program/7188e/Vxcomm2K/ and locate the VxComm Utility. Step 3: Be[...]

  • Página 97

    Note: z Check Duplicated IP option This option checks whether the IP addres s is already listed in the server window (left hand window). It is automatically checked by default. The following alert will be displayed if an IP address is duplicated. z Connect to Server option This option connects to the i-7540D and retrieves the name of device before [...]

  • Página 98

    Step 4: And then it will display the name of “ 7186E3 ” and it’s IP. Select one of the i-7540D devices and configure the vi rtual COM port(s) by double clicking " Port 1 ", " Port 2 " or “ Port 3 ”. Step 5: Select an appropriate COM por t number, and then click the OK button. Note: z Re-assign COM number for all subseq[...]

  • Página 99

    Step 6: Select one of the i- 7540D modules, and then click the Server Options button to configure the server options. Step 7: Enter the new c onfiguration settings. The new settings will replace any text already in the Server Opti ons window text boxes. Click the OK button to save the new settings. Notes: z Keep Alive Time (ms) field : After connec[...]

  • Página 100

    layer may respond with a “Disconnect” event to the VxComm Driver if it fails to send the message after 20 seconds or more. Users can set a smaller Connection-Broken time (for example: 10000 ms ) to force the VxComm Driver to re-connect again and get a quicker response. If the connection has no sending /receiving signal before the Connection-Bro[...]

  • Página 101

    Step 8: Click the Exit button to exit the Vx Comm Utility. Before exiting, the Re-starting the Driver dialog window will automatically display. Click the Re-start button to stop/st art the driver. i-7540D CAN-Ethernet Gateway Use r’s Manual (Version 1.4, April/2008) 101[...]

  • Página 102

    5.4 Removing an i-7540D Step 1: Open the VxComm Utility . Step 2: Click the server name you want to remove, and then click the Remove Server button. Ste p 2 Ste p 1 Step 3: The following windo w will be displayed, make sure of your choice, and then click the Yes button to remove it. i-7540D CAN-Ethernet Gateway Use r’s Manual (Version 1.4, April/[...]

  • Página 103

    Step 4: Click the Exit button to finish this utility. i-7540D CAN-Ethernet Gateway Use r’s Manual (Version 1.4, April/2008) 103[...]

  • Página 104

    5.5 Uninstalling the VxComm Driver Step 1: Select the " Control Panel ". Step 2: Click the " Add or Remove Programs " to open the dialog. i-7540D CAN-Ethernet Gateway Use r’s Manual (Version 1.4, April/2008) 104[...]

  • Página 105

    Step 3: Find out the VxComm Driver, and click the “ Remove ” button. Step 4: Click the button “ Yes ” to remove the software Step 5: Finally, click the “ OK ” button to finish the uninstall process i-7540D CAN-Ethernet Gateway Use r’s Manual (Version 1.4, April/2008) 105[...]

  • Página 106

    6. Application with PISO-CAN 200/400 T In this chapter, we describe the i-7540D application in CA N network. On the CAN bus side, the device is the PISO -CAN200/400-T of ICP DAS. And here the i-7540D is a CAN-Ethernet gateway device. It allows users to send specific commands from It’s Ethernet port10003 to CAN bus. Receive response message form C[...]

  • Página 107

    Please do the following steps to setup the system before you execute this application program. Step 1: Setup the VxComm Utilit y. And the virtual COM por t of PC is setting as following figure. The installing st eps about the VxComm Utility tool, please see section 5.2. Figure 6-2: VxComm Utility tool Step 2: Install the PISO-CAN200/400 PCI card. F[...]

  • Página 108

    Step 4: Now, start to send and receiv e message between PC’s RS-232 port and CAN port by the i-7540D. The followi ng figures display the sending and receiving messages t12381122334455667788 CAN card received messages Messages sent from RS-232 port by VxComm technology Figure 6-4: Send Messages from RS-232 to CAN Send messages from CAN card RS-232[...]

  • Página 109

    7. Diagnostics and Troubleshooting 7.1 Diagnostics After configuring the VxComm Driver by using the VxComm Utility, the VxComm Driver should work without error. Howeve r, users can use a simple test to make sure it's working properly. Note : The test method depends on the user's devices and client programs.  Example 1: Loop-Back Testin[...]

  • Página 110

    Step 3: On the Tools menu of the MiniOS 7 Utility, and then click the Send232 to open the Send232 application. Step 4: Select the COM4, and then cli ck the Open button to open COM4 of the Host PC. i-7540D CAN-Ethernet Gateway Use r’s Manual (Version 1.4, April/2008) 110[...]

  • Página 111

    Step 5: Type any characters in the Send text box, and then click the Send button. The characters will be sent from COM4 of the Host PC to COM1 of the i-7540D (via Path 1), and will be immedi ately returned from COM1 of the i-7540D to COM4 of the Host PC (v ia Path 2) then displayed on the Receive text box of the Send232. i-7540D CAN-Ethernet Gatewa[...]

  • Página 112

     Example 2: Close-Loop Testing Step 1: Establish a connection as follows: Labels of CA0910 RX TX GND COM1 RXD1 TXD1 GND COM1 (Real COM) COM4 (Virtual COM) Path 1 CA0910 Cable Path 2 Step 2: On the Tools menu of the MiniOS7 Utility, and then click the Send232 to open the Send232 application. Step 3: Select the COM1 , and then click the Open bu tt[...]

  • Página 113

    Step 6: Type “COM1” in left hand window, and then cli ck Send button. Data will be sent from COM1 of the Host PC through Path1 to COM1 of the i-7540D and will be immediately returned through Path2 to COM4 of the Host PC. Step 7: Type “Virtual COM” in right hand window, and then click Send button. Data will be sent from COM1 of the Host PC t[...]

  • Página 114

     Example 3: External-Devices Testing Connect 7000 series modules to COM2 of the i-7540D. Set COM2 of the as virtual COM10 of the Host PC using the VxComm Utilit y. Thus, we can use the DCON Utility to search the 7000 series module through COM10. Note : The DCON Utility has to be installed on your Host PC. The installation software can be obtaine[...]

  • Página 115

    Step2: Establish connection as follows: Labels of CA0910 COM1 RXD1 TXD1 GND Path 1 Path 2 RX TX GND CA0910 Cable 7520 Male Male COM4 (Virtual COM) COM1 (Real COM) 7000 series module Step 3: Click the COM Port to choos e the COM port number, baud rate, and checksum. For example: COM10, 115200, 19200, 9600 and No-Checksum. (These settings depend on t[...]

  • Página 116

    Step 4: Click the search icon. Step 5: If the VxComm Driv er works properly, the DO CN Utility can search the module(s) connected to COM2 of the i-7540D. i-7540D CAN-Ethernet Gateway Use r’s Manual (Version 1.4, April/2008) 116[...]

  • Página 117

    7.2 Trouble Shooting Problem 1 : The client program fails to open the COM port that was created by the VxComm Driver. Solution 1 : Check the power supply, network cable, IP address, subnet mask and gateway of the i-7540D. Problem 2 : The client program still fails to open the COM port. Solution 2 : Step1: Right click the My Computer icon and select[...]

  • Página 118

    Step 2: Select the Device Manager icon from the Co mputer Management program. Step 3: Click Show hidden de vices from the View menu i-7540D CAN-Ethernet Gateway Use r’s Manual (Version 1.4, April/2008) 118[...]

  • Página 119

    Step 4: Select the Non-Plug a nd Play Drivers/Ynsernet item. Step 5: Right-click the m ouse button on the Ynsern et item and click the Properties. i-7540D CAN-Ethernet Gateway Use r’s Manual (Version 1.4, April/2008) 119[...]

  • Página 120

    Step 6: Check that the message “T his device is working properly” is displayed. If the driver is shown as not working properly, remove it and then re-install and rec onfigure the driver. Problem 3 : The client programs successful ly open the COM port, but fail to access the device. Solution 3 : Check the power supply and wiri ng (RS-232: RXD, T[...]

  • Página 121

    Error Code: Only For i-7540D’s COM3 (CAN port) If the Error response function on the i- 7540D module is set to be “Yes”(that mean enable) via the i-7540D Ut ility during the configur ation period, the i-7540D will send the error code to the device of the host PC thr ough the Ethernet port 10003 when the i-7540D produces an error message autom[...]