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
xEnableBOOLTRUE
Enable the sender.
itfCL2DriverICL2DriverCAN driver to use.
SDGSJ1939SafetyItf.SAFETY_DATA_GROUP_SAFESDGS data to be send.
Output
xBusyBOOLFALSE
In operation.
xErrorBOOLFALSE
Error occured.
eErrorIDERROR.NO_ERROR
Error status.
udiSHMcntUDINT0
number of sent SHM
udiSDMcntUDINT0
number of sent SDM
udiSDGcntUDINT0
number of sent SDG
udiLossCntUDINT0
number of lost SDG
udiSndErrCntUDINT0
number of SDG send errors