J1939 and Modbus RTU. For J1939 network, the GW-7228 supports PDU1, PDU2, broadcast and the destination specific type of J1939 messages. From the view of Modbus RTU network, the GW-7228 is a Modbus RTU slave to reply the request from Modbus RTU master. We provide Utility software for users to configure the parameters of J1939 / Modbus RTU of the GW-7228.
The GW-7228 provides centralized data storage, for data that is shared between the Modbus and J1939 networks. Data is placed into the GW-7228 by one network interface, and allowing the data to be read or written through the other network interface.
Figure 2-2 is a block diagram illustrating the functions on the GW- 7228 module. It provides the 3000Vrms Isolation in the CAN interface site. Figure 2-2: Block diagram of the GW-7228 GW-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 8...
Modbus network. 2.3.1 CAN port connection The pin assignment of the CAN port on the GW-7228 (DB9 male) is defined in both the CANopen DS102 profile and in appendix C of the DeviceNet specifications. It is the standard pin assignment for CAN. The hardware connection between device and the GW-7228 is as Figure 2-4.
If users want to use this terminal resistor, Ω please open the GW-7228 cover and use the JP3 to activate the 120 terminal resistor built in the module, as the Figure 2-9. Note that the default setting is active.
Figure 2-11: Watchdog timer JP1 Jumper Position Init / Normal Dip-switch On the back of the GW-7228 module, there is a dip-switch used for firmware operation or firmware updating of the module. The following steps show how to use this dip-switch.
Page 14
GW-7228 module from computer’s RS-232 port via CA- 0910 cable shown as Figure 2-14. Figure 2-12: Init Position of Dip-Switch Figure 2-13: CA-0910 Cable Figure 2-14: Firmware downloads connection GW-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 14...
Page 15
The result will show in “Firmware Update” field. Figure 2-15: GW-7228 firmware update process The GW-7228 firmware can be downloaded from http://ftp.icpdas.com/pub/cd/fieldbus_cd/J1939/gateway/gw- 7228/firmware. The Firmware_Update_Tool program can be downloaded from http://ftp.icpdas.com/pub/cd/fieldbus_cd/J1939/gateway/gw- 7228/software/tool. GW-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 15...
2.6.2 Firmware Operation Mode In the operation mode, users need to set the dip-switch to the “Normal” position as Figure 2-16 and reset the power. The GW-7228 can run in the operation mode. In this mode, users can use the Modbus Master command to set / get J1939 messages via COM port.
LEDs and the position of these three LEDs shown as Figure 2-17. (1) PWR LED : It is used to help users to check whether the GW-7228 is standby. If the module is working in “firmware operation” mode, the PWR LED is always turned on.
How to decide a cable type, cable length, and terminator depends on the baud rate in the CAN bus network, please refer to the following table 2-4. Figure 2-18: Un-shielded Twisted Pair (UTP) GW-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 18...
Page 19
(heavier) the wire, the lower the number. For example: a 24AWG wire is thicker/heavier than a 26AWG wire. GW-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 19...
485 serial link by using the PC serial port. It is compatible with Microsoft Windows 95, 98, NT, 2000, Vista and 7. The GW-7228 Utility can be downloaded from http://ftp.icpdas.com/pub/cd/fieldbus_cd/J1939/gateway/gw- 7228/software/utility. GW-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 20...
The following is the main screens provided by GW-7228 Utility. 3.2.1 Connection Screen When users execute the GW-7228 Utility, it will show connection function screen first for connecting to the GW-7228 as Figure 3-1. The following is the illustration for connection parameters. [1] COM : The serial com port number.
Page 22
Figure 3-4: COM Connection Successful Screen Table 3-1 GW-7228 error status Error Code Status No Error Can’t Claim Address in J1939 Network CAN Bus-Off CAN Bus Transmission Fail GW-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 22...
: Configuration of Modbus network parameters. [3] J1939 : Configuration of J1939 network parameters. [4] J1939 I/O table : Configuration of the contents and layout of the I/O tables. GW-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 23...
Page 24
The number of data bits used in the serial Fixed at 8 Data Bits communication. The number of stop bits used in the serial 1 / 2 Stop Bits communication. GW-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 24...
Page 25
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-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 25...
Page 26
The J1939 Input/Output table is used define the content and format of the J1939 messages. The Data from J1939 messages that are to be transmitted are mapped to the locations in the input or output table GW-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 26...
Page 27
J1939 network. Output data points are associated with data of messages that will be transmitted on the J1939 network. Figure 3-7: J1939 Input/Output Configuration Table GW-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 27...
Page 28
In Output Table, a message with this PGN will Number be built and transmitted using data from the Output table. Priority The data is used to optimize message latency GW-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 28...
Page 29
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-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 29...
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 address the I/O tables by using 16-bit words. GW-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 30...
Page 31
41536(LSB/MSB) The following register address is defined to start or stop the transmission of output J1939 messages in the GW-7228. It can use the Modbus functions code 6 (06 Hex) and 16 (10 Hex) to change the register. Table 4-4: Start/Stop the transmission register of J1939 output message...
The Parameter Groups (PG) architecture and Parameter Group Numbers (PGN) are described in SAE J1939/21 and defined in SAE J1939/71. GW-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 32...
Groups (PG) and they will be transmitted throughout the network using the 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-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 33...
Messages are transmitted automatically based on the Update Time parameter in the output data associated with the message. GW-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 34...
GW-7228 now provides a BAM (Broadcast Announce Message) mechanism, when messages larger than 8 bytes in length and the destination address is 255, the message will be sent or receive using transport protocol BAM. GW-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 35...
J1939 messages via the GW-7228 Users need to set the dip-switch to the “Normal” position as Figure 5-2 and reset the power, and that the GW-7228 can run in the operation mode. GW-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 36...
Page 37
Figure 5-2: Operation mode Position of Dip-Switch Step2: Enable the 120Ω terminator resistor Ω Please open the GW-7228 cover and use the JP3 to activate the 120 terminal resistor built in the module, as the Figure 5-3. Figure 5-3: JP3 Jumper Position...
Page 38
It is recommended to use only one serial port (RS232, RS422 or RS485) of the gateway at the same time. The following figures describe the three COM port types to a serial device via serial network. GW-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 38...
Page 39
Step5: Power wire connection Connect the power supply to the GW-7228 module’s power terminal connecter, please see the following connection as Figure 5-6. Figure 5-6: Power Wire Connection GW-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 39...
The device NAME should be set according to the application and the vendor where the module is being used based on the J1939 network specification. The J1939 network configuration screen from the GW-7228 is shown as Figure 5-9. GW-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 40...
Speed from the transmission and send the Transmission Input Shaft Speed to the transmission via the GW-7228. Figure 5-10: Example of a parameter group definition of SAE J1939/71 GW-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 41...
Page 42
ECU’s J1939 Address Byte Order Byte Data Priority Transm- ECU’s In J1939 Order In Length ission (Dec) J1939 Data Field Modbus Repetiti- Address Figure 5-11: J1939 configuration screen GW-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 42...
5.2.4 Upload Parameter to the GW-7228 After the previous parameter settings, users need to upload the parameters to the GW-7228. Please refer to the following figure to finish the operation. Figure 5-12: Parameter upload screen Figure 5-13: Confirm Parameter upload screen Figure 5-14: Parameter upload successful screen GW-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 43...
3. When the correct implementation of the above steps, the J1939/Modbus LEDs of the GW-7228 should be turn on, and that should be turn off after 500 ms later. GW-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 47...
Page 48
7228, and the GW-7228 would back to factory defaults. 6. Reconnect the GW-7228 by using the network setting as 115200 baud with none parity, 1 stop bit and 1 Net ID. GW-7228 J1939/Modbus RTU Slave Gateway User’s Manual (Ver 1.3, Apr/2011) ------------- 48...