Page 1 of 1
Instrument Panel select Signal of node with range
Posted: Wed 31. May 2023, 10:41
by bkiepke
If a symbol is defined in a symbol file as follows:
[Vert_X28_NMT_HEARTBEAT]
ID=750h-751h
DLC=1
Var=s NMTState 0,7
Var=reserved unsigned 7,1
so it does contain a range as ID, how can a signal of a specific node be selected within a intrument panel?

- PCANExplorer_InstrumentPanel_Select_Signal_of_node.png (65.16 KiB) Viewed 2549 times
Re: Instrument Panel select Signal of node with range
Posted: Wed 31. May 2023, 12:01
by PEAK-Support
If you define a Symbol like this
Code: Select all
[Vert_X28_NMT_HEARTBEAT]
ID=750h-751h
DLC=1
Var=s NMTState 0,7
Var=reserved unsigned 7,1
The Signal "s" is always the same ! If you reciece ID0x750 with valid Data, the signal "s" is set, if your receive ID0x751with valid Data the signal "s" will also be set.
See Symbol Documentation inside the PE6 Online Help.
Code: Select all
// The following symbol matches all received messages that have a
// CAN ID in the range 300h to 400h and length 5
[RcvSymbol]
ID=300h-400h
Len=5
Sig=BitfieldValue 0
Sig=MotorolaValue 16
Sig=EnumValue 32
If you want seperateted Signals, you need to define seperated Symbols.
Code: Select all
[Vert_X28_NMT_HEARTBEAT_1]
ID=750h
DLC=1
Var=s NMTState 0,7
Var=reserved unsigned 7,1
[Vert_X28_NMT_HEARTBEAT_2]
ID=751h
DLC=1
Var=s NMTState 0,7
Var=reserved unsigned 7,1