[r24]: / ecu_at135_v1d_aladdin / StandardPLC / Plc Logic / Application / 001.Global_Box / Outputs / Fct_signalisation / svnobj  Maximize  Restore  History

Download this file

65 lines (62 with data), 9.7 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
58
59
60
61
62
63
64
	*---------------            		Boite de structure de sorties pilotage de la signalisation v
hicule    		------------------
	*
	*	xOut_xxxxxx:		Pilotage de la sortie - Bool
en 
 activer			
	*	xError_xxxxxx:		Erreur sur le pont de sortie	
	*	xxxxxxx_outstate:	Etat actuel/re
el de la sortie	
	*	uiXxxxxx_volt:		Tension actuelle de la sortie	
	*	uiXxxxxx_current:	Intensit
 actuelle de la sortie	
	---------------------------------------------------------------------------------------------------------------------------------*)
TYPE Fct_signalisation :
	
	STRUCT
		xReset_error_signalisation:	BOOL;
		
		(* Feux de signalisation *)	
		xOut_backlight:				BOOL; // Feux de recul
		xError_backlight:			BOOL;
		xBacklight_outstate:		BOOL;
		uiBacklight_volt:			UINT;
		uiBacklight_current:		UINT;
		uiBacklight_channel:		UINT	:= 0005;
		xOut_stoplight:				BOOL; // Feux de stop
		xError_stoplight:			BOOL;
		xStoplight_outstate:		BOOL;
		uiStoplight_volt:			UINT;
		uiStoplight_current:		UINT;
		uiStoplight_channel:		UINT	:= 0006;
		(* Signalisation sonore  *)
		xOut_klax_car:				BOOL; // Avert. Sonore - Modele Automobile
		xError_klax_car:			BOOL;
		xKlax_car_outstate:			BOOL;
		uiKlax_car_volt:			UINT;
		uiKlax_car_current:			UINT;
		uiKlax_car_channel:			UINT	:= 0008;
		(* Feux de signalisation *)
		xOut_right_blink:			BOOL; // Clignotant droit
		xError_right_blink:			BOOL;
		xRight_blink_outstate:		BOOL;
		uiRight_blink_volt:			UINT;
		uiRight_blink_current:		UINT;
		uiRight_blink_channel:		UINT	:= 0100;
		xOut_left_blink:			BOOL; // Clignotant gauche
		xError_left_blink:			BOOL;
		xleft_blink_outstate:		BOOL;
		uiLeft_blink_volt:			UINT;
		uiLeft_blink_current:		UINT;
		uiLeft_blink_channel:		UINT	:= 0101;
		(* Verrine Lumineuse *)
		xOut_greenlight:			BOOL; // Colonne Lumineuse  - Vert
		xError_greenlight:			BOOL;
		uiGreenlight_channel:		UINT	:= 0102;
		xOut_yellowlight:			BOOL; // Colonne Lumineuse  - Jaune
		xError_yellowlight:			BOOL;
		uiYellowlight_channel:		UINT	:= 0103;
		xOut_redlight:				BOOL; // Colonne Lumineuse  - Rouge
		xError_redlight:			BOOL;
		uiRedlight_channel:			UINT	:= 0104;
		xOut_rooflight_green:		BOOL; // Feux de toit - Vert (vitesse normale)
		xError_rooflight_green:		BOOL;
		uiRooflight_green_channel:	UINT	:= 0002;