ICP DAS USA GW-7238D User Manual

ICP DAS USA GW-7238D User Manual

1939 to modbus tcp server / rtu slave gateway
Hide thumbs Also See for GW-7238D:

Advertisement

Quick Links

GW-7238D
J1939 to Modbus TCP Server / RTU
Slave Gateway
User's Manual
www.icpdas.com
GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User's Manual (Ver.1.1, May. 2013) --- 1

Advertisement

Table of Contents
loading

Summary of Contents for ICP DAS USA GW-7238D

  • Page 1 GW-7238D J1939 to Modbus TCP Server / RTU Slave Gateway User’s Manual www.icpdas.com GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) --- 1...
  • Page 2 Document Revision Version Date Description of changes 2010-11-12 First Release Revision Add XC-100 Rev1.9 I/O expansion board 2013-05-29 jumper selection description GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) --- 2...
  • Page 3: Table Of Contents

    J1939 Message Transmission............35 4.2.5 J1939 Receiving Messages ............36 4.2.6 Transport Protocol for Large Messages ......... 36 5. Application ..................37 Hardware Installation ............... 37 GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) --- 3...
  • Page 4 J1939 I/O Configuration ..............41 5.2.4 Upload Parameter to the GW-7238D ..........43 Modbus Communication – Modbus RTU ......... 44 Modbus Communication – Modbus TCP.......... 47 6. Troubleshooting................51 GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) --- 4...
  • Page 5: Introduction

    Modbus and J1939 networks. Data is placed into the GW-7238D by one network interface, and allowing the data to be read or written through the other network interface. GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) --- 5...
  • Page 6: Features

    • Controller : NXP SJA1000T with 16 MHz clock • Transceiver : NXP 82C250 • Channel number : 1 • Connector : 5-pin screwed terminal block (CAN_L, CAN_H, N/A for GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) --- 6...
  • Page 7 • Provide Modbus monitoring interface. [Application:] • Diesel power-train applications • In-Vehicle networks for trucks and buses • Truck-Trailer connections • On Board Diagnostics • Vehicle Automation GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) --- 7...
  • Page 8: Hardware

    Figure 2-2 is a block diagram illustrating the functions on the GW- 7238D module. It provides the 1000Vrms Isolation in the CAN interface site. Figure 2-2: Block diagram of the GW-7238D GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) --- 8...
  • Page 9: Pin Assignment

    In order to provide an easy CAN bus wiring, the GW-7238D supplies one CAN port with two CAN bus connector interfaces. Each connecter built on the GW-7238D looks like as figure 2-4 and table 2-2. GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) --- 9...
  • Page 10: Ethernet Connect

    CAT 3 or CAT 5 network cable. On power on of the GW-7238D, it will auto-negotiate the network speed and connection. GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 11: Hardware Connection

    Ethernet interfaces for Modbus network. 2.3.1 CAN port connection The hardware connection between device and the GW-7238D is as Figure 2-7. Figure 2-7: CAN bus wire connection of GW-7238D GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 12: Serial / Ethernet / Power Port Connection

    108Ω~132Ω). The length related resistance should have 70 mΩ/m. Users should check the resistances of their CAN bus, before they install a new CAN network as figure 2-9. Figure 2-9: Terminal Resistor GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 13 10. Note that the default setting is active. And about the J3 jumper setting, please refer the table 2-5. Figure2-10:XC100 I/O expansion board layout (Rev1.8 / Rev1.9) GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 14: Init / Normal Dip-Switch

    In this mode, users can update the firmware of the GW-7238D module from computer’s RS-232 port via CA- 0910 cable shown as Figure 2-13. Figure 2-11: Init Position of Dip-Switch GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 15 6. Set the dip-switch to the “Normal” position. 7. Re-boot the GW-7238D 8. Pressing Alt & X at the same time will quit the 7188xw.EXE GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 16: Firmware Operation Mode

    “firmware operation” mode, the PWR LED is always turned on. (2) ERR LED : It is used for demonstrating an error that has occurred. The ERR LED GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 17 Firmware is running PWR LED Power Failure No Error ERR LED Error Blink Transmission Blink J1939 LED Bus Idle MODBUS Transmission Blink Bus Idle On or Off GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 18: 5-Digits 7-Segment Led Displays

    ● Group-ID 22222: Baud rate of all ports ● Group-ID 33333: Configuration of the GW-7238D station number ● Group-ID 44444: Client connection information and error state of GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 19 ● LED-4, 5: Numbers of sockets are used by clients, default 0 If any client connects to the GW-7238D, the numbers of the used- socket will be increased. The GW-7238D allows 5 clients for connection. GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 20 Table 2-8 GW-7238D error status Error Code Status No Error Can’t Claim Address in J1939 Network CAN Bus-Off CAN Bus Transmission Fail GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 21: Software

    Ethernet link by using the PC serial and Ethernet port. It is compatible with Microsoft Windows 95, 98, NT, 2000, XP, Vista and 7. The GW-7238D Utility can be downloaded from http://ftp.icpdas.com/pub/cd/fieldbus_cd/J1939/gateway/gw- 7238D/software/utility. GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 22: Gw-7238D Utility

    (1 / 2, default:1) Ethernet [1] IP Address : IP address setting. (Default is 192.168.255.1) Modbus [1] Net ID : Modbus network Net ID setting. (1~99, default:1) GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 23: Main Screen

    GW-7238D module. 3.2.2 Main Screen Figure 3-2: GW-7238D Utility Main Screen Menus: File [1] Load Configuration : Load a previously saved the GW-7238D configuration file. GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 24 : Monitor the configuration of Modbus register in J1939 Input table and provide decimal and hexadecimal value display. Figure 3-3: Modbus monitoring table Figure 3-4: J1939 to Modbus configuration table GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 25 The number of stop bits used in the serial 1 / 2 Stop Bits communication. 192.168.255.1 IP Address IP Setting. (Default) 255.255.0.0 Net Mask Net Mask Setting. (Default) 192.168.0.1 Gateway Gateway Setting. (Default) GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 26 This is the list of possible addresses, the Address module only claims a single address at a 0~253 Configuration time. Up to 20 addresses may be in this list. GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 27 J1939 messages. The Data from J1939 messages that are to be transmitted are mapped to the locations in the input or output table respectively. GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 28 J1939 network. Output data points are associated with data of messages that will be transmitted on the J1939 network. Figure 3-6: J1939 Input/Output Configuration Table GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 29 The data is used to optimize message latency Priority for transmission onto the bus only; the priority of any message can be set from highest, 0, to GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 30 PGN for the configured PGN. This is the J1939 message buffer location Message 0~1784 where data will be transferred input and Offset (bytes) output of the message buffer. GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 31: Communication Network

    Only the areas of the Modbus I/O tables that are configured with J1939 I/O data are addressable, Modbus functions that use Word addressing addresses the I/O tables by using 16-bit words. GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 32 Table 4-5: Registry Error Code of the GW-7238D Register Description No Error Can’t Claim Address in J1939 Network 31807(Dec) CAN Bus-Off 70E(Hex) CAN Bus Transmission Fail GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 33: J1939 Network

    The Parameter Groups (PG) architecture and Parameter Group Numbers (PGN) are described in SAE J1939/21 and defined in SAE J1939/71. GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 34: Suspect Parameter Number (Spn)

    Parameter Group Number (PGN). To follow up on the previous example (PGN 65262), the parameter Engine Coolant Temperature is described by SPN 110 as following Figure: GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 35: J1939 Message Transmission

    Messages are transmitted automatically based on the Update Time parameter in the output data associated with the message. GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 36: J1939 Receiving Messages

    8 bytes in length and the destination address is 255, the message will be sent or receive using transport protocol BAM. GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 37: Application

    Users need to set the dip-switch to the “Normal” position as Figure 5-2 and reset the power, and that the GW-7238D can run in the operation mode. GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 38 Connect the CAN ports with the GW-7238D modules and ECU (e.g. engine) in J1939 network using the following structure as Figure 5-3. Figure 5-3: CAN bus Wire Connection GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 39 Ethernet network and set on the same subnet to connect via IP address(192.168.255.1) shown as below figure. After the first connection, it should follow the GW-7238D Modbus connection settings to change. GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 40: Gw-7238D Utility Configuration

    J1939 network specification. The J1939 network configuration screen from the GW-7238D is shown as Figure 5-7. GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 41: J1939 I/O Configuration

    Speed from the transmission and send the Transmission Input Shaft Speed to the transmission via the GW-7238D. Figure 5-8: Example of a parameter group definition of SAE J1939/71 GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 42 Byte Order Byte Data Priority Transm- ECU’s In J1939 Order In Length ission (Dec) J1939 Data Field Modbus (Byte) Repetiti- Address Figure 5-9: J1939 configuration screen GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 43: Upload Parameter To The Gw-7238D

    GW-7238D. Please refer to the following figure to finish the operation. Figure 5-10: Parameter upload screen Figure 5-11: Confirm Parameter upload screen Figure 5-12: Parameter upload successful screen GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 44: Modbus Communication - Modbus Rtu

    01 10 00 00 00 01 02 12 34 AB 27 GW-7238D’s response is OK. [Response] (Byte0, Byte1... Byten) (Hex) 01 10 00 00 00 01 01 C9 GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 45 01 04 00 00 00 01 31 CA GW-7238D responds a value of one word in the address 30001. [Response](Byte0, Byte1... Byten) (Hex) 01 04 02 12 34 B4 47 GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 46 [Request Command] (Byte0, Byte1... Byten) (Hex) 01 06 07 D8 00 C9 45 GW-7238D responds the register value. [Response] (Byte0, Byte1... Byten) (Hex) 01 06 07 D8 00 C9 45 GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 47: Modbus Communication - Modbus Tcp

    Transaction Identifier (Usually zero when making a request) Byte 2-3: Protocol Identifier (Protocol number. Must be zero) Byte 4-5: Length (Number of following bytes - upper / lower byte) GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 48 Transaction Identifier (Usually zero when making a request) Byte 2-3: Protocol Identifier (Protocol number. Must be zero) Byte 4-5: Length (Number of following bytes - upper / lower byte) GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 49 Transaction Identifier (Usually zero when making a request) Byte 2-3: Protocol Identifier (Protocol number. Must be zero) Byte 4-5: Length (Number of following bytes - upper / lower byte) GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 50 Without have to control the Modbus register 42009 (Dec), just enable Auto transmission function in J1939 configuration area as below, and upload to GW-7238D. Figure 5-14: J1939 Auto Transmission function screen GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 51: Troubleshooting

    Step4 3. When the correct implementation of the above steps, the J1939/Modbus LEDs of the GW-7238D should be turn on, and that should be GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...
  • Page 52 8 data bit, 1 stop bit and 1 Net ID; or run the Ethernet network and set on the same subnet to connect via IP address(192.168.255.1) GW-7238D J1939 to MBTCP Server / MBRTU Slave Gateway User’s Manual (Ver.1.1, May. 2013) ---...

Table of Contents