5 — VEHICLE CONTROL LANGUAGE (VCL)
pg. 87
Return to TOC Curtis Model 1351 – December 2018
Rate = Get_Heartbeat_Time() If the heartbeat has not been lost, this
function will return the time between the last two heartbeats.
Get_Heartbeat_Time(Port, Node_ID)
:
Port_1 = CAN1 e primary CAN port, pins 3 & 4
Port_2 = CAN2 e secondary CAN port, pins 5 & 6
Node_ID e Slave Node ID
: If the heartbeat has never been detected (or two heartbeats have
not yet been received) the function will return 0, if the heartbeat
time is over the set timeout parameter for that node ID, the
function will return the time since last heartbeat, otherwise
(the normal case) it will return the time between the last two
heartbeats for that Node ID.
:
Status = Check_Heartbeat_Status() Returns the status of the heartbeat
timeout check the time between the last two heartbeats.
Check_Heartbeat_Status (Port, Node_ID)
:
Port_1 = CAN1 e primary CAN port, pins 3 & 4
Port_2 = CAN2 e secondary CAN port, pins 5 & 6
Node_ID e Slave Node ID
:
1 = faulted
0 = no fault on this Node ID.
If the GLOBAL ID is used, the function will return 1 if ANY Node is beyond
it set timeout
: