0% found this document useful (0 votes)
48 views3 pages

CAPL

Uploaded by

Devanand0206
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views3 pages

CAPL

Uploaded by

Devanand0206
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

/*@!

Encoding:1252*/
includes
{
#include "TCs_Primary_DTCs\0x7E00B5_Initial_calibration_not_finished_2.cin"
#include "TCs_Primary_DTCs\0x7E00C4_Misalignment.cin"
#include "TCs_Primary_DTCs\0x7E06B4_Update_Error.cin"
#include "TCs_Primary_DTCs\0x7E02B5_Powermanagement_Degrad.cin"
#include "TCs_Primary_DTCs\0xEF4700_Timebase_unsync.cin"
#include "TCs_Primary_DTCs\0x7F9985_ASIL_Coding.cin"
#include "TCs_Primary_DTCs\0x7E00BF_TC_Error.cin"
#include "TCs_Primary_DTCs\0x7E00BA_OC_Error.cin"
#include "TCs_Primary_DTCs\0x7E03AD_Serdes_Link.cin"
#include "TCs_Primary_DTCs\0x7E03B2_Serdes_Trans.cin"
#include "TCs_Primary_DTCs\0xEF4603_Ethernet_Link_Reset.cin"
#include "TCs_Primary_DTCs\0x7F9984_Temporary_SW_Error.cin"
#include "TCs_Primary_DTCs\0x7F9985_Internal_CM_Error.cin"
#include "TCs_Primary_DTCs\0x7E05AC_Overtemperature.cin"
#include "TCs_Primary_DTCs\0x7E05A7_Undertemperature.cin"
#include "TCs_Primary_DTCs\0x7E028E_Broken_Circut.cin"
#include "TCs_Primary_DTCs\0x7E0293_Short_Circut.cin"
#include "TCs_Primary_DTCs\0x7E058B_OM_Hardware_Error.cin"
#include "TCs_Primary_DTCs\0x7E059B_OM_Software_Error.cin"
#include "TCs_Primary_DTCs\0x7E019E_Permanent_Blockage.cin"
#include "TCs_Primary_DTCs\0x7E01E0_Temporary_Blockage.cin"
#include "TCs_Primary_DTCs\0x029972_IPSEC_ERROR.cin"
#include "TCs_Primary_DTCs\0xEF4602_Link_Quality.cin"
#include "TCs_Primary_DTCs\0x029992_Integrity_Check.cin"
#include "TCs_Primary_DTCs\0x7E03CD_Serdes_Line_Fault.cin"
#include "TCs_Primary_DTCs\0x7E0480_Incomp_OM_SW.cin"
#include "TCs_Primary_DTCs\0x7E0695_OM_Dummy.cin"
#include "TCs_Primary_DTCs\0x7E04A5_Appl_Data_Error.cin"
#include "TCs_Primary_DTCs\0x7F9980_OverTemp.cin"
#include "TCs_Primary_DTCs\0x7F9981_UnderTemp.cin"
#include "TCs_Primary_DTCs\0x7E06B2_Enable_Line.cin"
#include "TCs_Primary_DTCs\0x029982_SFA_Token_failed.cin"
#include "TCs_Primary_DTCs\0x029983_SFA_Token_Unchecked_Or_Running.cin"

#include "Lidar_include\Diag_include.cin"
#include "Lidar_include\Check_FFDs.cin"
#include "Lidar_include\Lidar_Pre_Post_Condition.cin"
#include "Lidar_include\XCP_include.cin"
#include "Lidar_include\XCP_variables.cin"
}

variables
{
int pause_relais = 2000;
const dword pause_OM_start = 30000; // CM + OM start
const dword pause_CM_start = 5000; // CM start
const int pause_power_supply = 2000;
int pause_read_DTC = 1000;
const int wait_for_DEM = 3000;
const int wait_for_CVApp_Trigger = 3000;
const int wait_for_tech_start = 1000;
const int wait_for_debug_tech_start = 7000;
const int wait_for_blockage = 3500;
const int wait_for_HAF = 5000;
const int wait_for_replace = 11000;
const int wait_after_clear_fault_memory = 1500;
const dword pause_Voltge_DTC = 12000;
int DTC_active_byte = 5;
int pause_double_relais = 10;
int OM_Temperatures_internal[6];
int OM_Window_Temp[1];
int64 OM_Heating_Time[1];
byte raw_buffer_multiple[300];
dword setMSGHandle;
}

testcase init_relays()
{
// Initialization of Relays
@MEnV_Port_SET_INT_50 = 3; // COM 2
testWaitForTimeout(5);
@MEnV_BitPerSecondsPort_SET_INT_50 = 19200;
testWaitForTimeout(pause_relais);
@MEnV_Init_SET_INT_50 = 1; // Init Relay
testWaitForTimeout(pause_relais);
@MEnV_Init_SET_INT_50 = 0; // Init Relay

@MEnV_Relais1_SET_INT_50 = 0;
testWaitForTimeout(pause_double_relais);
@MEnV_Relais4_SET_INT_50 = 0;
testWaitForTimeout(1000);

@MEnV_Relais1_SET_INT_50 = 1;
testWaitForTimeout(pause_double_relais);
@MEnV_Relais4_SET_INT_50 = 1;
testWaitForTimeout(1000);

@MEnV_Relais1_SET_INT_50 = 0;
testWaitForTimeout(pause_double_relais);
@MEnV_Relais4_SET_INT_50 = 0;
testWaitForTimeout(1000);

@MEnv_ContrErrMemBordnetVoltage_GET_INT_1 = 5;
@MEnv_ContrErrMemBordnetVoltage_SET_INT_1 = 5;
}

testcase desubscricbe_object_detection()
{
@MEnV_DesubscribeRecogLidarDetectionList_SET_INT_2 = 1;
@MEnV_DesubscribeRecogLidarObjectlist_SET_INT_2 = 1;
}

testcase uncover_OM()
{
sysExecCmd("Uncover_OM.py && exit", "", "C:\\Canoe\\Nodes\\Blockage_Device");
testWaitForTimeout(wait_for_blockage);
}

testcase power_off_relays()
{
@MEnV_Relais1_SET_INT_50 = 1;
testWaitForTimeout(pause_double_relais);
@MEnV_Relais4_SET_INT_50 = 1;
testWaitForTimeout(1000);
}
/*
void MainTest ()
{
init_relays();
}
*/

You might also like