1 Reply Latest reply on Oct 11, 2017 9:27 AM by Benedikt Lammert

    Split and extract HexaFrame?

    Benedikt Lammert

      Hi,

       

      my english ain't the best, please bear with me.

       

      I've got frame packets looking like this:

      Pos.     1   2   3   4   5   6    7   8

                 84 B2 00 24 00 07 00 02

                 83 70 00 00 00 48 03 1C

                 86 50 00 CE 09 EA 09 00

       

      How is it possible to create a calculation saying that i only get the packet beginning with 83 or 84?

      after getting the packet with the needed beginning i want to extract datapair 6,7 from packet 83 oder datapair 4,5 from packet 84?

       

      regards

       

      benedikt

       

       

      edit/

      ah, what a simple solution.

      IF STARTSWITH([CAN Frame - Teilen 5],"83") THEN

      MID([CAN Frame - Teilen 5],16,5) END

      the problem now is that i do not know how to combine a datapair from both frames (83 and 84).

       

      IF STARTSWITH([CAN Frame - Teilen 5],"83") THEN
      MID([CAN Frame - Teilen 5],22,2)
      ELSEIF STARTSWITH([CAN Frame - Teilen 5], "84") THEN
      MID([CAN Frame - Teilen 5],7,2)
      END

      is only showing one data but it does not combine both.