Parameters
Learn how the function block uses parameters to customize the function.
To avoid compiler errors, use only the data types specified in this table.
Parameter Type Range Unit Description
CRC_LUT ARRAY[256]U16
—— ——
CRC 16 used by the PVED-CLS messages.
Polynomial: 0xC86C
PGN_Offset U8 0 to 255 —— PGN offset used for the message.
Primary Default: 16
Redundant Default: 17
Src_Addr U8 0 to 253 ——
Source address used by the message.
Default: 77
Tx_Rate U16 2*Loop_Tm to
65535
ms
How often the message is sent.
Default: 50
IsRedundant BOOL T/F —— Indicates if the message is redundant.
T: Message is redundant.
F: Message is primary.
Outputs
Learn how the outputs of the function block work.
Parameter Type Range Unit Description
OR BOOL T/F —— CAN Tx OverRun flag.
T: A new request to send a message is made before the last one is sent.
F: No overrun condition.
Pend BOOL T/F —— CAN Tx Pending flag.
T: The last message requested is waiting to be transmitted on the bus.
F: No message is waiting to be sent.
Diag
Bus —— —— This bus provides diagnostic values for troubleshooting. In addition, all
inputs, parameters, and output signals are contained inside of the bus.
Status
U16 0, 0x8008 ——
This signal indicates if a parameter fault is declared. It is a bitwise code, so
multiple items can be reported at a time. The following status codes are
provided:
0x0000: No fault.
0x8008: At least one parameter is out of range.
Fault U16 0, 0x8001,
0x8002
——
This signal indicates if an input fault is declared. It is a bitwise code, so
multiple items can be reported at a time. The following fault codes are
provided:
0x0000: No fault.
0x8001: An input value is too low.
0x8002: An input value is too high.
Status Logic
This topic describes how status logic is indicated for the function block.
The status code indicates whether the parameters used in the function are within their valid range.
Condition Hex Binary Cause Response Correction
Invalid setup. 0x8008
*
1000
At least one parameter is out
of range.
Message transmission is
disabled.
Correct the out of range
parameters.
*
Position of set bit in a 16 bit fault or status code. Bit 1 is the least significant bit. Bit 16 set to 1 indicates a standard Danfoss status code or fault code.
User Manual
PLUS+1® Compliant PVED_CLS_STW Function Block
PVED_CLS_STW Function Block
©
Danfoss | November 2018 AQ00000270en-000101 | 7