ICP DAS USA I-7540DM-MTCP User Manual

Ethernet/modbus tcp/modbus rtu to can converter
Hide thumbs Also See for I-7540DM-MTCP:
Table of Contents

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(M)-MTCP Ethernet/Modbus to CAN Converter User's Manual (Version 1.4,May
I-7540D(M)-MTCP
CAN Converter
User's Manual
/2023) ------ 1

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for ICP DAS USA I-7540DM-MTCP

  • Page 1 I-7540D(M)-MTCP Ethernet/Modbus TCP/Modbus RTU to CAN Converter 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.
  • Page 2: Table Of Contents

    Table of Contents Introduction ......................4 Features .................... 5 Specifications ................... 7 I-7540D(M)-MTCP Software Utility tool ..........8 Applications ..................10 Hardware ......................11 Block Diagram ................12 Pin Assignment ................13 2.2.1 RS-232 & RS-485 & Power supply Interface ........14 2.2.2 Connect to CAN Bus ...............
  • Page 3 TIIIL<CR> ..................61 eIIIIIIIILDD…<CR> ................62 EIIIIIIIIL<CR>..................63 99S ....................64 99C ....................67 99RA ....................68 99#P01 ..................... 69 99#P02 ..................... 71 4.10 99#P1 ....................73 99#P1B 4.11 99$P0105BBDSP ................76 4.12 99$P0205BBDSP ................78 99$P114PBCC…MM…ET ............... 80 4.13 4.14 99$P1B04TTRR ................
  • Page 4: Introduction

    1. Introduction “Embedded Internet” and “Embedded Ethernet” are hot topics today. Nowadays the Ethernet protocol becomes the de-facto standard for local area network. Via Internet, connectivity is occurring everywhere, from home appliances to vending machines to testing equipment to UPS…etc. Using Ethernet for network in industrial area is appealing because the required cabling is already installed.
  • Page 5: Features

    Figure1-2: Application of I-7540D(M)-MTCP Pair Connection Features  RDC 80186-80 Embedded CPU, or compatible  Ethernet Protocol, TCP,UDP, IP, ICMP, ARP, HTTP  COM driver support interrupt & 1K QUEUE Input & Output buffer  Provide 200 CAN frames buffer in CAN to Modbus Mode ...
  • Page 6 I-7540D(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 6...
  • Page 7: Specifications

    Specifications Communication Interface COM1 RS-232 (TXD, RXD, RTS, CTS, GND) COM2 RS-485 (D2+, D2-) One CAN port with two CAN bus connector interfaces (CAN_H, CAN_L) 10/100 Base-TX Ethernet Controller (Auto-negotiating, Ethernet Port Auto_MDIX, LED indicator) COM Port Formats Data bit 7, 8 Parity Even, Odd, None...
  • Page 8: I-7540D(M)-Mtcp Software Utility Tool

    I-7540D(M)-MTCP Software Utility tool  Communication mode setting  CAN bus Baud Rate configuration;  CAN acceptance filter configuration;  CAN 2.0A or 2.0B specific selection;  Setting the IP, Gateway and Mask of the network status;  Setting the Web ID and password ...
  • Page 9 I-7540D(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 9...
  • Page 10: Applications

    Applications  Factory Automation  Building Automation  Home Automation  Control system  Monitor system  Vehicle Automation I-7540D(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 10...
  • Page 11: Hardware

    2. Hardware I-7540D(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 11...
  • Page 12: Block Diagram

    2.1 Block Diagram Figure 2-1 is a block diagram illustrating the functions on the I- 7540D(M)-MTCP module. It has the 2500Vrms and 1000V DC-to-DC isolation in the CAN interface side. Figure 2-1: Block diagram of I-7540D(M)-MTCP I-7540D(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 12...
  • Page 13: Pin Assignment

    Pin Assignment CAN Bus Bypass CAN Connector Bus Connector CAN Bus Power LED Status LED 7540D-MTCP CAN-Modbus TCP/RTU Converter Support CAN 2.0A/2.0B CAN Baud Rate Up to 1 M bps RTU Baud Rate Up to 115.2 k bps Buffer for Specific CAN ID 7-segment Supports CAN Transparent Transmission LED displays...
  • Page 14: Rs-485 & Power Supply Interface

    2.2.1 RS-232 & RS-485 & Power supply Interface The I-7540D(M)-MTCP provides one RS-232 interface and one RS- 485 interface with hardware flow control. The GND-signal of COM1 RS- 232 is shared with power GND pin (pin-9). The pin assignment is shown in table 2-1.
  • Page 15: Connect To Can Bus

    2.2.2 Connect to CAN Bus In order to provide an easy CAN bus wiring, the I-7540D(M)-MTCP supplies one CAN port with two CAN bus connector interfaces. About the connecter position and pin description are shown as figure 2-3 and table 2-2.
  • Page 16: Ethernet Connect

    2.2.3 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(M)-MTCP, it will auto-negotiate the network speed and connection. Table 2-3: Ethernet Connector Pin Assignment Name Description...
  • Page 17: Terminator Resistor Settings

    Terminator resistor settings In order to minimize reflection 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Ω).
  • Page 18 Therefore, the I-7540D(M)-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(M)-MTCP cover and use the JP3 jumper to activate the 120Ω terminator resistor built in the system, as in the figure 2-5.
  • Page 19: Led Indication

    LED Indication The I-7540D(M)-MTCP 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(M)-MTCP is in.
  • Page 20  TX LED This LED indicates the status of message transmitted. Table 2-7 shows the conditions of TX status. Therefore, when the device transmits messages to the CAN bus, the TX-LED is normally flashing green. Table 2-7 TX led conditions Condition Description No data is being transmitted to the...
  • Page 21: 5-Digits 7-Segment Led Displays

    2.4.3 5-digits 7-Segment LED Displays The 5-digits 7-SEG LED will show as figure 2-6. The important information of I-7540D(M)-MTCP can be divided as follows:  Group-ID 11111: IP information of this I-7540D(M)-MTCP  Group-ID 22222: baud rate of all ports ...
  • Page 22 The LED will show Group-ID first, and then show its IP as the above diagram indicates. If users change IP, the value shown will change immediately. The default shipping IP = 192.168.255.1the LED-show sequence is given as above diagram. The DHCP function formats are given as follows: ...
  • Page 23 The configuration of CAN port is given as follows:  LED-1: CAN port number  LED-2~5: CAN specification (2.0A or 2.0B) The connection-client and CAN bus pair connection information are given as follows: Group-ID of 5-digit LED: 44444.  LED-1: indicator, can be 0 or 1 or 2 or 3 or 4 or 5. Indicator 0: ...
  • Page 24: Software Utility

     LED-5: 0: not connect to server; 1: already connect to server. 3. Software Utility We support some software utilities for users to set and test the status of the I-7540D(M)-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.
  • Page 25: 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 26: Install I-7540D-Mtcp Utility

    3.1.1 Install 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 27 Figure 3-3: “Select 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 I-7540D(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 27...
  • Page 28 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. Figure 3-5: “Ready to Install”...
  • Page 29: How To Configure The Module Parameters

    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 interface. The configuration steps are depicted as below: 1. Connect the power source (the 10~30 DC volts) into the I-7540D(M)- MTCP module.
  • Page 30 5. Then the I-7540D(M)-MTCP configuration window will be brought out. The I-7540D-MTCP Utility will show the communication information from the I-7540D(M)-MTCP module in the window as below figure. 6. Choose the “Settings” tab to open the configuration window for the CAN and the Network status parameters of the I-7540D(M)-MTCP.
  • Page 31 Timestamp Response = No 7. The “Network Status” frame displayed the IP, Gateway, Mask and MAC address of the I-7540D(M)-MTCP. 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(M)-MTCP.
  • Page 32: Connect How To Set The Bus Timing Registers

    3.1.3 Connect How to set the Bus Timing 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 33 For example (In 29 bit ID message): AccCode : AccMask : ID bit bit28~bit21 bit20~bit13 bit12~bit5 bit4~bit0 Accepted ID: xxxx xxxx xxxx xxxx xxxx xxxx 101x x The accepted ID range is as following list. ID Byte Byte 3 (h) Byte 2 (h) Byte 1 (h) Byte 0 (h)
  • Page 34: Enable Error Response

    3.1.5 Enable Error Response When the I-7540D(M)-MTCP receives a command that it 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 Description (Error code) The head character of the command string is invalid. The length of the command string is invalid.
  • Page 35: Enable Time-Stamp Response

    3.1.6 Enable Time-stamp Response When the time-stamp response is enabled, the I-7540D(M)-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(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 35...
  • Page 36 I-7540D(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 36...
  • Page 37: How To Change Web Id/Password Configuration

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

    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(M)- MTCP converter. 1. Connect the I-7540D(M)-MTCP’s CAN port into the CAN network, which must at least have one CAN device on the network.
  • Page 39 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(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 39...
  • Page 40 I-7540D(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 40...
  • Page 41: How To Use Can Bus Pair Connection

    3.1.9 How to use CAN Bus Pair Connection The I-7540D(M)-MTCP supports CAN bus pair connection UDP/TCP function. CAN bus pair connection will use UDP method (port: 57540) or TCP method (port: 10003). User can refer the following application to use this function.
  • Page 42 Application 01: one-to-one communication After setting “CAN Bus Pair connection Status” of the two I-7540D(M)- MTCP 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”...
  • Page 43 Application 02: one-to-many communication (broadcast) 1. After setting “CAN Bus Pair connection Status” of these I-7540D(M)- MTCP 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 Ethernet network. 2.
  • Page 44 Application 03: One acts as a server, the other acts as a client. After setting “CAN Bus Pair connection Status” of the two I-7540D(M)- MTCP 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.
  • Page 45: How To Set Specific Can Id Table

    3.1.10 How to set specific CAN ID table When users select the “Modbus TCP” or “Modbus RTU” mode, the functions, “Device ID” and “Specific CAN ID”, are useful. In the “Specific CAN ID” field, users can set maximum thirty CAN IDs which indicate the corresponding CAN messages to be stored in the specific Modbus Input Register respectively.
  • Page 46: How To Test Modbus Tcp Mode

    3.1.11 How to test Modbus TCP mode In this mode, there are two methods for users to send command to the I-7540D(M)-MTCP. The screenshot of the Utility is shown below: Through the first method (check “Use Modbus TCP Command”) users can use the function code 0x03/0x04/0x10 of Modbus TCP commands for reading and writing CAN message.
  • Page 47 I-7540D(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 47...
  • Page 48: How To Test Modbus Rtu Mode

    3.1.12 How to test Modbus RTU mode In this mode, there are two methods for users to send command to the I-7540D(M)-MTCP. The screenshot of the Utility is shown below: Through the first method (check “Use Modbus RTU Command”) users can use the function code 0x03/0x04/0x10 of Modbus RTU commands for reading and writing CAN message.
  • Page 49 I-7540D(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 49...
  • Page 50: Minios7 Utility

    3.2 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(M)- MTCP and other controllers. Supported connection ways ...
  • Page 51: Install The Minios7 Utility

    3.2.1 Install the MiniOS7 Utility Step 1: The installation software can be obtained from the following location. 8000cd:\\Napdos\MiniOS7\utility\MiniOS7_utility\ http://ftp.icpdas.com/pub/cd/8000cd/napdos/minios7/utility/minios7_utility/ 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 52: Pc Diagnostic Tools

    3.2.2 PC Diagnostic tools The MiniOS7 Utility provides serial PC diagnostic tools. These PC diagnostic tools can be opened from the Tools menu of MiniOS7 Utility. The PC Diagnostic tools include:  7188XW: 7188XW is the PC side utility for modules using the ICPDAS MiniOS7. It is the Win32 version of 7188x.exe.
  • Page 53  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(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 53...
  • Page 54  SendTCP: SendTCP uses protocol communicate with 7188E/8000E/7540D/I-7540D(M)-MTCP and other devices from Ethernet. Step 1: Run SendTCP in host-PC. Step 2: Input the IP of I-7540D(M)-MTCP and press the “Connect” button to connect with I-7540D(M)-MTCP. And then it will display “7188E3 is connected”.
  • Page 55 Step 3: Send command “10” to the I-7540D(M)-MTCP. 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(M)-MTCP’s COM2. If you enable 7000 module’s checksum function, select “CS_CR”. The “CS_CR”...
  • Page 56 Step 5: If you want to change the 7540D(M)-MTCP’s COM ports settings, click “Set” to change them. The 7540D(M)-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. ...
  • Page 57  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. I-7540D(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 57...
  • Page 58: Support Command List

    4. Support Command List For easy application, we provide 4 command strings to allow users to send specific commands from I-7540D(M)-MTCP’s Ethernet port10003 to CAN bus. And receiving response message form CAN bus. Also, we provide several commands for I-7540D(M)-MTCP’s Ethernet port10000 to set and get the status of 7540D(M)-MTCP.
  • Page 59 Port 10000 Command Format: 99<Command> Specific command for getting or setting the status of the I- 7540D(M)-MTCP Table 4-2: Command list table (port 10000) Command Description Read the status value of I-7540D Clear CAN error flag and FIFO Reboot the I-7540D module. #P01 Read the RS-232 configuration #P02...
  • Page 60: Tiiildd

    tIIILDD…<CR> Description: Send or receive a standard CAN data frame.  Syntax: tIIILDD…<CR> Represent a standard (2.0A) data frame. 11 bits Identifier (000~7FF) Data length (0~8) DD… Input data frame value according to the data length (00~FF)  Response: Valid command: No response Invalid command: ?<Error Code><CR>...
  • Page 61: Tiiil

    TIIIL<CR> Description: Send or receive a standard CAN remote frame.  Syntax: TIIIL<CR> Represents a standard (2.0A) remote frame. 11 bits Identifier (000~7FF) 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-MTCP Utility, in order to receive Syntax and/or communication error information at the host PC.
  • Page 62: Eiiiiiiiildd

    eIIIIIIIILDD…<CR> Description: Send or receive an extended CAN data frame.  Syntax: eIIIIIIIILDD…<CR> Stands for the extended (2.0B) data frame. IIIIIIII 29 bits Identifier (00000000~1FFFFFFF) Data length (0~8) DD… Input data frame value according to the data length (00~FF)  Response: Valid command: No response Invalid command: ?<Error Code><CR>...
  • Page 63: Eiiiiiiiil

    EIIIIIIIIL<CR> Description: Send or receive an extended CAN remote frame.  Syntax: EIIIIIIIIL<CR> Stands for the extended (2.0B) CAN remote frame. IIIIIIII 29 bits Identifier (00000000~1FFFFFFF) Data length (0~8)  Response: Valid command: No response Invalid command: ?<Error Code><CR>  Note: It is necessary to enable the “Error Response”...
  • Page 64 4.5 99S Description: Read the I-7540D CAN Baud Rate and error flag message.  Syntax: 99S Command character  Response: Valid Command: !CFFTTRRO<CR> Invalid command: ?<Error Code><CR> Delimiter for valid command current baud rate setting of CAN CAN status register CAN transmit error counter CAN receive error counter CAN or RS-232/485/422 FIFO Overflow flag...
  • Page 65 Table 4-4: CAN status register list AsciiToHex(FF) Name Value Function Bus-off; the SJA100 is not involved in bus activities Bit 7 (MSB) Bus Status Bus-on; the SJA1000 is involved in bus activities Error; at least one of the error counter has reached or exceeded the Bit 6 Error Status CPU warning limit...
  • Page 66  Example: Command: 99S Receive: !40C00000<CR> Obtain some current information on the I-7540D(M)-MTCP module. The response will show the following results: CAN baud rate=125K, CAN status register= transmission complete and transmit buffer is released, CAN transmit error counter=0, CAN receive error counter=0 and CAN FIFO = normal. Note: This command can only be accepted by I-7540D(M)-MTCP’s port 10000 I-7540D(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May...
  • Page 67 4.6 99C Description: Clear the CAN error flag and FIFO on the module.  Syntax: 99C Command 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.
  • Page 68 4.7 99RA Description: Reboot the I-7540D(M)-MTCP 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(M)-MTCP module. Invalid command: ERROR ...
  • Page 69 4.8 99#P01 Description: Read the RS-232 configuration  Syntax: 99#P01 99#P01 Command character  Response: Valid Command: 061BBDSP Invalid command: ERROR Delimiter for valid command RS-232 Baud rate Data bit 0 = 7 bits data formation 1 = 8 bits data formation Stop bit 0 = 1 stop bit 1 = 2 stop bits...
  • Page 70  Example: Command: 99#P01 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 I-7540D(M)-MTCP’s port 10000 I-7540D(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 70...
  • Page 71 99#P02 Description: Read the RS-485 configuration.  Syntax: 99#P02 99#P02 Command character  Response: Valid Command: 062BBDSP Invalid command: ERROR Delimiter for valid command RS-485 Baud rate Data bit 0 = 7 bits data formation 1 = 8 bits data formation Stop bit 0 = 1 stop bit 1 = 2 stop bits...
  • Page 72  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 command can only be accepted by I-7540D(M)-MTCP’s port 10000 I-7540D(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 72...
  • Page 73 4.10 99#P1 Description: Read the CAN configuration.  Syntax: 99#P1 99#P1 Command character  Response: Valid Command: 14PBCCCCCCCCMMMMMMMMET Invalid command: ERROR Delimiter for valid command CAN specification 0 = 2.0A 1 = 2.0B CAN Baud rate CCCCCCCC 32 bits Acceptance Code Register (00000000~FFFFFFFF) MMMMMMMM 32 bits Acceptance Mask Register...
  • Page 74  Example: Command: 99#P1 Response: 140400000000FFFFFFFF00 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 I-7540D(M)-MTCP’s port 10000 I-7540D(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 74...
  • Page 75: 99#P1B

    99#P1B Description: Read the CAN Bus Timing Register  Syntax: 99#P1B 99#P1B Command character  Response: Valid Command: 06PBTTRR Invalid command: ERROR Delimiter for valid command CAN specification 0 = 2.0A 1 = 2.0B CAN Baud rate CAN Bus Timing Register 1 (00~FF) CAN Bus Timing Register 1 (00~FF) CAN Baud rate list Description...
  • Page 76: 99$P0105Bbdsp

    4.11 99$P0105BBDSP Description: Change the RS-232 configuration of the I-7540D(M)-MTCP.  Syntax: 99#P0105BBDSP 99#P0105 Command character RS-232 Baud rate Data bit 0 = 7 bits data formation 1 = 8 bits data formation Stop bit 0 = 1 stop bit 1 = 2 stop bits Parity bits 0 = None...
  • Page 77 bit=1, none parity bit into the I-7540D(M)-MTCP and the I- 7540D(M)-MTCP response “OK” command to mean that the configuration of RS-232 has been changed. Note: This command can only be accepted by I-7540D(M)-MTCP’s port 10000 I-7540D(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 77...
  • Page 78: 99$P0205Bbdsp

    4.12 99$P0205BBDSP Description: Change the RS-485 configuration of the I-7540D(M)-MTCP.  Syntax: 99#P0205BBDSP 99#P0205 Command character RS-485 Baud rate Data bit 0 = 7 bits data formation 1 = 8 bits data formation Stop bit 0 = 1 stop bit 1 = 2 stop bits Parity bits 0 = None...
  • Page 79 bit=1, none parity bit into the I-7540D(M)-MTCP and the I- 7540D(M)-MTCP response “OK” command to mean that the configuration of RS-485 has been changed. Note: This command can only be accepted by I-7540D(M)-MTCP’s port 10000 I-7540D(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 79...
  • Page 80: 99$P114Pbcc

    4.13 99$P114PBCC…MM…ET Description: Change the CAN configuration of the I-7540D(M)-MTCP  Syntax: 99#P114PBCC…MM…ET 99#P114 Command character CAN specification 0 = 2.0A 1 = 2.0B CAN Baud rate CCCCCCCC 32 bits Acceptance Code Register (00000000~FFFFFFFF) MMMMMMMM 32 bits Acceptance Mask Register (00000000~FFFFFFFF) Error response or not 0 = Disable...
  • Page 81 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 I-7540D(M)-MTCP’s port 10000 I-7540D(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May...
  • Page 82: 99$P1B04Ttrr

    4.14 99$P1B04TTRR Description: Change the CAN Bus Timing Register of the I-7540D(M)- MTCP  Syntax: 99#P1B04TTRR 99#P1B04 Command character Bus Timing Register 0 (00~FF) Bus Timing Register 1 (00~FF)  Response: Valid Command: OK Invalid command: ERROR Note: 1. This command can only be accepted by I-7540D(M)-MTCP’s port 10000 2.
  • Page 83: 99#Pwid

    4.15 99#PWID Description: Read the Wed ID configuration  Syntax: 99#PWID 99#PWID Command character  Response: Valid Command: LLxxxxx… Invalid command: ERROR Web ID Length, in hexadecimal format. xxxxx… Web ID saved in the EEPROM, the default Web ID setting is “I7540D” ...
  • Page 84: 99#Pwpw

    4.16 99#PWPW Description: Read the Wed Password configuration  Syntax: 99#PWPW 99#PWPW Command character  Response: Valid Command: LLxxxxx… Invalid command: ERROR Web ID Length, in hexadecimal format. xxxxx… Web ID saved in the EEPROM, the default Web ID setting is “I7540D” ...
  • Page 85: 99$Pwidllxxxxx

    4.17 99$PWIDLLxxxxx… Description: Change the Wed ID configuration.  Syntax: 99#PWIDLLxxxxx… 99#PWID Command character 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 setting of the I-7540D(M)-MTCP to...
  • Page 86: 99$Pwpwllxxxxx

    4.18 99$PWPWLLxxxxx… Description: Change the Wed password configuration.  Syntax: 99#P02 99#PWPW Command character 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 ...
  • Page 87: 99#Ppc

    4.19 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 number of parameters Enable CAN bus pair connection flag, 0: Disable, 1: Enable Using TCP or UDP connection;...
  • Page 88: 99#Ppip

    4.20 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 destination IP of the I- 7540D(M)-MTCP, and the I-7540D(M)-MTCP responses that destination IP address is “192.168.255.2”.
  • Page 89: 99$Ppcllabc

    4.21 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 number of parameters, here fix to “03” Enable CAN bus pair connection flag, 0: Disable, 1: Enable Using TCP or UDP connection;...
  • Page 90: 99$Ppipxxx

    4.22 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 and acting as TCP client or using UDP connection method.
  • Page 91: General Error Code For Commands From Port 10003

    4.23 General Error code for commands from port 10003 Table 4-6: Error code table AsciiToHex Description (Error code) 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.
  • Page 92: Modbus Network (Only For Modbus Mode)

    5. Modbus Network (Only for Modbus mode) The I-7540D(M)-MTCP, Modbus TCP / Modbus RTU to CAN converter, supports the Modbus TCP/ Modbus RTU protocol. It acts as a Modbus TCP server / Modbus RTU slave device on the Modbus network. There are some mechanisms for data-exchanging between the CAN register and the Modbus register as the figure at the following section.
  • Page 93 Figure 5-1: CAN message Format of I-7540D(M)-MTCP Modbus mode. I-7540D(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 93...
  • Page 94: Supported Modbus Functions

    Supported Modbus Functions The Modbus function codes supported by the I-7540D(M)-MTCP are shown in the following table. Table 5-1: Supported Modbus Function Codes Function Code Function Name Description Read multiple registers 3 (03 Hex) Reading Output Register (4x) sent messages Read multiple input...
  • Page 95: Modbus Tcp Address

    Modbus TCP Address Figure 5-2: The address definition of Input Register and Output Register of the I-7540D(M)-MTCP. Modbus Input Register: (1) Normal CAN Message Field: In this field, the address range of “Normal CAN Message” is 0x0000~0x0E0F. It is used to store the CAN message received from the CAN network.
  • Page 96 corresponding register of the Specific CAN Message field. Each CAN message will occupy 18 address space of the register, and the range of this field is listed in following table. Before Firmware Version V2.7: Modbus Address Word Count Description Specific RX CAN Message #01 0x0E10~0x0F21 …...
  • Page 97 (3) Module Status Field: The I-7540D(M)-MTCP’s status information is defined in the following address. Users can use the Modbus RTU command ) to read these information from the “Module (function code 04 Status” field. Modbus Address Byte Count Description current baud rate setting of CAN 0x102C CAN status register 0x102D...
  • Page 98: 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(M)-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 99: Using Modbus Tcp Command To Send A Can Message

    5.2.2 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(M)-MTCP. Then the I-7540D(M)-MTCP will transfer this command to a CAN message format and send it to the buffer of the CAN controller.
  • Page 100 Figure 5-4: Use Modbus TCP command to transmit a CAN message. Example: Use the Modbus TCP command (function code 03 ) to read the transmitted CAN message format from the Output Register: I-7540D(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 100...
  • Page 101 Figure 5-5: Use the Modbus TCP command (function code 03 ) to read the transmitted CAN message format. I-7540D(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 101...
  • Page 102: Using Modbus Tcp Command To Get A Specific Can Message

    5.2.3 Using Modbus TCP command to get a Specific CAN Message The I-7540D(M)-MTCP supports a “Specific CAN Message” field to get the expect ten specific CAN messages. When receiving a CAN message whose CAN ID is defined in the Specific CAN Message by the Utility tool, the I-7540D(M)-MTCP will save this CAN message to the “Specific CAN Message”...
  • Page 103: Modbus Rtu Address

    Modbus RTU Address 5.3.1 Using Modbus RTU command to get a CAN Message When the I-7540D(M)-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 104: Using Modbus Rtu Command To Send A Can Message

    5.3.2 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(M)-MTCP. Then the I-7540D(M)-MTCP will transfer this command to a CAN message format and send it to the buffer of the CAN controller.
  • Page 105 Users can use the Modbus RTU command with function code 03 read the transmitted CAN message. The start address of the command is always 0000 and the data length field must be set to 0007 Example: Use the Modbus RTU command (function code 03 ) to read the transmitted CAN message format from the Output Register: Figure 5-9: Use the Modbus RTU command (function code 03...
  • Page 106: Using Modbus Rtu Command To Get A Specific Can Message

    5.3.3 Using Modbus RTU command to get a Specific CAN Message The I-7540D(M)-MTCP supports a “Specific CAN Message” field to get the expect ten specific CAN messages. When receiving a CAN message whose CAN ID is defined in the Specific CAN Message by the Utility tool, the I-7540D(M)-MTCP will save this CAN message to the “Specific CAN Message”...
  • Page 107: Modbus Tcp Master

    6.Modbus TCP Master Compared to Chapter 5, this chapter will introduce the Modbus TCP master function of I-7540D(M)-MTCP. With this function, the I-7540D(M)- MTCP can act as a Modbus master (TCP Client). In the following sections, this chapter will provide detailed instructions on how to configure and operate this function.
  • Page 108: Configuration And Operation

    Configuration and Operation When selecting "Modbus TCP Master" as the operation mode in the Utility, the "Master Config" button below will become clickable. After clicking the "Master Config" button, you will enter the following configuration screen: The functions of each button are as follows: ...
  • Page 109 The functions of each field are as follows:  "CAN ID (hex)": Specifies the CAN message ID used to respond to Modbus IO data from the Modbus slave via the CAN bus. Please enter the value in hex format.  "IP Address": Specifies the IP address of the Modbus TCP slave to connect to.
  • Page 110: Example

    Example (1) Read I/O: configuration value: I-7540D(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 110...
  • Page 111 (2) Read I/O + Passively Response: configuration value: I-7540D(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 111...
  • Page 112 I-7540D(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 112...
  • Page 113 (3) Write I/O: I-7540D(M)-MTCP Ethernet/Modbus to CAN Converter User’s Manual (Version 1.4,May /2023) ------ 113...

This manual is also suitable for:

I-7540d-mtcpI-7540d-mtcp-g

Table of Contents