4n-gx-can-RS232-RS485-commands-v4.7 - eng

4n-gx-can-RS232-RS485-commands-v4.7 - eng 4n-gx-can-RS232-RS485-commands-v4.7 - eng

12.07.2015 Views

5.2 Receiving DataWhat data received by the converter and at RS232/RS485 side are output for further processingdepends on the configuration of the CAN identifier, the CAM-Acceptance-Code and the CAN-Acceptance-Mask. A detailed description of these parameters can be found with examples inchapter "3.1 CAN ID Filter Setup".Accepted CAN messages will be output in ASCII format as followed:ID space Data space Length CRspace = $20 (Space "_") CR = $ 0D (Enter "")With the converter setting:CAN-Identifier = 1F000000 (29 Bit CAN-Identifier)CAN-Acceptance-Code = 00000000 (0 receives all CAN-Frames)CAN-Acceptance-Mask = FFFFFFFF (F receives all CAN-Frames)the following data is output on the USB side: (11 and 29 bit message)PC OutputMeaning7E8_0001020304_05 CAN ID 7E8 Data 00 01 02 03 04 Data Length 57E8_0 CAN ID 7E8 no Data Data Length 07E8_01_01 CAN ID 7E8 Data 01 Data Length 11FFFFFFF_010203_03 CAN ID 1FFFFFFF Data 0102030 Data Length 310001234_0102_02 CAN ID 10001234 Data 01020 Data Length 2With the setting:CAN-Identifier = 1FF (11 Bit CAN-Identifier)CAN-Acceptance-Code = 00000000 (0 receives all CAN-Frames)CAN-Acceptance-Mask = FFFFFFFF (F receives all CAN-Frames)the following data is output: (only 11 bit CAN messages)PC OutputMeaning7E8_0001020304_05 CAN ID 7E8 Data 00 01 02 03 04 Data Length 57E8_0 CAN ID 7E8 no Data Data Length 07E8_01_01 CAN ID 7E8 Data 01 Data Length 15.2.1 Receive ErrorError LED (Buffer Overflow LED) lights up, if data is sent to fast from the PC to the converter.Buffer Overflow can be recognized by "E" (Enter "E" Enter)."E" is send from converter to PC.At full CAN bus utilization can rarely cause errors (at 1 Mbps 100% bus utilization).To recognize this is the fact that the messages are not received in full.z.B.7E8_000102 CAN ID 7E8 Data 00 01 02 ? Data Length?7E8_01 CAN ID 7E8 Data 01 ? Data Length?

6 Converter ASCII Commands(CR)=Enter (Dez=13, Hex=0D)Es können Klein- und Großbuchstaben verwendet werden.BefehlFunktionS S Setup-Mode activationPCP0(CR)P1(CR)C0(CR)C1(CR)C2(CR)C3(CR)C4(CR)C5(CR)C6(CR)C7(CR)C8(CR)C9(CR)CA(CR)CB(CR)CC(CR)CD(CR)CE(CR)CF(CR)Is possible only after power up in the first 5 seconds! In setup mode,settings for the CAN side can be made and stored.Shows settings stored in converter RAM – changes have to be savedby "E" xitShow default settings.Response: “Settings: List(CR)OK(CR)“ or “ERROR(CR)“e.g.C CAN-Bitrate : 5L CAN-Mode : 0I CAN-Identifier : 10000000A CAN-Acceptance-Code : 00000100M CAN-Acceptance-Mask : 00000000R Baudrate : 3Identifier Length : 29Acc. Code Length : 32Acc. Mask Length : 32OK10 kbps CAN Bitrate20 kbps CAN Bitrate25 kbps CAN Bitrate50 kbps CAN Bitrate62,5 kb CAN Bitrate100 kbps CAN Bitrate125 kbps CAN Bitrate128,2 kb CAN Bitrate192 kbps CAN Bitrate250 kbps CAN Bitrate500 kbps CAN Bitrate800 kbps CAN Bitrate1.0 Mbps CAN Bitrate Other baud rates available on requestAutobaud – automatic baudrate DetectionAutobaud – automatic baudrate DetectionAutobaud – automatic baudrate DetectionResponse: “Settings: List(CR)OK(CR)“ or “ERROR(CR)“

6 Converter ASCII Commands(CR)=Enter (Dez=13, Hex=0D)Es können Klein- und Großbuchstaben verwendet werden.BefehlFunktionS S Setup-Mode activationPCP0(CR)P1(CR)C0(CR)C1(CR)C2(CR)C3(CR)C4(CR)C5(CR)C6(CR)C7(CR)C8(CR)C9(CR)CA(CR)CB(CR)CC(CR)CD(CR)CE(CR)CF(CR)Is possible only after power up in the first 5 seconds! In setup mode,settings for the CAN side <strong>can</strong> be made and stored.Shows settings stored in converter RAM – changes have to be savedby "E" xitShow default settings.Response: “Settings: List(CR)OK(CR)“ or “ERROR(CR)“e.g.C CAN-Bitrate : 5L CAN-Mode : 0I CAN-Identifier : 10000000A CAN-Acceptance-Code : 00000100M CAN-Acceptance-Mask : 00000000R Baudrate : 3Identifier L<strong>eng</strong>th : 29Acc. Code L<strong>eng</strong>th : 32Acc. Mask L<strong>eng</strong>th : 32OK10 kbps CAN Bitrate20 kbps CAN Bitrate25 kbps CAN Bitrate50 kbps CAN Bitrate62,5 kb CAN Bitrate100 kbps CAN Bitrate125 kbps CAN Bitrate128,2 kb CAN Bitrate192 kbps CAN Bitrate250 kbps CAN Bitrate500 kbps CAN Bitrate800 kbps CAN Bitrate1.0 Mbps CAN Bitrate Other baud rates available on requestAutobaud – automatic baudrate DetectionAutobaud – automatic baudrate DetectionAutobaud – automatic baudrate DetectionResponse: “Settings: List(CR)OK(CR)“ or “ERROR(CR)“

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!