5 — VEHICLE CONTROL LANGUAGE (VCL)
pg. 93
Return to TOC Curtis Model 1351 – December 2018
Variable = Get_SDO_Data() Pull the data from the request receive buer
Get_SDO_Data(Reception_ID)
:
Reception_ID Specify the buer handle provided by the request
function
:
Returns a single 32 bit value and removes the
message for the buffer
:
Code Example
If (SDO_Send_State = 0) ; check if SDO_Send_State = 0, request if only = 0
{
Request_Switches_ID = Request_SDO_Read (Port_1,38,3226,00,60)
;Read request handle = Request_Switches_ID
;port_1 = CAN1
;Slave Node ID = 38d, 0x26h
;Switches variable = 0x3226 0x00.
;See E/SE series Sys Info.
;e.g., slave is an E/SE series controller
;60 millisecond timeout
SDO_Send_State = 1 ;reset SDO_Send_State = 1
}
Else
If((Check_SDO_Read(Request_Switches_ID) = 1)
{
Get_SDO_Data(Request_Switches_ID) ;get the Switches data
SDO_Send_State = 0 ;reset SDO_Send_State = 0
} ;to allow re-entry when
;message data is removed from
;the buffer.