[r21]: / ecu_at135_v1c_aladdin / StandardPLC / Plc Logic / Application / 003a.Gestion_Modes_de_Marche / GEMMA / svnobj  Maximize  Restore  History

Download this file

58 lines (56 with data), 11.4 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
PROGRAM GEMMA
VAR
	Blink_step_start:						BLINK;
	Count_step:								CTU;
	Time_start:								TON;
	Trigger_choix_type_conduite_autonom:	R_TRIG;
	Trigger_choix_type_conduite_manuel:		R_TRIG;
	Set_reset_autonom :						SR;
	Set_reset_manuel: 						SR;
	
	Condition_init:					BOOL;
	Set_start:						BOOL;
	Step_check:						BOOL;
	Start_sequence_working:			BOOL;
	Standby:						BOOL;
	Ignition_seq_done:				BOOL;
    xSystem_ready:					BOOL;
	Reset_outputs_group:			BOOL;
	Reset_outputs:					BOOL;
	State_group_output:				BOOL;
	Start_ignition_virtual_driver:	BOOL;
	Vehicle_charging:				BOOL;
	Timer_ignition_virtual_driver:	TON;
	Write_tag_PC1: INT;
END_VAR
IF ( Global_tags.structDigitalInputs.xSw_Estop_chan1 = FALSE OR Global_tags.structDigitalInputs.xSw_Estop_chan2 = FALSE) THEN
		Global_tags.Estop := TRUE;
		Tag_shared_to_CR1083.Shared_var_cr1083_Arret_urgence := TRUE;
//Monitoring entr
e digitale Arr
t urgence - NON ENCLENCHE - REARMEMENT
IF ( Global_tags.structDigitalInputs.xSw_Estop_chan1 = TRUE AND Global_tags.structDigitalInputs.xSw_Estop_chan2 = TRUE AND Ignition_seq_done = FALSE) THEN 
Fonction: Ecriture des variables sur le r
seau UDP pour afficheur
Date Cr
ation: 10/04/2019
Write_tag_UDP();
Fonction: Ecriture des variables vers virtual driver
Write_tag_CAN_PC1();
Fonction: Nettoyage des d
fauts sur le wrapper des sorties et init/reinit du v
hicule
Start_vehicle_seq();
Fonction: Choix du mode manuel ou autonome - Selecteur 3 position Rappel au centre 
Set_mode_marche();
Fonction: Bit de validation - Syst
me pr
t
System_Ready();
Fonction: Input pour d
sactivation du mode autonome
Reset_Autonom();
Fonction: Set Mode - V
hicule en charge
Date Cr
ation: 09/05/2019
	Global_tags.Mode_conduite := Global_tags.StructVehicle_mode.Charging;