Gcan 204
Gcan 204
Gcan 204
Modbus/RTU-CAN converter
User Manual
Contents
1. Introduction ................................................................................................................ 3
1.1 Overview .......................................................................................................... 3
1.2 Properties at a glance ....................................................................................... 3
2. Installation.................................................................................................................. 4
2.1 Installation and fixation ................................................................................... 4
2.2 Connect to Serial bus ....................................................................................... 4
2.3 Connect to CAN-Bus ....................................................................................... 5
3. Converter used ........................................................................................................... 6
3.1 The structure of CAN-Bus ............................................................................... 6
3.2 Termination resistor ......................................................................................... 7
3.3 Indicator light ................................................................................................... 7
4. Configuration instructions ......................................................................................... 8
4.1 Configuration to prepare .................................................................................. 8
4.2 Connect the software........................................................................................ 8
4.3 Configure parameter ........................................................................................ 9
4.4 Configure mapping table................................................................................ 10
4.5 Download parameters .................................................................................... 11
4.6 Save parameters ............................................................................................. 12
5. Examples .................................................................................................................. 13
5.1 Receive CAN data.......................................................................................... 13
5.2 Transmit CAN data ........................................................................................ 13
6. Technical Specifications .......................................................................................... 14
Sales and service .......................................................................................................... 15
1. Introduction
1.1 Overview
GCAN-204 converter has one CAN-Bus interface, one serial interface. The
GCAN-204 integrates the Modbus RTU protocol. With the GCAN-204 , user can use
the serial bus connect to other equipment (with Modbus RTU protocol) access the
CAN-Bus communication interface.
GCAN-204 has integrated isolation protection module. Using DIN railway fixed, it
can be easier to integrate into the control cabinet.
2. Installation
DC24V explanation
1 + 24V DC+
2 - 0V
3 NC NC
4 PE shield
Table 2.1 Power interface definition
GCAN-204 serial interface use RS485 interface. The pin definitions are shown in
table 2.2.
The pin definitions for the CAN side of GCAN-204 are shown in table 2.3.
3. Converter used
The working principle of GCAN-204, as shown in figure 3.1.
CAN-Bus requires two 120Ω termination resistors in the furthest of the two terminals,
as shown in figure 3.3.
GCAN-204 converter has one SYS indicator, one DAT indicator that can indicate the
converter status. More functions are shown in table 3.2.
4. Configuration instructions
Open the shell of the converter, find the DIP switch shown below, turn switch 2 to
"ON", then connected to the power supply, you can enter the configuration mode.
Please note: GCAN-204 uses RS485 interface to configure, do not connect the
"Mini USB" interface.
When GCAN-204 enters the configuration mode, use a RS485 line to connects to PC.
Open the "ModbusRTU CAN Config" software, then configure the parameters. The
software interface is shown in figure 4.1.
Press "Add" to add data. "Receive CAN" Modbus address: 0x00-0x7F, Modbus
address of Transmit CAN: 0x100-0x17F.
Save the configuration, click "保存文件 SaveAs" to save the parameters to the PC.
Then the file can be used many times.
5. Examples
The user can use the included serial debugging assistant to send Modbus instruction
debugging.
Please note: choose "hexadecimal display" and "hexadecimal send" when using
the serial debugging assistant.
For example, configure the Modbus slave address: 1, Modbus register first address:
0x01, CAN: standard frame, frame ID: 0x181, CAN frame data: 0x01, 0x02, 0x03,
0x04, 0x05, 0x06, 0x07, 0x08.
User Modbus master sends request frame:
01 03 00 01 00 04 15 C9
GCAN-204 response frame:
01 03 08 02 01 04 03 06 05 08 07 17 C1
Please note that the CRC is calculated by the CRC16 checksum calculator. (With
disk)
At this point, the GCAN-204 module has received a data frame with a frame ID of
0x181 from the CAN terminal of other equipment.
For example, Modbus slave address: 1, Modbus register first address: 0x101 (decimal:
257), function code: 16 (10H), CAN: standard frame, frame ID: 0x201, CAN frame
data: 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08.
User Modbus master sends request frame:
01 10 01 01 00 04 08 02 01 04 03 06 05 08 07 CB 2E
GCAN-204 response frame:
01 10 01 01 00 04 91 F6
Please note that the CRC is calculated by the CRC16 checksum calculator.
At this point, the CAN terminal of other equipment has received a data frame with a
frame ID of 0x201 from the Modbus side of the GCAN-204 module.
6. Technical Specifications
Connection
Serial interface Terminal blocks
CAN interface Terminal blocks
Interface characteristics
Serial interface Standard RS485 interface
Serial port baud rate 600bps~115200bps
CAN interface ISO 11898 standard,CAN2. 0A/B
CAN baud rate 1000K、500K、250K、200K、125K、100K、50K、
20K
Electrical isolation 1500V,DC-DC
CAN termination None. You can add it between CAN_H and
resistor CAN_L if you need it.
Power supply
Power supply voltage +9~30V DC
Power supply current Maximum 20mA(24V DC)
Environmental testing
Working temperature -40℃~+85℃
Working humidity 15%~90%RH,no condensation
EMC test EN 55024:2011-09 EN 55022:2011-12
Protection grade IP 20
The basic information
Outline size 113mm *100mm *21mm
Weight 120g