Unsafe_SDG_Sender (FB)

FUNCTION_BLOCK Unsafe_SDG_Sender

J1939-76 Safety SDG sender.

Unsafe_SDG_Sender does send J1939-76 SDG data (SHM and SDM) produced by a J1939SafetySafe.Safe_SDG_Producer via CAN driver.

Basics and data flow

For an overview of general data flow see the J1939SafetySafe library main documentation and the J1939 Safety example.project function block J1939_example_CFC.

InOut:

Scope

Name

Type

Initial

Comment

Input

xEnable

BOOL

TRUE

Enable the sender.

itfCL2Driver

ICL2Driver

CAN driver to use.

SDGS

J1939SafetyItf.SAFETY_DATA_GROUP_SAFE

SDGS data to be send.

Output

xBusy

BOOL

FALSE

In operation.

xError

BOOL

FALSE

Error occured.

eErrorID

ERROR

ERROR.NO_ERROR

Error status.

udiSHMcnt

UDINT

0

number of sent SHM

udiSDMcnt

UDINT

0

number of sent SDM

udiSDGcnt

UDINT

0

number of sent SDG

udiLossCnt

UDINT

0

number of lost SDG

udiSndErrCnt

UDINT

0

number of SDG send errors