UMAX140610. LIN
– J1939 CAN Protocol Converter with PWM Output. Version 1
Page: 22-81
Name
Default
Value
Range
Units
Description
Init Value Byte
Array [0]
0
[0…0xFF]
–
Initial signal value of the
1-st byte when LIN Signal
Type is
“Byte Array”.
Init Value Byte
Array [1]
0
[0…0xFF]
–
Initial signal value of the
2-nd byte when LIN
Signal Type is
“Byte
Array”.
…
…
…
…
…
Init Value Byte
Array [7]
0
[0…0xFF]
–
Initial signal value of the
8-th byte when LIN Signal
Type is
“Byte Array”.
Encoding Type
configuration parameter defines the function block signal input and output type
the following way:
Table 15. LIN Signal Encoding Type
Encoding Type
Function Block Signal Type
Undefined
Undefined
Logical Value
Discrete
Physical Value
Continuous
BCD Value
Discrete
ASCII Value
Discrete
3.3.2.1 Receiving LIN Signals
When the
LIN Signal
function block receives signals from the LIN bus, they are converted to
the function block output signal the following way:
•
Logical signals are received only when they are within the [
MinValue; MaxValue
] range. No
conversion is performed;
•
BCD signals are received unconditionally. No conversion is performed;
•
ASCII signals are masked with 0xFF value. This way, only the least significant byte of the
input signal is received and passed to the output;
•
Physical signals are received only when they are within the [
MinValue; MaxValue
] range.
They are then converted to the output signal value using
Scale
and
Offset
configuration
parameters:
𝐿𝐼𝑁𝑂𝑢𝑡𝑝𝑢𝑡𝑆𝑖𝑔𝑛𝑎𝑙 = 𝐿𝐼𝑁𝑆𝑖𝑔𝑛𝑎𝑙𝐶𝑜𝑑𝑒 ∗ 𝑆𝑐𝑎𝑙𝑒 + 𝑂𝑓𝑓𝑠𝑒𝑡,
𝑖𝑓
(1)
𝐿𝐼𝑁𝑆𝑖𝑔𝑛𝑎𝑙𝐶𝑜𝑑𝑒 𝜖 [𝑀𝑖𝑛𝑉𝑎𝑙𝑢𝑒; 𝑀𝑎𝑥𝑉𝑎𝑙𝑢𝑒].
If the output signal is not updated within the
Output Signal Autoreset Time
, the output signal
will be reset to undefined. The auto-reset is disabled when the
Output Signal Autoreset Time
configuration parameter is equal to 0.
The initial value of the
LIN Signal
function block output signal is undefined.
3.3.2.2 Transmitting LIN Signals
When the
LIN Signal
function block transmits signals on the LIN bus, the signal data are
acquired from the function block signal input and processed, before transmission, in a way
similar to the incoming LIN signals: