iSP I-7540D-MTCP User Manual

Ethernet/modbus tcp/modbus rtu to can converter

Advertisement

Quick Links

Ethernet/Modbus TCP/Modbus RTU to
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 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 2011 by ICP DAS. All rights are reserved.
Trademark
The names used for identification only may be registered trademarks
of their respective companies.
I-7540D-MTCP Ethernet/Modbus to CAN Converter User's Manual (Version 1.0, Dec/2011) ------------- 1
I-7540D-MTCP
CAN Converter
User's Manual

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the I-7540D-MTCP and is the answer not in the manual?

Questions and answers

Summary of Contents for iSP I-7540D-MTCP

  • Page 1 Copyright Copyright 2011 by ICP DAS. All rights are reserved. Trademark The names used for identification only may be registered trademarks of their respective companies. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) ------------- 1...
  • Page 2: Table Of Contents

    Install the MiniOS7 Utility ..............49 3.2.2 PC Diagnostic tools ................ 50 Support Command List ..................56 tIIILDD…<CR> ................. 58 TIIIL<CR> ..................59 eIIIIIIIILDD…<CR> ................60 EIIIIIIIIL<CR>..................61 I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) ------------- 2...
  • Page 3 Using Modbus RTU command to get a CAN Message ....99 5.3.2 Using Modbus RTU command to Send a CAN Message ..... 100 5.3.3 Using Modbus RTU command to get a Specific CAN Message..102 I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) ------------- 3...
  • Page 4: Introduction

    7540D-MTCP also supports a transparent, protocol-independent transfer of the CAN messages (pair-connection), thus allowing its implementation into a wide range of possible applications. Figure1-1: Application of I-7540D-MTCP Modbus TCP mode I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) ------------- 4...
  • Page 5: Features

    CAN message  Provide the transparent communication between the CAN devices via Ethernet  Support 30 specific CAN IDs in the Modbus TCP/RTU mode I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) ------------- 5...
  • Page 6: Specifications

    -25°C to +75°C Storage Temperature -40°C to +80°C Power Protection Power reverse polarity protection Frame Ground for ESD Protection Required Supply Voltage +10 to +30VDC (non-regulated) Power consumption 2.5W I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) ------------- 6...
  • Page 7  CAN bus pair connection parameters configuration.  Provides a quick testing function for transmitting/receiving CAN messages;  Modbus Specific ID Setting  Provides a quick testing function for Modbus TCP/Modbus RTU command I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) ------------- 7...
  • Page 8 Application:  Factory Automation  Building Automation  Home Automation  Control system  Monitor system  Vehicle Automation I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) ------------- 8...
  • Page 9: Hardware

    2. Hardware I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) ------------- 9...
  • Page 10: Block Diagram

    MTCP 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-MTCP I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 11: Pin Assignment

    LED displays 1K Vdc isolation on CAN side COM1 COM2 Power Input Ethernet 10/100 Base T RS-485 Port RS-232 Port INIT * pin Figure 2-2: Pin assignment on the I-7540D-MTCP I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 12: Rs-485 & Power Supply Interface

    Initial pin for enable/disable INIT* AUTOEXEC.BAT Data+ pin of COM2 (RS-485) Data- pin of COM2 (RS-485) V+ of power supply (+10V to +30V DC unregulated) GND of power supply I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 13: Connect To Can Bus

    In order to provide an easy CAN bus wiring, the I-7540D-MTCP supplies one CAN port with two CAN bus connector interfaces. Each connecter built on the I-7540D-MTCP looks like as figure 2-3 and table 2- Table 2-2: CAN bus Connector Pin Assignment Pin No.
  • Page 14: Ethernet Connect

    The Ethernet (10/100 Base-TX) 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-MTCP, it will auto-negotiate the network speed and connection. Table 2-3: Ethernet Connector Pin Assignment...
  • Page 15: Terminator Resistor Settings

    (Ω) (meter) Resistance (Type) (mΩ/m) 0~40 0.25(23AWG)~ 124 (0.1%) 0.34mm2(22AWG) 40~300 < 60 0.34(22AWG)~ 127 (0.1%) 0.6mm2(20AWG) 300~600 < 40 0.5~0.6mm2 150~300 (20AWG) 600~1K < 20 0.75~0.8mm2 150~300 (18AWG) I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 16 Therefore, the I-7540D-MTCP module 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-MTCP cover and use the JP3 jumper to activate the 120Ω terminator resistor built in the system, as in the figure 2- 5.
  • Page 17: Led Indication

    There is a red indicator-LED in the I-7540D-MTCP as follow: ◊Firmware is running: flashing red The default shipping of I-7540D-MTCP will be firmware inside, so the red indicator-LED of I-7540D-MTCP will be ON 0.5 second then OFF 0.5 second periodically. 2.4.2...
  • Page 18 RX-LED would be flashed. Table 2-8 RX led conditions Condition Description No data is being received Flashing Red Data is being received Solid Red Receive error messages I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 19: 5-Digits 7-Segment Led Displays

    The IP information format of I-7540D-MTCP is given as follows:  Group-ID of 5-digit LED: 11111.  LED-1: indicator, can be 1 or 2 or 3 or 4  LED-2~5: IP I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 20  dHCP.2DHCP→ function enable but not get an IP, using default setting  If the DHCP function is enable, the I-7540D-MTCP will get it’s IP from the DHCP server. Otherwise, it will use the IP in the EEPROM. The baud-rate format of COM ports are given as follows: ...
  • Page 21 If any one client connects to this I-7540D-MTCP, free-sockets will be decreased and used-sockets will be increased. If the free-sockets number is reduced to 0, then no extra client can link to this I-7540D-MTCP. The default number of free-sockets is 24. Therefore, the I-7540D-MTCP allows 24 clients link to it.
  • Page 22: Software Utility

    We support some software utilities for users to set and test the status of the I-7540D-MTCP. 1. I-7540D-MTCP Utility The I-7540D-MTCP 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 testing of the module’s functions.
  • Page 23: I-7540D-Mtcp Utility

    3.1 I-7540D-MTCP Utility The I-7540D-MTCP 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 testing of the module’s functions. To start the “I-7540D-MTCP Utility”, please install the I-7540D-MTCP Utility setup file and run the I-7540D-MTCP.exe file.
  • Page 24: Install The I-7540D-Mtcp Utility

    3.1.1 Install the I-7540D-MTCP utility Install I-7540D-MTCP Utility Step1: Download the I-7540D-MTCP 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 path of Fieldbus_CD:\\CAN\Converter\I-7540D\Utility Step 2: Execute the setup.exe file to install I-7540D-MTCP Utility. Step 3: A “Welcome” window pops up to prompt user to begin the installation.
  • Page 25 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 I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 26 Step 6: Click “Install” button and start to install the I-7540D-MTCP Utility to the system. After finishing the process, 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.
  • Page 27: How To Configure The Module Parameters

    2.4.3. That means the I-7540D- MTCP module is working normally. 3. The user must run the I-7540D-MTCP’s Utility software after they have made a wire connection between the PC and the I-7540D-MTCP via the network cable 4.
  • Page 28 5. Then the I-7540D-MTCP configuration window will be brought out. The I-7540D-MTCP Utility will show the communication information from the I-7540D-MTCP module in the window, as shown in the following figure. 6. Choose the “Settings” tab to open the configuration window for the CAN and the Network status parameters of the I-7540D-MTCP.
  • Page 29 “Reset System” checkbox is used to reset the system of I-7540D- MTCP. Note: After modify the network status of the I-7540D-MTCP, the setting value will become effective after resetting the system. 8. The “COM Status” frame showed the parameters of RS-232 and RS485 ports.
  • Page 30: Connect How To Set The Bus Timing Registers

    ~ bit13 of ID AccCode[2] and AccMask[2] bit7~bit0 bit12 ~ bit5 of ID AccCode[3] and AccMask[3] bit7~bit3 bit4 ~ bit0 of ID AccCode[3] and AccMask[3] bit2 AccCode[3] and AccMask[3] bit1~bit0 No use I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 31 Byte 1 (h) Byte 0 (h) High High High High Accepted value (Note: The mark “x” means don’t care. And the mark “h” behind the value means hex format.) I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 32: Enable Error Response

    The head character of the command string is invalid. The length of the command string is invalid. The value of CAN identifier is invalid. The value of CAN data length is invalid. Reserved I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 33: Enable Time-Stamp Response

    When the time-stamp response is enabled, the I-7540D-MTCP will send CAN message with its time-tick vale, hexadecimal eight ASCII chars for a unit of microsecond, to the host as it receive a CAN message. For example: I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 34 I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 35: How To Change Web Id/Password Configuration

    3.1.7 How to change web ID/PASSWORD configuration The I-7540D-MTCP 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-MTCP via Setup web page, they need to fill these two fields, ID and PASSWORD, with correct values.
  • Page 36: How To Test The Module Transmission Performance

    PC and the I-7540D-MTCP via the network cable 5. Click the “Connect” icon on the I-7540D-MTCP Utility tool bar. The setting frame will be popped up. Key-in the IP of the I-7540D- MTCP and press the “Connect” button in order to connect with it.
  • Page 37 7. Users also can use the timer mode 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. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 38 I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 39: How To Use Can Bus Pair Connection

    TCP method (port: 10003). 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-MTCP via Ethernet port 10003 will become no effective. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 40 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. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 41 4. By using this broadcast method, users need to know how to set the network mask of the I-7540D-MTCP. Note: When setting to use UDP method, the “Server/Client” parameters will be no effective. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 42 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. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 43: How To Set Specific Can Id Table

    In Modbus TCP/ RTU mode, users need to communicate the I- 7540D-MTCP with Modbus TCP/RTU command. The I-7540D-MTCP only supports function code 0x03/0x04/0x10 of Modbus TCP/RTU commands for reading and writing CAN messages. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 44: How To Test Modbus Tcp Mode

    In addition, users can click the “Save” button to save the “Receive” text into “I-7540D- messages MTCP_MT_yyyyMMddmmss.txt ” file. The indication of the file name is described below. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 45 I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 46: How To Test Modbus Rtu Mode

    In addition, users can click the “Save” button to save the messages “Receive” text into “I-7540D- MTCP_MR_yyyyMMddmmss.txt ” file. The indication of the file name is described below. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 47 I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 48: Minios7 Utility

    MiniOS7 Utility is a tool for configuring, uploading files to all products embedded with ICPDAS MiniOS7. And it provides some PC diagnostic tools which can help users to diagnose the status of the I-7540D-MTCP and other controllers. Supported connection ways ...
  • Page 49: Install The Minios7 Utility

    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. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 50: Pc Diagnostic Tools

    COM port, and show the data received from COM port on the screen of PC. The main function for 7188xw.exe is to DOWNLOAD files to the MiniOS7 system. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 51  Send232: Send232 uses serial port (RS-232) interface to communicate with devices. And it can be used to test the Virtual COM technology. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 52 7188E/8000E/7540D/7540D-MTCP and other devices from Ethernet. Step 1: Run SendTCP in host-PC. Step 2: Input the IP of I-7540D-MTCP and press the “Connect” button to connect with I-7540D-MTCP. And then it will display “7188E3 is connected”. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 53 Step 4: Select “Port 2” and “CR”. Then send “$02M” to read 7000 module’s ID which is connected to I-7540D-MTCP’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”. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 54 “Set” to change them. The 7540D-MTCP’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.  I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 55 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. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 56: Support Command List

    Send or receive a standard remote frame. eIIIIIIIILDD…<CR> Send or receive an extended data frame. EIIIIIIIIL<CR> Send or receive an extended remote frame. Note: The I-7540D-MTCP’s COM3 (CAN port) can only accept these 4 commands. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 57 4. The #PPC, #PPIP, $PPCLLABC, $PPIPxxx…commands just can be used on the firmware version v1.06 or later. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 58: Tiiildd

    Send a CAN message with a standard data frame. ID=03F, DLC=6, data1=11, data2=22, data3=33, data4=44, data5=55 and data6=66. Note: This command can only be accepted by 7540D-MTCP’s port 10003 I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 59: Tiiil

    PC.  Example: Command: T2E88<CR> Send a CAN message with a standard remote frame. ID=2E8, DLC=8. Note: This command can only be accepted by 7540D-MTCP’s port 10003 I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 60: Eiiiiiiiildd

    Command: e1234567851122334455<CR> Send a CAN message with an extended data frame. ID=12345678, DLC=5, data1=11, data2=22, data3=33, data4=44 and data5=55. Note: This command can only be accepted by 7540D-MTCP’s port 10003 I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 61: Eiiiiiiiil

    PC.  Example: Command: E010156786<CR> Send a CAN message with an extended remote frame. ID=01015678, DLC=6. Note: This command can only be accepted by 7540D-MTCP’s port 10003 I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 62 100K baud rate of CAN 125K baud rate of CAN 250K baud rate of CAN 500K baud rate of CAN 800K baud rate of CAN 1000K baud rate of CAN User defined I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 63 Table 4-5: CAN Error flag list AsciiToHex(O) Description CAN Transmit Error Bit 3 =1 CAN Receive Error Bit 2 =1 CAN FIFO Overflow Bit 1 =1 Initial CAN Chip Error Bit 0 =1 I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 64 CAN transmit error counter=0, CAN receive error counter=0 and CAN FIFO = normal. Note: This command can only be accepted by 7540D-MTCP’s port 10000 I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 65 And the TX and RX LEDs will turn OFF.  Example: Command: 99C Note: This command can only be accepted by 7540D-MTCP’s port 10000 I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 66 Invalid command: ERROR  Example: Command: 99RA The I-7540D-MTCP module will reboot after it had received this command. Note: This command can only be accepted by 7540D-MTCP’s port 10000 I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 67 9600 bps baud rate of RS-232 19200 bps baud rate of RS-232 38400 bps baud rate of RS-232 57600 bps baud rate of RS-232 115200 bps baud rate of RS-232 I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 68 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-MTCP’s port 10000 I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 69 9600 bps baud rate of RS-485 19200 bps baud rate of RS-485 38400 bps baud rate of RS-485 57600 bps baud rate of RS-485 115200 bps baud rate of RS-485 I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 70 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-MTCP’s port 10000 I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 71 100K baud rate of CAN 125K baud rate of CAN 250K baud rate of CAN 500K baud rate of CAN 800K baud rate of CAN 1000K baud rate of CAN User Defined I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 72 The response will show the following results: CAN specification=2.0A, CAB baud rate=125Kbps, acceptance code register=00000000, acceptance mask register=FFFFFFFF, disable error response, disable timestamp. Note: This command can only be accepted by 7540D-MTCP’s port 10000 I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 73 The response will show the following results: CAN specification = 2.0A, CAN baud rate = User defined, BTR0=00, BTR1=14. Note: This command can only be accepted by 7540D-MTCP’s port 10000 I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 74: 99$P0105Bbdsp

    115200 bps baud rate of RS-232  Response: Valid Command: OK Invalid command: ERROR  Example: Command: 99#P01050B100 Response: OK Set the setting of RS-232 baud rate= 115.2Kbps, data bits=8, stop I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 75 I-7540D-MTCP and the 7540D- MTCP response “OK” command to mean that the configuration of RS-232 has been changed. Note: This command can only be accepted by 7540D-MTCP’s port 10000 I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 76: 99$P0205Bbdsp

    115200 bps baud rate of RS-485  Response: Valid Command: OK Invalid command: ERROR  Example: Command: 99#P02050B100 Response: OK Set the setting of RS-485 baud rate= 115.2Kbps, data bits=8, stop I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 77 I-7540D-MTCP and the 7540D- MTCP response “OK” command to mean that the configuration of RS-485 has been changed. Note: This command can only be accepted by 7540D-MTCP’s port 10000 I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 78: 99$P114Pbcc

    500K baud rate of CAN 800K baud rate of CAN 10K baud rate of CAN User defined  Response: Valid Command: OK Invalid command: ERROR  Example: Command: 99#P1140400000000FFFFFFFF00 Response: OK I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 79 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-MTCP’s port 10000 I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 80: 99$P1B04Ttrr

    2. 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.). I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 81: 99#Pwid

    Read the Web ID setting of the 7540D-MTCP, and the 7540D- MTCP responses the Web ID setting is “7540D”. Note: This command can only be accepted by 7540D-MTCP’s port 10000. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 82: 99#Pwpw

    Command: 99#PWPW Response: 0Bicpdas7540D Read the Web password setting of the 7540D-MTCP, and the 7540D-MTCP responses password setting “icpdas7540D”. Note: This command can only be accepted by 7540D-MTCP’s port 10000. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 83: 99$Pwidllxxxxx

    7540D-MTCP responses “OK” command to mean that the configuration of Web ID data has been changed. Note: This command can only be accepted by 7540D-MTCP’s port 10000. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 84: 99$Pwpwllxxxxx

    “12345” and the 7540D-MTCP responses “OK” command to mean that the configuration of Web ID data has been changed. Note: This command can only be accepted by 7540D-MTCP’s port 10000. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 85: 99#Ppc

    Read the CAN bus pair connection configuration of the 7540D- MTCP, and the 7540D-MTCP responses that enable can bus pair connection and act as a TCP server. Note: This command can only be accepted by 7540D-MTCP’s port 10000. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 86: 99#Ppip

    Read the CAN bus pair connection destination IP of the 7540D- MTCP, and the 7540D-MTCP responses that destination IP address is “192.168.255.2”. Note: This command can only be accepted by 7540D-MTCP’s port 10000. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 87: 99$Ppcllabc

    Change the CAN bus pair connection configuration of the 7540D- MTCP to “enable CAN bus pair connection” and act as a TCP client. Note: This command can only be accepted by 7540D-MTCP’s port 10000. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 88: 99$Ppipxxx

     Example: Command: 99#PPIP192168255002 Response: OK Change the CAN bus pair connection destination IP of the 7540D- MTCP. Note: This command can only be accepted by 7540D-MTCP’s port 10000. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 89: General Error Code For Commands From Port 10003

    The head character of the command string is invalid. The length of the command string is invalid. The value of CAN identifier is invalid. The value of CAN data length is invalid. Reserved I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 90: Modbus Network (Only For Modbus Tcp/ Modbusrtu Mode)

    “Normal CAN Message Field”, “Specific CAN Message Field” and “Module Status Field”. When a CAN message received from the CAN network, the I-7540D-MTCP will check if the Specific CAN Message filed is used or not. If it is not used, this CAN message will be stored into the “Normal CAN Message”...
  • Page 91 Figure 5-1: CAN message Format of I-7540D-MTCP Modbus mode. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 92: Supported Modbus Functions

    4 (04 Hex) Reading Input Register registers (3x) for reading CAN messages Write multiple registers 16 (10 Hex) Preset Multiple Registers (4x) for sending a CAN message I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 93: Modbus Tcp Address

    CAN messages with specific the CAN IDs. When the I-7540D-MTCP receives the CAN messages whose CAN IDs are defined in the Specific CAN Message Field by the I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 94 No used 0x0819( low Byte) No used 0x081A ~ 0x081E Table5-4: Modbus address of “Modbus Status” field. Note: The meaning of the register values can refer to section 4.5. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 95: Using Modbus Tcp Command To Get A Can Message

    5.2.1 Using Modbus TCP command to get a CAN Message When the I-7540D-MTCP is set to the Modbus TCP mode, each CAN message (except the CAN message whose CAN IDs are defined in the Specific CAN Message field) received from the CAN network will be stored into the “Normal CAN Message”...
  • Page 96: Using Modbus Tcp Command To Send A Can Message

    If users need to send CAN messages via the Modbus TCP commands, users need to send the Modbus TCP command with the “TX CAN message“ format to the Output Register of the I-7540D-MTCP. Then the I-7540D-MTCP will transfer this command to a CAN message format and send it to the buffer of the CAN controller.
  • Page 97 ) to read the transmitted CAN message format from the Output Register: Figure 5-5: Use the Modbus TCP command (function code 03 ) to read the transmitted CAN message format. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 98: Using Modbus Tcp Command To Get A Specific Can Message

    CAN messages. When receiving a CAN message whose CAN ID is defined in the Specific CAN Message by the Utility tool, the I-7540D-MTCP will save this CAN message to the “Specific CAN Message” field. Users can use the Modbus TCP command (function code 04 ) to directly read the CAN message from this field.
  • Page 99: Modbus Rtu Address

    5.3 Modbus RTU Address 5.3.1 Using Modbus RTU command to get a CAN Message When the I-7540D-MTCP is set to the Modbus RTU mode, each CAN message (except the CAN message whose CAN IDs are defined in the Specific CAN Message field) received from the CAN network will be stored into the “Normal CAN Message”...
  • Page 100: Using Modbus Rtu Command To Send A Can Message

    If users need to send CAN messages via the Modbus RTU commands, users need to send the Modbus RTU command with the “TX CAN message“ format to the Output Register of the I-7540D-MTCP. Then the I-7540D-MTCP will transfer this command to a CAN message format and send it to the buffer of the CAN controller.
  • Page 101 ) to read the transmitted CAN message format from the Output Register: Figure 5-9: Use the Modbus RTU command (function code 03 ) to read the transmitted CAN message format. I-7540D-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.0, Dec/2011) -------------...
  • Page 102: Using Modbus Rtu Command To Get A Specific Can Message

    CAN messages. When receiving a CAN message whose CAN ID is defined in the Specific CAN Message by the Utility tool, the I-7540D-MTCP will save this CAN message to the “Specific CAN Message” field. Users can use the Modbus RTU command (function code 04 ) to directly read the CAN message from this field.

Table of Contents