background image

I-7540D CAN-Ethernet Gateway User’s Manual (Version 1.8, March/2021) 

113 

 

Example 2: Close-Loop Testing   

Step 1:   Establish a connection as follows:   

 

 

 

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 button to open COM4 of the 

Host PC.

 

 

Step 4:   Set COM1 of the I-7540D  as virtual COM4 of the Host PC  using the 

VxComm Utility.

 

 

Step 5:   Execute another Send232 application, and open the virtual COM4 of the 

Host PC. 

 

 

COM1 

RXD1 
TXD1 
GND

 

COM1 

(Real COM)

 

Path 1 

COM4 

(Virtual COM)

 

Path 2 

RX 

TX 

GND

 

CA0910 Cable 

Labels of CA0910 

Summary of Contents for I-7540D

Page 1: ...se of this product ICP DAS reserves the right to change this manual at any time without notice The information furnished by ICP DAS is believed to be accurate and reliable However no responsibility is assumed by ICP DAS for its use or for any infringements of patents or other rights of third parties resulting from its use Copyright Copyright 2015 by ICP DAS All rights are reserved Trademark The na...

Page 2: ... 3 5 digits 7 Segment LED Displays 20 3 Software Utilities 23 3 1 I 7540D Utility 24 3 1 1 Install uninstall the I 7540D Utility 25 3 1 2 How to configure the module parameters 31 3 1 3 How to set the Bus Timing Registers 35 3 1 4 How to set the Acceptance Code and Mask 36 3 1 5 Enable Error Response 38 3 1 6 Enable Time stamp Response 39 3 1 7 How to change web ID PASSWORD configuration 40 3 1 8 ...

Page 3: ... P1 71 4 11 99 P1B 73 4 12 99 P0105BBDSP 75 4 13 99 P0205BBDSP 77 4 14 99 P114PBCC MM ET 79 4 15 99 P1B04TTRR 81 4 16 99 PWID 82 4 17 99 PWPW 83 4 18 99 PWIDLLxxxxx 84 4 19 99 PWPWLLxxxxx 85 4 20 99 PPC 86 4 21 99 PPIP 87 4 22 99 PPCLLABC 88 4 23 99 PPIPxxx 89 4 24 99CRA 90 4 25 General Error codes for commands from port 10003 91 5 VxComm Applications 92 5 1 Overview 92 5 1 1 Architecture 93 5 1 2...

Page 4: ...alling the VxComm Driver 95 5 3 Adding an I 7540D and configuring the VxComm Driver 97 5 4 Removing an I 7540D 103 5 5 Uninstalling the VxComm Driver 105 6 Application with PISO CAN 200 400 T 107 7 Diagnostics and Troubleshooting 110 7 1 Diagnostics 110 7 2 Trouble Shooting 118 ...

Page 5: ...D from ICP DAS is a solution that enables CAN networks to be coupled together over the Internet Ethernet whereby remote monitoring and control is possible The I 7540D controls networked communication and makes a transparent CAN based application interface available to the user The device supports a transparent protocol independent transfer of the CAN messages thus allowing its implementation into ...

Page 6: ...e RS 232 port one RS 485 port and one CAN port 2500Vrms photo isolation protection on CAN side Jumper select 120Ω terminator resistor for CAN channel Phillip 82C250 251 TJA1042 CAN Transceiver Support both CAN specification 2 0A and 2 0B Max transmission speed up to 1M bps for CAN and 115 2K bps for RS 232 RS 485 Max transmission distance of CAN over 1000m follow CAN specification Built in self tu...

Page 7: ...N_L Ethernet Port 10 100 Base TX Ethernet Controller Auto negotiating Auto_MDIX LED indicator COM Port Formats Data bit 7 8 Parity Even Odd None Stop bit 1 Baud rate 115 2Kbps max CAN Port Formats CAN Controller Phillip SJA1000T CAN Controller CAN Transceiver Phillip 82C250 TJA1042 CAN Transceiver Isolated 2500Vrms on CAN side Baud rate 1Mbps max Dimensions Dimensions 72mm x 122mm x 33mm W x L x H...

Page 8: ...ecific selection Setting the IP Gateway and Mask of the network status Setting the Web ID and password RS 232 RS 485 baud rate and data bit setting CAN bus pair connection parameters configuration Provides a quick testing function for transmitting receiving CAN messages Application Factory Automation Building Automation Home Automation Control system Monitor system Vehicle Automation ...

Page 9: ...twork Therefore the RS 232 devices can find the closest hub and link to the central computer with the help of the I 7540D The Ethernet network is extremely popular and already existing for most applications hence this approach is a very successful In general it is more difficult to write a TCP IP program than a COM 1 2 program Therefore the VxComm technology is developed to simulate COM ports of t...

Page 10: ...network To recap the VxComm technology is useful as follows Provides a much easier interface for software programmers Keeps the old systems going without program modification The block diagram of VxComm technology for the I 7540D is given as follows The VxComm technology can be used to simulate COM CAN ports of the I 7540D to become a COM port of PC With the help of VxComm driver users can access ...

Page 11: ...ardware 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 ...

Page 12: ...rsion 1 8 March 2021 12 2 2 Pin Assignment Figure 2 2 Pin assignment on the I 7540D CAN Bus Connector Bypass CAN Bus Connector Power LED CAN Bus Status LED 7 segment LED displays RS 232 Port RS 485 Port Power Input INIT pin Ethernet 10 100 Base T ...

Page 13: ... is shared 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 pin of COM1 RS 232 3 RXD1 RXD pin of COM1 RS 232 4 TXD1 TXD pin of COM1 RS 232 5 INIT Initial pin for enable disable AUTOEXEC BAT 6 D2 Data pin of COM2 RS 485 7 D2 Data pin of COM2 RS 485 8 VS V of power supply 10V to 30V DC unregul...

Page 14: ...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 line dominant low 3 N A Not Connected 4 CAN_H CAN_H bus line dominant high 5 N A Not Connected Note that the bypass CAN bus connector is not another CAN channel It is designed for connecting to another CAN device conveniently The structure of the inside electronic circuit is dis...

Page 15: ...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 3 RX Receive Data 4 N C Not Connected 5 N C Not Connected 6 RX Receive Data 7 N C Not Connected 8 N C Not Connected ...

Page 16: ... resistances of their CAN bus before they install a new CAN network as figure 2 4 Figure 2 4 Terminator resistor Moreover to minimize the voltage drop on long distance the terminal resistance should be higher than the value defined in the ISO 11898 2 Table 2 4 may be used as a reference Table 2 4 Relation between bus cable and length Bus Length meter Bus Cable Parameters Terminal Resistance Ω Leng...

Page 17: ...ase open the I 7540D cover and use the JP3 jumper to activate the 120Ω terminator resistor built in the system as in the figure 2 5 Note that the default setting is active And about the J3 jumper setting please refer the table 2 5 Figure2 5 XC100I O expansion board LAYOUT Table 2 5 J3 Jumper Selection Apply the termination resistor 120Ω Don t apply the termination resistor v1 80 or before v1 90 v1...

Page 18: ...o 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 the CAN communication events occur these indicators will be triggered to glitter with different conditions ER LED This LED provides device status an...

Page 19: ...nditions Condition Description Off No data is being transmitted to the CAN side Flashing green Data are transmitting to the CAN side Solid green Transmit data error RX LED This LED indicates the status of message received Table 2 8 shows the 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 ...

Page 20: ...nformation of I 7540D can be divided as follows Group ID 11111 IP information of this I 7540D Group ID 22222 baud rate of all ports Group ID 33333 configuration of all ports Group ID 44444 CAN bus pair connection information and client connected information of this I 7540D The IP information format of I 7540D is given as follows Group ID of 5 digit LED 11111 LED 1 indicator can be 1 or 2 or 3 or 4...

Page 21: ...up ID of 5 digit LED 22222 LED 1 COM port number LED 2 5 value of baud 100 The baud rate format of CAN port is given as follows LED 1 CAN port number LED 2 5 value of baud 1000 The COM port and CAN port number are shown in LED 1 and their baud rate is shown in the LED 2 5 The COM port baud rate value of LED 2 5 100 Therefore shown value 1 96 means baud rate of COM1 9600BPS shown value 2 1152 means...

Page 22: ...f I 7540D is given as follows LED 2 5 IP The LED will show Group ID first and then show its IP as the above diagram indicates If users change can bus pair destination IP and reset the system the value shown will change The default shipping IP 192 168 255 2 the LED show sequence is given as above diagram Indicator 5 LED 2 3 numbers of free sockets are available default 24 LED 4 5 numbers of sockets...

Page 23: ...condition between the CAN and Ethernet communications Also it can be used to transmit or receive a CAN message for simple testing of the module s functions 2 MiniOS7 Utility MiniOS7 Utility is a tool for configuring uploading files to all products embedded with ICPDAS MiniOS7 3 VxComm Utility Using the Virtual COM application one PC can control 256 COM ports including real COM ports The I 7540D wi...

Page 24: ...Utility setup file and run the I 7540D exe file The screenshot of the startup screen for this Utility is given in the below figure Connect the I 7540D s Ethernet port with the PC s Ethernet port via a standard CAT 3 or CAT 5 network cable Then the user can connect the CAN interface into the CAN network based on the CAN specifications For further information related to this please refer to section ...

Page 25: ... I 7540D Utility Step1 Download the I 7540D Utility setup file from the web site https www icpdas com en download show php num 919 model I 75 40D G Step 2 Execute the setup exe file to install I 7540D Utility Step 3 A Welcome window pops up to prompt user to begin the installation See figure 3 2 Figure 3 2 Welcome dialog ...

Page 26: ...tion 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 figure 3 4 Figure 3 4 Ready to Install the Program dialog ...

Page 27: ...ss a Complete window will pop 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 Step 7 After finishing the installation of the I 7540D Utility users can find it as shown in figure 3 6 Figure 3 6 You can find I 7540D Utility at the Start in the task bar ...

Page 28: ...uninstall I 7540D Utility software by the following means described below Step 1 Click Start in the task bar then click 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 Add Remove Programs ...

Page 29: ...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 button and press the Next button to remove I 7540D Utility See figure 3 10 Figure 3 10 Modify repair or remove the program dialog ...

Page 30: ... March 2021 30 Step 5 Click the button Yes to remove the software as shown in figure 3 11 Figure 3 11 Click the button Yes to remove the software Step 6 Finally click the Finish button to finish the uninstall process Figure 3 12 Maintenance Complete dialog ...

Page 31: ...r LED will flash approximately once per second And the 5 digits 7 segment LED will scroll to display some messages please refer to section 2 4 3 That means the I 7540D module is working normally 3 The user must run the I 7540D s Utility software after they have made a wire connection between the PC and the I 7540D via the network cable 4 Click the Connect icon on the I 7540D Utility tool bar The s...

Page 32: ...gure Figure 3 14 Connect to the configuration mode of the I 7540D 6 Choose the Settings tab to open the configuration window for the CAN and the Network status parameters of the I 7540D Once users have finished changing the CAN parameter settings please click the Setting button on the CAN Parameters frame to store the communication parameters into the EEPROM on the I 7540D I 7540D s CAN Status Err...

Page 33: ...ess of the I 7540D Users can change these network parameters by click the Set button and Modify IP button And the Reset System checkbox is used to reset the system of I 7540D Note After modify the network status of the I 7540D the setting value will become effective after resetting the system 8 The COM Status frame showed the parameters of RS 232 and RS485 ports User also can modify it by click th...

Page 34: ... To avoid making system crash as a result of wrong IP address we limited the IP address ranges 1 IP address first byte 1 223 second and third Byte 0 255 and last byte 1 255 2 Does not support IP address 1 1 1 1 3 If the IP address is used in UDP mode the first byte 1 255 IP Gateway Mask Web ID Password RS 232 RS485 CAN Pair Status ...

Page 35: ... Registers BTR0 BTR1 Set the special user defined baud rate Users can set arbitrary baud with these parameters But users need to have the background of SJA1000 CAN controller and 82C251 CAN transceiver and calculate the values of BT0 and BT1 by themselves The clock frequency of CAN controller is 16MHz ...

Page 36: ...t of AccCode in the same position For 11 bit ID Message AccCode and AccMask Bit Position Filter Target AccCode 0 and AccMask 0 bit7 bit0 bit10 bit3 of ID AccCode 1 and AccMask 1 bit7 bit5 bit2 bit0 of ID AccCode 1 and AccMask 1 bit4 RTR AccCode 1 and AccMask 1 bit3 bit0 no use AccCode 2 and AccMask 2 bit7 bit0 bit7 bit0 of 1st byte data AccCode 3 and AccMask 3 bit7 bit0 bit7 bit0 of 2nd byte data ...

Page 37: ... example In 29 bit ID message AccCode 00h 00h 00h A0h AccMask FFh FFh FFh 1Fh ID bit bit28 bit21 bit20 bit13 bit12 bit5 bit4 bit0 ID Value xxxx xxxx xxxx xxxx xxxx xxxx 101x x will be accepted Note The mark x means don t care And the mark h behind the value means hex format ...

Page 38: ... doesn t accept it will response syntax and or communication error information 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 of the command string is invalid 3 The value of CAN identifier is invalid 4 The value of CAN data length is invalid 5 Reserved ...

Page 39: ...e When the time stamp response is enabled 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 message at 33E054EBh us Mode 0 CAN 2 0A Mode 1 CAN 2 0B ...

Page 40: ... 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 they can view the configuration of I 7540D and can t modify the configuration ...

Page 41: ...ateway User s Manual Version 1 8 March 2021 41 If users want to change the ID and PASSWORD they need to modify these two parameters by using Utility tool The default setting of ID is 7540D and default PASSWORD is icpdas7540D ...

Page 42: ...ts DC source into the I 7540D module through the power terminal 3 The I 7540D module s Power LED will flash approximately once per second And the 5 digits 7 segment LED will scroll to display some messages That means the I 7540D is working in the operation mode 4 Run the I 7540D Utility software after they have made a wire connection between the PC and the I 7540D via the network cable 5 Click the...

Page 43: ...er 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 7540D for getting or setting the status or parameters of 7540D Figure 3 18 Send and receive CAN messages Used to send CAN message Received CAN message Used to Send Command to 7540D Timer mode to send CAN mes...

Page 44: ...ode to send CAN message in fixed period And the start stop time would be displayed in Date Time format And when receiving correct CAN message these CAN message will be displayed on the Receive box Figure 3 19 Timer mode to send CAN message Fixed period to send CAN message Start stop time of timer mode ...

Page 45: ...ility v1 04 or later support CAN bus pair connection UDP TCP function User can refer the following application to use this function Note After setting Enable CAN Bus Pair Connection all data send to this I 7540D via Ethernet port 10003 will become no effective And the VxComm port of 7540D s COM3 CAN port will become no effective CAN Pair Status ...

Page 46: ...on by using UDP method port 57540 After setting CAN Bus Pair connection Status 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 protocol through Ethernet network Note When setting to use UDP method the Server Client parameters will be no effective ...

Page 47: ... 01 will be sent to CAN Network 02 and CAN Network 03 by using UDP IP protocol via Ethernet network 2 All CAN message on CAN Network 02 will sent to CAN Network 01 by using UDP IP protocol via Ethernet network 3 All CAN message on CAN Network 03 will sent to CAN Network 01 by using UDP IP protocol via Ethernet network 4 By using this broadcast method users need to know how to set the network mask ...

Page 48: ... Connection by using TCP method port 10003 After setting CAN Bus Pair connection Status 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 protocol through Ethernet network Note When setting to act as a TCP server the Connect to Destination IP will be no effective ...

Page 49: ...oducts embedded with ICPDAS MiniOS7 And it provides some PC diagnostic tools which can help users to diagnose the status of the I 7540D and other controllers Supported connection ways COM Port Connection Ethernet UDP TCP Connection Maintenance Upload file s Update MiniOS7 image Delete file s Configure Date Time IP Address COM port Check Product information ...

Page 50: ... can be obtained from the following location http www icpdas com en download index php root model kw MiniO S7 20Utility Step 2 Go to where you downloaded the file and double click on the installation file in Windows to execute it Step 3 To finish the installation of the MiniOS7 Utility click the Finish button to exit the setup process ...

Page 51: ...andard COM PORT RS 232 of PC But on Win32 systems WIN95 98 ME NT 2K XP also have RS 232 port use PCMCIA or USB interface 7188x exe can not use these devices so need the program 7188xw exe Using RS 232 ports of PC link to the modules using MiniOS7 7188xw exe in basically is a terminal program It send out the data that user key in to COM port and show the data received from COM port on the screen of...

Page 52: ...h 2021 52 Send232 uses serial port RS 232 interface 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 ...

Page 53: ...21 53 SendTCP uses TCP protocol to communicate 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 ...

Page 54: ...and 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 then adds CR 1 2 2 3 ...

Page 55: ...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 7188E Command prompt mode program used to send data to specific machines using TCP protocol Usage 7188e S IP P Port Connect to a device by using TCP protocol Q Quit program and disconnect 1 2 3 ...

Page 56: ... 8 March 2021 56 3 3 VxComm Utility The VxComm Virtual Comm Driver and VxComm Utility are very easy to install and use This document shows how to install and configure the driver correctly For more information please refer to section 5 VxComm application ...

Page 57: ...module and the host is in ASCII format via TCP port 10000 and 10003 The general format of the I 7540D s commands are given below Port 10003 Command Format Command CR Command The commands of the I 7540D All the characters are in ASCII format CR All commands from this port must end with the character CR The ASCII value is 13 Table 4 1 Command list table port 10003 Command Description tIIILDD CR Send...

Page 58: ...ge the BTR0 and BTR1 configuration PWID Read Web ID configuration PWPW Read Web Password configuration PWIDLLxxxxx Change Web ID configuration PWPWLLxxxxx Change Web Password configuration PPC Read CAN Pair Connection configuration PPIP Read CAN Pair Destination IP PPCLLABC Change CAN Pair Connection configuration PPIPxxx Change CAN Pair Destination IP Note 1 More detailed information related to o...

Page 59: ... the data length 00 FF Response Valid command No response Invalid command Error Code CR Note It is necessary to enable the Error Response function in the I 7540D Utility in order to receive Syntax and or communication error information at the host PC Example Command ASCII t03F3112233 CR Command HEX 74 30 33 46 31 31 32 32 32 13 Send a CAN message with a standard data frame ID 0x03F DLC 6 data1 0x1...

Page 60: ... Data length 0 8 Response Valid command No response Invalid command Error Code CR Note It is necessary to enable the Error Response function in the I 7540D Utility in order to receive Syntax and or communication error information at the host PC Example Command ASCII T2E88 CR Command HEX 54 32 45 38 38 13 Send a CAN message with a standard remote frame ID 0x2E8 DLC 8 Note This command can only be a...

Page 61: ...he data length 00 FF Response Valid command No response Invalid command Error Code CR Note It is necessary to enable the Error Response function in the I 7540D Utility in order to receive Syntax and or communication error information at the host PC Example Command ASCII e123456783112233 CR Command HEX 65 31 32 33 34 35 36 37 38 33 31 31 32 32 33 33 13 Send a CAN message with an extended data frame...

Page 62: ...F L Data length 0 8 Response Valid command No response Invalid command Error Code CR Note It is necessary to enable the Error Response function in the I 7540D Utility in order to receive Syntax and or communication error information at the host PC Example Command ASCII E010156786 CR Command HEX 45 30 31 30 31 35 36 37 38 36 13 Send a CAN message with an extended remote frame ID 0x01015678 DLC 6 No...

Page 63: ...ter RR CAN receive error counter O CAN FIFO Overflow flag Note Furthermore all response results are shown in the ASCII format Users need to make an ASCII to hex format transformation in order to understand what the meaning is based on the 4 2 4 3 4 4 tables Table 4 3 CAN baud rate list AsciiToHex C Description 0 10K baud rate of CAN 1 20K baud rate of CAN 2 50K baud rate of CAN 3 100K baud rate of...

Page 64: ...quested transmission is not yet complement Bit 2 Transmit Buffer Status 1 Released the CPU may write a message into the transmit buffer 0 Locked a message is waiting for transmission or is already in process Bit 1 Data Overrun Status 1 Overrun a message was lost 0 Absent no data overrun has occurred Bit 0 LSB Receive Buffer Status 1 Full one or more messages are available in the RXFIFO 0 Empty no ...

Page 65: ... character Response Valid Command No response Invalid command ERROR Note After sending this command the CAN receive and transmit FIFO will be clear The error counter of reception and transmission will be set to zero And the TX and RX LEDs will turn OFF Example Command ASCII 99C Command HEX 39 39 43 Note This command can only be accepted by 7540D s port 10000 ...

Page 66: ... 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 ASCII 99RA Command HEX 39 39 52 41 The I 7540D module will reboot after it had received this command Note This command can only be accepted by 7540D s port 10000 ...

Page 67: ...s 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 rate of RS 232 01 150 bps baud rate of RS 232 02 300 bps baud rate of RS 232 03 600 bps baud rate of RS 232 04 1200 bps baud rate of RS 232 05 2400 bps baud rate of RS 232 06 4800 bps baud rate of RS 232 07 9600 bps baud rate of RS 232 08 19200 bps baud rate...

Page 68: ...rch 2021 68 Example Command ASCII 99 P01 Command HEX 39 39 23 50 30 31 Response 0610B100 The response will show the following results RS 232 baud rate 115 2K bps data bits 8 stop bits 1 none parity Note This command can only be accepted by 7540D s port 10000 ...

Page 69: ...s data formation S Stop bit 0 1 stop bit 1 2 stop bits P Parity bits 0 None 1 Even 2 Odd RS 485 Baud rate list BB Description 00 110 bps baud rate of RS 485 01 150 bps baud rate of RS 485 02 300 bps baud rate of RS 485 03 600 bps baud rate of RS 485 04 1200 bps baud rate of RS 485 05 2400 bps baud rate of RS 485 06 4800 bps baud rate of RS 485 07 9600 bps baud rate of RS 485 08 19200 bps baud rate...

Page 70: ...arch 2021 70 Example Command ASCII 99 P02 Command HEX 39 39 23 50 30 32 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 command can only be accepted by 7540D s port 10000 ...

Page 71: ...B B CAN Baud rate CCCCCCCC 32 bits Acceptance Code Register 00000000 FFFFFFFF MMMMMMMM 32 bits Acceptance Mask Register 00000000 FFFFFFFF E Error response or not 0 Disable 1 Enable T Timestamp response or not 0 Disable 1 Enable CAN baud rate list B Description 0 10K baud rate of CAN 1 20K baud rate of CAN 2 50K baud rate of CAN 3 100K baud rate of CAN 4 125K baud rate of CAN 5 250K baud rate of CA...

Page 72: ...9 39 23 50 31 Response 140400000000FFFFFFFF00 The response will show the following 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 command can only be accepted by 7540D s port 10000 ...

Page 73: ...ROR 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 Description 0 10K baud rate of CAN 1 20K baud rate of CAN 2 50K baud rate of CAN 3 100K baud rate of CAN 4 125K baud rate of CAN 5 250K baud rate of CAN 6 500K baud rate of CAN 7 800K baud rate of CAN 8 1000K baud rate of CA...

Page 74: ...mand ASCII 99 P1B Command HEX 39 39 23 50 31 42 Response 06090014 The response will show the following results CAN specification 2 0A CAN baud rate User defined BTR0 00 BTR1 14 Note 1 This command can only be accepted by 7540D s port 10000 2 Supported by the firmware v1 04 or later ...

Page 75: ... stop bits P Parity bits 0 None 1 Even 2 Odd RS 232 Baud rate list Response Valid Command OK Invalid command ERROR BB Description 00 110 bps baud rate of RS 232 01 150 bps baud rate of RS 232 02 300 bps baud rate of RS 232 03 600 bps baud rate of RS 232 04 1200 bps baud rate of RS 232 05 2400 bps baud rate of RS 232 06 4800 bps baud rate of RS 232 07 9600 bps baud rate of RS 232 08 19200 bps baud ...

Page 76: ...nd HEX 39 39 24 50 30 31 30 35 30 42 31 30 30 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 configuration of RS 232 has been changed Note This command can only be accepted by 7540D s port 10000 ...

Page 77: ...2 stop bits P Parity bits 0 None 1 Even 2 Odd RS 485Baud rate list Response Valid Command OK Invalid command ERROR BB Description 00 110 bps baud rate of RS 485 01 150 bps baud rate of RS 485 02 300 bps baud rate of RS 485 03 600 bps baud rate of RS 485 04 1200 bps baud rate of RS 485 05 2400 bps baud rate of RS 485 06 4800 bps baud rate of RS 485 07 9600 bps baud rate of RS 485 08 19200 bps baud ...

Page 78: ...nd HEX 39 39 24 50 30 32 30 35 30 42 31 30 30 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 configuration of RS 485 has been changed Note This command can only be accepted by 7540D s port 10000 ...

Page 79: ...ance Code Register 00000000 FFFFFFFF MMMMMMMM 32 bits Acceptance Mask Register 00000000 FFFFFFFF E Error response or not 0 Disable 1 Enable T Timestamp response or not 0 Disable 1 Enable CAN baud rate list Response Valid Command OK Invalid command ERROR B Description 0 10K baud rate of CAN 1 20K baud rate of CAN 2 50K baud rate of CAN 3 100K baud rate of CAN 4 125K baud rate of CAN 5 250K baud rat...

Page 80: ...0 30 46 46 46 46 46 46 46 46 30 30 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 This command can only be accepted by 7540D s port 10000 ...

Page 81: ...nd OK Invalid command ERROR Example Command ASCII 99 P1B04031C Command HEX 39 39 24 50 31 42 30 34 30 33 31 43 Response OK Set BTR0 to 0x03 and BTR1 to 0x1C will make CAN baud rate become 125 kbps Note 1 This command can only be accepted by 7540D s port 10000 2 Supported by the firmware v1 04 or later 3 Users need to have the background of SJA1000 CAN controller and 82C251 CAN transceiver and calc...

Page 82: ...d 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 ASCII 99 PWID Command HEX 39 39 24 50 57 49 44 Response 057540D Read the Web ID setting of the 7540D and the 7540D responses the Web ID setting is 7540D Note 1 This command can only be accepted by 7540D s port 10000 2 Supported by the firmware v1 05 or la...

Page 83: ...b password data length in hexadecimal format xxxxx Web password saved in the EEPROM the default Web password setting is icpdas7540D Example Command ASCII 99 PWPW Command HEX 39 39 24 50 57 50 57 Response 0Bicpdas7540D Read the Web password setting of the 7540D and the 7540D responses the Web password setting is icpdas7540D Note 1 This command can only be accepted by 7540D s port 10000 2 Supported ...

Page 84: ... Web ID data at most 30 ASCII characters Response Valid Command OK Invalid command ERROR Example Command ASCII 99 PWID047540 Command HEX 39 39 24 50 57 49 44 30 34 37 35 34 30 Response OK Change the Web ID data setting of the 7540D to 7540 and the 7540D responses OK command to mean that the configuration of Web ID data has been changed Note 1 This command can only be accepted by 7540D s port 10000...

Page 85: ...ta that you want to configure At most 30 ASCII characters Response Valid Command OK Invalid command ERROR Example Command ASCII 99 PWID0512345 Command HEX 39 39 24 50 57 49 44 30 35 31 32 33 34 35 Response OK Change the Web password data setting of the 7540D to 12345 and the 7540D responses OK command to mean that the configuration of Web ID data has been changed Note 1 This command can only be ac...

Page 86: ...nd ERROR LL number of parameters A Enable CAN bus pair connection flag 0 Disable 1 Enable B Using TCP or UDP connection 0 TCP 1 UDP C Act as a server or client 0 server 1 client Example Command ASCII 99 PPC Command HEX 39 39 23 50 50 43 Response 03100 Read the CAN bus pair connection configuration of the 7540D and the 7540D responses that enable can bus pair connection and act as a TCP server Note...

Page 87: ...mmand XXX XXX XXX XXX Invalid command ERROR XXX XXX XXX XXX Destination IP address Example Command ASCII 99 PPIP Command HEX 39 39 23 50 50 49 50 Response 192 168 255 2 Read the CAN bus pair connection destination IP of the 7540D and the 7540D responses that destination IP address is 192 168 255 2 Note 1 This command can only be accepted by 7540D s port 10000 2 Supported by the firmware v1 06 or l...

Page 88: ...erver or client 0 server 1 client Note 1 When A 0 B and C take no effective 2 When using UDP connection B 1 C take no effective 3 When acting as a TCP client or using UDP method users need to set the destination IP address section 4 23 so that the 7540D can work correctly Response Valid Command OK Invalid command ERROR Example Command ASCII 99 PPC03101 Command HEX 39 39 24 50 50 43 30 33 31 30 31 ...

Page 89: ...ii ppp III PPP 3 digits number Note This IP address is effective when enable CAN bus pair connection and acting as TCP client or using UDP connection method Response Valid Command OK Invalid command ERROR Example Command ASCII 99 PPIP192168255002 Command HEX 39 39 24 50 50 49 50 31 39 32 31 36 38 32 35 35 30 30 32 Response OK Change the CAN bus pair connection destination IP of the 7540D to 192 16...

Page 90: ... character Response Valid Command No response Invalid command ERROR Note After sending this command the CAN receive and transmit FIFO will be clear The error counter of reception and transmission will be set to zero And the TX and RX LEDs will turn OFF Example Command ASCII 99CRA Command HEX 39 39 43 52 41 Note 1 This command can only be accepted by 7540D s port 10000 2 Supported by the firmware v...

Page 91: ...odes for commands from port 10003 Table 4 6 Error code table Error code HEX Description 0x1 The head character of the command string is invalid 0x2 The length of the command string is invalid 0x3 The value of CAN identifier is invalid 0x4 The value of CAN data length is invalid 0x5 Reserved ...

Page 92: ...Driver and VxComm Utility are very easy to install and use The first thing to do is to find the installation file in the web site https www icpdas com en download index php nation US kind1 model kw vxcomm This document shows how to install and configure the driver correctly The first part instructs users how to install the software The second part shows how to add an I 7540D server and configure a...

Page 93: ...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 programs 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 ...

Page 94: ... designed 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 number of 256 COM ports including COM1 and COM2 Local COM Port PC VxComm Driver Utility PC Remote COM port I 7540D COM Port 1 COM1 COM Port 2 COM2 COM Port 3 COM3 CAN COM Port I O Reserved ...

Page 95: ...ng the VxComm Driver Step 1 The installation software can be obtained from the following location https www icpdas com en download index php nation US kind1 model kw vxcomm Step 2 Go the where you download the installation file and then double click the file in Windows to execute it ...

Page 96: ...March 2021 96 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 ...

Page 97: ...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 Before adding an I 7540D ensure that the Check Duplicated IP and Connect to Server options are both checked Type the IP address of the I 7540D and then click the Add Server button to add a new ser...

Page 98: ...ally checked by default The following alert will be displayed if the Connect to Server option is not checked before clicking the Add Server button Choose the correct I 7540D Model Number and then click the OK button Here the I 7540D model number is 7186E3 Timeout ms field This timeout value is used for Connecting disconnecting and sending receiving data in the VxComm Utility and is used for Connec...

Page 99: ...ing Port 1 Port 2 or Port 3 Step 5 Select an appropriate COM port number and then click the OK button Note Re assign COM number for all subsequent ports option This option automatically sequentially assigns the ports with the available COM port numbers Use 7188E 8000E current setting Fixed Configuration If using this Port Configuration function you will not be able to dynamically change the Baud R...

Page 100: ...ve Time ms field After connecting to the μPAC 7186E the VxComm Driver will automatically and periodically send commands to keep the I 7540D alive The timer will be reset after each send receive command data success The Keep Alive mechanism will not work until the next timeout The default setting of Keep Alive time is about 7000 ms Its recommended setting is I 7540D s System Timeout 1 3 or smaller ...

Page 101: ...to the μPAC 7186E clients have to send command to keep the I 7540D alive before it times out otherwise the μPAC 7186E will reset itself and clients will have to reconnect to the I 7540D again Users can set the Keep Alive Time and Connection Broken time to 0 to disable this mechanism The System Timeout will have to be set to 0 to disable the reset mechanism Connect Timeout ms field The timeout valu...

Page 102: ...User s Manual Version 1 8 March 2021 102 Step 8 Click the Exit button to exit the VxComm Utility Before exiting the Re starting the Driver dialog window will automatically display Click the Re start button to stop start the driver ...

Page 103: ...3 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 Step 3 The following window will be displayed make sure of your choice and then click the Yes button to remove it Step1 Step2 ...

Page 104: ...I 7540D CAN Ethernet Gateway User s Manual Version 1 8 March 2021 104 Step 4 Click the Exit button to finish this utility ...

Page 105: ...I 7540D CAN Ethernet Gateway User s Manual Version 1 8 March 2021 105 5 5 Uninstalling the VxComm Driver Step 1 Select the Control Panel Step 2 Click the Add or Remove Programs to open the dialog ...

Page 106: ...eway User s Manual Version 1 8 March 2021 106 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 ...

Page 107: ...response message form CAN bus and then convert these CAN messages to specific commands After converting it sent these specific commands to those who establish connection with it from port 10003 The architecture is depicted as figure 5 1 Figure 6 1 Architecture of the demo in PISO CAN200 400 PCI card The information of devices and software in this application is below Hardware CAN bus side PISO CAN...

Page 108: ...COM port of PC is setting as following figure The installing steps 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 For more information please see PISO CAN user manual Step 3 Setup the system of I 7540D by using the I 7540D s utility tool Here the parameters of I 7540D are setting as following figure Figure 6 3 I 7540D...

Page 109: ... and CAN port by the I 7540D The following figures display the sending and receiving messages Figure 6 4 Send Messages from RS 232 to CAN Figure 6 4 Send Messages from RS 232 to CAN CAN card received messages Messages sent from RS 232 port by VxComm technology t12381122334455667788 Send messages from CAN card RS 232 port received messages ...

Page 110: ...ld work without error However 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 Testing Step 1 Connect the TXD1 to the RXD1 of the I 7540D Step 2 Set COM1 of the I 7540D as virtual COM4 of the Host PC using the VxComm Utility COM1 RXD1 TXD1 COM1 Real COM Path 1 COM4 Virtual COM Path 2 Connect by...

Page 111: ... User s Manual Version 1 8 March 2021 111 Step 3 On the Tools menu of the MiniOS7 Utility and then click the Send232 to open the Send232 application Step 4 Select the COM4 and then click the Open button to open COM4 of the Host PC ...

Page 112: ...acters 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 immediately returned from COM1 of the I 7540D to COM4 of the Host PC via Path 2 then displayed on the Receive text box of the Send232 ...

Page 113: ...k the Send232 to open the Send232 application Step 3 Select the COM1 and then click the Open button to open COM4 of the Host PC Step 4 Set COM1 of the I 7540D as virtual COM4 of the Host PC using the VxComm Utility Step 5 Execute another Send232 application and open the virtual COM4 of the Host PC COM1 RXD1 TXD1 GND COM1 Real COM Path 1 COM4 Virtual COM Path 2 RX TX GND CA0910 Cable Labels of CA09...

Page 114: ...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 through Path1 to COM1 of the I 7540D and will be immediately returned through Path2 to COM4 of the Host PC ...

Page 115: ... the as virtual COM10 of the Host PC using the VxComm Utility 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 obtained from the following location https www icpdas com en download index php root model kw DCON 20Utility Step 1 Run the DCON Utility ...

Page 116: ...ick the COM Port to choose the COM port number baud rate and checksum For example COM10 115200 19200 9600 and No Checksum These settings depend on the settings of 7000 series module Labels of CA0910 COM1 RXD1 TXD1 GND COM1 Real COM Path 1 COM4 Virtual COM Path 2 CA0910 Cable RX TX GND 7000 series module 7520 Male Male ...

Page 117: ... CAN Ethernet Gateway User s Manual Version 1 8 March 2021 117 Step 4 Click the search icon Step 5 If the VxComm Driver works properly the DOCN Utility can search the module s connected to COM2 of the I 7540D ...

Page 118: ... 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 the Manage option ...

Page 119: ...I 7540D CAN Ethernet Gateway User s Manual Version 1 8 March 2021 119 Step 2 Select the Device Manager icon from the Computer Management program Step 3 Click Show hidden devices from the View menu ...

Page 120: ...40D CAN Ethernet Gateway User s Manual Version 1 8 March 2021 120 Step 4 Select the Non Plug and Play Drivers Ynsernet item Step 5 Right click the mouse button on the Ynsernet item and click the Properties ...

Page 121: ...s working properly is displayed If the driver is shown as not working properly remove it and then re install and reconfigure the driver Problem 3 The client programs successfully open the COM port but fail to access the device Solution 3 Check the power supply and wiring RS 232 RXD TXD RS 485 D D GND of the device ...

Page 122: ...112233 Right t0013112233 CR 3 Invalid CAN identifier The CAN identifier bits depend on CAN specification CAN 2 0A total 11 bits 0x000 0x7FF CAN 2 0B total 29 bits 0x00000000 0x1FFFFFFF 4 Invalid CAN data length The data byte of the CAN Message does not match the data length of the CAN Message For example Error t001512345 CR Right t00150102030405 CR If the I 7540D CAN baud rate is not the same as t...

Reviews: