Menu

Sub-frame editing

Gianluigi Forte

Sub-frame editing

For each sub-frame is possible to define:

Sub-frame Name

sub-frame name

It is possible to customize the name of the sub-frame clicking and edit it directly.
The check-box near the name define if the sub-frame is present in the frame or not. You can exclude the sub-frame keeping it unchecked.

Sub-frame data

sub-frame data

The data of sub frame can be modified in the field highlighted in the previous figure. The representation of the data depends on the sub-frame type (see below).

Sub-frame byte number

sub-frame byte number

This field define the number of bytes of the sub-frame data.

Sub-frame type

sub-frame type

In the filed highlighted in the previous figure is possible to define the way in which the data of the frame is represented.

The following type are supported:

  • Hex (Hexadecimal)
  • Dec (Decimal)
  • Text (ASCII)
  • Enum (Enumerative type) [Sub-frame enum type]
  • Int16 LSB (16 bit signed less significant byte first)
  • Int16 MSB (16 bit signed most significant byte first)
  • UInt16 LSB (16 bit unsigned less significant byte first)
  • UInt16 MSB (16 bit unsigned most significant byte first)
  • Int32 LSB (32 bit signed less significant byte first)
  • Int32 MSB (32 bit signed most significant byte first)
  • UInt32 LSB (32 bit unsigned less significant byte first)
  • UInt32 MSB (32 bit unsigned most significant byte first)

In the table below is shown an example of how the different type represent the same data:

Type Value Hexadecimal data
Hex 41 42 41 42
Dec 65 66 41 42
Text AB 41 42
Int16 (LSB) 16961 42 41
Int16 (MSB) 16706 41 42
UInt16 (LSB) 16961 42 41
UInt16 (MSB) 16706 41 42
Int32 (LSB) 1111556096 42 41 00 00
Int32 (MSB) 16706 00 00 41 42
UInt32 (LSB) 1111556096 42 41 00 00
UInt32 (MSB) 16706 00 00 41 42

Sub-frame editing

sub-frame editing

With these buttons is possible to add new sub-frame, move selected sub-frame up (before) or down (after) in the sequence or remove it from the sequence.

Sub-frame variable

sub-frame variable

When the combo-box highlighted in the previous figure is checked the sub-frame is set to have variable data. This means that the value of the data of this sub-frame can be changed in real time. For instance if the protocol has a set register command that requires a value to be passed to the target device, it is possible to set variable the sub frame value. So the value actually sent to the target can be requested on-the-fly to the user, each time the command set register transmitted.
Different meaning is setting variable content to a receive frame. A variable content in case of receive frame means that the sub-frame value received can be any of the specified type.

[Home]


Related

Wiki: Home
Wiki: Sub-frame enum type

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.