ZLG CANFDNET-400U Product User Manual

Rs232/485/422-can fd-bus intelligent protocol converter
Hide thumbs Also See for CANFDNET-400U:

Advertisement

Quick Links

CANFDCOM-100IE
RS232/485/422-CAN(FD)-BUS Intelligent Protocol converter
User Manual
UM01010101 V1.02
Date: 2019/08/20
Product User Manual
Category
Contents
Keywords
RS232, CAN, conversion, baud rate
This converter quickly connects RS232/485/422
Description
communication equipment to the CAN(FD)-BUS field bus
©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.

Advertisement

Table of Contents
loading

Summary of Contents for ZLG CANFDNET-400U

  • Page 1 RS232/485/422-CAN(FD)-BUS Intelligent Protocol converter User Manual UM01010101 V1.02 Date: 2019/08/20 Product User Manual Category Contents Keywords RS232, CAN, conversion, baud rate This converter quickly connects RS232/485/422 Description communication equipment to the CAN(FD)-BUS field bus ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 2 April 11, V1.00 Created 2018 March 15, Updated the document header and footer and "Sales and Service V1.01 2019 Network" content and added the "Disclaimer" content August 19, V1.02 Added the product mechanical dimensions 2019 ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 3: Table Of Contents

    5.1.1 Entering Configuration Mode ..............38 5.1.2 Connecting the Converter by Using the Configuration Tool ...... 38 5.1.3 Setting the Save Parameters ..............39 5.2 Communication Test ..................... 39 6. Firmware Upgrade ..................41 7. Disclaimer ....................43 ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 4: Functions

    The PLC equipment is connected to the CAN(FD)-bus network;  Gateway bridge between CAN(FD)-bus and serial bus;  Industrial field network data monitoring;  CAN (FD) teaching application remote communication;  CAN (FD) industrial automation control system; ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 5 CANFDNET-400U High-performance Four-channel CANFD Bus-to-Ethernet Converter User Manual User Manual  Low-speed CAN (FD) network data acquisition data analysis;  CAN(FD)-bus application system such as the intelligent building control data broadcasting system; ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 6: Hardware

    Figure 2.1 shows the appearance. Figure 2.1 CANFDCOM-100IE appearance 2.2 Interfaces The CANFDCOM-100IE converter has three user interfaces: one CAN (FD)-bus interface, one 485/422 interface, one RS-232 interface. Table 2.1 lists the interface pin ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 7: Indicators

    CANFDCOM-100IE converter. Table 2.2 lists the functions. Table 2.2 LED indicators Identification Function Status Description The indicator The converter power supply is working Converter power is on properly indicator The indicator The converter power supply is not powered ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 8: Buttons

    There are only two possibilities for the level signal transmitted on the cable, namely the dominant level and the recessive level. The dominant level indicates logic 0, and the recessive level indicates logic 1. Table 2.4 lists the high-speed CAN electrical characteristics. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 9: Mechanical Dimensions

    In long-distance communication, the terminal resistance value needs to be selected according to the communication distance, cable impedance and number of nodes. 2.6 Mechanical Dimensions Figure 2.3 shows the mechanical dimensions (unit: mm). ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 10 CANFDNET-400U High-performance Four-channel CANFD Bus-to-Ethernet Converter User Manual User Manual Figure 2.3 Mechanical dimensions ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 11: Configuration Tool Installation And Description

    Figure 3.1 Configuration switch 3.2 PC Software Configuration The configuration software name of the CANFDCOM-100IE converter is "CANCOM-100IE configuration". The setting software is included on the CD-ROM delivered with the product. Figure 3.2 shows the software interface. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 12: Conversion Parameters

    When this parameter is selected, the converter will add the frame information of the CAN (CANFD) message to the first byte of the serial frame when it is working. When this parameter is not selected, ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 13 (10/9600)*4=4.17(ms); that is, the time interval between two serial frames is at least 4.17 CAN frame forwarding interval (ms): This parameter is valid in all modes. This parameter is the delay time between forwarding CAN (CANFD) messages from the repeater.If this parameter is greater than 0, ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 14: Serial Port Parameters

    Stop bit: 1 or 2. Parity: no parity, even parity, or odd parity. Mode switching: RS232 mode, RS485 mode, or RS422 mode. 3.2.3 CAN Parameters As shown in Figure 3.4, this option mainly sets CAN related parameters. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 15 As shown in Figure 3.5, set the arbitration domain baud rate in ①, and select the appropriate synchronization jump width. The clock is fixed at 60 MHz; Set the baud rate parameter of the data domain in ②, and select the appropriate ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 16 Click the copy button at ⑥ to copy the value of the custom baud rate. Paste this value into the custom baud rate text box. Figure 3.5 Steps for using the baud rate calculator ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 17: Filter Parameters

    Restore default: Restore its parameters to their default values. Firmware upgrade: Provides the function of upgrading the CANFDCOM-100IE firmware. Get configuration: Read out the parameters of the converter and display them on the host computer software. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 18 CANFDNET-400U High-performance Four-channel CANFD Bus-to-Ethernet Converter User Manual User Manual Save configuration: After the parameters are set, click this button to write the configuration parameters into the converter. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 19: Conversion Modes

    The protocol is open, real-time, and has a good communication verification mechanism. It is ideal for scenarios with high communication reliability requirements. The converter uses the standard ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 20: Transparent Conversion

    1. Serial frame to CAN (CANFD) message All the data of the serial frame is sequentially filled into the data field of the CAN (CANFD) message frame. The converter receives and converts data as soon as it detects ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 21 62, CANFD's DLC cannot be encoded to indicate that the length is 62, and the closest value can only be 48. Therefore, a CANFD message with a data length of 48 is converted. The remaining data length is 14. CANFD's DLC cannot be encoded to indicate ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 22 CAN (CANFD) messages are also filled into serial frames. Table 4.4 Conversion of CAN messages into serial frames (transparent conversion) Serial frame CAN message (standard frame) Frame Frame Frame information information information Frame ID1 Frame ID1 Frame ID Frame ID0 Frame ID0 ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 23: Conversion Examples

    Table 4.6 Example of converting serial frames to CAN messages (transparent mode) Serial frame message 1 message 2 Frame 0x01 0x08 0x05 information 0x02 0x01 0x01 Frame ID 0x03 0x23 0x23 0x04 Data field 0x01 0x09 ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 24 "frame ID" conversion. Assuming that the frame ID1 in the CAN message is 0x01, the frame ID0 is 0x23, and the data is 0x12, 0x34, 0x56, 0x78, 0xab, 0xcd, 0xef, 0xff, the CAN message and the converted serial frame are listed in Table 4.8. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 25 0x23 0x23 0x01 0x01 0x02 0x02 0x03 0x03 0x04 0x04 Data field … … 0x3E 0x3E 0x3F 0x3F 0x40 0x40 As listed in Table 4.9, the frame information (0x38) of the CANFD message is ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 26: Transparent Conversion With Flags

    The characters after the timeout do not belong to this frame, but to the next frame. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 27: Conversion Methods

    (CAN frame (CAN frame (CAN frame ss 1 ID0) ID0) ID0) ID0) Addre Data… Data 3 Data 3 Data n-4 ss 2 Data Addre field Data… Data 4 Data 4 Data n-3 ss 3 ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 28 For CAN messages, a frame is forwarded immediately upon receipt.In each forwarding, the ID in the received CAN message is converted based on the position and length of the pre-configured CAN frame ID in the serial frame. Other data are forwarded ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 29 Frame ID0 Data 1 Data 1 Data 2 Data 2 Data 3 Data 3 … … Data field Data 61 Data 61 Data 62 Data 62 Data 63 Data 63 Data 64 Data 64 ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 30: Conversion Examples

    3 (in the case of extended frame), the data sent by the serial frame are 0x00-0x45 respectively, a total of 70 data. Table 4.15 lists the serial frames converted to CAN messages. Among them, two frames of CAN messages are converted with the same ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 31 Table 4.16 Converting CAN extended frame messages into serial frames (transparent conversion with flags) CAN message (extended frame) Frame 0x88 information Serial frame 0x00 Address 0 0x00 Frame ID 0x12 Address 1 0x01 0x34 ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 32 Address 66 0x3F 0x3F As shown in Table 4.17, in this mode, it is obvious that the frame information of CANFD messages will not be converted into serial frames. Since the start address in the ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 33: Format Conversion

    FF: identifier of standard frame and extended frame. 0 indicates a standard frame, while 1 indicates an extended frame;  RTR: identifier of remote frame and data frame. 0 indicates a data frame, while 1 ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 34 CAN format conversion 6-byte valid data representation 0x11 0x22 0x33 0x44 0x55 0x66 0x00 0x00 Table 4.23 Example of converting CAN formats to extension frames The following example is a CAN extended data frame. The ID is 0x12345678, which ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 35: Modbus Conversion

    CAN (CANFD) message. The formulation of the segmented transmission protocol refers to the transmission protocol of segmented messages in DeviceNet. For CAN messages, the segmented ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 36 Table 4.26 CANFD extended frame segmentation message format Bit number Frame DLC (data length) information Frame ID3 ID.28 - ID.24 Frame ID 2 ID.23 - ID.16 Frame ID1 ID.15 - ID.8 ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 37: Conversion Methods

    Table 4.28 shows the CAN mode conversion, and Table 4.29 shows the CANFD mode conversion. The address field of the Modbus RTU protocol is converted into ID0 of the frame ID in the CAN message. The flag does not change during the frame conversion. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 38 (CANFD) message, and the CAN (CANFD) message does not need to have the check byte of the serial frame, because the CAN (CANFD) bus itself has an excellent verification mechanism. The converted data is the function code and data field of the protocol content of ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 39: Conversion Examples

    Addres 0x08 Frame 0x88 0x84 s field information Functio 0x11 Frame ID3 0x00 0x00 n Code 0x00 Frame ID 2 0x00 0x00 Data 0x01 Frame ID1 0x00 0x00 field 0x00 Frame ID0 0x08 0x08 ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 40 0x00 0x01 Frame ID1 0x00 Data field 0x00 Frame ID0 0x08 0x02 Data 1 0x00 0x2D Data 2 0x11 CRC field 0x51 Data 3 0x00 Data 4 0x01 Data 5 0x00 Data 6 0x02 ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 41: Quick Instructions

    Run the "CANFDCOM-100IE Configuration" host software, as shown in Figure 5.2. Select the PC serial port connected to the converter, "COM15" in the example. Click the "Connect Device" button. After a successful connection, the "Connect Device" button becomes a "Disconnect" button. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 42: Setting The Save Parameters

    5.2 Communication Test After the configuration is complete, set the "Configuration Switch" to "ON"! In this way, you can start the normal working mode. In the normal working mode, the converter can start normal conversion. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 43 CAN device to the converter, and observe whether the data received by the serial port software is consistent with the sent data. If there is data transmission on one side of the bus, and the transmission is normal, the indicator of the bus will flash green. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 44: Firmware Upgrade

    Check whether the communication interface is normal and whether the selected firmware bin file path is correct. If the upgrade exception damages the application, method 1, which is simple, can no longer be used, and only method 2 can be used. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 45 If the application has not been upgraded, it will not work properly. The only way to return to Bootloader mode and upgrade the firmware properly. ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
  • Page 46: Disclaimer

    ZLG Electronics does not guarantee the applicability of this document at any time. ZLG Electronics shall reserve the right to update this manual without prior notice. To get the latest version, please visit the official website of ZLG Electronics regularly or contact ZLG Electronics. Thank you!
  • Page 47 CANFDNET-400U High-performance Four-channel CANFD Bus-to-Ethernet Converter User Manual User Manual Dreams come true with professionalism and dedication. Guangzhou ZLG more details, Welcome call please visit national service hotline Electronics Co., Ltd. www.zlg.cn 400-888-4005 ©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.

Table of Contents