IndraLogic XLC2
IndraLogic XLC2
0110
Table of Contents
1 IndraLogicXlc2 4
1.1 Plc Logic: Logic 5
1.1.1 Application: Application 6
1.1.1.1 Folder: Data types 7
1.1.1.1.1 DUT: SchnittstelleSchebaHandbewegungSchrittkette (STRUCT) 8
1.1.1.1.2 DUT: SchnittstelleSchebaHandbewegungVCP (STRUCT) 9
1.1.1.1.3 DUT: SchnittstelleSchebaHandbewegungVCP_Meldungen (STRUCT) 10
1.1.1.1.4 DUT: SchnittstelleSchebaHandbewegungVCP_Zeile (STRUCT) 11
1.1.1.2 Folder: function_blocks 12
1.1.1.2.1 POU: FunctionModul (FB) 13
1.1.1.2.1.1 Action: act_EmergencyStop 16
1.1.1.2.1.2 Action: act_LED 17
1.1.1.2.1.3 Action: act_Monitoring 19
1.1.1.2.1.4 Action: act_OP_100_ManualMode 22
1.1.1.2.1.5 Action: act_OP_200_Referenz 24
1.1.1.2.1.6 Action: act_OP_300_Automatic 25
1.1.1.2.2 POU: SwitchingLEDs (FB) 26
1.1.1.2.3 POU: TaktSignale (FB) 27
1.1.1.3 Folder: POUs 28
1.1.1.3.1 POU: fbDurchtakten (FB) 29
1.1.1.3.2 POU: GrayCode (FUN) 30
1.1.1.3.3 POU: PlcProg (PRG) 32
1.1.1.3.4 POU: prErrorMessages (PRG) 33
1.1.1.3.5 POU: prErrorMessagesHandling (PRG) 35
1.1.1.3.6 POU: prGeneral (PRG) 37
1.1.1.3.7 POU: prHandbetrieb (PRG) 43
1.1.1.3.8 POU: prLights (PRG) 91
1.1.1.3.9 POU: prOperatingMessages (PRG) 93
1.1.1.3.10 POU: prSKAutomatik (PRG) 97
1.1.1.3.10.1 Transition: T0_AnlageInGST 102
1.1.1.3.10.2 Transition: T10_BandIstAus 103
1.1.1.3.10.3 Transition: T11_ZInAST 104
1.1.1.3.10.4 Transition: T12_SaugerIstEin 105
1.1.1.3.10.5 Transition: T13_ZIstInGST 106
1.1.1.3.10.6 Transition: T14_HP1IstInAST 107
1.1.1.3.10.7 Transition: T15_ZIstInAST 108
1.1.1.3.10.8 Transition: T16_SaugerIstAus 109
1.1.1.3.10.9 Transition: T17_ZIstInGST 110
1.1.1.3.10.10 Transition: T18_HP1InGST 111
1.1.1.3.10.11 Transition: T19_WSInLS 112
1.1.1.3.10.12 Transition: T1_WSAnLichtSchranke 113
1.1.1.3.10.13 Transition: T20_ZeitAbgelaufen 114
1.1.1.3.10.14 Transition: T21_BandIstAus 115
1.1.1.3.10.15 Transition: T22_ZInAST 116
1.1.1.3.10.16 Transition: T23_SaugerIstEin 117
1.1.1.3.10.17 Transition: T24_ZIstInGST 118
1.1.1.3.10.18 Transition: T25_HP1IstInAST 119
1.1.1.3.10.19 Transition: T26_ZInAST 120
1 1/4/2017
IndraWorks ML* 13V16.0110
2 1/4/2017
IndraWorks ML* 13V16.0110
3 1/4/2017
IndraWorks ML* 13V16.0110
1 IndraLogicXlc2
Configured properties
Name IndraLogicXlc2
Comment Station 2
Author j.koenig
Hardware IndraLogic XLC L25 (CML25.1-PN)
Firmware FWA-CML25*-XL*-13V14.3
IP address 192.168.1.20
PLC gateway localhost
4 1/4/2017
IndraWorks ML* 13V16.0110
5 1/4/2017
IndraWorks ML* 13V16.0110
6 1/4/2017
IndraWorks ML* 13V16.0110
7 1/4/2017
IndraWorks ML* 13V16.0110
1 TYPE SchnittstelleSchebaHandbewegungSchrittkette :
2 STRUCT
3 AM_GST : BOOL ;
4 AM_AUS : BOOL ;
5 AM_AST : BOOL ;
6 RM_InGST : BOOL ;
7 RM_InAST : BOOL ;
8 END_STRUCT
9 END_TYPE
10
8 1/4/2017
IndraWorks ML* 13V16.0110
1 TYPE SchnittstelleSchebaHandbewegungVCP :
2 STRUCT
3 Zeile : ARRAY [ 1 .. 6 ] OF SchnittstelleSchebaHandbewegungVCP_Zeile ;
4 TasteBildPlus : BOOL ;
5 TasteBildMinus : BOOL ;
6 Stationsnummer : INT ;
7 Bildnummer : INT ;
8 Meldung : ARRAY [ 1 .. 8 ] OF
SchnittstelleSchebaHandbewegungVCP_Meldungen ;
9 PfeilPlus : BOOL ;
10 PfeilMinus : BOOL ;
11 END_STRUCT
12 END_TYPE
13
9 1/4/2017
IndraWorks ML* 13V16.0110
1 TYPE SchnittstelleSchebaHandbewegungVCP_Meldungen :
2 STRUCT
3 InBenutzung : BOOL ;
4 Name : STRING [ 18 ] ;
5 Endlage : STRING [ 8 ] ;
6 END_STRUCT
7 END_TYPE
8
10 1/4/2017
IndraWorks ML* 13V16.0110
1 TYPE SchnittstelleSchebaHandbewegungVCP_Zeile :
2 STRUCT
3 TasterGST : BOOL ;
4 TasterAST : BOOL ;
5 BewegungGST : BOOL ;
6 BewegungAST : BOOL ;
7 Endlage_GST : BOOL ;
8 Endlage_AST : BOOL ;
9 Zusatzendlage_GST : BOOL ;
10 Zusatzendlage_AST : BOOL ;
11 Freigabe_GST : BOOL ;
12 Freigabe_AST : BOOL ;
13 FreigabeInvers_GST : BOOL ;
14 FreigabeInvers_AST : BOOL ;
15 Wert1 : REAL ;
16 Wert2 : REAL ;
17 Name_Bewegung : STRING [ 18 ] ;
18 Name_GST : STRING [ 8 ] ;
19 Name_AST : STRING [ 8 ] ;
20 Name_ZusatzGST : STRING [ 8 ] ;
21 Name_ZusatzAST : STRING [ 8 ] ;
22 Einheit_Wert1 : STRING [ 5 ] ;
23 Einheit_Wert2 : STRING [ 5 ] ;
24 Anzeige_ZusatzGST : BOOL ;
25 Anzeige_ZusatzAST : BOOL ;
26 Anzeige_Wert1 : BOOL ;
27 Anzeige_Wert2 : BOOL ;
28 Zusatzendlage_GST_Kombi : INT ;
29 Zusatzendlage_AST_Kombi : INT ;
30 END_STRUCT
31 END_TYPE
32
11 1/4/2017
IndraWorks ML* 13V16.0110
12 1/4/2017
IndraWorks ML* 13V16.0110
1 FUNCTION_BLOCK FunctionModul
2 VAR_INPUT
3
// ---------------------------------------------------------------------------------------------
4 //
5 EmergencyStopOK : BOOL ;
6
// ---------------------------------------------------------------------------------------------
7 FunctionType : UINT ;
// 1 = VALVE / VENTIL
8
// 2 = DRIVE / ANTRIEB
9
// ---------------------------------------------------------------------------------------------
10 OperationMode : UINT ;
// 100 = Manual Mode,
11
// 200 = Referenz Mode,
12
// 300 = Automatic Mode,
13
// 400 = Single Step Mode
14 //
15 // **** AUTOMATIC MODE / SINGLE STEP MODE
16 // **** AUTOMATIKBETRIEB / EINZEL-SCHRITT-BETRIEB
17 //
18 AutoSetForward : BOOL ;
19 AutoSetBackward : BOOL ;
20 //
21 // **** REFERENZ MODE
22 // **** GRUNDSTELLUNGSFAHRT
23 //
24 ReferenzSetForward : BOOL ;
25 ReferenzSetBackward : BOOL ;
26 //
27 // **** MANUAL MODE
28 // **** HANDBETRIEB
29 //
30 TypeOfManualMode : UINT ;
31 ButtonForward : BOOL ;
32 ButtonBackward : BOOL ;
33 //
34 // ****
35 // **** ANDERE EINGÄNGE
36 //
37 ResponseForward : BOOL ;
38 ResponseBackward : BOOL ;
39 //
40 // ****
41 // **** MONITORING
42 //
43 MonitoringProperty : UINT ;
44 MonitoringInput_01 : BOOL ;
// FrontSide
45 MonitoringInput_02 : BOOL ;
// BackSide
46 MonitoringTime_01 : TIME ;
// Überwachungszeit 1
47 MonitoringTime_02 : TIME ;
// Überwachungszeit 2
48 //
13 1/4/2017
IndraWorks ML* 13V16.0110
49 Reset : BOOL ;
50 //
51 FlashLightWord : WORD ;
52
// ---------------------------------------------------------------------------------------------
53 END_VAR
54 VAR_OUTPUT
55
// ---------------------------------------------------------------------------------------------
56 //
57 // **** DIGITAL OUTPUT "VENTIL"
58 // **** DIGITAL AUSGANG "VENTIL"
59 //
60 Forward : BOOL ;
61 Backward : BOOL ;
62 //
63 // **** DIGITAL OUTPUT "LED"
64 // **** DIGITAL AUSGANG "LED"
65 //
66 LED_Forward : BOOL ;
67 LED_Backward : BOOL ;
68 //
69 // **** ERROR CODE
70 // **** FEHLER NUMMER
71 //
72 Error : BOOL ;
73 ErrorNo : UINT ;
74
// ---------------------------------------------------------------------------------------------
75 END_VAR
76 VAR
77
// ---------------------------------------------------------------------------------------------
78 bMemButton : BOOL ;
79 //
80 fbTimer_00 : TON ;
81 fbTimer_01 : TON ;
82 fbTimer_02 : TON ;
83 //
84 bMemFlag : BOOL ;
85 //
86
// ---------------------------------------------------------------------------------------------
87 END_VAR
88
1 // ---------------------------------------------------------------------------------------------
2 //
3 // **** EMERGENCY STOP
4 // **** NOT-HALT
5 //
6
// ---------------------------------------------------------------------------------------------
7 //
8 IF ( EmergencyStopOK = FALSE ) THEN
9 act_EmergencyStop ( ) ;
10 ELSE
11
// ---------------------------------------------------------------------------------------------
12 //
13 // **** OPERATION MODES
14 // **** BETRIEBSARTEN
14 1/4/2017
IndraWorks ML* 13V16.0110
15 //
16
// ---------------------------------------------------------------------------------------------
17 //
18 CASE OperationMode OF
19 // ---------------------------------------------------------------
20 100 : act_OP_100_ManualMode ( ) ;
21 200 : act_OP_200_Referenz ( ) ;
22 300 : act_OP_300_Automatic ( ) ;
23 400 : act_OP_300_Automatic ( ) ;
24
// ---------------------------------------------------------------
25 END_CASE
26 END_IF
27
// ---------------------------------------------------------------------------------------------
28 //
29 // **** MONITORING
30 // **** ÜBERWACHUNG
31 //
32
// ---------------------------------------------------------------------------------------------
33 //
34 act_Monitoring ( ) ;
35 //
36
// ---------------------------------------------------------------------------------------------
37 //
38 // **** MONITORING
39 // ****
40 //
41
// ---------------------------------------------------------------------------------------------
42 //
43 act_LED ( ) ;
44 //
45
// ---------------------------------------------------------------------------------------------
46
15 1/4/2017
IndraWorks ML* 13V16.0110
1 // ---------------------------------------------------------------------------------------------
2 //
3 // **** EMERGENCY STOP
4 // **** NOT-HALT
5 //
6
// ---------------------------------------------------------------------------------------------
7 //
8 CASE FunctionType OF
9
// ---------------------------------------------------------------------------------------------
10 1 : //
11 // **** VALVE / VENTIL
12 //
13 Forward := FALSE ;
14 Backward := FALSE ;
15
// ---------------------------------------------------------------------------------------------
16 2 : //
17 // **** DRIVE / ANTRIEB
18 //
19 ;
20
// ---------------------------------------------------------------------------------------------
21 END_CASE
22
16 1/4/2017
IndraWorks ML* 13V16.0110
1 // ---------------------------------------------------------------------------------------------
2 //
3 // **** CONTROLLING LED
4 // **** ANSTEUERUNG LED
5 //
6
// ---------------------------------------------------------------------------------------------
7 IF ( Error = FALSE ) THEN
8 //
9 CASE OperationMode OF
10
// -----------------------------------------------------------------------------------------
11 100 : // - MANUAL-MODE / HANDBETRIEB
12 //
13 IF ( Forward = TRUE ) THEN
14 LED_Forward := TRUE ;
15 ELSE
16 LED_Forward := FlashLightWord . 0 ;
17 END_IF
18 //
19 IF ( Backward = TRUE ) THEN
20 LED_Backward := TRUE ;
21 ELSE
22 LED_Backward := FlashLightWord . 0 ;
23 END_IF
24
// -----------------------------------------------------------------------------------------
25 200 : // - REFERENZ-MODE / GRUNDSTELLUNGSFAHRT
26 //
27 LED_Forward := ( Forward = TRUE ) ;
28 LED_Backward := ( Backward = TRUE ) ;
29
// -----------------------------------------------------------------------------------------
30 300 : // - AUTOMATIC-MODE / AUTOMATIKBETRIEB
31 //
32 LED_Forward := ( Forward = TRUE ) ;
33 LED_Backward := ( Backward = TRUE ) ;
34
// -----------------------------------------------------------------------------------------
35 400 : // - SINGLE-STEP-MODE /
36 //
37 LED_Forward := ( Forward = TRUE ) ;
38 LED_Backward := ( Backward = TRUE ) ;
39
// -----------------------------------------------------------------------------------------
40 ELSE
41 LED_Forward := FALSE ;
42 LED_Backward := FALSE ;
43
// -----------------------------------------------------------------------------------------
44 END_CASE
45
// ---------------------------------------------------------------------------------------------
46 ELSE
47 CASE ErrorNo OF
48
// ---------------------------------------------------------------------------
49 101 : LED_Forward := FlashLightWord . 1 ;
50 //
51 102 : LED_Forward := FlashLightWord . 1 ;
17 1/4/2017
IndraWorks ML* 13V16.0110
52 //
53 201 : LED_Forward := FlashLightWord . 1 ;
54 //
55 202 : LED_Forward := FlashLightWord . 1 ;
56 LED_Backward := FlashLightWord . 1 ;
57 //
58 301 : LED_Forward := FlashLightWord . 1 ;
59 END_CASE
60 END_IF
61
// ---------------------------------------------------------------------------------------------
62
63
64
65
66
67
68
69
70
71
72
73
74
18 1/4/2017
IndraWorks ML* 13V16.0110
1 // ------------------------------------------------------------------------------------------
2 //
3 // ****
4 // **** ÜBERWACHUNG "AUS"
5 //
6
// ------------------------------------------------------------------------------------------
7 IF ( MonitoringProperty <= 0 ) THEN
8 Error := FALSE ;
9 ErrorNo := 0 ;
10 //
11 RETURN ;
12 END_IF
13
// ------------------------------------------------------------------------------------------
14 //
15 // ****
16 // **** ÜBERWACHUNG WIRD EIN ZUSTAND ERREICHT
17 //
18
// ------------------------------------------------------------------------------------------
19 //
20 IF ( MonitoringTime_01 > MonitoringTime_02 ) THEN
21 fbTimer_00 . PT := MonitoringTime_01 ;
22 ELSE
23 fbTimer_00 . PT := MonitoringTime_02 ;
24 END_IF
25 //
26 fbTimer_00 (
27 IN :=
28 ( ErrorNo = 0)
29 AND ( Forward = FALSE )
30 AND ( Backward = FALSE )
31 AND ( MonitoringInput_01 = FALSE )
32 AND ( MonitoringInput_02 = FALSE )
33 AND ( MonitoringProperty >= 4),
34 PT := ,
35 Q => ,
36 ET => ) ;
37 //
38 IF ( fbTimer_00 . Q = TRUE ) THEN
39 ErrorNo := 301 ;
40 END_IF
41
// ------------------------------------------------------------------------------------------
42 //
43 // ****
44 // **** ÜBERWACHUNG BEIDE RICHTUNGEN
45 //
46
// ------------------------------------------------------------------------------------------
47 //
48 IF ( ErrorNo = 0)
49 AND ( Forward = TRUE )
50 AND ( Backward = TRUE )
51 AND ( MonitoringProperty >= 0 ) THEN
52 ErrorNo := 101 ;
53 END_IF
54
// ------------------------------------------------------------------------------------------
19 1/4/2017
IndraWorks ML* 13V16.0110
55 //
56 // ****
57 // **** ÜBERWACHUNG BEIDE ENDLAGENSCHALTER BELEGT
58 //
59
// ------------------------------------------------------------------------------------------
60 //
61 IF ( ErrorNo = 0)
62 AND ( MonitoringInput_01 = TRUE )
63 AND ( MonitoringInput_02 = TRUE )
64 AND ( MonitoringProperty >= 1 ) THEN
65 ErrorNo := 102 ;
66 END_IF
67
// ------------------------------------------------------------------------------------------
68 //
69 // ****
70 // **** ÜBERWACHUNG AUSFAHREN ZYLINDER
71 //
72
// ------------------------------------------------------------------------------------------
73 //
74 fbTimer_01 (
75 IN := ( ErrorNo = 0)
76 AND ( Forward = TRUE )
77 AND ( MonitoringInput_01 = FALSE )
78 AND ( MonitoringProperty >= 2 ) ,
79 PT := MonitoringTime_01 ,
80 Q => ,
81 ET => ) ;
82 //
83 IF ( fbTimer_01 . Q = TRUE ) THEN
84 ErrorNo := 201 ;
85 END_IF
86
// ------------------------------------------------------------------------------------------
87 //
88 // ****
89 // **** ÜBERWACHUNG EINFAHREN ZYLINDER
90 //
91
// ------------------------------------------------------------------------------------------
92 //
93 fbTimer_02 (
94 IN :=
95 ( ErrorNo = 0)
96 AND ( Backward = TRUE )
97 AND ( MonitoringInput_02 = FALSE )
98 AND ( MonitoringProperty >= 3 ) ,
99 PT := MonitoringTime_02 ,
100 Q => ,
101 ET => ) ;
102 //
103 IF ( fbTimer_02 . Q = TRUE ) THEN
104 ErrorNo := 202 ;
105 END_IF
106
// ------------------------------------------------------------------------------------------
107 //
108 // **** ERROR QUIT
109 // **** RESET BEI ERROR
110 //
111
// ------------------------------------------------------------------------------------------
20 1/4/2017
IndraWorks ML* 13V16.0110
112 //
113 IF ( Reset = TRUE )
114 AND ( bMemFlag = FALSE ) THEN
115 ErrorNo := 0 ;
116 END_IF
117 //
118 bMemFlag := Reset ;
119
// ------------------------------------------------------------------------------------------
120 Error := ( ErrorNo <> 0 ) ;
121
// ------------------------------------------------------------------------------------------
122
21 1/4/2017
IndraWorks ML* 13V16.0110
1 // ---------------------------------------------------------------------------------------------
2 //
3 // **** MANUAL MODE
4 // **** HANDBETRIEB
5 //
6
// ---------------------------------------------------------------------------------------------
7 //
8 CASE TypeOfManualMode OF
9
// ---------------------------------------------------------------------------------------------
10 1 : //
11 // **** 3/2-Wege mit Federrückstellung
12 // **** Direkt / eine Taste //
13 //
14 Forward := ButtonForward ;
15 Backward := ButtonBackward ;
16
// ---------------------------------------------------------------------------------------------
17 2 : //
18 // **** 3/2-Wege mit Federrückstellung
19 // **** speichernd / eine Taste
20 //
21 IF ( bMemButton = FALSE )
22 AND ( ButtonForward = TRUE ) THEN
23 Forward := NOT ResponseForward ;
24 Backward := NOT Forward ;
25 END_IF
26 bMemButton := ButtonForward ;
27
// ---------------------------------------------------------------------------------------------
28 11 : //
29 // **** 5/2-Wege
30 // **** Direkt
31 //
32 Forward := ( ButtonForward = TRUE ) AND ( ButtonBackward =
FALSE ) ;
33 Backward := ( ButtonForward = FALSE ) AND ( ButtonBackward =
TRUE ) ;
34
// ---------------------------------------------------------------------------------------------
35 12 : //
36 // **** 5/2-Wege
37 // **** speichernd eine Taste
38 //
39 IF ( ButtonForward = TRUE )
40 AND ( bMemButton = FALSE ) THEN
41 Forward := NOT ResponseForward ;
42 Backward := NOT Forward ;
43 END_IF
44 bMemButton := ButtonForward ;
45
// ---------------------------------------------------------------------------------------------
46 13 : //
47 // **** 5/2-Wege
48 // **** speichernd zwei Tasten
49 //
50 IF ( ButtonForward = TRUE )
51 AND ( ButtonBackward = FALSE ) THEN
52 Forward := TRUE ;
22 1/4/2017
IndraWorks ML* 13V16.0110
53 Backward := FALSE ;
54 //
55 ELSIF ( ButtonForward = FALSE )
56 AND ( ButtonBackward = TRUE ) THEN
57 Forward := FALSE ;
58 Backward := TRUE ;
59 END_IF
60
// ---------------------------------------------------------------------------------------------
61 21 : //
62 // ****
63 // ****
64 //
65 IF ( bMemButton = FALSE )
66 AND ( ButtonForward = TRUE )
67 AND ( ButtonBackward = FALSE ) THEN
68 Forward := NOT ResponseForward ;
69 Backward := FALSE ;
70 //
71 ELSIF ( bMemButton = FALSE )
72 AND ( ButtonForward = TRUE )
73 AND ( ButtonBackward = FALSE ) THEN
74 Forward := FALSE ;
75 Backward := NOT ResponseBackward ;
76 END_IF
77 bMemButton := ButtonForward OR ButtonBackward ;
78
// ---------------------------------------------------------------------------------------------
79 ELSE //
80 // ****
81 // **** WENN KEIN GÜLTIGER TYPE GEFUNDEN
82 //
83 Forward := FALSE ;
84 Backward := FALSE ;
85
// ---------------------------------------------------------------------------------------------
86 END_CASE
87
23 1/4/2017
IndraWorks ML* 13V16.0110
1 // ---------------------------------------------------------------------------------------------
2 //
3 // **** REFERENZ MODE
4 // **** GRUNDSTELLUNGSFAHRT
5 //
6
// ---------------------------------------------------------------------------------------------
7 //
8 CASE FunctionType OF
9
// ---------------------------------------------------------------------------------------------
10 1 : //
11 // **** VALVE / VENTIL
12 //
13 IF ( ReferenzSetForward = TRUE )
14 AND ( ReferenzSetBackward = FALSE ) THEN
15 Forward := TRUE ;
16 Backward := FALSE ;
17 END_IF
18 //
19 IF ( ReferenzSetForward = FALSE )
20 AND ( ReferenzSetBackward = TRUE ) THEN
21 Forward := FALSE ;
22 Backward := TRUE ;
23 END_IF
24
// ---------------------------------------------------------------------------------------------
25 2 : //
26 // **** DRIVE / ANTRIEB
27 //
28 IF ( AutoSetForward = FALSE )
29 AND ( AutoSetBackward = FALSE ) THEN
30 Forward := FALSE ;
31 Backward := FALSE ;
32 END_IF
33
// ---------------------------------------------------------------------------------------------
34 END_CASE
35
36
24 1/4/2017
IndraWorks ML* 13V16.0110
1 // ---------------------------------------------------------------------------------------------
2 //
3 // **** AUTOMATIC MODE / SINGLE STEP MODE
4 // **** AUTOMATIKBETRIEB / EINZEL-SCHRITT-BETRIEB
5 //
6
// ---------------------------------------------------------------------------------------------
7 //
8 CASE FunctionType OF
9
// ---------------------------------------------------------------------------------------------
10 1 : //
11 // **** VALVE / VENTIL
12 //
13 // FORWARD / VORWÄRTS
14 IF ( AutoSetForward = TRUE )
15 AND ( AutoSetBackward = FALSE )
16 AND ( ResponseForward = FALSE ) THEN
17 Forward := TRUE ;
18 Backward := FALSE ;
19 END_IF
20 //
21 // BACKWARD / RÜCKWÄRTS
22 IF ( AutoSetForward = FALSE )
23 AND ( AutoSetBackward = TRUE )
24 AND ( ResponseBackward = FALSE ) THEN
25 Forward := FALSE ;
26 Backward := TRUE ;
27 END_IF
28
// ---------------------------------------------------------------------------------------------
29 2 : //
30 // **** DRIVE / ANTRIEB
31 //
32 // FORWARD / VORWÄRTS
33 IF ( AutoSetForward = TRUE )
34 AND ( AutoSetBackward = FALSE ) THEN
35 Forward := TRUE ;
36 Backward := FALSE ;
37 END_IF
38 //
39 // BACKWARD / RÜCKWÄRTS
40 IF ( AutoSetForward = FALSE )
41 AND ( AutoSetBackward = TRUE ) THEN
42 Forward := FALSE ;
43 Backward := TRUE ;
44 END_IF
45 // STOP
46 IF ( AutoSetForward = FALSE )
47 AND ( AutoSetBackward = FALSE ) THEN
48 Forward := FALSE ;
49 Backward := FALSE ;
50 END_IF
51
// ---------------------------------------------------------------------------------------------
52 END_CASE
53
25 1/4/2017
IndraWorks ML* 13V16.0110
1 FUNCTION_BLOCK SwitchingLEDs
2
// ------------------------------------------------------------------------------------------
3 // AUTOR: DC-IA / STS 11 - Holger Raquet
4 // data: 08.07.2015
5 // changes:
6 //
7
// ------------------------------------------------------------------------------------------
8 VAR_INPUT
9 Enable : BOOL ;
// LED, FALSE = AUS
10 Activ : BOOL ;
// LED, BLINKT FREQUENZ 1
11 Error : BOOL ;
// LED, BLINKT FREQUENZ 2
12 FlashLightWord : WORD ;
13 END_VAR
14
// ------------------------------------------------------------------------------------------
15 VAR_OUTPUT
16 LED : BOOL ;
17 END_VAR
18
// ------------------------------------------------------------------------------------------
19 VAR
20 END_VAR
21
// ------------------------------------------------------------------------------------------
22
1 // ---------------------------------------------------------------------------------------------
2 //
3 // ****
4 // ****
5 //
6
// ---------------------------------------------------------------------------------------------
7 //
8 IF ( Enable = FALSE ) THEN
9 LED := FALSE ;
10 ELSE
11 //
12 LED := FlashLightWord . 0 ;
13 //
14 IF ( Activ = TRUE ) THEN
15 LED := TRUE ;
16 END_IF
17 //
18 IF ( Error = TRUE ) THEN
19 LED := FlashLightWord . 1 ;
20 END_IF
21 END_IF
22
26 1/4/2017
IndraWorks ML* 13V16.0110
1 FUNCTION_BLOCK TaktSignale
2 VAR_INPUT
3 Takt_1_Zeit_Aus : TIME ;
4 Takt_1_Zeit_Ein : TIME ;
5 Takt_2_Zeit_Aus : TIME ;
6 Takt_2_Zeit_Ein : TIME ;
7 END_VAR
8 VAR_OUTPUT
9 Takt_1 : BOOL ;
10 Takt_2 : BOOL ;
11 END_VAR
12 VAR
13 fbTimerAus_1 : TON ;
14 fbTimerEin_1 : TON ;
15 //
16 fbTimerAus_2 : TON ;
17 fbTimerEin_2 : TON ;
18 END_VAR
19
1 //
2 //
3 //
4 fbTimerAus_1 (
5 IN := NOT fbTimerEin_1 . Q ,
6 PT := Takt_1_Zeit_Aus ,
7 Q => ,
8 ET => );
9
10 fbTimerEin_1 (
11 IN := fbTimerAus_1 . Q ,
12 PT := Takt_1_Zeit_Ein ,
13 Q => ,
14 ET => ) ;
15 //
16 Takt_1 := fbTimerAus_1 . Q ;
17 //
18 //
19 //
20 fbTimerAus_2 (
21 IN := NOT fbTimerEin_2 . Q ,
22 PT := Takt_2_Zeit_Aus ,
23 Q => ,
24 ET => ) ;
25
26 fbTimerEin_2 (
27 IN := fbTimerAus_2 . Q ,
28 PT := Takt_2_Zeit_Ein ,
29 Q => ,
30 ET => ) ;
31 //
32 Takt_2 := fbTimerAus_2 . Q ;
33
27 1/4/2017
IndraWorks ML* 13V16.0110
28 1/4/2017
IndraWorks ML* 13V16.0110
1 FUNCTION_BLOCK fbDurchtakten
2 VAR_INPUT
3 IN : DWORD ;
4 Takt : BOOL ;
5 END_VAR
6 VAR_OUTPUT
7 OUT : INT ;
8 END_VAR
9 VAR
10 dw : DWORD ;
11 i : INT ;
12 FP_Takt : R_TRIG ;
13 END_VAR
14
15
29 1/4/2017
IndraWorks ML* 13V16.0110
0 Out
In.8 Out.8
3
XOR
In.7 Out.7
Out.8
4
XOR
In.6 Out.6
Out.7
5
XOR
In.5 Out.5
Out.6
6
XOR
In.4 Out.4
Out.5
7
XOR
In.3 Out.3
Out.4
8
XOR
In.2 Out.2
Out.3
9
XOR
In.1 Out.1
Out.2
30 1/4/2017
IndraWorks ML* 13V16.0110
10
XOR
In.0 Out.0
Out.1
11
Out GrayCode
31 1/4/2017
IndraWorks ML* 13V16.0110
1 PROGRAM PlcProg
2 VAR
3
4 END_VAR
5
1 prErrorMessages ( ) ;
2 prErrorMessagesHandling ( ) ;
3 prOperatingMessages ( ) ;
4 prGeneral ( ) ;
5 prZweiHand ( ) ;
6 prHandbetrieb ( ) ;
7 prLights ( ) ;
8 (*ProfibusDiag(); abgeklemmt falls VAM nicht vorhanden*)
9
10
32 1/4/2017
IndraWorks ML* 13V16.0110
1 PROGRAM prErrorMessages
2 VAR
3 iProfibusDiag : fbProfibusDiag ;
4 TON_HS : TON ;
5 //iILDPMasterState: IL_DPMasterState;
6 //iDPReadDiag: IL_DPReadDiag;
7 BusError : BOOL ;
8 END_VAR
9
1 TON_HS iProfibusDiag
TON fbProfibusDiag 002
true IN Q Enable BusError
001
T#5s PT ET E_VAM_2S3_reset Quittieren Meldebit1
Meldebit2 EM31
Meldebit3 EM32
003
Teilnehmer1
004
Teilnehmer2
005
Teilnehmer3
2
AND
iProfibusDiag.Meldebit1 EM30
FALSE
33 1/4/2017
IndraWorks ML* 13V16.0110
002
001
BusError EM30
003
004
PBDiagFailureSlave1
005
PBDiagFailureSlave2
PBDiagFailureSlave3
34 1/4/2017
IndraWorks ML* 13V16.0110
1 PROGRAM prErrorMessagesHandling
2 VAR
3 i : INT ;
4 ErrorMessageTmp : DWORD ;
5 END_VAR
6
1 ErrorMessages . 0 := EM01 ;
2 ErrorMessages . 1 := EM02 ;
3 ErrorMessages . 2 := EM03 ;
4 ErrorMessages . 3 := EM04 ;
5 ErrorMessages . 4 := EM05 ;
6 ErrorMessages . 5 := EM06 ;
7 ErrorMessages . 6 := EM07 ;
8 ErrorMessages . 7 := EM08 ;
9 ErrorMessages . 8 := EM09 ;
10 ErrorMessages . 9 := EM10 ;
11 ErrorMessages . 10 := EM11 ;
12 ErrorMessages . 11 := EM12 ;
13 ErrorMessages . 12 := EM13 ;
14 ErrorMessages . 13 := EM14 ;
15 ErrorMessages . 14 := EM15 ;
16 ErrorMessages . 15 := EM16 ;
17 ErrorMessages . 16 := EM17 ;
18 ErrorMessages . 17 := EM18 ;
19 ErrorMessages . 18 := EM19 ;
20 ErrorMessages . 19 := EM20 ;
21 ErrorMessages . 20 := EM21 ;
22 ErrorMessages . 21 := EM22 ;
23 ErrorMessages . 22 := EM23 ;
24 ErrorMessages . 23 := EM24 ;
25 ErrorMessages . 24 := EM25 ;
26 ErrorMessages . 25 := EM26 ;
27 ErrorMessages . 26 := EM27 ;
28 ErrorMessages . 27 := EM28 ;
29 ErrorMessages . 28 := EM29 ;
30 ErrorMessages . 29 := EM30 ;
31 ErrorMessages . 30 := EM31 ;
32 ErrorMessages . 31 := EM32 ;
33 Betriebsmeldungen . 0 := OpMsg01 ;
34 Betriebsmeldungen . 1 := OpMsg02 ;
35 Betriebsmeldungen . 2 := OpMsg03 ;
36 Betriebsmeldungen . 3 := OpMsg04 ;
37 Betriebsmeldungen . 4 := OpMsg05 ;
38 Betriebsmeldungen . 5 := OpMsg06 ;
39 Betriebsmeldungen . 6 := OpMsg07 ;
40 Betriebsmeldungen . 7 := OpMsg08 ;
41 Betriebsmeldungen . 8 := OpMsg09 ;
42 Betriebsmeldungen . 9 := OpMsg10 ;
43 Betriebsmeldungen . 10 := OpMsg11 ;
44 Betriebsmeldungen . 11 := OpMsg12 ;
45 Betriebsmeldungen . 12 := OpMsg13 ;
46 Betriebsmeldungen . 13 := OpMsg14 ;
47 Betriebsmeldungen . 14 := OpMsg15 ;
48 Betriebsmeldungen . 15 := OpMsg16 ;
49 Betriebsmeldungen . 16 := OpMsg17 ;
50 Betriebsmeldungen . 17 := OpMsg18 ;
51 Betriebsmeldungen . 18 := OpMsg19 ;
52 Betriebsmeldungen . 19 := OpMsg20 ;
53 Betriebsmeldungen . 20 := OpMsg21 ;
54 Betriebsmeldungen . 21 := OpMsg22 ;
35 1/4/2017
IndraWorks ML* 13V16.0110
55 Betriebsmeldungen . 22 := OpMsg23 ;
56 Betriebsmeldungen . 23 := OpMsg24 ;
57 Betriebsmeldungen . 24 := OpMsg25 ;
58 Betriebsmeldungen . 25 := OpMsg26 ;
59 Betriebsmeldungen . 26 := OpMsg27 ;
60 Betriebsmeldungen . 27 := OpMsg28 ;
61 Betriebsmeldungen . 28 := OpMsg29 ;
62 Betriebsmeldungen . 29 := OpMsg30 ;
63 Betriebsmeldungen . 30 := OpMsg31 ;
64 Betriebsmeldungen . 31 := OpMsg32 ;
65
66 ErrorMessagesNumber := 0 ;
67 ErrorMessageTmp := ErrorMessages ;
68 FOR i := 1 TO 32 DO
69 IF ErrorMessageTmp . 0 = TRUE THEN
70 ErrorMessagesNumber := ErrorMessagesNumber + 1 ;
71 END_IF
72 ErrorMessageTmp := SHR ( ErrorMessageTmp , 1 ) ;
73 END_FOR
74
36 1/4/2017
IndraWorks ML* 13V16.0110
1 PROGRAM prGeneral
2 VAR
3 RS_Auto : RS ;
4 FT_SKauto : F_TRIG ;
5 bdummy : BOOL ;
6 xyz : BOOL ;
7 qwe : BOOL ;
8 tre : BOOL ;
9 urie : BOOL ;
10 TOF_Auto : TOF ;
11 RS_Auto_stop : RS ;
12 qwerq : BOOL ;
13 RS_Power : RS ;
14 fbReset : tp ;
15 (*ergänzt 29.01.2015*)
16 srAutomatik : sr ;
(*Automatik anwahl über VCP, falls kein VAM vorhanden ist*)
17 END_VAR
18
1
OR
E_VAM_L15 next
FALSE
2 fbReset
OR TP
E_VAM_2S3_reset IN Q A_K03_Reset
VCP_Reset t#500ms PT ET
3
AND OR
(*kein VAM vorhanden*)E_VAM_ss_position_1
E_VAM_ss_position_2
E_VAM_ss_position_3
E_VAM_ss_position_4
AND
E_VAM_pb_power_on
true
4
AND
Power_on OM_setup
SS_OM_Setup
5
EQ AND 001
ErrorMessagesNumber
0 SS_OM_automatic
Power_on
37 1/4/2017
IndraWorks ML* 13V16.0110
RS_Power
RS
SET Q1 Power_on
E_VAM_pb_power_off RESET1
001
OM_automatic
38 1/4/2017
IndraWorks ML* 13V16.0110
6
OR AND 002
E_VAM_2S2_stop
003
VCP_Stopp auto_running
OM_automatic
OR
OM_automatic
auto_running
E_VAM_2S1_start
VCP_Start
7 TOF_Auto
TOF prSKAutomatik
OM_automatic IN Q EN ENO
t#1s PT ET
AND
OM_automatic SFCInit
FT_SKauto.Q
FT_SKauto
F_TRIG
OM_automatic CLK Q SFCReset
8
AND
E_VAM_ss_position_1 SS_OM_Off
E_VAM_ss_position_2
E_VAM_ss_position_3
E_VAM_ss_position_4
9
AND OR 004
E_VAM_ss_position_1
E_VAM_ss_position_2
E_VAM_ss_position_3
E_VAM_ss_position_4
AND
(*kein VAM*)E_VAM_ss_position_1
E_VAM_ss_position_2
E_VAM_ss_position_3
E_VAM_ss_position_4
SS_OM_automatic
39 1/4/2017
IndraWorks ML* 13V16.0110
RS_Auto_stop
002
RS OR
003
SET Q1 OM_automatic_stop
RESET1 xyz
004
SS_OM_Setup
40 1/4/2017
IndraWorks ML* 13V16.0110
10
005
E_VAM_ss_position_1 006
E_VAM_ss_position_2
007
E_VAM_ss_position_3
008
E_VAM_ss_position_4
AND 009
(*kein VAM*)E_VAM_ss_position_1
010
E_VAM_ss_position_2 VCP_Stopp
E_VAM_ss_position_3
E_VAM_ss_position_4
VCP_Start
11
GrayCode
VAM_EB_Override_axis_Gray In VAM_EB_Override_axis
12
GrayCode
VAM_EB_Override_spindle_Gray In VAM_EB_Override_spindle
41 1/4/2017
IndraWorks ML* 13V16.0110
005
AND OR
006
SS_OM_automatic
007
008
srAutomatik
009
SR
010
SET1 Q1
RESET
42 1/4/2017
IndraWorks ML* 13V16.0110
1 PROGRAM prHandbetrieb
2 VAR
3 i_Scheba_Handbild : Scheba_Handbild ;
4 HB_PP1 : Scheba_Handbewegung ;
5 HB_PP2 : Scheba_Handbewegung ;
6 HB_PP3 : Scheba_Handbewegung ;
7 HB_PP4 : Scheba_Handbewegung ;
8 HB_HP1 : Scheba_Handbewegung ;
9 HB_HP2 : Scheba_Handbewegung ;
10 HB_HP3 : Scheba_Handbewegung ;
11 HB_CP1 : Scheba_Handbewegung ;
12 HB_CP2 : Scheba_Handbewegung ;
13 HB_CB : Scheba_Handbewegung ;
14
15 srMoveAST : ARRAY [ 1 .. 10 ] OF sr ;
16 srMoveGST : ARRAY [ 1 .. 10 ] OF sr ;
17
18 bDummy : BOOL ;
19 END_VAR
20
2 i_Scheba_Handbild
Scheba_Handbild
true HandbildWirdAngezeigt Meldebit1
1 AnzahlBilderStation1 Meldebit2
1 AnzahlBilderStation2 Meldebit3
1 AnzahlBilderStation3 Meldebit4
1 AnzahlBilderStation4 Meldebit5
1 AnzahlBilderStation5 Meldebit6
0 AnzahlBilderStation6 Meldebit7
0 AnzahlBilderStation7 Meldebit8
0 AnzahlBilderStation8
Handbild SchnittstelleVCP
3 srMoveGST[1]
AND SR
OM_setup SET1 Q1 bMoveGST[1]
E_VAM_3S1_PP1_GST RESET
OR
OM_setup
E_VAM_3S4_PP1_AST
43 1/4/2017
IndraWorks ML* 13V16.0110
44 1/4/2017
IndraWorks ML* 13V16.0110
45 1/4/2017
IndraWorks ML* 13V16.0110
4 srMoveAST[1]
AND SR
OM_setup SET1 Q1 bMoveAST[1]
E_VAM_3S4_PP1_AST RESET
OR
OM_setup
E_VAM_3S1_PP1_GST
6 HB_PP1(*Einschubzylinder*)
001
OM_setup
002
OM_automatic 003
OM_setup OR OM_automatic 004
OM_setup OR OM_automatic 005
E_VAM_2S3_reset OR VCP_Reset
006
bMoveGST[1]
007
008
bMoveAST[1] 009
E_82B4_EinschubZylGST 010
E_82B3_EinschubZylAST
011
012
013
EM10 014
EM11
015
016
017
1
018
1
019
1 020
2
021
T#5s
022
T#5s 023
024
'PP1'
025
'retract'
026
'extend'
027
028
029
030
031
032
033
034
035
Handbild
036
PP1_SK
46 1/4/2017
IndraWorks ML* 13V16.0110
001
Scheba_Handbewegung
002
BetriebsartHand Spule_GST
003
BetriebsartAutomatik Spule_AST A_81Y3_VentilEinschubZyl
004
Sicherheit_GST GST_Gestoert EM10
005
Sicherheit_AST AST_Gestoert EM11
006
Quittieren
007
Extern_GST
008
Extern_AUS
009
Extern_AST
010
Endlage_GST
011
Endlage_AST
012
Zusatzendlage_GST
013
Zusatzendlage_AST
014
Freigabe_GST
015
Freigabe_AST
016
Wert1
017
Wert2
018
Stationsnummer
019
Bildnummer
020
Zeilennummer
021
Ventiltyp
022
UeZeit_GST
023
UeZeit_AST
024
UeZeit_Deaktivieren
025
Name_Bewegung
026
Name_GST
027
Name_AST
028
Name_ZusatzGST
029
Name_ZusatzAST
030
Einheit_Wert1
031
Einheit_Wert2
032
Anzeige_ZusatzGST
033
Anzeige_ZusatzAST
034
Anzeige_Wert1
035
Anzeige_Wert2
036
SchnittstelleVCP
SchnittstelleSchrittkette
47 1/4/2017
IndraWorks ML* 13V16.0110
bDummy
48 1/4/2017
IndraWorks ML* 13V16.0110
7 srMoveGST[2]
AND SR
OM_setup SET1 Q1 bMoveGST[2]
E_VAM_3S2_PP2_GST RESET
OR
OM_setup
E_VAM_3S5_PP2_AST
8 srMoveAST[2]
AND SR
OM_setup SET1 Q1 bMoveAST[2]
E_VAM_3S5_PP2_AST RESET
OR
OM_setup
E_VAM_3S2_PP2_GST
49 1/4/2017
IndraWorks ML* 13V16.0110
50 1/4/2017
IndraWorks ML* 13V16.0110
51 1/4/2017
IndraWorks ML* 13V16.0110
9 HB_PP2(*Presszylinder*)
037
OM_setup 038
OM_automatic
039
OM_setup OR OM_automatic
040
OM_setup OR OM_automatic
041
E_VAM_2S3_reset OR VCP_Reset
042
bMoveGST[2] 043
044
bMoveAST[2] 045
E_82B2_PressZylinderGST
046
E_82B1_PressZylinderAST
047
048
049
EM12 050
EM13
051
052
053
1
054
1
055
2
056
2 057
T#5s 058
T#5s
059
060
'Presszyl' 061
'retract'
062
'extend'
063
064
065
066
067
068
069
070
071
Handbild
072
PP2_SK
10 srMoveGST[3]
AND SR
OM_setup SET1 Q1 bMoveGST[3]
E_VAM_3S3_PP3_GST RESET
OR
OM_setup
E_VAM_3S6_PP3_AST
52 1/4/2017
IndraWorks ML* 13V16.0110
037
Scheba_Handbewegung 073
038
BetriebsartHand Spule_GST
039
BetriebsartAutomatik Spule_AST A_81Y4_VentilPressZyl
040
Sicherheit_GST GST_Gestoert EM12
041
Sicherheit_AST AST_Gestoert EM13
042
Quittieren
043
Extern_GST
044
Extern_AUS
045
Extern_AST
046
Endlage_GST
047
Endlage_AST
048
Zusatzendlage_GST
049
Zusatzendlage_AST
050
Freigabe_GST
051
Freigabe_AST
052
Wert1
053
Wert2
054
Stationsnummer
055
Bildnummer
056
Zeilennummer
057
Ventiltyp
058
UeZeit_GST
059
UeZeit_AST
060
UeZeit_Deaktivieren
061
Name_Bewegung
062
Name_GST
063
Name_AST
064
Name_ZusatzGST
065
Name_ZusatzAST
066
Einheit_Wert1
067
Einheit_Wert2
068
Anzeige_ZusatzGST
069
Anzeige_ZusatzAST
070
Anzeige_Wert1
071
Anzeige_Wert2
072
SchnittstelleVCP
SchnittstelleSchrittkette
53 1/4/2017
IndraWorks ML* 13V16.0110
073
bDummy
54 1/4/2017
IndraWorks ML* 13V16.0110
11 srMoveAST[3]
AND SR
OM_setup SET1 Q1 bMoveAST[3]
E_VAM_3S6_PP3_AST RESET
OR
OM_setup
E_VAM_3S3_PP3_GST
12
074
OM_setup 075
OM_automatic 076
OM_setup OR OM_automatic 077
OM_setup OR OM_automatic 078
E_VAM_2S3_reset OR VCP_Reset 079
bMoveGST[3] 080
081
bMoveAST[3] 082
E_81B1_KurzHubZyl_1_GST AND E_81B2_KurzHubZyl_2_GST 083
E_81B3_KurzHubZyl_1_AST AND E_81B4_KurzHubZyl_2_AST 084
085
086
EM14 087
EM15 088
089
090
1 091
1 092
3 093
2 094
T#5s 095
T#5s 096
097
'PP3' 098
'retract' 099
'extend' 100
101
102
103
104
105
106
107
108
Handbild 109
PP3_SK
55 1/4/2017
IndraWorks ML* 13V16.0110
HB_PP3(*Kurzhubzylinder*)
074
Scheba_Handbewegung 110
075
BetriebsartHand Spule_GST
076
BetriebsartAutomatik Spule_AST A_81Y1_VentilKurzhubZyl
077
Sicherheit_GST GST_Gestoert EM14
078
Sicherheit_AST AST_Gestoert EM15
079
Quittieren
080
Extern_GST
081
Extern_AUS
082
Extern_AST
083
Endlage_GST
084
Endlage_AST
085
Zusatzendlage_GST
086
Zusatzendlage_AST
087
Freigabe_GST
088
Freigabe_AST
089
Wert1
090
Wert2
091
Stationsnummer
092
Bildnummer
093
Zeilennummer
094
Ventiltyp
095
UeZeit_GST
096
UeZeit_AST
097
UeZeit_Deaktivieren
098
Name_Bewegung
099
Name_GST
100
Name_AST
101
Name_ZusatzGST
102
Name_ZusatzAST
103
Einheit_Wert1
104
Einheit_Wert2
105
Anzeige_ZusatzGST
106
Anzeige_ZusatzAST
107
Anzeige_Wert1
108
Anzeige_Wert2
109
SchnittstelleVCP
SchnittstelleSchrittkette
56 1/4/2017
IndraWorks ML* 13V16.0110
110
bDummy
57 1/4/2017
IndraWorks ML* 13V16.0110
13 HB_PP3(*Kurzhubzylinder*)
111
OM_setup
112
OM_automatic
113
OM_setup OR OM_automatic 114
OM_setup OR OM_automatic
115
E_VAM_2S3_reset OR VCP_Reset
116
bMoveGST[3] 117
118
bMoveAST[3] 119
E_81B2_KurzHubZyl_2_GST 120
E_81B3_KurzHubZyl_1_AST
121
122
123
EM14
124
EM15
125
126
127
1
128
1
129
3 130
2
131
T#5s
132
T#5s 133
134
'PP3' 135
'retract' 136
'extend' 137
138
139
140
141
142
143
144
145
Handbild 146
PP3_SK
14
15 srMoveGST[4]
AND SR
OM_setup SET1 Q1 bMoveGST[4]
E_VAM_3S7_PP4_GST RESET
OR
OM_setup
E_VAM_3S10_PP4_AST
58 1/4/2017
IndraWorks ML* 13V16.0110
111
Scheba_Handbewegung 147
112
BetriebsartHand Spule_GST
113
BetriebsartAutomatik Spule_AST A_81Y1_VentilKurzhubZyl
114
Sicherheit_GST GST_Gestoert EM14
115
Sicherheit_AST AST_Gestoert EM15
116
Quittieren
117
Extern_GST
118
Extern_AUS
119
Extern_AST
120
Endlage_GST
121
Endlage_AST
122
Zusatzendlage_GST
123
Zusatzendlage_AST
124
Freigabe_GST
125
Freigabe_AST
126
Wert1
127
Wert2
128
Stationsnummer
129
Bildnummer
130
Zeilennummer
131
Ventiltyp
132
UeZeit_GST
133
UeZeit_AST
134
UeZeit_Deaktivieren
135
Name_Bewegung
136
Name_GST
137
Name_AST
138
Name_ZusatzGST
139
Name_ZusatzAST
140
Einheit_Wert1
141
Einheit_Wert2
142
Anzeige_ZusatzGST
143
Anzeige_ZusatzAST
144
Anzeige_Wert1
145
Anzeige_Wert2
146
SchnittstelleVCP
SchnittstelleSchrittkette
59 1/4/2017
IndraWorks ML* 13V16.0110
147
bDummy
60 1/4/2017
IndraWorks ML* 13V16.0110
16 srMoveAST[4]
AND SR
OM_setup SET1 Q1 bMoveAST[4]
E_VAM_3S10_PP4_AST RESET
OR
OM_setup
E_VAM_3S7_PP4_GST
17 HB_PP4(*Ausschubzylinder*)
148
OM_setup 149
OM_automatic 150
OM_setup OR OM_automatic
151
OM_setup OR OM_automatic
152
E_VAM_2S3_reset OR VCP_Reset
153
bMoveGST[4]
154
155
bMoveAST[4]
156
E_82B6_AusschubZylGST
157
E_82B5_AusschubZylAST 158
159
160
EM16
161
EM17
162
163
164
1
165
1 166
4
167
2 168
T#5s 169
T#5s 170
171
'PP4' 172
'retract' 173
'extend'
174
175
176
177
178
179
180
181
182
Handbild 183
PP4_SK
61 1/4/2017
IndraWorks ML* 13V16.0110
148
Scheba_Handbewegung
149
BetriebsartHand Spule_GST
150
BetriebsartAutomatik Spule_AST A_81Y2_VentilAusschubZyl
151
Sicherheit_GST GST_Gestoert EM16
152
Sicherheit_AST AST_Gestoert EM17
153
Quittieren
154
Extern_GST
155
Extern_AUS
156
Extern_AST
157
Endlage_GST
158
Endlage_AST
159
Zusatzendlage_GST
160
Zusatzendlage_AST
161
Freigabe_GST
162
Freigabe_AST
163
Wert1
164
Wert2
165
Stationsnummer
166
Bildnummer
167
Zeilennummer
168
Ventiltyp
169
UeZeit_GST
170
UeZeit_AST
171
UeZeit_Deaktivieren
172
Name_Bewegung
173
Name_GST
174
Name_AST
175
Name_ZusatzGST
176
Name_ZusatzAST
177
Einheit_Wert1
178
Einheit_Wert2
179
Anzeige_ZusatzGST
180
Anzeige_ZusatzAST
181
Anzeige_Wert1
182
Anzeige_Wert2
183
SchnittstelleVCP
SchnittstelleSchrittkette
62 1/4/2017
IndraWorks ML* 13V16.0110
bDummy
63 1/4/2017
IndraWorks ML* 13V16.0110
18 srMoveGST[5]
AND SR
OM_setup SET1 Q1 bMoveGST[5]
E_VAM_2S4_HP1_GST RESET
OR
OM_setup
E_VAM_2S7_HP1_AST
19 srMoveAST[5]
AND SR
OM_setup SET1 Q1 bMoveAST[5]
E_VAM_2S7_HP1_AST RESET
OR
OM_setup
E_VAM_2S4_HP1_GST
64 1/4/2017
IndraWorks ML* 13V16.0110
65 1/4/2017
IndraWorks ML* 13V16.0110
66 1/4/2017
IndraWorks ML* 13V16.0110
20 HB_HP1(*Schlitzzylinder*)
184
OM_setup
185
OM_automatic 186
OM_setup OR OM_automatic 187
OM_setup OR OM_automatic 188
E_VAM_2S3_reset OR VCP_Reset
189
bMoveGST[5]
190
191
bMoveAST[5]
192
E_83B2_SchlitzZylGST 193
E_83B1_SchlitzZylAST 194
195
196
EM18
197
EM19
198
199
200
2
201
1 202
1
203
2
204
T#5s
205
T#5s
206
207
'HP1'
208
'retract'
209
'extend'
210
211
212
213
214
215
216
217
218
Handbild
219
HP1_SK
21 srMoveGST[6]
AND SR
OM_setup SET1 Q1 bMoveGST[6]
E_VAM_2S5_HP2_GST RESET
OR
OM_setup
E_VAM_2S8_HP2_AST
67 1/4/2017
IndraWorks ML* 13V16.0110
184
Scheba_Handbewegung 220
185
BetriebsartHand Spule_GST
186
BetriebsartAutomatik Spule_AST bDummy
187
Sicherheit_GST GST_Gestoert EM18
188
Sicherheit_AST AST_Gestoert EM19
189
Quittieren
190
Extern_GST
191
Extern_AUS
192
Extern_AST
193
Endlage_GST
194
Endlage_AST
195
Zusatzendlage_GST
196
Zusatzendlage_AST
197
Freigabe_GST
198
Freigabe_AST
199
Wert1
200
Wert2
201
Stationsnummer
202
Bildnummer
203
Zeilennummer
204
Ventiltyp
205
UeZeit_GST
206
UeZeit_AST
207
UeZeit_Deaktivieren
208
Name_Bewegung
209
Name_GST
210
Name_AST
211
Name_ZusatzGST
212
Name_ZusatzAST
213
Einheit_Wert1
214
Einheit_Wert2
215
Anzeige_ZusatzGST
216
Anzeige_ZusatzAST
217
Anzeige_Wert1
218
Anzeige_Wert2
219
SchnittstelleVCP
SchnittstelleSchrittkette
68 1/4/2017
IndraWorks ML* 13V16.0110
220
A_83Y2_SchlitzZylinder
69 1/4/2017
IndraWorks ML* 13V16.0110
22 srMoveAST[6]
AND SR
OM_setup SET1 Q1 bMoveAST[6]
E_VAM_2S8_HP2_AST RESET
OR
OM_setup
E_VAM_2S5_HP2_GST
23 HB_HP2(*Sauggreifer*)
221
OM_setup 222
OM_automatic 223
OM_setup OR OM_automatic 224
OM_setup OR OM_automatic 225
E_VAM_2S3_reset OR VCP_Reset
226
bMoveGST[6] 227
228
bMoveAST[6]
229
A_83Y1_SaugGreiferEin
230
A_83Y1_SaugGreiferEin
231
232
233
234
235
236
237
2
238
1
239
2
240
2
241
242
243
244
'Sauger' 245
'off'
246
'on'
247
248
249
250
251
252
253
254
255
Handbild
256
HP2_SK
70 1/4/2017
IndraWorks ML* 13V16.0110
221
Scheba_Handbewegung 257
222
BetriebsartHand Spule_GST
223
BetriebsartAutomatik Spule_AST A_83Y1_SaugGreiferEin
224
Sicherheit_GST GST_Gestoert
225
Sicherheit_AST AST_Gestoert
226
Quittieren
227
Extern_GST
228
Extern_AUS
229
Extern_AST
230
Endlage_GST
231
Endlage_AST
232
Zusatzendlage_GST
233
Zusatzendlage_AST
234
Freigabe_GST
235
Freigabe_AST
236
Wert1
237
Wert2
238
Stationsnummer
239
Bildnummer
240
Zeilennummer
241
Ventiltyp
242
UeZeit_GST
243
UeZeit_AST
244
UeZeit_Deaktivieren
245
Name_Bewegung
246
Name_GST
247
Name_AST
248
Name_ZusatzGST
249
Name_ZusatzAST
250
Einheit_Wert1
251
Einheit_Wert2
252
Anzeige_ZusatzGST
253
Anzeige_ZusatzAST
254
Anzeige_Wert1
255
Anzeige_Wert2
256
SchnittstelleVCP
SchnittstelleSchrittkette
71 1/4/2017
IndraWorks ML* 13V16.0110
257
bDummy
72 1/4/2017
IndraWorks ML* 13V16.0110
24 srMoveGST[7]
AND SR
OM_setup SET1 Q1 bMoveGST[7]
E_VAM_2S6_HP3_GST RESET
OR
OM_setup
E_VAM_2S9_HP3_AST
25 srMoveAST[7]
AND SR
OM_setup SET1 Q1 bMoveAST[7]
E_VAM_2S9_HP3_AST RESET
OR
OM_setup
E_VAM_2S6_HP3_GST
73 1/4/2017
IndraWorks ML* 13V16.0110
74 1/4/2017
IndraWorks ML* 13V16.0110
75 1/4/2017
IndraWorks ML* 13V16.0110
26 HB_HP3(*Z-Achse*)
258
OM_setup
259
OM_automatic
260
OM_setup OR OM_automatic 261
OM_setup OR OM_automatic
262
E_VAM_2S3_reset OR VCP_Reset
263
bMoveGST[7] 264
265
bMoveAST[7]
266
E_83B3_ZylZAchseOben
267
E_83B4_ZylZAchseUnten 268
269
270
EM20 271
EM21 272
273
274
2
275
1
276
2
277
2
278
T#5s
279
T#5s
280
281
'HP3'
282
'retract' 283
'extend' 284
285
286
287
288
289
290
291
292
Handbild 293
HP3_SK
27 srMoveGST[8]
AND SR
OM_setup SET1 Q1 bMoveGST[8]
E_VAM_3S8_CP1_GST RESET
OR
OM_setup
E_VAM_3S11_CP1_AST
76 1/4/2017
IndraWorks ML* 13V16.0110
258
Scheba_Handbewegung 294
259
BetriebsartHand Spule_GST
260
BetriebsartAutomatik Spule_AST A_83Y3_ZAchseAusfahren
261
Sicherheit_GST GST_Gestoert EM20
262
Sicherheit_AST AST_Gestoert EM21
263
Quittieren
264
Extern_GST
265
Extern_AUS
266
Extern_AST
267
Endlage_GST
268
Endlage_AST
269
Zusatzendlage_GST
270
Zusatzendlage_AST
271
Freigabe_GST
272
Freigabe_AST
273
Wert1
274
Wert2
275
Stationsnummer
276
Bildnummer
277
Zeilennummer
278
Ventiltyp
279
UeZeit_GST
280
UeZeit_AST
281
UeZeit_Deaktivieren
282
Name_Bewegung
283
Name_GST
284
Name_AST
285
Name_ZusatzGST
286
Name_ZusatzAST
287
Einheit_Wert1
288
Einheit_Wert2
289
Anzeige_ZusatzGST
290
Anzeige_ZusatzAST
291
Anzeige_Wert1
292
Anzeige_Wert2
293
SchnittstelleVCP
SchnittstelleSchrittkette
77 1/4/2017
IndraWorks ML* 13V16.0110
294
A_83Y4_ZAchseEinfahren
78 1/4/2017
IndraWorks ML* 13V16.0110
28 srMoveAST[8]
AND SR
OM_setup SET1 Q1 bMoveAST[8]
E_VAM_3S11_CP1_AST RESET
OR
OM_setup
E_VAM_3S8_CP1_GST
29 HB_CP1(*Würfelpresse*)
295
OM_setup 296
OM_automatic
297
OM_setup OR OM_automatic
298
OM_setup OR OM_automatic
299
E_VAM_2S3_reset OR VCP_Reset
300
bMoveGST[8] 301
302
bMoveAST[8] 303
E_84B1_PressZylGST
304
E_84B2_PressZylAST
305
306
307
EM22
308
EM23
309
310
311
2
312
1
313
3 314
2
315
T#5s 316
T#5s
317
318
'CP1' 319
'retract'
320
'extend'
321
322
323
324
325
326
327
328
329
Handbild
330
CP1_SK
79 1/4/2017
IndraWorks ML* 13V16.0110
295
Scheba_Handbewegung 331
296
BetriebsartHand Spule_GST
297
BetriebsartAutomatik Spule_AST A_84Y1_PresseAusfahren
298
Sicherheit_GST GST_Gestoert EM22
299
Sicherheit_AST AST_Gestoert EM23
300
Quittieren
301
Extern_GST
302
Extern_AUS
303
Extern_AST
304
Endlage_GST
305
Endlage_AST
306
Zusatzendlage_GST
307
Zusatzendlage_AST
308
Freigabe_GST
309
Freigabe_AST
310
Wert1
311
Wert2
312
Stationsnummer
313
Bildnummer
314
Zeilennummer
315
Ventiltyp
316
UeZeit_GST
317
UeZeit_AST
318
UeZeit_Deaktivieren
319
Name_Bewegung
320
Name_GST
321
Name_AST
322
Name_ZusatzGST
323
Name_ZusatzAST
324
Einheit_Wert1
325
Einheit_Wert2
326
Anzeige_ZusatzGST
327
Anzeige_ZusatzAST
328
Anzeige_Wert1
329
Anzeige_Wert2
330
SchnittstelleVCP
SchnittstelleSchrittkette
80 1/4/2017
IndraWorks ML* 13V16.0110
331
bDummy
81 1/4/2017
IndraWorks ML* 13V16.0110
30 srMoveGST[9]
AND SR
OM_setup SET1 Q1 bMoveGST[9]
E_VAM_3S9_CP2_GST RESET
OR
OM_setup
E_VAM_3S12_CP2_AST
31 srMoveAST[9]
AND SR
OM_setup SET1 Q1 bMoveAST[9]
E_VAM_3S12_CP2_AST RESET
OR
OM_setup
E_VAM_3S9_CP2_GST
82 1/4/2017
IndraWorks ML* 13V16.0110
83 1/4/2017
IndraWorks ML* 13V16.0110
84 1/4/2017
IndraWorks ML* 13V16.0110
32 HB_CP2(*Ausschiebezylinder*)
332
OM_setup 333
OM_automatic
334
OM_setup OR OM_automatic
335
OM_setup OR OM_automatic
336
E_VAM_2S3_reset OR VCP_Reset
337
bMoveGST[9] 338
339
bMoveAST[9] 340
E_84B3_AusschiebeZylGST
341
E_84B4_AusschiebeZylAST
342
343
344
EM24
345
EM25 346
347
348
3
349
1
350
1
351
2 352
T#5s
353
T#5s 354
355
'CP2'
356
'retract'
357
'extend'
358
359
360
361
362
363
364
365
366
Handbild 367
CP2_SK
33 srMoveGST[10]
AND SR 368
OM_setup SET1 Q1
E_VAM_3S13_CB_move_start_dir RESET
OR
OM_setup
E_VAM_3S14_CB_move_end_dir
85 1/4/2017
IndraWorks ML* 13V16.0110
332
Scheba_Handbewegung
333
BetriebsartHand Spule_GST A_84Y2_Ausschieber
334
BetriebsartAutomatik Spule_AST bDummy
335
Sicherheit_GST GST_Gestoert EM24
336
Sicherheit_AST AST_Gestoert EM25
337
Quittieren
338
Extern_GST
339
Extern_AUS
340
Extern_AST
341
Endlage_GST
342
Endlage_AST
343
Zusatzendlage_GST
344
Zusatzendlage_AST
345
Freigabe_GST
346
Freigabe_AST
347
Wert1
348
Wert2
349
Stationsnummer
350
Bildnummer
351
Zeilennummer
352
Ventiltyp
353
UeZeit_GST
354
UeZeit_AST
355
UeZeit_Deaktivieren
356
Name_Bewegung
357
Name_GST
358
Name_AST
359
Name_ZusatzGST
360
Name_ZusatzAST
361
Einheit_Wert1
362
Einheit_Wert2
363
Anzeige_ZusatzGST
364
Anzeige_ZusatzAST
365
Anzeige_Wert1
366
Anzeige_Wert2
367
SchnittstelleVCP
SchnittstelleSchrittkette
368
bMoveGST[10]
86 1/4/2017
IndraWorks ML* 13V16.0110
87 1/4/2017
IndraWorks ML* 13V16.0110
34 srMoveAST[10]
AND SR 369
OM_setup SET1 Q1
E_VAM_3S14_CB_move_end_dir RESET
OR
OM_setup
E_VAM_3S13_CB_move_start_dir
35
AND
A_84K2_conveyor_belt_dir_start
A_84K1_conveyor_belt_dir_end
OR
A_84K2_conveyor_belt_dir_start
A_84K1_conveyor_belt_dir_end
370
371
88 1/4/2017
IndraWorks ML* 13V16.0110
369
bMoveAST[10]
HB_CB(*Transportband*)
Scheba_Handbewegung
OM_setup BetriebsartHand Spule_GST
OM_automatic BetriebsartAutomatik Spule_AST
OM_setup OR OM_automatic Sicherheit_GST GST_Gestoert
OM_setup OR OM_automatic Sicherheit_AST AST_Gestoert
E_VAM_2S3_reset OR VCP_Reset Quittieren
bMoveGST[10] Extern_GST
Extern_AUS
370
bMoveAST[10] Extern_AST
371
Endlage_GST
Endlage_AST
Zusatzendlage_GST
Zusatzendlage_AST
OM_setup OR OM_automatic Freigabe_GST
OM_automatic Freigabe_AST
Wert1
Wert2
3 Stationsnummer
1 Bildnummer
2 Zeilennummer
2 Ventiltyp
UeZeit_GST
UeZeit_AST
UeZeit_Deaktivieren
'CB' Name_Bewegung
'off' Name_GST
'on' Name_AST
Name_ZusatzGST
Name_ZusatzAST
Einheit_Wert1
Einheit_Wert2
Anzeige_ZusatzGST
Anzeige_ZusatzAST
Anzeige_Wert1
Anzeige_Wert2
Handbild SchnittstelleVCP
CB_SK SchnittstelleSchrittkette
89 1/4/2017
IndraWorks ML* 13V16.0110
A_84K2_conveyor_belt_dir_start
A_84K1_conveyor_belt_dir_end
90 1/4/2017
IndraWorks ML* 13V16.0110
1 PROGRAM prLights
2 VAR
3 Blink_flash : BLINK ;
4 Blink_flash_fast : BLINK ;
5 END_VAR
6
Power_on A_VAM_il_power_on
2
NE AND
ErrorMessages A_VAM_L03
0
Blink_flash_fast
BLINK
true ENABLE OUT
T#200ms TIMELOW
T#200ms TIMEHIGH
auto_running A_VAM_2S1_started
4
AND
OM_automatic_stop A_VAM_L02
Blink_flash.OUT
5
AND OR 001
bMoveGST[5]
Blink_flash.OUT E_VAM_2S4_HP1_GST
6
AND OR 002
bMoveGST[6]
Blink_flash.OUT E_VAM_2S5_HP2_GST
7
AND OR 003
bMoveGST[7]
Blink_flash.OUT E_VAM_2S6_HP3_GST
A_84K2_conveyor_belt_dir_start A_VAM_3S13_CB_in_move_start_dir
A_84K1_conveyor_belt_dir_end A_VAM_3S14_CB_in_move_end_dir
91 1/4/2017
IndraWorks ML* 13V16.0110
001
A_VAM_L04
002
A_VAM_L05
003
A_VAM_L06
92 1/4/2017
IndraWorks ML* 13V16.0110
1 PROGRAM prOperatingMessages
2 VAR
3 Takt_BM : BLINK ;
4 iDurchtakten : fbDurchtakten ;
5 Blink_Durchtakten : BLINK ;
6 END_VAR
7
1 Blink_Durchtakten iDurchtakten
BLINK 001
TRUE ENABLE OUT Betriebsmeldungen 002
T#1000ms TIMELOW
T#1000ms TIMEHIGH
E_82B4_EinschubZylGST OpMsg07
E_82B3_EinschubZylAST OpMsg03
E_82B2_PressZylinderGST OpMsg08
E_82B1_PressZylinderAST OpMsg04
6
AND
TRUE OpMsg09
E_81B2_KurzHubZyl_2_GST
7
AND
E_81B3_KurzHubZyl_1_AST OpMsg05
TRUE
E_82B6_AusschubZylGST OpMsg10
E_82B5_AusschubZylAST OpMsg06
10
E_83B2_SchlitzZylGST OpMsg24
93 1/4/2017
IndraWorks ML* 13V16.0110
001
fbDurchtakten
002
IN OUT BetriebsmeldungenNr
Takt
94 1/4/2017
IndraWorks ML* 13V16.0110
11
E_83B1_SchlitzZylAST OpMsg25
12
OR
A_84K1_conveyor_belt_dir_end OpMsg13
A_84K2_conveyor_belt_dir_start
13
A_83Y1_SaugGreiferEin OpMsg15
14
A_83Y1_SaugGreiferEin OpMsg16
15
E_83B3_ZylZAchseOben OpMsg18
16
E_83B4_ZylZAchseUnten OpMsg19
17
E_84B1_PressZylGST OpMsg20
18
E_84B2_PressZylAST OpMsg21
19
E_84B3_AusschiebeZylGST OpMsg22
20
E_84B4_AusschiebeZylAST OpMsg23
95 1/4/2017
IndraWorks ML* 13V16.0110
96 1/4/2017
IndraWorks ML* 13V16.0110
1 PROGRAM prSKAutomatik
2 VAR_INPUT
3 SFCInit : BOOL ;
4 SFCReset : BOOL ;
5 END_VAR
6 VAR
7 bVerzStep2 : BOOL ;
(*Band nach 2s abschalten nachdem Werkstück in Lichtschranke gefahren ist*)
8 bVerzStep5 : BOOL ;
(*Wenn PP2 (Stiftpresszylinder) ausgefahren, 2s warten*)
9 bVerzStep9 : BOOL ; (*Wenn Teil in LS dann 1s warten*)
10 bVerzStep12 : BOOL ; (*Wenn Sauger ein, dann 500ms warten*)
11 bVerzStep16 : BOOL ; (*Wenn Sauger aus, dann 500ms warten*)
12 bVerzStep20 : BOOL ;
(*Wenn Werkstück in Lichtschranke 2, dann 1000ms warten*)
13 bVerzStep21 : BOOL ; (*Wenn Förderband aus, dann 500ms warten*)
14 bVerzStep23 : BOOL ; (*Wenn Sauger ein, 500ms warten*)
15 bVerzStep24 : BOOL ; (*Wenn Sauger aus, 500ms warten*)
16 bVerzStep30 : BOOL ; (*Presszylinder ausfahren und 3s warten*)
17 bVerzStep34 : BOOL ; (*Sauger ein und 0,5s warten*)
18 bVerzStep38 : bool ; (*Sauger aus und 0,5s warten*)
19 END_VAR
20
Init N HP2_SK.AM_…
N auto_runni…
N cb_sk.AM_A…
true
Step0 N PP1_SK.AM_…
T0_AnlageInGST
Step1 N cb_sk.AM_A…
T1_WSAnLichtSchranke
T2_PP4InAST
Step3 N cb_sk.AM_A…
N pp1_sk.AM_…
N pp4_sk.AM_…
T3_PP4InGST_PP1InAST
Step4 N pp3_sk.AM_…
T4_PP3InAST
97 1/4/2017
IndraWorks ML* 13V16.0110
T5_PP2InAST
Step6 N pp1_sk.AM_…
N pp2_sk.AM_…
N pp4_sk.AM_…
T6_PP1PP2InGST_PP4InAST
Step7 N pp3_sk.AM_…
N pp4_sk.AM_…
T7_PP4PP3InGST
Step8 N cb_sk.AM_A…
T8_TeilInLS
T9_VerzBandAus
Step10 N cb_sk.AM_A…
T10_BandIstAus
Step11 N hp3_sk.AM_…
T11_ZInAST
T12_SaugerIstEin
Step13 N hp3_sk.AM_…
T13_ZIstInGST
Step14 N hp1_sk.AM_…
T14_HP1IstInAST
Step15 N hp3_sk.AM_…
T15_ZIstInAST
98 1/4/2017
IndraWorks ML* 13V16.0110
T16_SaugerIstAus
Step17 N hp3_sk.AM_…
T17_ZIstInGST
Step18 N hp1_sk.AM_…
T18_HP1InGST
Step19 N cb_sk.AM_A…
T19_WSInLS
T20_ZeitAbgelaufen
T21_BandIstAus
Step22 N hp3_sk.AM_…
T22_ZInAST
T23_SaugerIstEin
Step24 N hp3_sk.AM_…
T24_ZIstInGST
Step25 N hp1_sk.AM_…
T25_HP1IstInAST
Step26 N hp3_sk.AM_…
T26_ZInAST
99 1/4/2017
IndraWorks ML* 13V16.0110
T27_SaugerIstAus
Step28 N hp3_sk.AM_…
T28_ZInGST
Step29 N cp2_sk.AM_…
T29_CP2InGST
T30_CP1InAST
Step31 N cp1_sk.AM_…
T31_CP1InGST
Step32 N cp2_sk.AM_…
T32_CP2InAST
Step33 N hp3_sk.AM_…
T33_ZInAST
T34_SaugerIstEin
Step35 N hp3_sk.AM_…
T35_ZInGST
Step36 N hp1_sk.AM_…
T36_HP1InGST
Step37 N hp3_sk.AM_…
T37_ZInAST
100 1/4/2017
IndraWorks ML* 13V16.0110
T38_SaugerAus
Step39 N hp3_sk.AM_…
T39_ZInGST
Init
101 1/4/2017
IndraWorks ML* 13V16.0110
1 //TRUE wenn alle Grundpositionen angefahren (alle Zylinder in GST, Förderband aus, Sauger aus)
2 IF E_82B4_EinschubZylGST AND
3 E_82B2_PressZylinderGST AND
4 // E_81B1_KurzHubZyl_1_GST AND
5 E_81B2_KurzHubZyl_2_GST AND
6 E_82B6_AusschubZylGST AND
7 E_83B2_SchlitzZylGST AND
8 NOT A_83Y1_SaugGreiferEin AND
9 E_83B3_ZylZAchseOben AND
10 E_84B1_PressZylGST AND
11 E_84B3_AusschiebeZylGST AND
12 NOT A_84K2_conveyor_belt_dir_start AND
13 NOT A_84K1_conveyor_belt_dir_end AND
14 next THEN
15
16 T0_AnlageInGST := TRUE ;
17 OpMsg01 := TRUE ;
18
19 ELSE
20 T0_AnlageInGST := FALSE ;
21 END_IF
22
102 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
A_84K1_conveyor_belt_dir_end T10_BandIstAus
next
103 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
E_83B4_ZylZAchseUnten T11_ZInAST
next
104 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
A_83Y1_SaugGreiferEin T12_SaugerIstEin
bVerzStep12
next
105 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
E_83B3_ZylZAchseOben T13_ZIstInGST
next
106 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
E_83B1_SchlitzZylAST T14_HP1IstInAST
next
107 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
E_83B4_ZylZAchseUnten T15_ZIstInAST
next
108 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
A_83Y1_SaugGreiferEin T16_SaugerIstAus
bVerzStep16
next
109 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
E_83B3_ZylZAchseOben T17_ZIstInGST
next
110 1/4/2017
IndraWorks ML* 13V16.0110
E_83B2_SchlitzZylGST T18_HP1InGST
111 1/4/2017
IndraWorks ML* 13V16.0110
E_104_2_LS2Empfaenger T19_WSInLS
112 1/4/2017
IndraWorks ML* 13V16.0110
1 IF E_85B11_LSEmpfaenger THEN
2 T1_WSAnLichtSchranke := TRUE ;
3 OpMsg01 := FALSE ;
4 ELSE
5 T1_WSAnLichtSchranke := FALSE ;
6 END_IF
7
113 1/4/2017
IndraWorks ML* 13V16.0110
bVerzStep20 T20_ZeitAbgelaufen
114 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
A_84K1_conveyor_belt_dir_end T21_BandIstAus
bVerzStep21
next
115 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
E_83B4_ZylZAchseUnten T22_ZInAST
next
116 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
A_83Y1_SaugGreiferEin T23_SaugerIstEin
bVerzStep23
next
117 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
E_83B3_ZylZAchseOben T24_ZIstInGST
next
118 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
E_83B1_SchlitzZylAST T25_HP1IstInAST
next
119 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
E_83B4_ZylZAchseUnten T26_ZInAST
next
120 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
A_83Y1_SaugGreiferEin T27_SaugerIstAus
bVerzStep24
next
121 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
E_83B3_ZylZAchseOben T28_ZInGST
next
122 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
E_84B3_AusschiebeZylGST T29_CP2InGST
next
(*bZweiHandAktiv*)true
123 1/4/2017
IndraWorks ML* 13V16.0110
124 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
E_84B2_PressZylAST T30_CP1InAST
bVerzStep30
next
125 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
E_84B1_PressZylGST T31_CP1InGST
next
126 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
E_84B4_AusschiebeZylAST T32_CP2InAST
next
127 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
E_83B4_ZylZAchseUnten T33_ZInAST
next
128 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
A_83Y1_SaugGreiferEin T34_SaugerIstEin
bVerzStep34
next
129 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
E_83B3_ZylZAchseOben T35_ZInGST
next
130 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
E_83B2_SchlitzZylGST T36_HP1InGST
next
131 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
E_83B4_ZylZAchseUnten T37_ZInAST
next
132 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
bVerzStep38 T38_SaugerAus
A_83Y1_SaugGreiferEin
next
133 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
E_83B3_ZylZAchseOben T39_ZInGST
next
134 1/4/2017
IndraWorks ML* 13V16.0110
135 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
E_81B3_KurzHubZyl_1_AST T4_PP3InAST
E_81B4_KurzHubZyl_2_AST
2
AND
E_81B3_KurzHubZyl_1_AST T4_PP3InAST
TRUE
136 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
E_82B1_PressZylinderAST T5_PP2InAST
bVerzStep5
next
137 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
E_82B4_EinschubZylGST T6_PP1PP2InGST_PP4InAST
E_82B2_PressZylinderGST
E_82B5_AusschubZylAST
next
138 1/4/2017
IndraWorks ML* 13V16.0110
1
AND
E_81B1_KurzHubZyl_1_GST T7_PP4PP3InGST
E_81B2_KurzHubZyl_2_GST
E_82B6_AusschubZylGST
next
2
AND
TRUE T7_PP4PP3InGST
E_81B2_KurzHubZyl_2_GST
E_82B6_AusschubZylGST
next
139 1/4/2017
IndraWorks ML* 13V16.0110
E_104_2_LS2Empfaenger T8_TeilInLS
140 1/4/2017
IndraWorks ML* 13V16.0110
bVerzStep9 T9_VerzBandAus
141 1/4/2017
IndraWorks ML* 13V16.0110
1 PROGRAM prZweiHand
2 VAR
3 srZweiHandAktiv : ARRAY [ 1 .. 2 ] OF sr ;
4 tpPuls : ARRAY [ 1 .. 4 ] OF tp ;
5 END_VAR
6
1 tpPuls[1]
TP AND 001
E_VAM_ZweiHndPresse_1 IN Q
002
t#500ms PT ET
tpPuls[2]
TP
E_VAM_ZweiHndPresse_2 IN Q
t#500ms PT ET
OR
E_VAM_ZweiHndPresse_1
E_VAM_ZweiHndPresse_2
2 tpPuls[3]
AND TP AND
E_ZweiHand_11 IN Q
E_ZweiHand_14 t#500ms PT ET
tpPuls[4]
AND TP
E_ZweiHand_21 IN Q
E_ZweiHand_24 t#500ms PT ET
AND OR
E_ZweiHand_11
E_ZweiHand_14
AND
E_ZweiHand_21
E_ZweiHand_24
3
OR
srZweiHandAktiv[1].Q1 bZweiHandAktiv
srZweiHandAktiv[2].Q1
142 1/4/2017
IndraWorks ML* 13V16.0110
srZweiHandAktiv[1]
001
sr
002
SET1 Q1
RESET
srZweiHandAktiv[2]
sr
SET1 Q1
RESET
143 1/4/2017
IndraWorks ML* 13V16.0110
1 FUNCTION_BLOCK Scheba_Handbewegung
2 VAR_INPUT
3 BetriebsartHand : BOOL ;
4 BetriebsartAutomatik : BOOL ;
5 Sicherheit_GST : BOOL ;
6 Sicherheit_AST : BOOL ;
7 Quittieren : BOOL ;
8 Extern_GST : BOOL ;
9 Extern_AUS : BOOL ;
10 Extern_AST : BOOL ;
11 Endlage_GST : BOOL ;
12 Endlage_AST : BOOL ;
13 Zusatzendlage_GST : BOOL ;
14 Zusatzendlage_AST : BOOL ;
15 Freigabe_GST : BOOL ;
16 Freigabe_AST : BOOL ;
17 Wert1 : REAL ;
18 Wert2 : REAL ;
19 Stationsnummer : INT ;
20 Bildnummer : INT ;
21 Zeilennummer : INT ;
22 Ventiltyp : INT ;
23 UeZeit_GST : TIME ;
24 UeZeit_AST : TIME ;
25 UeZeit_Deaktivieren : BOOL ;
26 Name_Bewegung : STRING [ 18 ] ;
27 Name_GST : STRING [ 8 ] ;
28 Name_AST : STRING [ 8 ] ;
29 Name_ZusatzGST : STRING [ 8 ] ;
30 Name_ZusatzAST : STRING [ 8 ] ;
31 Einheit_Wert1 : STRING [ 5 ] ;
32 Einheit_Wert2 : STRING [ 5 ] ;
33 Anzeige_ZusatzGST : BOOL ;
34 Anzeige_ZusatzAST : BOOL ;
35 Anzeige_Wert1 : BOOL ;
36 Anzeige_Wert2 : BOOL ;
37 END_VAR
38 VAR_OUTPUT
39 Spule_GST : BOOL ;
40 Spule_AST : BOOL ;
41 GST_Gestoert : BOOL ;
42 AST_Gestoert : BOOL ;
43 END_VAR
44 VAR_IN_OUT
45 SchnittstelleVCP : SchnittstelleSchebaHandbewegungVCP ;
46 SchnittstelleSchrittkette : SchnittstelleSchebaHandbewegungSchrittkette ;
47 END_VAR
48 VAR
49 TON_Impuls_GST : TON ;
50 TON_Impuls_AST : TON ;
51 TON_Impuls_NotAST : TON ;
52 TON_UeberwachungGST : TON ;
53 TON_UeberwachungAST : TON ;
54
55 TasterGST : BOOL ;
56 TasterAST : BOOL ;
57 AktionGST : BOOL ;
58 AktionAUS : BOOL ;
59 AktionAST : BOOL ;
60 VentilIstGST : BOOL ;
61 VentilIstAST : BOOL ;
144 1/4/2017
IndraWorks ML* 13V16.0110
62 MeldenummerGST : INT ;
63 MeldenummerAST : INT ;
64 i : INT ;
65 TempString8 : STRING [ 8 ] ;
66 TempString18 : STRING [ 18 ] ;
67 END_VAR
68
69
70
71
72
73
74
75
76
77
78
145 1/4/2017
IndraWorks ML* 13V16.0110
146 1/4/2017
IndraWorks ML* 13V16.0110
93 (* 2 - Selbsthaltend *)
94 IF Ventiltyp = 2 THEN
95 IF AktionAST = TRUE THEN Spule_GST := FALSE ; Spule_AST := TRUE ; END_IF ;
96 IF AktionGST = TRUE THEN Spule_GST := TRUE ; Spule_AST := FALSE ; END_IF ;
97 IF AktionAUS = TRUE THEN Spule_GST := FALSE ; Spule_AST := FALSE ; END_IF ;
98 IF Freigabe_GST = FALSE OR Sicherheit_GST = FALSE THEN Spule_GST := FALSE
; END_IF ;
99 IF Freigabe_AST = FALSE OR Sicherheit_AST = FALSE THEN Spule_AST := FALSE
; END_IF ;
100 END_IF ;
101 (* 3 - Impuls 1 Sek mit 1.Taster *)
102 IF Ventiltyp = 3 THEN
103 Spule_GST := NOT AktionAST AND Freigabe_GST AND Sicherheit_GST AND NOT
TON_Impuls_NotAST . Q ;
104 Spule_AST := AktionAST AND NOT TON_Impuls_AST . Q ;
105 END_IF ;
106 (* 4 - Direkt-Ventil mit 1.Taster *)
107 IF Ventiltyp = 4 THEN
108 Spule_GST := NOT AktionAST AND Freigabe_GST AND Sicherheit_GST ;
109 Spule_AST := AktionAST ;
110 END_IF ;
111
112 (* In welcher Stellung ist das Ventil *)
113 IF Ventiltyp = 1 OR Ventiltyp = 3 THEN
114 IF Spule_AST = TRUE THEN VentilIstGST := FALSE ; VentilIstAST := TRUE ;
END_IF ;
115 IF Spule_GST = TRUE THEN VentilIstGST := TRUE ; VentilIstAST := FALSE ;
END_IF ;
116 END_IF ;
117 IF Ventiltyp = 0 OR Ventiltyp = 2 OR Ventiltyp = 4 THEN
118 VentilIstGST := Spule_GST ;
119 VentilIstAST := Spule_AST ;
120 END_IF ;
121
122 (* Wenn entsprechendes Bild aufgeschalgen Kommunikation mit VCP*)
123 IF Stationsnummer = SchnittstelleVCP . Stationsnummer AND Bildnummer =
SchnittstelleVCP . Bildnummer THEN
124 SchnittstelleVCP . Zeile [ Zeilennummer ] . BewegungGST := Spule_GST ;
125 SchnittstelleVCP . Zeile [ Zeilennummer ] . BewegungAST := Spule_AST ;
126 END_IF ;
127
128 (* Störmeldungen generieren *)
129 IF UeZeit_GST <> T#0s THEN
130 TON_UeberwachungGST ( IN := NOT UeZeit_Deaktivieren AND VentilIstGST AND
Freigabe_GST AND Sicherheit_GST AND ( Endlage_AST OR NOT Endlage_GST ) ,
PT := UeZeit_GST ) ;
131 IF TON_UeberwachungGST . Q = TRUE AND MeldenummerGST = 0 THEN
132 GST_Gestoert := TRUE ;
133 FOR i := 1 TO 8 DO
134 IF SchnittstelleVCP . Meldung [ i ] . InBenutzung = FALSE THEN
135 MeldenummerGST := i ;
136 SchnittstelleVCP . Meldung [ MeldenummerGST ] . InBenutzung :=
TRUE ;
137 SchnittstelleVCP . Meldung [ MeldenummerGST ] . Name :=
Name_Bewegung ;
138 SchnittstelleVCP . Meldung [ MeldenummerGST ] . Endlage :=
Name_GST ;
139 i := 8 ;
140 END_IF ;
141 END_FOR ;
142 END_IF ;
143 IF TON_UeberwachungGST . Q = FALSE AND Quittieren THEN
144 GST_Gestoert := FALSE ;
145 IF MeldenummerGST > 0 THEN
147 1/4/2017
IndraWorks ML* 13V16.0110
148 1/4/2017
IndraWorks ML* 13V16.0110
1 FUNCTION_BLOCK Scheba_Handbild
2 VAR_INPUT
3 HandbildWirdAngezeigt : BOOL ;
4 AnzahlBilderStation1 : INT ;
5 AnzahlBilderStation2 : INT ;
6 AnzahlBilderStation3 : INT ;
7 AnzahlBilderStation4 : INT ;
8 AnzahlBilderStation5 : INT ;
9 AnzahlBilderStation6 : INT ;
10 AnzahlBilderStation7 : INT ;
11 AnzahlBilderStation8 : INT ;
12 END_VAR
13 VAR_IN_OUT
14 SchnittstelleVCP : SchnittstelleSchebaHandbewegungVCP ;
15 END_VAR
16 VAR_OUTPUT
17 Meldebit1 : BOOL ;
18 Meldebit2 : BOOL ;
19 Meldebit3 : BOOL ;
20 Meldebit4 : BOOL ;
21 Meldebit5 : BOOL ;
22 Meldebit6 : BOOL ;
23 Meldebit7 : BOOL ;
24 Meldebit8 : BOOL ;
25 END_VAR
26 VAR
27 F_TRIG_1 : F_TRIG ;
28 F_TRIG_2 : F_TRIG ;
29 LetzteStationsnummer : INT ;
30 LetzteBildnummer : INT ;
31 i : INT ;
32 END_VAR
33
1 (* Bildnummern hoch/runterzählen *)
2 F_TRIG_1 ( CLK := SchnittstelleVCP . TasteBildMinus , Q => ) ;
3 IF F_TRIG_1 . Q = TRUE THEN SchnittstelleVCP . Bildnummer := SchnittstelleVCP .
Bildnummer - 1 ; END_IF ;
4 F_TRIG_2 ( CLK := SchnittstelleVCP . TasteBildPlus , Q => ) ;
5 IF F_TRIG_2 . Q = TRUE THEN SchnittstelleVCP . Bildnummer := SchnittstelleVCP .
Bildnummer + 1 ; END_IF ;
6
7 (* Bildnummern begrenzen *)
8 IF SchnittstelleVCP . Bildnummer < 1 THEN SchnittstelleVCP . Bildnummer := 1 ;
END_IF ;
9 IF SchnittstelleVCP . Stationsnummer = 1 AND SchnittstelleVCP . Bildnummer >
AnzahlBilderStation1 THEN SchnittstelleVCP . Bildnummer :=
AnzahlBilderStation1 ; END_IF ;
10 IF SchnittstelleVCP . Stationsnummer = 2 AND SchnittstelleVCP . Bildnummer >
AnzahlBilderStation2 THEN SchnittstelleVCP . Bildnummer :=
AnzahlBilderStation2 ; END_IF ;
11 IF SchnittstelleVCP . Stationsnummer = 3 AND SchnittstelleVCP . Bildnummer >
AnzahlBilderStation3 THEN SchnittstelleVCP . Bildnummer :=
AnzahlBilderStation3 ; END_IF ;
12 IF SchnittstelleVCP . Stationsnummer = 4 AND SchnittstelleVCP . Bildnummer >
AnzahlBilderStation4 THEN SchnittstelleVCP . Bildnummer :=
AnzahlBilderStation4 ; END_IF ;
13 IF SchnittstelleVCP . Stationsnummer = 5 AND SchnittstelleVCP . Bildnummer >
AnzahlBilderStation5 THEN SchnittstelleVCP . Bildnummer :=
AnzahlBilderStation5 ; END_IF ;
14 IF SchnittstelleVCP . Stationsnummer = 6 AND SchnittstelleVCP . Bildnummer >
149 1/4/2017
IndraWorks ML* 13V16.0110
150 1/4/2017
IndraWorks ML* 13V16.0110
151 1/4/2017
IndraWorks ML* 13V16.0110
152 1/4/2017
IndraWorks ML* 13V16.0110
1 FUNCTION_BLOCK fbProfibusDiag
2 VAR_INPUT
3 Enable : BOOL ;
4 Quittieren : BOOL ;
5 END_VAR
6 VAR_OUTPUT
7 BusError : BOOL ;
8 Meldebit1 : BOOL ;
9 Meldebit2 : BOOL ;
10 Meldebit3 : BOOL ;
11 Teilnehmer1 : INT ;
12 Teilnehmer2 : INT ;
13 Teilnehmer3 : INT ;
14 END_VAR
15 VAR
16 SlaveDiagListGet : IL_DPSlaveDiagListGet ;
17 DiagList : ARRAY [ 0 .. 127 ] OF BOOL ;
18 i : INT ;
19 END_VAR
20
153 1/4/2017
IndraWorks ML* 13V16.0110
THEN
38 Meldebit2 := FALSE ;
39 Teilnehmer2 := 0 ;
40 END_IF ;
41
42 IF Quittieren = TRUE AND Meldebit3 = TRUE AND DiagList [ Teilnehmer3 ] = FALSE
THEN
43 Meldebit3 := FALSE ;
44 Teilnehmer3 := 0 ;
45 END_IF ;
46 IF Quittieren = TRUE THEN BusError := FALSE ;
47 END_IF ;
48
49 IF ( ProfiBusDiag . Error = TRUE ) THEN
50 BusError := TRUE ;
51 END_IF ;
52
154 1/4/2017
IndraWorks ML* 13V16.0110
155 1/4/2017
IndraWorks ML* 13V16.0110
1 //----------------------------------------------------------------------------------------------
2
//---------------------------------------- Clear all outputs -----------------------------------
3
//----------------------------------------------------------------------------------------------
4 Error := FALSE ;
5 NoOfSlaveErr := 0 ;
6 DiagNo := 0 ;
7 DiagMessage := '' ;
8
9
//----------------------------------------------------------------------------------------------
10
// ---------------------------------- Call main Profibus diagnosis FB --------------------------
11
//----------------------------------------------------------------------------------------------
12 fbIL_DPDeviceListGet ( Enable := bExeDeviceListGet ) ;
// Scan all current available profibus master
13 IF ( fbIL_DPDeviceListGet . Done = TRUE ) THEN
14 bExeDeviceListGet := FALSE ;
15 END_IF
16
17 IF ( bExeDeviceListGet = TRUE ) THEN
18 RETURN ; // No further execution in case device list is not valid
19 END_IF
20
21
//----------------------------------------------------------------------------------------------
22
// ---------------------------------- Check all active profibus master ------------------------
23
//----------------------------------------------------------------------------------------------
24 FOR iMasterSlotIndex := 0 TO iMAXMASTERNO DO
156 1/4/2017
IndraWorks ML* 13V16.0110
25
26 // Check if the slot contains an active profibus master
27 IF ( fbIL_DPDeviceListGet . MasterList [ iMasterSlotIndex ] . bMasterAdr <>
byNOVALIDMASTERADR ) THEN
28
29 // Read if one or more slaves return an error
30 arfbIL_DPDevInfoGet [ iMasterSlotIndex ] ( Enable := TRUE , Master :=
INT_TO_BYTE ( iMasterSlotIndex ) ) ;
31
32 // Check if one or more slaves return an error
33 IF arfbIL_DPDevInfoGet [ iMasterSlotIndex ] . DevInfo . BmState . 1 OR
arfbIL_DPDevInfoGet [ iMasterSlotIndex ] . DevInfo . BmState . 2 THEN
34 // Latch bOldError (signals an error occured
35 bOldError := TRUE ;
36 // Read the error flags of every profibus slave
37 arfbIL_DPSlaveDiagListGet [ iMasterSlotIndex ] ( Enable := TRUE , Master
:= INT_TO_BYTE ( iMasterSlotIndex ) ) ;
38
39 iProfibusSlaveNo := 0 ; // Initialize profibus slave number
40
41 // Scan all profibus slave error bits of the master
42 FOR i := 0 TO 15 DO
43 byTempDiagList := arfbIL_DPSlaveDiagListGet [ iMasterSlotIndex ] .
SlaveDiagList [ i ] ; // Get slave bitlist
44 FOR j := 0 TO 7 DO
45 IF ( byTempDiagList . 0 = TRUE ) THEN
46 // Slave return an error
47 NoOfSlaveErr := NoOfSlaveErr + 1 ;
48 SlaveErr [ iMasterSlotIndex , iProfibusSlaveNo ] := TRUE ;
49 Error := TRUE ;
50
51 // Reset Slave error flag by reading the slave diagnosis
52 arfbIL_DPReadDiag [ iMasterSlotIndex ] (
53 Execute := NOT arfbIL_DPReadDiag [
iMasterSlotIndex ] . Done ,
54 NoOfBytes := SIZEOF ( arDiagBuffer ) ,
55 Values := ADR ( arDiagBuffer ) ,
56 Ident := IL_DPIdent ( INT_TO_BYTE (
iMasterSlotIndex ) , 0 , INT_TO_BYTE ( iProfibusSlaveNo ) , 0 ) ) ;
57
58 ELSE
59 // Slave returns no error
60 SlaveErr [ iMasterSlotIndex , iProfibusSlaveNo ] := FALSE ;
61 arfbIL_DPReadDiag [ iMasterSlotIndex ] ( Execute := FALSE ) ;
62
63 END_IF
64 iProfibusSlaveNo := iProfibusSlaveNo + 1 ;
// Increment device number
65 byTempDiagList := SHR ( byTempDiagList , 1 ) ;
// Shift bitlist to the next slave device
66 END_FOR // j:= 0 TO 7 DO
67 END_FOR // i:= 0 TO 15 DO
68
69 ELSIF ( bOldError ) THEN
70 // Clear slave error array in case there is no error
71 bOldError := FALSE ;
72 FOR i := 0 TO iMAXMASTERNO DO
73 FOR j := 0 TO iMAXSLAVENO DO
74 SlaveErr [ i , j ] := 0 ;
75 END_FOR
76 END_FOR
77
78 END_IF
// arfbIL_DPDevInfoGet[iMasterSlotIndex].DevInfo.BmState.1 OR fbIL_DPDevInfoGet[iMasterSlotIndex
157 1/4/2017
IndraWorks ML* 13V16.0110
79
80 END_IF
// (fbIL_DPDeviceListGet.MasterList[iMasterSlotIndex].bMasterAdr <> byNOVALIDMASTERADR)
81
82 END_FOR // iMasterSlotIndex := 0 TO uiMAXSLOT
83
84
//----------------------------------------------------------------------------------------------
85
// ---------------------------------- Generate DiagNo and DiagMessage -------------------------
86
//----------------------------------------------------------------------------------------------
87 IF ( Error = TRUE ) THEN
88 DiagNo := dwERROR_PBDP ;
89 DiagMessage := '' ; // Clear diagnosis string
90
91 // Create the diagnosis string with the first slave in error state
92 //Status.Error := FALSE;
93 FOR iLoopIndex := 0 TO iMAXMASTERNO DO
94 FOR iSubLoopIndex := 1 TO iMAXSLAVENO DO
95 IF ( ProfiBusDiag . SlaveErr [ iLoopIndex , iSubLoopIndex ] = TRUE ) THEN
96 CASE iLoopIndex OF
97 0 : DiagMessage := CONCAT ( DiagMessage , 'PB Onboard Master ' ) ;
98 1 : DiagMessage := CONCAT ( DiagMessage , 'PB Function Module 1 ' ) ;
99 2 : DiagMessage := CONCAT ( DiagMessage , 'PB Function Module 2 ' ) ;
100 3 : DiagMessage := CONCAT ( DiagMessage , 'PB Function Module 3 ' ) ;
101 4 : DiagMessage := CONCAT ( DiagMessage , 'PB Function Module 4 ' ) ;
102 END_CASE
103 DiagMessage := CONCAT ( DiagMessage , ', Error on Slave: ' ) ;
104 DiagMessage := CONCAT ( DiagMessage , INT_TO_STRING ( iSubLoopIndex ) )
; // Output slave number with the error
105 DiagNo := DiagNo OR INT_TO_DWORD ( iSubLoopIndex ) ;
106 RETURN ;
107 END_IF
108 END_FOR
109 END_FOR
110 ELSE
111 DiagNo := 16#0000 ;
112 DiagMessage := 'No profibus slave errors' ;
113 END_IF
114
158 1/4/2017
IndraWorks ML* 13V16.0110
1 VAR_GLOBAL
2 Handbild : SchnittstelleSchebaHandbewegungVCP ;
3 PP1_SK : SchnittstelleSchebaHandbewegungSchrittkette ;
4 PP2_SK : SchnittstelleSchebaHandbewegungSchrittkette ;
5 PP3_SK : SchnittstelleSchebaHandbewegungSchrittkette ;
6 PP4_SK : SchnittstelleSchebaHandbewegungSchrittkette ;
7 HP1_SK : SchnittstelleSchebaHandbewegungSchrittkette ;
8 HP2_SK : SchnittstelleSchebaHandbewegungSchrittkette ;
9 HP3_SK : SchnittstelleSchebaHandbewegungSchrittkette ;
10 CP1_SK : SchnittstelleSchebaHandbewegungSchrittkette ;
11 CP2_SK : SchnittstelleSchebaHandbewegungSchrittkette ;
12 CB_SK : SchnittstelleSchebaHandbewegungSchrittkette ;
13 END_VAR
14
159 1/4/2017
IndraWorks ML* 13V16.0110
1 VAR_GLOBAL
2
// ------------------------------------------------------------------------------------
3 //
4 // **** NEW
5 //
6 gb_uiOperationMode : UINT := 0
; // operation mode machine
7 gb_uiActivOperationMode : UINT := 0
; // activ operation mode machine
8 gb_uiMemOpMode : UINT := 0
; //
9 //
10 gb_bNoOperationModeActiv : BOOL :=
TRUE ;
11 //
12 gb_bManualModeActiv : BOOL := FALSE
;
13 gb_bHomingModeActiv : BOOL := FALSE
;
14 gb_bAutomaticModeActiv : BOOL :=
FALSE ;
15 gb_bSingleStepModeActiv : BOOL :=
FALSE ;
16 //
17 gb_bStartStopAutomaticCycle : BOOL :=
FALSE ;
18 //
19 gb_bEmergencyStopOK AT %IX0.0 : BOOL
:= FALSE ;
20 //
21 gb_bNotError : BOOL := FALSE
;
22 gb_bError : BOOL :=
FALSE ;
23 //
24 gb_bReset AT %IX111.0 : BOOL := FALSE
; // TRUE=keypad left pushbutton 3 pushed - reset
25 //
26 gb_bHomePosReached : BOOL :=
FALSE ;
27 //
28 tWaitingTimeStep_300 : TIME :=
T#1S ;
29 tWaitingTimeStep_400 : TIME :=
T#1S ;
30
31
// ------------------------------------------------------------------------------------
32 //
33 // **** Eingänge SPS
34 //
35 E_ZweiHand_11 AT %IX0.0 : BOOL ;
160 1/4/2017
IndraWorks ML* 13V16.0110
// ------------------------------------------------------------------------------------
40 //
41 // **** MASCHINEN - VERBUND
42 //
43 E_transfer01_from_left_modul AT %IX1.0 : BOOL ;
// Transfer 01: from left modul, not used
44 E_transfer02_from_left_modul AT %IX1.1 : BOOL ;
// Transfer 02: from left modul, not used
45 //
46 E_transfer01_from_right_modul AT %IX1.2 : BOOL ;
// Transfer 01: from right modul, not used
47 E_transfer02_from_right_modul AT %IX1.3 : BOOL ;
// Transfer 02: from right modul, not used
48 //
49 A_transfer01_to_left_modul AT %QX1.0 : BOOL ;
// Transfer 01: to left modul, K04
50 A_transfer02_to_left_modul AT %QX1.1 : BOOL ;
// Transfer 02: to left modul, K05
51 //
52 A_transfer01_to_right_modul AT %QX1.2 : BOOL ;
// Transfer 01: to right modul, K06
53 A_transfer02_to_right_modul AT %QX1.3 : BOOL ;
// Transfer 02: to right modul, K07
54
// ------------------------------------------------------------------------------------
55 //
56 // **** FREI AUSGÄNGE
57 //
58 A_0_0 AT %QX0.0 : BOOL ;
59 A_0_1 AT %QX0.1 : BOOL ;
60 A_0_2 AT %QX0.2 : BOOL ;
61
// ------------------------------------------------------------------------------------
62 //
63 // **** RESET AUSGANG
64 //
65 A_K03_Reset AT %QX0.3 : BOOL ;
// Error Reset
66
// ------------------------------------------------------------------------------------
67 //
68 // ****E_81B1_KurzHubZyl_1_GST Inline Module Eingänge
69 //
70
//E_81B1_KurzHubZyl_1_GST AT %IX51.0: BOOL; //Not used.
71 E_81B2_KurzHubZyl_2_GST AT %IX51.2 : BOOL ;
// Kurzhub Zylinder 2 in GST
72
73 //
74 E_81B3_KurzHubZyl_1_AST AT %IX51.1 : BOOL ;
// Kurzhub Zylinder 1 in AST
75
//E_81B4_KurzHubZyl_2_AST AT %IX51.3: BOOL; //Not used.
76 //
77 E_82B1_PressZylinderAST AT %IX52.0 : BOOL ;
// Presszylinder in AST
78 E_82B2_PressZylinderGST AT %IX52.1 : BOOL ;
// Presszylinder in GST
79 //
80 E_82B3_EinschubZylAST AT %IX52.2 : BOOL ;
// Einschubzylinder in AST
81 E_82B4_EinschubZylGST AT %IX52.3 : BOOL ;
// Einschubzylinder in GST
82 //
83 E_82B5_AusschubZylAST AT %IX52.4 : BOOL ;
// Ausschubzylinder in AST
161 1/4/2017
IndraWorks ML* 13V16.0110
162 1/4/2017
IndraWorks ML* 13V16.0110
163 1/4/2017
IndraWorks ML* 13V16.0110
1 VAR_GLOBAL
2
// ------------------------------------------------------------------------------------
3 //
4 // **** ???
5 // **** ???
6 //
7 E_VAM_pb_power_on AT %IX100.0 : BOOL ;
// pushbutton: TRUE=power on*)
8 E_VAM_pb_power_off AT %IX100.1 : BOOL ;
// pushbutton: FALSE=power off*)
9 E_VAM_I100_2 AT %IX100.2 : BOOL ;
//
10 E_VAM_I100_3 AT %IX100.3 : BOOL ;
//
11 E_VAM_I100_4 AT %IX100.4 : BOOL ;
//
12 E_VAM_I100_5 AT %IX100.5 : BOOL ;
//
13 E_VAM_I100_6 AT %IX100.6 : BOOL ;
//
14 E_VAM_I100_7 AT %IX100.7 : BOOL ;
//
15 //
16 E_VAM_I101_1 AT %IX101.1 : BOOL ;
//
17 E_VAM_I101_2 AT %IX101.2 : BOOL ;
//
18 E_VAM_I101_3 AT %IX101.3 : BOOL ;
//
19 E_VAM_ss_position_1 AT %IX101.4 : BOOL ;
// selector swich operation mode: TRUE=position_1
20 E_VAM_ss_position_2 AT %IX101.5 : BOOL ;
// selector swich operation mode: TRUE=position_2
21 E_VAM_ss_position_3 AT %IX101.6 : BOOL ;
// selector swich operation mode: TRUE=position_3
22 E_VAM_ss_position_4 AT %IX101.7 : BOOL ;
// selector swich operation mode: TRUE=position_4
23 //
24 VAM_Handrad AT %IW106 : INT ;
164 1/4/2017
IndraWorks ML* 13V16.0110
165 1/4/2017
IndraWorks ML* 13V16.0110
166 1/4/2017
IndraWorks ML* 13V16.0110
167 1/4/2017
IndraWorks ML* 13V16.0110
1 VAR_GLOBAL
2 ErrorMessages : DWORD ; (*Bits for error messages*)
3 ErrorMessagesNumber : INT ; (*number of error messages*)
4 EM01 : BOOL ; (*Error-Message 01: *)
5 EM02 : BOOL ; (*Error-Message 02: *)
6 EM03 : BOOL ; (*Error-Message 03: *)
7 EM04 : BOOL ; (*Error-Message 04: *)
8 EM05 : BOOL ;
9 EM06 : BOOL ;
10 EM07 : BOOL ;
11 EM08 : BOOL ;
12 EM09 : BOOL ;
13 EM10 : BOOL ;
(*Error-Message 10: Einschubzylinder erreicht GST nicht. Check =81.7/81Y3*)
14 EM11 : BOOL ;
(*Error-Message 11: Einschubzylinder erreicht AST nicht. Check =81.7/81Y3*)
15 EM12 : BOOL ;
(*Error-Message 12: Presszylinder erreicht GST nicht. Check =81.8/81Y4*)
16 EM13 : BOOL ;
(*Error-Message 13: Presszylinder erreicht AST nicht. Check =81.8/81Y4*)
17 EM14 : BOOL ;
(*Error-Message 14: Kurzhubzylinder erreicht GST nicht. Check =81.5/81Y1*)
18 EM15 : BOOL ;
(*Error-Message 15: Kurzhubzylinder erreicht AST nicht. Check =81.5/81Y1*)
19 EM16 : BOOL ;
(*Error-Message 16: Ausschubzylinder erreicht GST nicht. Check =81.6/81Y2*)
20 EM17 : BOOL ;
(*Error-Message 17: Ausschubzylinder erreicht AST nicht. Check =81.6/81Y2*)
21 EM18 : BOOL ;
(*Error Message 18: Schlitzzylinder erreicht GST nicht. Check =83.6/83Y2*)
22 EM19 : BOOL ;
(*Error Message 19: Schlitzzylinder erreicht AST nicht. Check =83.6/83Y2*)
23 EM20 : BOOL ;
(*Error Message 20: Z-Achse erreicht GST nicht. Check =83.7/83Y3*)
24 EM21 : BOOL ;
(*Error Message 21: Z-Achse erreicht AST nicht. Check =83.7/83Y3*)
25 EM22 : BOOL ;
(*Error Message 22: Zylinder Presse erreicht GST nicht. Check =84.7/84Y3*)
26 EM23 : BOOL ;
(*Error Message 23: Zylinder Presse erreicht AST nicht. Check =84.7/84Y3*)
27 EM24 : BOOL ;
(*Error Message 24: Ausschieber Presse erreicht GST nicht. Check =84.8/84Y2*)
28 EM25 : BOOL ;
(*Error Message 25: Ausschieber Presse erreicht AST nicht. Check =84.8/84Y2*)
29 EM26 : BOOL ;
30 EM27 : BOOL ;
31 EM28 : BOOL ; (**)
32 EM29 : BOOL ; (**)
33 EM30 : BOOL ; (*Error-Massage 30: Failure Profibus Slave ### *)
34 EM31 : BOOL ; (*Error-Massage 31: Failure Profibus Slave ### *)
35 EM32 : BOOL ; (*Error-Massage 32: Failure Profibus Slave ### *)
36
37 Betriebsmeldungen : DWORD ;
(*Betreibsmeldungen / operating message*)
38 BetriebsmeldungenNr : INT ;
(*Medenummer für Textfeld-Ausgabe / number of message*)
39 PBDiagFailureSlave1 : INT ; (*adress of 1.Slave failure*)
40 PBDiagFailureSlave2 : INT ; (*adress of 2.Slave failure*)
41 PBDiagFailureSlave3 : INT ; (*adress of 3.Slave failure*)
42
43
44 OpMsg01 : BOOL ; (*Operating Message 01: Anlage in Grundstellung *)
45 OpMsg02 : BOOL ; (*Operating Message 02: *)
46 OpMsg03 : BOOL ;
168 1/4/2017
IndraWorks ML* 13V16.0110
169 1/4/2017
IndraWorks ML* 13V16.0110
1 VAR_GLOBAL
2 SS_OM_Off : BOOL ; (*selectorswitch operation mode=off*)
3 SS_OM_Setup : BOOL ; (*selectorswitch operation mode=setup*)
4 SS_OM_automatic : BOOL ;
(*selectorswitch operation mode=automatic*)
5
6 OM_setup : BOOL ; (*operationmode setup is active*)
7 OM_automatic : BOOL ; (*operationmode automatic *)
8 OM_automatic_stop : BOOL ; (*operationmaide automatic stop*)
9 auto_running : BOOL ; (*automatic is running*)
10
11 bMoveGST : ARRAY [ 1 .. 10 ] OF BOOL ;
(*Zylinder in Richtung GST bewegen*)
12 bMoveAST : ARRAY [ 1 .. 10 ] OF BOOL ;
(*Zylinder in Richtung AST bewegen*)
13
14 bZweiHandAktiv : BOOL ; (*TRUE-Zweihandtaster betätigt*)
15
16 Power_on : BOOL ; (*TRUE=Power on*)
17
18 VCP_Start : BOOL ; (*Starttaste an VCP*)
19 VCP_Stopp : BOOL ; (*Stopptaste an VCP*)
20 VCP_Reset : BOOL ; (*Resettaste an VCP*)
21
22 next : BOOL ; (*next Step*)
23 FRG_automatic : BOOL ; (*enable start automatic*)
24 END_VAR
25
170 1/4/2017
IndraWorks ML* 13V16.0110
#IoStandard
IBase, * (System)
CmpErrors, * (System)
SysTypes, * (System)
#Standard
#RIL_UTILITIES
#RIL_COMMONTYPES
#SysTime
#SysTimeCore
#SysTimeRtc
#SysTimeCore
#Standard
#Util
#Standard
#SysTimeRtc
#SysTimeCore
#RIL_COMMONTYPES
#RIL_FIELDBUSTYPES
#RIL_NETXLOAD
#CmpErrors
#SysTypes
#CmpEventMgr
#CmpLog
SysTypes, * (System)
#CmpSettings
#Component Manager
SysTypes, * (System)
ISysTypes, * (System)
#CmpEventMgr
#CmpApp
SysTypes, * (System)
#IoStandard
IBase, * (System)
CmpErrors, * (System)
SysTypes, * (System)
#Standard
#SysFile
SysTypes, * (System)
#SysMem
#SysTypes
#BASELIB
#RIL_COMMONTYPES
#SysTypes
#SysTime
#SysTimeCore
#SysTimeRtc
#SysTimeCore
#CmpErrors
#SysTypes
#RIL_UTILITIES
#RIL_COMMONTYPES
#SysTime
#SysTimeCore
#SysTimeRtc
#SysTimeCore
#Standard
#Util
#Standard
#SysTimeRtc
#SysTimeCore
#RIL_INLINE
#RIL_COMMONTYPES
#RIL_UTILITIES
#RIL_COMMONTYPES
#SysTime
171 1/4/2017
IndraWorks ML* 13V16.0110
#SysTimeRtc
#SysTimeCore
#Standard
#Util
#Standard
#SysTimeRtc
#SysTimeCore
SysMem, 3.3.2.50 (System)
#IODRVCIFXPROFIBUSDCIA
#IoDrvCIFXProfibus
#IoDrvCifXBase
#IoStandard
IBase, * (System)
CmpErrors, * (System)
SysTypes, * (System)
IIoDrv, * (System)
IIoDrvParameter, * (System)
IBase, * (System)
#CAA Types
#SysCpuHandling
#SysMem
SysTypes, * (System)
CmpErrors, * (System)
#CAA Callback
#CAA Types
#SysCpuHandling
#SysMem
SysTypes, * (System)
CmpErrors, * (System)
IIoDrvBusControl, * (System)
#Standard
#CmpLog
SysTypes, * (System)
CmpErrors, * (System)
#Component Manager
SysTypes, * (System)
ISysTypes, * (System)
#CmpEventMgr
#CmpApp
SysTypes, * (System)
#SysMem
#IoDrvBase
#IoStandard
IBase, * (System)
CmpErrors, * (System)
SysTypes, * (System)
CmpErrors, * (System)
IBase, * (System)
IIoDrv, * (System)
#CmpSettings
#SysCpuHandling
#SysMem
SysTypes, * (System)
CmpErrors, * (System)
#CmpEventMgr
#3SLicense
#SysTarget
SysTypes, * (System)
#SysFile
SysTypes, * (System)
#CmpLog
SysTypes, * (System)
#CAA Types
#SysCpuHandling
#SysMem
SysTypes, * (System)
CmpErrors, * (System)
172 1/4/2017
IndraWorks ML* 13V16.0110
#Component Manager
SysTypes, * (System)
ISysTypes, * (System)
#CmpEventMgr
#CmpApp
SysTypes, * (System)
CmpErrors, * (System)
SysTypes, * (System)
#CmpApp
SysTypes, * (System)
#SysTime
#SysTimeCore
#SysTimeRtc
#SysTimeCore
#CmpIecTask
#CmpApp
SysTypes, * (System)
SysTypes, * (System)
ISysTypes, * (System)
IIoDrvDPV1C1, * (System)
#CmpErrors
#SysTypes
#CmpEventMgr
#RIL_PROFIBUSDP_02
IIoDrvDPV1C1, * (System)
IBase, * (System)
IIoDrv, * (System)
IIoDrvProfibus, * (System)
IIoDrvParameter, * (System)
#IoStandard
IBase, * (System)
CmpErrors, * (System)
SysTypes, * (System)
#CmpIoMgr
#Standard
#CmpErrors
#SysTypes
#SysMem
#CmpIoDrvC
#CmpIoMgr
#IoStandard
IBase, * (System)
CmpErrors, * (System)
SysTypes, * (System)
IIoDrvDPV1C1, * (System)
IIoDrvDPV1C2, * (System)
IIoDrvParameter, * (System)
IIoDrv, * (System)
IBase, * (System)
CmpErrors, * (System)
#SysTypes
#RIL_COMMONTYPES
#RIL_FIELDBUSTYPES
#IecVarAccess
#CmpIecVarAccess
IBase, * (System)
ICollections, * (System)
#Collections
#SysMem
ICollections, * (SYSTEM)
IBase, * (System)
#Standard
CmpErrors, * (System)
IIecVarAccess6, * (System)
ISysTypes, * (System)
Dataserver Interfaces 2, * (System)
IBase, * (System)
173 1/4/2017
IndraWorks ML* 13V16.0110
SysTypes, * (System)
ISysTypes, * (System)
#CmpEventMgr
#CmpApp
SysTypes, * (System)
ICollections, * (SYSTEM)
#SymbolicVarsBase
IBase, * (System)
ICollections, * (SYSTEM)
#CmpApp
SysTypes, * (System)
#Collections
#SysMem
ICollections, * (SYSTEM)
IBase, * (System)
#Standard
CmpErrors, * (System)
#Standard
#SysMem
CmpErrors, * (System)
ISysTypes, * (System)
#SysCpuHandling
#SysMem
SysTypes, * (System)
CmpErrors, * (System)
IIecVarAccess10, * (System)
#Collections
#SysMem
ICollections, * (SYSTEM)
IBase, * (System)
#Standard
CmpErrors, * (System)
#Standard
CmpErrors, * (System)
ISysTypes, * (System)
SysTypes, * (System)
IIecVarAccess10, * (System)
Util, 3.4.1.20 (System)
#Standard
#IecSfc
#Standard
174 1/4/2017
IndraWorks ML* 13V16.0110
1 PROGRAM main_program
2
// ------------------------------------------------------------------------------------------
3 // AUTOR: DC-IA / STS 11 - Holger Raquet
4 // data: 21.07.2015
5 // changes:
6 //
7
// ------------------------------------------------------------------------------------------
8 VAR
9 //
10 fbTaktSignale : TaktSignale ;
11 wFlashLightWord : WORD ;
12 //
13
// ------------------------------------------------------------------------------------------
14 //
15 // **** SK
16 //
17 uiActivStep : UINT ;
18 uiNextStep : UINT ;
19 uiLastStep : UINT ;
20 //
21 fbTimer_01 : TON ;
22 //
23 tWaitingTimeStep_400 : TIME := T#2000MS
; // NACHLAUF TEIL AN PIN PRESS
24 //
25 tWaitingTimeStep_1200 : TIME := T#600MS ;
// NACHLAUF TEIL AM PORTAL (UNTERTEIL)
26 //
27 tWaitingTimeStep_2300 : TIME := T#580MS ;
// NACHLAUF TEIL AM PORTAL (OBERTEIL)
28 //
29 tWaitingTimeStep_4400 : TIME := T#5000MS
; // NACHLAUF TEIL AUS MASCHINE
30
// ------------------------------------------------------------------------------------------
31 //
32 // **** SK
33 //
34 uiActivStepPinPress : UINT ;
35 uiNextStepPinPress : UINT ;
36 uiLastStepPinPress : UINT ;
37 uiHandsakePinPress : UINT ;
38 //
39 bHomePosReachedPinPress : BOOL ;
40 //
41 fbTimerPinPress : TON ;
42 //
43 tWaitingTimeStepPinPress_400 : TIME := T#500MS ;
44 tWaitingTimeStepPinPress_500 : TIME := T#500MS ;
45 tWaitingTimeStepPinPress_600 : TIME := T#1S ;
// PIN-ZYLINDER
46 tWaitingTimeStepPinPress_800 : TIME := T#2S ;
// PRESSZEIT
47 tWaitingTimeStepPinPress_900 : TIME := T#500MS ;
48 tWaitingTimeStepPinPress_1000 : TIME := T#500MS ;
49 tWaitingTimeStepPinPress_1100 : TIME := T#500MS ;
50 tWaitingTimeStepPinPress_1200 : TIME := T#500MS ;
51
175 1/4/2017
IndraWorks ML* 13V16.0110
// ------------------------------------------------------------------------------------------
52 //
53 // **** SK
54 //
55 uiActivStepPortal : UINT ;
56 uiNextStepPortal : UINT ;
57 uiLastStepPortal : UINT ;
58 uiHandsakePortal : UINT ;
59 //
60 bHomePosReachedPortal : BOOL ;
61 //
62 fbTimerPortal : TON ;
63 //
64 tWaitingTimeStepPortalVcuum : TIME := T#1000MS
;
65
// ------------------------------------------------------------------------------------------
66 //
67 // **** SK
68 //
69 uiActivStepCubePress : UINT ;
70 uiNextStepCubePress : UINT ;
71 uiLastStepCubePress : UINT ;
72 uiHandsakeCubePress : UINT ;
73 //
74 bHomePosReachedCubePress : BOOL ;
75 //
76 uiStepNoPortal : UINT ;
77 //
78 fbTimerCubePress : TON ;
79 //
80 tWaitingTimeStepCubePress_200 : TIME := T#1000MS
;
81 tWaitingTimeStepCubePress_400 : TIME := T#2000MS
;
82 tWaitingTimeStepCubePress_500 : TIME := T#1000MS
;
83
// ------------------------------------------------------------------------------------------
84 arOutputs : ARRAY [ 1 .. 15 ] OF
FunctionModul ;
85 arError : ARRAY [ 1 .. 15 ] OF
BOOL ;
86 arErrorNo : ARRAY [ 1 .. 15 ] OF
UINT ;
87 //
88 arKeypad_02_LED : ARRAY [ 1 .. 15 ] OF
SwitchingLEDs ;
89
// ------------------------------------------------------------------------------------------
90 //
91 bHelpFlagSingleStepStart : BOOL ;
92
//
93
// ------------------------------------------------------------------------------------------
94 bHomePosReachedBelt : BOOL ;
95 //
96
// ------------------------------------------------------------------------------------------
97 uiActivStepReferenz : UINT ;
98 uiNextStepReferenz : UINT ;
99 uiLastStepReferenz : UINT ;
100 //
176 1/4/2017
IndraWorks ML* 13V16.0110
1 // ------------------------------------------------------------------------------------------
2 //
3 // **** operation mode switch
4 // **** BETRIEBSARTENSCHALTER
5 //
6 // **** manual mode
7 // **** HANDBETRIEB
8 //
9 IF ( E_VAM_ss_position_1 = TRUE )
10 AND ( E_VAM_ss_position_2 = FALSE )
11 AND ( E_VAM_ss_position_3 = FALSE )
12 AND ( E_VAM_ss_position_4 = FALSE ) THEN
13 gb_uiOperationMode := 100 ;
14 //
15 // **** homing mode
16 // **** GRUNDSTELLUNGSFAHRT
17 //
18 ELSIF ( E_VAM_ss_position_1 = FALSE )
19 AND ( E_VAM_ss_position_2 = TRUE )
20 AND ( E_VAM_ss_position_3 = FALSE )
21 AND ( E_VAM_ss_position_4 = FALSE ) THEN
22 gb_uiOperationMode := 200 ;
23 //
24 // **** automatic mode
25 // **** AUTOMATIKBETRIEB
26 //
27 ELSIF ( E_VAM_ss_position_1 = FALSE )
28 AND ( E_VAM_ss_position_2 = FALSE )
29 AND ( E_VAM_ss_position_3 = TRUE )
30 AND ( E_VAM_ss_position_4 = FALSE ) THEN
31 gb_uiOperationMode := 300 ;
32 //
33 // **** single step mode "part of automatic mode"
34 // **** EINZEL-SCHRITT-BETRIEB
35 //
36 ELSIF ( E_VAM_ss_position_1 = FALSE )
37 AND ( E_VAM_ss_position_2 = FALSE )
38 AND ( E_VAM_ss_position_3 = FALSE )
39 AND ( E_VAM_ss_position_4 = TRUE ) THEN
40 gb_uiOperationMode := 400 ;
41 END_IF
42
// ------------------------------------------------------------------------------------------
43 //
44 // ****
45 // ****
46 //
177 1/4/2017
IndraWorks ML* 13V16.0110
178 1/4/2017
IndraWorks ML* 13V16.0110
1 // ---------------------------------------------------------------------------------------------
2 //
3 // ****
4 // **** TAKTSIGNALE
5 //
6
// ---------------------------------------------------------------------------------------------
7 //
8 fbTaktSignale (
9 Takt_1_Zeit_Aus := T#1S ,
10 Takt_1_Zeit_Ein := T#1S ,
11 Takt_2_Zeit_Aus := T#500MS ,
12 Takt_2_Zeit_Ein := T#500MS ,
13 Takt_1 => ,
14 Takt_2 => ) ;
15 //
16 wFlashLightWord . 0 := fbTaktSignale . Takt_1 ;
17 wFlashLightWord . 1 := fbTaktSignale . Takt_2 ;
18
// ---------------------------------------------------------------------------------------------
19 //
20 // ****
21 // **** MASCHINEN-VERBUND
22 //
23
// ---------------------------------------------------------------------------------------------
24
25
// ---------------------------------------------------------------------------------------------
26 //
27 // ****
28 // **** KOMMUNIKATION VORGESCHALTETER MASCHINE
29 // **** => EINGABE VON VOR-MASCHINE
30 //
31
// ---------------------------------------------------------------------------------------------
32 IF ( E_transfer01_from_right_modul = FALSE )
33 AND ( E_transfer02_from_right_modul = FALSE ) THEN
34 uiFrontMaschine := 0 ;
// KEINE VOR-MASCHINE
35 //
36 ELSIF ( E_transfer01_from_right_modul = TRUE )
37 AND ( E_transfer02_from_right_modul = FALSE ) THEN
// VOR-MASCHINE VORHANDEN
38 uiFrontMaschine := 1 ;
39 //
40 ELSIF ( E_transfer01_from_right_modul = FALSE )
41 AND ( E_transfer02_from_right_modul = TRUE ) THEN
// VOR-MASCHINE => "2" UNTERTEIL
42 uiFrontMaschine := 2 ;
43 //
44 ELSIF ( E_transfer01_from_right_modul = TRUE )
45 AND ( E_transfer02_from_right_modul = TRUE ) THEN
// VOR-MASCHINE => "3" OBERTEIL
46 uiFrontMaschine := 3 ;
47 END_IF
48
// ---------------------------------------------------------------------------------------------
49 //
50 // **** => AUSGABE ZUR VOR-MASCHINE
179 1/4/2017
IndraWorks ML* 13V16.0110
51 //
52 IF ( uiFrontMaschine <= 0 ) THEN
53 A_transfer01_to_right_modul := FALSE ;
54 A_transfer02_to_right_modul := FALSE ;
55 ELSE
56 //
57 CASE ( uiFrontMaschine + uiRequestWorkpiece ) OF
58 // -----------------------------------------------------------
59 1 : A_transfer01_to_right_modul := TRUE ;
60 A_transfer02_to_right_modul := FALSE ;
61 // -----------------------------------------------------------
62 2:
63 IF ( uiActivStep = 100 ) THEN
64 A_transfer01_to_right_modul := FALSE ;
65 A_transfer02_to_right_modul := TRUE ;
66 END_IF
67 // -----------------------------------------------------------
68 3 : IF ( uiActivStep = 2100 ) THEN
69 A_transfer01_to_right_modul := TRUE ;
70 A_transfer02_to_right_modul := TRUE ;
71 END_IF
72 // -----------------------------------------------------------
73 END_CASE
74 END_IF
75
// ---------------------------------------------------------------------------------------------
76 //
77 // ****
78 // **** KOMMUNIKATION NACHGESCHALTETE MASCHINE
79 // **** => EINGABE VON FOLGE-MASCHINE
80 //
81
// ---------------------------------------------------------------------------------------------
82 IF ( E_transfer01_from_left_modul = FALSE )
83 AND ( E_transfer02_from_left_modul = FALSE ) THEN
84 uiBackMaschine := 0 ;
// KEINE VOR-MASCHINE
85 //
86 ELSIF ( E_transfer01_from_left_modul = TRUE )
87 AND ( E_transfer02_from_left_modul = FALSE ) THEN
// VOR-MASCHINE VORHANDEN
88 uiBackMaschine := 1 ;
89 //
90 ELSIF ( E_transfer01_from_left_modul = FALSE )
91 AND ( E_transfer02_from_left_modul = TRUE ) THEN
// VOR-MASCHINE => "2" UNTERTEIL
92 uiBackMaschine := 2 ;
93 //
94 ELSIF ( E_transfer01_from_left_modul = TRUE )
95 AND ( E_transfer02_from_left_modul = TRUE ) THEN
// VOR-MASCHINE => "3" OBERTEIL
96 uiBackMaschine := 3 ;
97 END_IF
98 //
99 // **** => AUSGABE ZUR FOLGE-MASCHINE
100 // ****
101 //
102 IF (
103 ( gb_bAutomaticModeActiv = TRUE )
104 OR ( gb_bSingleStepModeActiv = TRUE )
105 )
106 AND ( uiActivStep < 4300 ) THEN
107 A_transfer01_to_left_modul := TRUE ;
108 A_transfer02_to_left_modul := FALSE ;
180 1/4/2017
IndraWorks ML* 13V16.0110
109 END_IF
110 //
111 IF (
112 ( gb_bAutomaticModeActiv = TRUE )
113 OR ( gb_bSingleStepModeActiv = TRUE )
114 )
115 AND ( uiActivStep >= 4300 ) THEN
116 //
117 // **** WÜRFEL FERTIG
118 //
119 A_transfer01_to_left_modul := TRUE ;
120 A_transfer02_to_left_modul := TRUE ;
121 END_IF
122 //
123 // **** SIGNALE ZURÜCKNEHMEN
124 //
125 IF ( gb_bAutomaticModeActiv = FALSE )
126 AND ( gb_bSingleStepModeActiv = FALSE ) THEN
127 A_transfer01_to_left_modul := FALSE ;
128 A_transfer02_to_left_modul := FALSE ;
129 END_IF
130
// ---------------------------------------------------------------------------------------------
131 //
132 E_transfer01_from_left_modul ;
133 E_transfer02_from_left_modul ;
134 E_transfer01_from_right_modul ;
135 E_transfer02_from_right_modul ;
136 //
137 A_transfer01_to_left_modul ;
138 A_transfer02_to_left_modul ;
139 A_transfer01_to_right_modul ;
140 A_transfer02_to_right_modul ;
141
// ---------------------------------------------------------------------------------------------
142
181 1/4/2017
IndraWorks ML* 13V16.0110
1 // ---------------------------------------------------------------------------------------------
2 //
3 // **** REFERENZ-POSITION REACHED
4 // **** GRUNDSTELLUNG ERREICHT
5 //
6
// ---------------------------------------------------------------------------------------------
7 // PIN PRESS
8 bHomePosReachedPinPress := ( E_82B6_AusschubZylGST = TRUE )
9 AND ( E_82B4_EinschubZylGST = TRUE )
10
//AND (E_81B1_KurzHubZyl_1_GST = TRUE)
11 AND ( E_81B2_KurzHubZyl_2_GST = TRUE )
12 AND ( E_82B2_PressZylinderGST = TRUE ) ;
13 // PORTAL
14 bHomePosReachedPortal := ( E_83B3_ZylZAchseOben = TRUE )
15 AND ( E_83B2_SchlitzZylGST = TRUE )
16 AND ( A_83Y1_SaugGreiferEin = FALSE ) ;
17 // CUBE PRESS
18 bHomePosReachedCubePress := ( E_84B3_AusschiebeZylGST = TRUE )
23 // ALL
24 gb_bHomePosReached := ( bHomePosReachedPinPress = TRUE )
25 AND ( bHomePosReachedPortal = TRUE )
26 AND ( bHomePosReachedCubePress = TRUE )
27 AND ( bHomePosReachedBelt = TRUE );
28
// ---------------------------------------------------------------------------------------------
29 //
30 // ****
31 // **** WENN REFERENZ NICHT ANWÄHLT
32 //
33
// ---------------------------------------------------------------------------------------------
34 //
35 IF ( gb_uiActivOperationMode <> 200 ) THEN
36 //
37 gb_bStartStopHoming := FALSE ;
38 //
39 uiActivStepReferenz := 0 ;
40 uiNextStepReferenz := 0 ;
41 uiLastStepReferenz := 0 ;
42 //
43 FOR n := 1 TO 15 DO
44 arOutputs [ n ] . ReferenzSetForward := FALSE ;
45 arOutputs [ n ] . ReferenzSetBackward := FALSE ;
46 END_FOR
47 //
48 RETURN ;
49 END_IF
50
// ---------------------------------------------------------------------------------------------
51 //
52 // **** REFERENZ POSTION MACHINE
53 // **** SCHRITT-KETTE GRUNDSTELLUNG MASCHINE
182 1/4/2017
IndraWorks ML* 13V16.0110
54 //
55
// ---------------------------------------------------------------------------------------------
56 //
57 CASE uiActivStepReferenz OF
58
// ---------------------------------------------------------------------------------------------
59 100 : //
60 // ****
61 // **** PIN PRESS => PRESS-ZYLINDER GST
62 //
63 arOutputs [ 12 ] . ReferenzSetForward := FALSE ;
64 arOutputs [ 12 ] . ReferenzSetBackward := TRUE ;
65 //A_81Y4_VentilPressZyl := FALSE;
66 //
67 IF ( E_82B2_PressZylinderGST = TRUE ) THEN
68 uiNextStepReferenz := 200 ;
69 END_IF
70
// ---------------------------------------------------------------------------------------------
71 200 : //
72 // ****
73 // **** PIN PRESS => KURZHUB GST
74 //
75 arOutputs [ 9 ] . ReferenzSetForward := FALSE ;
76 arOutputs [ 9 ] . ReferenzSetBackward := TRUE ;
77 //A_81Y1_VentilKurzhubZyl := FALSE;
78 //
79 IF ( E_81B2_KurzHubZyl_2_GST = TRUE ) THEN
80 uiNextStepReferenz := 300 ;
81 END_IF
82
// ---------------------------------------------------------------------------------------------
83 300 : //
84 // ****
85 // **** PIN PRESS => EINSCHIEBER ZURÜCK
86 //
87 arOutputs [ 6 ] . ReferenzSetForward := FALSE ;
88 arOutputs [ 6 ] . ReferenzSetBackward := TRUE ;
89 //A_81Y3_VentilEinschubZyl := FALSE;
90 //
91 IF ( E_82B4_EinschubZylGST = TRUE ) THEN
92 uiNextStepReferenz := 400 ;
93 END_IF
94
// ---------------------------------------------------------------------------------------------
95 400 : //
96 // ****
97 // **** PIN PRESS => AUSSCHIEBER VOR
98 //
99 arOutputs [ 3 ] . ReferenzSetForward := TRUE ;
100 arOutputs [ 3 ] . ReferenzSetBackward := FALSE ;
101 //A_81Y2_VentilAusschubZyl := TRUE;
102 //
103 IF ( E_82B5_AusschubZylAST = TRUE ) THEN
104 uiNextStepReferenz := 500 ;
105 END_IF
106
// ---------------------------------------------------------------------------------------------
107 500 : //
108 // ****
109 // **** AUSSCHUB-ZYLINDER ZURÜCK
110 //
111 arOutputs [ 3 ] . ReferenzSetForward := FALSE ;
183 1/4/2017
IndraWorks ML* 13V16.0110
184 1/4/2017
IndraWorks ML* 13V16.0110
170 //
171 arOutputs [ 1 ] . ReferenzSetForward := TRUE ;
172 arOutputs [ 1 ] . ReferenzSetBackward := FALSE ;
185 1/4/2017
IndraWorks ML* 13V16.0110
1 // ---------------------------------------------------------------------------------------------
2 //
3 // ****
4 // **** WENN AUTOMATIK NICHT ANWÄHLT
5 //
6
// ---------------------------------------------------------------------------------------------
7 //
8 IF ( gb_uiActivOperationMode <> 300 ) THEN
9 //
10 gb_bStartStopAutomaticCycle := FALSE ;
11 //
12 uiActivStep := 0 ;
13 uiNextStep := 0 ;
14 uiLastStep := 0 ;
15 //
16 uiActivStepPinPress := 0 ;
17 uiNextStepPinPress := 0 ;
18 uiLastStepPinPress := 0 ;
19 uiHandsakePinPress := 0 ;
20 //
21 uiActivStepPortal := 0 ;
22 uiNextStepPortal := 0 ;
23 uiLastStepPortal := 0 ;
24 uiHandsakePortal := 0 ;
25 //
26 uiStepNoPortal := 0 ;
27 //
28 uiActivStepCubePress := 0 ;
29 uiNextStepCubePress := 0 ;
30 uiLastStepCubePress := 0 ;
31 uiHandsakeCubePress := 0 ;
32 //
33 FOR n := 1 TO 15 DO
34 arOutputs [ n ] . AutoSetForward := FALSE ;
35 arOutputs [ n ] . AutoSetBackward := FALSE ;
36 END_FOR
37 //
38 RETURN ;
39 END_IF
40
// ---------------------------------------------------------------------------------------------
41 //
42 // ****
43 // **** SCHRITT-KETTE AUTOMATIK / EINZEL-SCHRITT-BETRIEB
44 //
45
// ---------------------------------------------------------------------------------------------
46 //
47 CASE uiActivStep OF
48
// ---------------------------------------------------------------------------------------------
49 100 : //
50 // ****
51 // **** TEIL VON VOR-MASCHINE ANFORDERN
52 // **** FREIGABE SCHRITTKETTE PIN-PRESS
53 //
54 CASE uiFrontMaschine OF
55
// -------------------------------------------------------------
186 1/4/2017
IndraWorks ML* 13V16.0110
56 0 : // KEINE VOR-MASCHINE
57 //
58 arOutputs [ 15 ] . AutoSetForward := TRUE ;
59 arOutputs [ 15 ] . AutoSetBackward := FALSE ;
60
//A_84K1_conveyor_belt_dir_end := TRUE;
61 //A_84K2_conveyor_belt_dir_start := FALSE;
62 //
63 uiHandsakePinPress := 100 ;
64 uiNextStep := 200 ;
65
// -------------------------------------------------------------
66 1 : // VOR-MASCHINE
67 //uiHandsakePinPress := 100;
68
// -------------------------------------------------------------
69 2 : // MELDUNG UNTERTEIL "BEREIT"
70 //
71 arOutputs [ 15 ] . AutoSetForward := TRUE ;
72 arOutputs [ 15 ] . AutoSetBackward := FALSE ;
73
//A_84K1_conveyor_belt_dir_end := TRUE;
74 //A_84K2_conveyor_belt_dir_start := FALSE;
75 //
76 uiHandsakePinPress := 100 ;
77 uiNextStep := 200 ;
78
// -------------------------------------------------------------
79 3 : // TEIL-FEHLER
80 ;
81
// -------------------------------------------------------------
82 END_CASE
83
// ---------------------------------------------------------------------------------------------
84 200 : //
85 // ****
86 // **** RÜCKMELDUNG SCHRITTKETTE PIN-PRESS
87 //
88 IF ( uiHandsakePinPress = 200 ) THEN
89 uiNextStep := 300 ;
90 END_IF
91
// ---------------------------------------------------------------------------------------------
92 300 : //
93 // **** TEIL KURZ VOR PIN-PRESS
94 //
95 IF ( E_85B11_LSEmpfaenger = TRUE ) THEN
96 uiNextStep := 400 ;
97 END_IF
98
// ---------------------------------------------------------------------------------------------
99 400 : //
100 // ****
101 // **** NACHLAUF BIS TEIL AM ANSCHLAG VOR PIN-PRESS
102 //
103 arOutputs [ 15 ] . AutoSetForward := TRUE ;
104 arOutputs [ 15 ] . AutoSetBackward := FALSE ;
105 //A_84K1_conveyor_belt_dir_end := TRUE;
106 //A_84K2_conveyor_belt_dir_start := FALSE;
107 //
108 fbTimer_01 (
109 IN := ( fbTimer_01 . Q = FALSE ) ,
110 PT := tWaitingTimeStep_400 ,
187 1/4/2017
IndraWorks ML* 13V16.0110
111 Q => ,
112 ET => );
113 //
114 IF ( fbTimer_01 . Q = TRUE ) THEN
115 arOutputs [ 15 ] . AutoSetForward := FALSE ;
116 arOutputs [ 15 ] . AutoSetBackward := FALSE ;
117 //A_84K1_conveyor_belt_dir_end := FALSE;
118 //A_84K2_conveyor_belt_dir_start := FALSE;
119 //
120 uiNextStep := 500 ;
121 END_IF
122
// ---------------------------------------------------------------------------------------------
123 500 : //
124 // ****
125 // **** BAND ANHALTEN
126 // **** WEITERSCHALTEN SCHRITTKETTE PIN-PRESS
127 //
128 arOutputs [ 15 ] . AutoSetForward := FALSE ;
129 arOutputs [ 15 ] . AutoSetBackward := FALSE ;
130 //A_84K1_conveyor_belt_dir_end := FALSE;
131 //A_84K2_conveyor_belt_dir_start := FALSE;
132 //
133 uiHandsakePinPress := 300 ;
134 //
135 uiNextStep := 600 ;
136
// ---------------------------------------------------------------------------------------------
137 600 : //
138 // ****
139 // **** WARTEN AUF "TEIL FERTIG" PIN-PRESS
140 //
141 IF ( uiHandsakePinPress = 999 ) THEN
142 //
143 uiHandsakePinPress := 0 ;
144 uiNextStep := 1100 ;
145 END_IF
146
// ---------------------------------------------------------------------------------------------
147
// ---------------------------------------------------------------------------------------------
148 1100 : //
149 // ****
150 // **** TEIL ZUM PORTAL TRANSPORTIEREN
151 //
152 arOutputs [ 15 ] . AutoSetForward := TRUE ;
153 arOutputs [ 15 ] . AutoSetBackward := FALSE ;
154 //A_84K1_conveyor_belt_dir_end := TRUE;
155 //A_84K2_conveyor_belt_dir_start := FALSE;
156 //
157 IF ( E_104_2_LS2Empfaenger = TRUE ) THEN
158 //
159 uiNextStep := 1200 ;
160 END_IF
161
// ---------------------------------------------------------------------------------------------
162 1200 : //
163 // ****
164 // **** NACHLAUF BIS TEIL AUF "PORTAL PLATZ"
165 //
166 arOutputs [ 15 ] . AutoSetForward := TRUE ;
167 arOutputs [ 15 ] . AutoSetBackward := FALSE ;
168 //A_84K1_conveyor_belt_dir_end := TRUE;
169 //A_84K2_conveyor_belt_dir_start := FALSE;
188 1/4/2017
IndraWorks ML* 13V16.0110
170 //
171 fbTimer_01 (
172 IN := ( fbTimer_01 . Q = FALSE ) ,
173 PT := tWaitingTimeStep_1200 ,
174 Q => ,
175 ET => ) ;
176 //
177 IF ( fbTimer_01 . Q = TRUE ) THEN
178 arOutputs [ 15 ] . AutoSetForward := FALSE ;
179 arOutputs [ 15 ] . AutoSetBackward := FALSE ;
180 //A_84K1_conveyor_belt_dir_end := FALSE;
181 //A_84K2_conveyor_belt_dir_start := FALSE;
182 //
183 uiNextStep := 1300 ;
184 END_IF
185
// ---------------------------------------------------------------------------------------------
186 1300 : //
187 // ****
188 // **** FREIGABE AN PORTAL (UNTERTEIL)
189 //
190 arOutputs [ 15 ] . AutoSetForward := FALSE ;
191 arOutputs [ 15 ] . AutoSetBackward := FALSE ;
192 //
193 uiHandsakePortal := 100 ;
194 uiNextStep := 1400 ;
195
// ---------------------------------------------------------------------------------------------
196 1400 : //
197 // ****
198
// **** RÜCKMELDUNG VON PORTAL SCHRITTKETTE ANGELAUFEN
199 //
200 IF ( uiHandsakePortal = 200 ) THEN
201 //
202 uiHandsakePortal := 300 ;
203 uiNextStep := 1500 ;
204 END_IF
205
// ---------------------------------------------------------------------------------------------
206 1500 : //
207 // ****
208 // **** TEIL VON BAND "ABGEHOBEN"
209 //
210 IF ( uiHandsakePortal = 400 ) THEN
211 uiNextStep := 2100 ;
212 END_IF
213
// ---------------------------------------------------------------------------------------------
214 2100 : //
215 // ****
216 // **** TEIL VON VOR-MASCHINE ANFORDERN (OBERTEIL)
217 //
218 CASE uiFrontMaschine OF
219
// -------------------------------------------------------------
220 0 : // KEINE VOR-MASCHINE
221 //
222 arOutputs [ 15 ] . AutoSetForward := TRUE ;
223 arOutputs [ 15 ] . AutoSetBackward := FALSE ;
224
//A_84K1_conveyor_belt_dir_end := TRUE;
225 //A_84K2_conveyor_belt_dir_start := FALSE;
226 uiNextStep := 2200 ;
189 1/4/2017
IndraWorks ML* 13V16.0110
227
// -------------------------------------------------------------
228 1 : // VOR-MASCHINE
229 ;
230
// -------------------------------------------------------------
231 2 : // TEIL-FEHLER
232 ;
233
// -------------------------------------------------------------
234 3 : // MELDUNG UNTERTEIL "BEREIT"
235 //
236 arOutputs [ 15 ] . AutoSetForward := TRUE ;
237 arOutputs [ 15 ] . AutoSetBackward := FALSE ;
238
//A_84K1_conveyor_belt_dir_end := TRUE;
239 //A_84K2_conveyor_belt_dir_start := FALSE;
240 uiNextStep := 2200 ;
241
// -------------------------------------------------------------
242 END_CASE
243
// ---------------------------------------------------------------------------------------------
244 2200 : //
245 // ****
246 // **** TEIL ZUM PORTAL TRANSPORTIEREN
247 //
248 arOutputs [ 15 ] . AutoSetForward := TRUE ;
249 arOutputs [ 15 ] . AutoSetBackward := FALSE ;
250 //A_84K1_conveyor_belt_dir_end := TRUE;
251 //A_84K2_conveyor_belt_dir_start := FALSE;
252 //
253 IF ( E_104_2_LS2Empfaenger = TRUE ) THEN
254 //
255 uiNextStep := 2300 ;
256 END_IF
257
// ---------------------------------------------------------------------------------------------
258 2300 : //
259 // ****
260 // **** NACHLAUF BIS TEIL AUF "PORTAL PLATZ"
261 //
262 arOutputs [ 15 ] . AutoSetForward := TRUE ;
263 arOutputs [ 15 ] . AutoSetBackward := FALSE ;
264 //A_84K1_conveyor_belt_dir_end := TRUE;
265 //A_84K2_conveyor_belt_dir_start := FALSE;
266 //
267 fbTimer_01 (
268 IN := ( fbTimer_01 . Q = FALSE ) ,
269 PT := tWaitingTimeStep_2300 ,
270 Q => ,
271 ET => ) ;
272 //
273 IF ( fbTimer_01 . Q = TRUE ) THEN
274 arOutputs [ 15 ] . AutoSetForward := FALSE ;
275 arOutputs [ 15 ] . AutoSetBackward := FALSE ;
276 //A_84K1_conveyor_belt_dir_end := FALSE;
277 //A_84K2_conveyor_belt_dir_start := FALSE;
278 //
279 uiNextStep := 2400 ;
280 END_IF
281
// ---------------------------------------------------------------------------------------------
282 2400 : //
190 1/4/2017
IndraWorks ML* 13V16.0110
283 // ****
284 // **** FREIGABE AN PORTAL (OBERTEIL)
285 //
286 arOutputs [ 15 ] . AutoSetForward := FALSE ;
287 arOutputs [ 15 ] . AutoSetBackward := FALSE ;
288 //
289 uiHandsakePortal := 500 ;
290 uiNextStep := 2500 ;
291
// ---------------------------------------------------------------------------------------------
292 2500 : //
293 // ****
294 // **** "OBERTEIL" IN CUBE PRESS ABGELEGT
295 //
296 IF ( uiHandsakePortal = 600 ) THEN
297 uiNextStep := 3100 ;
298 END_IF
299
// ---------------------------------------------------------------------------------------------
300
// ---------------------------------------------------------------------------------------------
301 3100 : //
302 // ****
303 // **** FREIGABE SCHRITTKETTE CUBE-PRESS
304 //
305 uiHandsakeCubePress := 100 ;
306 uiNextStep := 3200 ;
307
// ---------------------------------------------------------------------------------------------
308 3200 : //
309 // ****
310
// **** RÜCKMELDUNG SCHRITTKETTE CUBE-PRESS (START PRESSEN)
311 //
312 IF ( uiHandsakeCubePress = 200 ) THEN ;
313 uiHandsakeCubePress := 300 ;
314 uiNextStep := 3300 ;
315 END_IF
316
// ---------------------------------------------------------------------------------------------
317 3300 : //
318 // ****
319
// **** RÜCKMELDUNG SCHRITTKETTE CUBE-PRESS (PRESSEN BENDET)
320 //
321 IF ( uiHandsakeCubePress = 400 ) THEN
322 uiHandsakeCubePress := 0 ;
323 uiNextStep := 4100 ;
324 END_IF
325
// ---------------------------------------------------------------------------------------------
326
// ---------------------------------------------------------------------------------------------
327 4100 : //
328 // ****
329
// **** KOMMANDO AN SCHRITTKETTE PORTAL (FERTIGEN WÜRFEL HOLEN)
330 //
331 uiHandsakePortal := 700 ;
332 uiNextStep := 4200 ;
333
// ---------------------------------------------------------------------------------------------
334 4200 : //
335 // ****
191 1/4/2017
IndraWorks ML* 13V16.0110
336
// **** RÜCKMELDUNG VON SCHRITTKETTE PORTAL (WÜRFEL AUF BAND ABGELEGT)
337 //
338 IF ( uiHandsakePortal = 800 ) THEN
339 //
340 uiHandsakePortal := 0 ;
341 uiNextStep := 4300 ;
342 END_IF
343
// ---------------------------------------------------------------------------------------------
344 4300 : //
345 // ****
346 // **** MASCHINEN - VERBUND ?
347 //
348 CASE uiBackMaschine OF
349
// -------------------------------------------------------------
350 0 : // KEINE VOR-MASCHINE
351 //
352 uiNextStep := 4400 ;
353
// -------------------------------------------------------------
354 1 : // VOR-MASCHINE ERKANNT
355 ;
356
// -------------------------------------------------------------
357 2 : // ; NICHT BENÖTIGT
358
// -------------------------------------------------------------
359 3 : // TEIL ZUR FOLGE-MASCHINE
360 //
361 uiNextStep := 4400 ;
362
// -------------------------------------------------------------
363 END_CASE
364
// ---------------------------------------------------------------------------------------------
365 4400 : //
366 // ****
367 // **** WÜFEL ABTRANSPORT
368 //
369 arOutputs [ 15 ] . AutoSetForward := TRUE ;
370 arOutputs [ 15 ] . AutoSetBackward := FALSE ;
371 //A_84K1_conveyor_belt_dir_end := TRUE;
372 //A_84K2_conveyor_belt_dir_start := FALSE;
373 //
374 fbTimer_01 (
375 IN := ( fbTimer_01 . Q = FALSE ) ,
376 PT := tWaitingTimeStep_4400 ,
377 Q => ,
378 ET => ) ;
379 //
380 IF ( fbTimer_01 . Q = TRUE ) THEN
381 arOutputs [ 15 ] . AutoSetForward := FALSE ;
382 arOutputs [ 15 ] . AutoSetBackward := FALSE ;
383 //A_84K1_conveyor_belt_dir_end := FALSE;
384 //A_84K2_conveyor_belt_dir_start := FALSE;
385 //
386 uiNextStep := 0 ;
387 END_IF
388
// ---------------------------------------------------------------------------------------------
389
// ---------------------------------------------------------------------------------------------
192 1/4/2017
IndraWorks ML* 13V16.0110
390 9999 : //
391 // ****
392
// **** SCHRITT - WEITERSCHALTUNG BEI ANWAHL EINZEL-SCHRITT-BETRIEB
393 //
394 IF ( gb_bKeypadRightButton15 = TRUE )
395 AND ( bHelpFlagSingleStepStart = FALSE ) THEN
396 //
397 uiLastStep := uiActivStep ;
398 uiActivStep := uiNextStep ;
399 END_IF
400 //
401 bHelpFlagSingleStepStart := gb_bKeypadRightButton15 ;
402
// ---------------------------------------------------------------------------------------------
403
// ---------------------------------------------------------------------------------------------
404 ELSE
405 // ****
406 // **** ABFRAGE STARTBEDINGUNGEN FÜR M
407
408 CASE gb_uiActivOperationMode OF
409
// --------------------------------------------------------------------------
410 300 : //
411 // **** AUTOMATIC MODE
412 //
413 IF ( gb_bHomePosReached = TRUE )
414 AND ( gb_bStartStopAutomaticCycle = TRUE ) THEN
415 uiNextStep := 100 ;
416 END_IF
417
// --------------------------------------------------------------------------
418 400 : //
419 // **** SINGLE STEP MODE
420 //
421 IF ( gb_bHomePosReached = TRUE )
422 AND ( gb_bKeypadRightButton15 = TRUE ) THEN
423 uiNextStep := 100 ;
424 END_IF
425
// --------------------------------------------------------------------------
426 END_CASE
427 END_CASE
428
// ---------------------------------------------------------------------------------------------
429
// ---------------------------------------------------------------------------------------------
430 //
431 // ****
432 // **** SCHRITT - WEITERSCHALTUNG BEI ANWAHL AUTOMATIK
433 //
434 CASE gb_uiActivOperationMode OF
435
// ---------------------------------------------------------------------------------------------
436 300 : //
437 // **** START - STOP SCHRITT-KETTE
438 //
439 gb_bStartStopAutomaticCycle := (
gb_bKeypadRightButton12 = FALSE )
440 AND ( (
gb_bKeypadRightButton15 = TRUE ) OR ( gb_bStartStopAutomaticCycle = TRUE ) )
;
441 //
193 1/4/2017
IndraWorks ML* 13V16.0110
455 //
456 IF ( uiActivStep <> uiNextStep ) THEN
457 uiActivStep := 9999 ;
458 END_IF
459 // ---------------------------------------
460 ELSE
461 uiLastStep := uiActivStep ;
462 uiActivStep := uiNextStep ;
463 END_CASE
464 //
465 gb_bStartStopAutomaticCycle := FALSE ;
466
// ---------------------------------------------------------------------------------------------
467 ELSE
468 gb_bStartStopAutomaticCycle := FALSE ;
469 //
470 uiActivStep := 0 ;
471 uiNextStep := 0 ;
472 uiLastStep := 0 ;
473
// ---------------------------------------------------------------------------------------------
474 END_CASE
475 //
476 // ****
477 // **** TASTEN-SPEICHER
478 //
479 //
480 bHelpFlagSingleStepStart := gb_bKeypadRightButton15 ;
481 //
482
// ---------------------------------------------------------------------------------------------
483 //
484 // ****
485 // **** AUFRUF SCHRITT-KETTEN
486 //
487 act_0400_AutomaticSingleStep_PinPress ( ) ;
488 act_0500_AutomaticSingleStep_Portal ( ) ;
489 act_0600_AutomaticSingleStep_CubePress ( ) ;
490
// ---------------------------------------------------------------------------------------------
491
194 1/4/2017
IndraWorks ML* 13V16.0110
1 // ---------------------------------------------------------------------------------------------
2 //
3 // ****
4 // **** SCHRITT-KETTE AUTOMATIK / EINZEL-SCHRITT-BETRIEB
5 //
6
// ---------------------------------------------------------------------------------------------
7 //
8 CASE uiActivStepPinPress OF
9
// ---------------------------------------------------------------------------------------------
10 100 : //
11 // ****
12 // **** RÜCKMELDUNG AN HAUPT-SCHRITTKETTE
13 //
14 uiHandsakePinPress := 200 ;
15 uiNextStepPinPress := 200 ;
16
// ---------------------------------------------------------------------------------------------
17 200 : //
18 // ****
19 // **** AUSSCHUB-ZYLINDER AUSFAHREN
20 //
21 arOutputs [ 3 ] . AutoSetForward := TRUE ;
22 arOutputs [ 3 ] . AutoSetBackward := FALSE ;
23 //A_81Y2_VentilAusschubZyl := TRUE;
24 //
25 IF ( E_82B5_AusschubZylAST = TRUE ) THEN
26 uiNextStepPinPress := 300 ;
27 END_IF
28
// ---------------------------------------------------------------------------------------------
29 300 : //
30 // ****
31 // **** WARTEN AUF TEIL MELDUNG
32 //
33 IF ( uiHandsakePinPress = 300 ) THEN
34 uiNextStepPinPress := 400 ;
35 END_IF
36
// ---------------------------------------------------------------------------------------------
37 400 : //
38 // ****
39
// **** AUSSCHUB-ZYLINDER EINFAHREN / EINSCHUB-ZYLINDER AUSFAHREN
40 //
41 arOutputs [ 3 ] . AutoSetForward := FALSE ;
42 arOutputs [ 3 ] . AutoSetBackward := TRUE ;
43 //A_81Y2_VentilAusschubZyl := FALSE;
44 //
45 arOutputs [ 6 ] . AutoSetForward := TRUE ;
46 arOutputs [ 6 ] . AutoSetBackward := FALSE ;
47 //A_81Y3_VentilEinschubZyl := TRUE;
48 //
49 fbTimerPinPress (
50 IN := ( fbTimerPinPress . Q = FALSE ) ,
51 PT := tWaitingTimeStepPinPress_400 ,
52 Q => ,
53 ET => ) ;
54 //
195 1/4/2017
IndraWorks ML* 13V16.0110
55 IF ( fbTimerPinPress . Q = TRUE )
56 AND ( E_82B6_AusschubZylGST = TRUE )
57 AND ( E_82B3_EinschubZylAST = TRUE ) THEN
58 uiNextStepPinPress := 500 ;
59 END_IF
60
// ---------------------------------------------------------------------------------------------
61 500 : //
62 // ****
63 // **** EINSCHUB-ZYLINDER ZURÜCK
64 //
65 arOutputs [ 6 ] . AutoSetForward := FALSE ;
66 arOutputs [ 6 ] . AutoSetBackward := TRUE ;
67 //A_81Y3_VentilEinschubZyl := TRUE;
68 //
69 fbTimerPinPress (
70 IN := ( fbTimerPinPress . Q = FALSE ) ,
71 PT := tWaitingTimeStepPinPress_500 ,
72 Q => ,
73 ET => ) ;
74 //
75 IF ( fbTimerPinPress . Q = TRUE )
76 AND ( E_82B4_EinschubZylGST = TRUE ) THEN
77 //
78 uiNextStepPinPress := 600 ;
79 END_IF
80
// ---------------------------------------------------------------------------------------------
81 600 : //
82 // ****
83 // **** PINs EINSETZEN => KURZHUB-ZYLINDER AUSFAHREN
84 //
85 arOutputs [ 9 ] . AutoSetForward := TRUE ;
86 arOutputs [ 9 ] . AutoSetBackward := FALSE ;
87 //A_81Y1_VentilKurzhubZyl := TRUE;
88 //
89 fbTimerPinPress (
90 IN := ( fbTimerPinPress . Q = FALSE ) ,
91 PT := tWaitingTimeStepPinPress_600 ,
92 Q => ,
93 ET => ) ;
94 //
95 IF ( fbTimerPinPress . Q = TRUE )
96 AND ( E_81B3_KurzHubZyl_1_AST = TRUE ) THEN
97 //
98 uiNextStepPinPress := 700 ;
99 END_IF
100
// ---------------------------------------------------------------------------------------------
101 700 : //
102 // ****
103 // **** PINS PRESSEN
104 //
105 arOutputs [ 12 ] . AutoSetForward := TRUE ;
106 arOutputs [ 12 ] . AutoSetBackward := FALSE ;
107 //A_81Y4_VentilPressZyl := TRUE;
108 //
109 IF ( E_82B1_PressZylinderAST = TRUE ) THEN
110 //
111 uiNextStepPinPress := 800 ;
112 END_IF
113
114
// ---------------------------------------------------------------------------------------------
196 1/4/2017
IndraWorks ML* 13V16.0110
115 800 : //
116 // ****
117 // **** PRESS-ZEIT
118 //
119 fbTimerPinPress (
120 IN := ( fbTimerPinPress . Q = FALSE ) ,
121 PT := tWaitingTimeStepPinPress_800 ,
122 Q => ,
123 ET => ) ;
124 //
125 IF ( fbTimerPinPress . Q = TRUE ) THEN
126 uiNextStepPinPress := 900 ;
127 END_IF
128
// ---------------------------------------------------------------------------------------------
129 900 : //
130 // ****
131 // **** PRESS-ZYLINDER GST
132 //
133 arOutputs [ 12 ] . AutoSetForward := FALSE ;
134 arOutputs [ 12 ] . AutoSetBackward := TRUE ;
135 //A_81Y4_VentilPressZyl := FALSE;
136 //
137 fbTimerPinPress (
138 IN := ( fbTimerPinPress . Q = FALSE ) ,
139 PT := tWaitingTimeStepPinPress_900 ,
140 Q => ,
141 ET => ) ;
142 //
143 IF ( fbTimerPinPress . Q = TRUE )
144 AND ( E_82B2_PressZylinderGST = TRUE ) THEN
145 uiNextStepPinPress := 1000 ;
146 END_IF
147
// ---------------------------------------------------------------------------------------------
148 1000 : //
149 // ****
150 // **** PINs EINSETZEN => KURZHUB-ZYLINDER EINFAHREN
151 //
152 arOutputs [ 9 ] . AutoSetForward := FALSE ;
153 arOutputs [ 9 ] . AutoSetBackward := TRUE ;
154 //A_81Y1_VentilKurzhubZyl := FALSE;
155 //
156 fbTimerPinPress (
157 IN := ( fbTimerPinPress . Q = FALSE ) ,
158 PT := tWaitingTimeStepPinPress_1000 ,
159 Q => ,
160 ET => ) ;
161 //
162 IF ( fbTimerPinPress . Q = TRUE )
163 // AND (E_81B1_KurzHubZyl_1_GST = TRUE) THEN
164 AND ( E_81B2_KurzHubZyl_2_GST = TRUE ) THEN
165 //
166 uiNextStepPinPress := 1100 ;
167 END_IF
168
// ---------------------------------------------------------------------------------------------
169 1100 : // ****
170
// **** AUSSCHUB-ZYLINDER AUSFAHREN / EINSCHUB-ZYLINDER EINFAHREN
171 //
172 arOutputs [ 3 ] . AutoSetForward := TRUE ;
173 arOutputs [ 3 ] . AutoSetBackward := FALSE ;
174 //A_81Y2_VentilAusschubZyl := True;
197 1/4/2017
IndraWorks ML* 13V16.0110
175 //
176 arOutputs [ 6 ] . AutoSetForward := FALSE ;
177 arOutputs [ 6 ] . AutoSetBackward := TRUE ;
178 //A_81Y3_VentilEinschubZyl := False;
179 //
180 fbTimerPinPress (
181 IN := ( fbTimerPinPress . Q = FALSE ) ,
182 PT := tWaitingTimeStepPinPress_1100 ,
183 Q => ,
184 ET => ) ;
185 //
186 IF ( fbTimerPinPress . Q = TRUE )
187 AND ( E_82B5_AusschubZylAST = TRUE )
188 AND ( E_82B4_EinschubZylGST = TRUE ) THEN
189 uiNextStepPinPress := 1200 ;
190 END_IF
191
// ---------------------------------------------------------------------------------------------
192 1200 : // ****
193
// **** AUSSCHUB-ZYLINDER AUSFAHREN / EINSCHUB-ZYLINDER EINFAHREN
194 //
195 arOutputs [ 3 ] . AutoSetForward := FALSE ;
196 arOutputs [ 3 ] . AutoSetBackward := TRUE ;
197 //A_81Y2_VentilAusschubZyl := FALSE;
198 //
199 fbTimerPinPress (
200 IN := ( fbTimerPinPress . Q = FALSE ) ,
201 PT := tWaitingTimeStepPinPress_1200 ,
202 Q => ,
203 ET => ) ;
204 //
205 IF ( fbTimerPinPress . Q = TRUE )
206 AND ( E_82B6_AusschubZylGST = TRUE ) THEN
207 uiNextStepPinPress := 5000 ;
208 END_IF
209
// ---------------------------------------------------------------------------------------------
210 5000 : // ****
211 // **** FERTIG MELDUNG AN HAUPT-SCHRITT-KETTE
212 //
213 uiHandsakePinPress := 999 ;
214 uiNextStepPinPress := 5100 ;
215 //
216
// ---------------------------------------------------------------------------------------------
217 5100 : // ****
218 // **** FERTIG MELDUNG AN HAUPT-SCHRITT-KETTE
219 //
220 IF ( uiHandsakePinPress = 0 ) THEN
221 uiNextStepPinPress := 0 ;
222 END_IF
223
// ---------------------------------------------------------------------------------------------
224 9999 : //
225 // ****
226
// **** SCHRITT - WEITERSCHALTUNG BEI ANWAHL EINZEL-SCHRITT-BETRIEB
227 //
228 IF ( gb_bKeypadRightButton15 = TRUE )
229 AND ( bHelpFlagSingleStepStart = FALSE ) THEN
230 //
231 uiLastStepPinPress := uiActivStepPinPress ;
232 uiActivStepPinPress := uiNextStepPinPress ;
198 1/4/2017
IndraWorks ML* 13V16.0110
233 END_IF
234
// ---------------------------------------------------------------------------------------------
235
// ---------------------------------------------------------------------------------------------
236 ELSE
237 //
238 // ****
239
// **** WEITERSCHALTUNG IN AUTOMATIK ODER EINZEL-SCHRITT-BETRIEB
240 //
241 CASE gb_uiActivOperationMode OF
242
// ---------------------------------------------------------------------------------------------
243 300 : //
244 // **** AUTOMATIC MODE
245 //
246 IF ( uiHandsakePinPress = 100 )
247 AND ( bHomePosReachedPinPress = TRUE ) THEN
248 uiNextStepPinPress := 100 ;
249 END_IF
250
// --------------------------------------------------------------------------
251 400 : //
252 // **** SINGLE STEP MODE
253 //
254 IF ( uiHandsakePinPress = 100 )
255 AND ( gb_bHomePosReached = TRUE )
256 AND ( gb_bKeypadLeftButton01 = TRUE )
THEN
257 uiNextStepPinPress := 100 ;
258 END_IF
259
// --------------------------------------------------------------------------
260 END_CASE
261 END_CASE
262
// ---------------------------------------------------------------------------------------------
263
// ---------------------------------------------------------------------------------------------
264 //
265 // ****
266 // **** SCHRITT - WEITERSCHALTUNG BEI ANWAHL AUTOMATIK
267 //
268 CASE gb_uiActivOperationMode OF
269
// ---------------------------------------------------------------------------------------------
270 300 : //
271 // **** WEITERSCHULUNG
272 //
273 IF ( uiNextStepPinPress < 65000 ) THEN
274 uiLastStepPinPress := uiActivStepPinPress ;
275 uiActivStepPinPress := uiNextStepPinPress ;
276 END_If
277
// ---------------------------------------------------------------------------------------------
278 400 : //
279
// **** SCHRITTE BEI DENEN AUF WEITERSCHALTUNG DURCH TASTE GEWARTET WIRD
280 //
281 CASE uiNextStepPinPress OF
282 // ---------------------------------------
283 200 , 400 , 500 , 600 , 1100 , 1300 , 1400 , 1500 :
199 1/4/2017
IndraWorks ML* 13V16.0110
284 //
285 IF ( uiActivStepPinPress <> uiNextStepPinPress )
THEN
286 uiActivStepPinPress := 9999 ;
287 END_IF
288 // ---------------------------------------
289 ELSE
290 uiLastStepPinPress := uiActivStepPinPress ;
291 uiActivStepPinPress := uiNextStepPinPress ;
292 END_CASE
293
// ---------------------------------------------------------------------------------------------
294 ELSE
295 uiActivStepPinPress := 0 ;
296 uiNextStepPinPress := 0 ;
297 uiLastStepPinPress := 0 ;
298
// ---------------------------------------------------------------------------------------------
299 END_CASE
300 E_82B7_StiftVorhandenLinks ;
301 E_82B8_StiftVorhandenRechts ;
302
200 1/4/2017
IndraWorks ML* 13V16.0110
1 // ---------------------------------------------------------------------------------------------
2 //
3 // ****
4 // **** SCHRITT-KETTE AUTOMATIK / EINZEL-SCHRITT-BETRIEB
5 //
6
// ---------------------------------------------------------------------------------------------
7 //
8 CASE uiActivStepPortal OF
9
// ---------------------------------------------------------------------------------------------
10 100 : //
11 // ****
12 // **** SCHRIIT ANWAHL
13 //
14 CASE uiStepNoPortal OF
15
// ------------------------------------------------------------------------------------------
16 //
17 // ****
18 // **** UNTERTEIL IN WÜRFEL-PRESSE BRINGEN
19 //
20 0 : uiNextStepPortal := 110 ; uiStepNoPortal := 1 ;
// QUIT HANDSAKE => 200
21 1 : uiNextStepPortal := 310 ; uiStepNoPortal := 2 ;
// Z-ACHSE NACH UNTEN
22 2 : uiNextStepPortal := 210 ; uiStepNoPortal := 3 ;
// SAUGER-LUFT EIN
23 3 : uiNextStepPortal := 199 ; uiStepNoPortal := 4 ;
// WARTEZEIT
24 4 : uiNextStepPortal := 330 ; uiStepNoPortal := 5 ;
// Z-ACHSE NACH OBEN - TEILKONTROLLE
25 5 : uiNextStepPortal := 120 ; uiStepNoPortal := 6 ;
// QUIT HANDSAKE => 400
26 6 : uiNextStepPortal := 410 ; uiStepNoPortal := 7 ;
// X-ACHSE NACH HINTEN
27 7 : uiNextStepPortal := 310 ; uiStepNoPortal := 8 ;
// Z-ACHSE NACH UNTEN
28 8 : uiNextStepPortal := 220 ; uiStepNoPortal := 9 ;
// SAUGER-LUFT AUS
29 9 : uiNextStepPortal := 199 ; uiStepNoPortal := 10 ;
// WARTEZEIT
30 10 : uiNextStepPortal := 320 ; uiStepNoPortal := 11
; // Z-ACHSE NACH OBEN
31 11 : uiNextStepPortal := 420 ; uiStepNoPortal := 20
; // X-ACHSE NACH VORNE
32 //
33 // ****
34 // **** OBERTEIL IN WÜRFEL-PRESSE BRINGEN
35 //
36 20 : uiNextStepPortal := 0 ; uiStepNoPortal
:= 21 ; // WARTEN AUF OBERTEIL
37 21 : uiNextStepPortal := 310 ; uiStepNoPortal := 22
; // Z-ACHSE NACH UNTEN
38 22 : uiNextStepPortal := 210 ; uiStepNoPortal := 23
; // SAUGER-LUFT EIN
39 23 : uiNextStepPortal := 199 ; uiStepNoPortal := 24
; // WARTEZEIT
40 24 : uiNextStepPortal := 330 ; uiStepNoPortal := 25
; // Z-ACHSE NACH OBEN - TEILKONTROLLE
201 1/4/2017
IndraWorks ML* 13V16.0110
202 1/4/2017
IndraWorks ML* 13V16.0110
81
// ---------------------------------------------------------------------------------------------
82
// ---------------------------------------------------------------------------------------------
83 130 : //
84 // ****
85 // **** RÜCKMELDUNG AN HAUPT-SCHRITTKETTE
86 //
87 uiHandsakePortal := 600 ;
// OBERTEIL IN CUBE PRESS ABGELEGT
88 uiNextStepPortal := 100 ;
89
// ---------------------------------------------------------------------------------------------
90
// ---------------------------------------------------------------------------------------------
91 140 : //
92 // ****
93 // **** RÜCKMELDUNG AN HAUPT-SCHRITTKETTE
94 //
95 uiHandsakePortal := 800 ;
// FERTIGER WÜRFEL AUF BAND ABGELEGT
96 uiNextStepPortal := 100 ;
97
// ---------------------------------------------------------------------------------------------
98
// ---------------------------------------------------------------------------------------------
99 150 : //
100 // ****
101 // **** WARTEN AUF "FERTIG WÜRFEL HOLEN"
102 //
103 IF ( uiHandsakePortal = 700 ) THEN
104 uiNextStepPortal := 100 ;
105 END_IF
106
// ---------------------------------------------------------------------------------------------
107
// ---------------------------------------------------------------------------------------------
108 199 : //
109 // ****
110 // **** WARTEZEIT
111 //
112 fbTimerPortal (
113 IN := ( fbTimerPortal . Q = FALSE ) ,
114 PT := tWaitingTimeStepPortalVcuum ,
115 Q => ,
116 ET => ) ;
117 //
118 IF ( fbTimerPortal . Q = TRUE ) THEN
119 uiNextStepPortal := 100 ;
120 END_IF
121
// ---------------------------------------------------------------------------------------------
122
// ---------------------------------------------------------------------------------------------
123 210 : //
124 // ****
125 // **** VACCUM-LUFT EIN
126 //
127 arOutputs [ 8 ] . AutoSetForward := TRUE ;
128 arOutputs [ 8 ] . AutoSetBackward := FALSE ;
129 //A_83Y1_SaugGreiferEin := FALSE;
130 uiNextStepPortal := 100 ;
131
// ---------------------------------------------------------------------------------------------
203 1/4/2017
IndraWorks ML* 13V16.0110
132
// ---------------------------------------------------------------------------------------------
133 220 : //
134 // ****
135 // **** VACCUM-LUFT AUS
136 //
137 arOutputs [ 8 ] . AutoSetForward := FALSE ;
138 arOutputs [ 8 ] . AutoSetBackward := TRUE ;
139 //A_83Y1_SaugGreiferEin := FALSE;
140 uiNextStepPortal := 100 ;
141
// ---------------------------------------------------------------------------------------------
142
// ---------------------------------------------------------------------------------------------
143 310 : //
144 // ****
145 // **** VERTIKALE ACHSE (Z-ACHSE) NACH UNTEN
146 //
147 arOutputs [ 2 ] . AutoSetForward := TRUE ;
148 arOutputs [ 2 ] . AutoSetBackward := FALSE ;
149 //A_83Y3_ZAchseAusfahren := TRUE;
150 //A_83Y4_ZAchseEinfahren := FALSE;
151 //
152 IF ( E_83B4_ZylZAchseUnten = TRUE ) THEN
153 uiNextStepPortal := 100 ;
154 END_IF
155
// ---------------------------------------------------------------------------------------------
156
// ---------------------------------------------------------------------------------------------
157 315 : //
158 // ****
159
// **** VERTIKALE ACHSE (Z-ACHSE) NACH UNTEN (ENDSCHALTER OBEN FALSE)
160 //
161 arOutputs [ 2 ] . AutoSetForward := TRUE ;
162 arOutputs [ 2 ] . AutoSetBackward := FALSE ;
163 //A_83Y3_ZAchseAusfahren := TRUE;
164 //A_83Y4_ZAchseEinfahren := FALSE;
165 //
166 IF ( E_83B3_ZylZAchseOben = FALSE ) THEN
167 uiNextStepPortal := 100 ;
168 END_IF
169
// ---------------------------------------------------------------------------------------------
170
// ---------------------------------------------------------------------------------------------
171 320 : //
172 // ****
173 // **** VERTIKALE ACHSE (Z-ACHSE) NACH OBEN
174 //
175 arOutputs [ 2 ] . AutoSetForward := FALSE ;
176 arOutputs [ 2 ] . AutoSetBackward := TRUE ;
177 //A_83Y3_ZAchseAusfahren := FALSE;
178 //A_83Y4_ZAchseEinfahren := TRUE;
179 //
180 IF ( E_83B3_ZylZAchseOben = TRUE ) THEN
181 uiNextStepPortal := 100 ;
182 END_IF
183
// ---------------------------------------------------------------------------------------------
184
// ---------------------------------------------------------------------------------------------
185 330 : //
204 1/4/2017
IndraWorks ML* 13V16.0110
186 // ****
187
// **** VERTIKAL ACHSE (Z-ACHSE) NACH OBEN UND ABFRAGE TEIL LICHTSCHRANKE
188 //
189 arOutputs [ 2 ] . AutoSetForward := FALSE ;
190 arOutputs [ 2 ] . AutoSetBackward := TRUE ;
191 //A_83Y3_ZAchseAusfahren := FALSE;
192 //A_83Y4_ZAchseEinfahren := TRUE;
193 //
194 IF ( E_83B3_ZylZAchseOben = TRUE )
195 AND ( E_104_2_LS2Empfaenger = FALSE ) THEN
196 uiNextStepPortal := 100 ;
197 END_IF
198
// ---------------------------------------------------------------------------------------------
199
// ---------------------------------------------------------------------------------------------
200 410 : //
201 // ****
202 // **** HORIZONTIAL-ACHSE NACH "HINTEN"
203 //
204 arOutputs [ 5 ] . AutoSetForward := TRUE ;
205 arOutputs [ 5 ] . AutoSetBackward := FALSE ;
206 //A_83Y2_SchlitzZylinder := TRUE;
207 //
208 IF ( E_83B1_SchlitzZylAST = TRUE ) THEN
209 uiNextStepPortal := 100 ;
210 END_IF
211
// ---------------------------------------------------------------------------------------------
212
// ---------------------------------------------------------------------------------------------
213 420 : //
214 // ****
215 // **** HORZONTIALE - ACHSE NACH "VORNE"
216 //
217 arOutputs [ 5 ] . AutoSetForward := FALSE ;
218 arOutputs [ 5 ] . AutoSetBackward := TRUE ;
219 //A_83Y2_SchlitzZylinder := FALSE;
220 //
221 IF ( E_83B2_SchlitzZylGST = TRUE ) THEN
222 uiNextStepPortal := 100 ;
223 END_IF
224
// ---------------------------------------------------------------------------------------------
225
// ---------------------------------------------------------------------------------------------
226 9999 : //
227 // ****
228
// **** SCHRITT - WEITERSCHALTUNG BEI ANWAHL EINZEL-SCHRITT-BETRIEB
229 //
230 IF ( gb_bKeypadRightButton15 = TRUE )
231 AND ( bHelpFlagSingleStepStart = FALSE ) THEN
232 //
233 uiLastStepPortal := uiActivStepPortal ;
234 uiActivStepPortal := uiNextStepPortal ;
235 END_IF
236
// ---------------------------------------------------------------------------------------------
237
// ---------------------------------------------------------------------------------------------
238 ELSE
239 //
205 1/4/2017
IndraWorks ML* 13V16.0110
240 // ****
241
// **** WEITERSCHALTUNG IN AUTOMATIK ODER EINZEL-SCHRITT-BETRIEB
242 //
243 CASE gb_uiActivOperationMode OF
244
// --------------------------------------------------------------------------
245 300 : //
246 // **** AUTOMATIC MODE
247 //
248 IF (
249 ( uiHandsakePortal = 100 )
// UNTERTEIL IN CUBE PRESS
250 OR ( uiHandsakePortal = 500 )
// OBERTEIL IN CUBE PRESS
251 )
252 AND ( bHomePosReachedPortal = TRUE ) THEN
253 uiNextStepPortal := 100 ;
254 END_IF
255
// --------------------------------------------------------------------------
256 400 : //
257 // **** SINGLE STEP MODE
258 //
259 IF ( uiHandsakePortal = 100 )
260 AND ( bHomePosReachedPortal = TRUE )
261 AND ( gb_bKeypadLeftButton01 = TRUE ) THEN
262 uiNextStepPortal := 100 ;
263 END_IF
264
// --------------------------------------------------------------------------
265 END_CASE
266 END_CASE
267
// ---------------------------------------------------------------------------------------------
268
// ---------------------------------------------------------------------------------------------
269 //
270 // ****
271 // **** SCHRITT - WEITERSCHALTUNG BEI ANWAHL AUTOMATIK
272 //
273 CASE gb_uiActivOperationMode OF
274
// ---------------------------------------------------------------------------------------------
275 300 : //
276 // **** WEITERSCHULUNG
277 //
278 gb_bStartStopAutomaticCycle := (
gb_bKeypadLeftButton02 = FALSE )
279 AND ( (
gb_bKeypadLeftButton01 = TRUE ) OR ( gb_bStartStopAutomaticCycle = TRUE ) )
;
280 //
281 IF ( uiNextStepPortal < 65000 ) THEN
282 uiLastStepPortal := uiActivStepPortal ;
283 uiActivStepPortal := uiNextStepPortal ;
284 END_IF
285
// ---------------------------------------------------------------------------------------------
286 400 : //
287
// **** SCHRITTE BEI DENEN AUF WEITERSCHALTUNG DURCH TASTE GEWARTET WIRD
288 //
289 CASE uiNextStep OF
206 1/4/2017
IndraWorks ML* 13V16.0110
290 // ---------------------------------------
291 200 , 400 , 500 , 600 , 1100 , 1300 , 1400 , 1500 :
292 //
293 IF ( uiActivStepPortal <> uiNextStep ) THEN
294 uiActivStepPortal := 9999 ;
295 END_IF
296 // ---------------------------------------
297 ELSE
298 uiLastStepPortal := uiActivStepPortal ;
299 uiActivStepPortal := uiNextStepPortal ;
300 END_CASE
301
// ---------------------------------------------------------------------------------------------
302 ELSE
303 uiActivStepPortal := 0 ;
304 uiNextStepPortal := 0 ;
305 uiLastStepPortal := 0 ;
306
// ---------------------------------------------------------------------------------------------
307 END_CASE
308
207 1/4/2017
IndraWorks ML* 13V16.0110
1 // ---------------------------------------------------------------------------------------------
2 //
3 // ****
4 // **** SCHRITT-KETTE AUTOMATIK / EINZEL-SCHRITT-BETRIEB
5 //
6
// ---------------------------------------------------------------------------------------------
7 //
8 CASE uiActivStepCubePress OF
9
// ---------------------------------------------------------------------------------------------
10 100 : //
11 // ****
12 // **** RÜCKMELDUNG SCHRIIKETTE "CUBE PRESS"
13 //
14 uiHandsakeCubePress := 200 ;
15 uiNextStepCubePress := 200 ;
16
// ---------------------------------------------------------------------------------------------
17 200 : //
18 // ****
19 // **** AUSSCHIEBER IN PRESSE FAHREN
20 //
21 //arOutputs[1].AutoSetForward := TRUE;
22 //arOutputs[1].AutoSetBackward := FALSE;
23 arOutputs [ 1 ] . AutoSetForward := FALSE ;
24 arOutputs [ 1 ] . AutoSetBackward := TRUE ;
25 //A_84Y2_Ausschieber := TRUE;
26 //
27 fbTimerCubePress (
28 IN := ( fbTimerCubePress . Q = FALSE ) ,
29 PT := tWaitingTimeStepCubePress_200 ,
30 Q => ,
31 ET => ) ;
32 //
33 IF ( fbTimerCubePress . Q = TRUE )
34 AND ( E_84B4_AusschiebeZylAST = TRUE ) THEN
35 uiNextStepCubePress := 300 ;
36 END_IF
37
// ---------------------------------------------------------------------------------------------
38 300 : //
39 // ****
40 // **** PREESE NACH UNTEN
41 //
42 arOutputs [ 4 ] . AutoSetForward := TRUE ;
43 arOutputs [ 4 ] . AutoSetBackward := FALSE ;
44 //A_84Y1_PresseAusfahren := TRUE;
45 //
46 IF ( E_84B2_PressZylAST = TRUE ) THEN
47 uiNextStepCubePress := 400 ;
48 END_IF
49
// ---------------------------------------------------------------------------------------------
50 400 : //
51 // ****
52 // **** PRESS-ZEIT
53 //
54 fbTimerCubePress (
55 IN := ( fbTimerCubePress . Q = FALSE ) ,
208 1/4/2017
IndraWorks ML* 13V16.0110
56 PT := tWaitingTimeStepCubePress_400 ,
57 Q => ,
58 ET => );
59 //
60 IF ( fbTimerCubePress . Q = TRUE ) THEN
61 uiNextStepCubePress := 500 ;
62 END_IF
63
// ---------------------------------------------------------------------------------------------
64 500 : //
65 // ****
66 // **** PREESE NACH "OBEN"
67 //
68 arOutputs [ 4 ] . AutoSetForward := FALSE ;
69 arOutputs [ 4 ] . AutoSetBackward := TRUE ;
70 //A_84Y1_PresseAusfahren := FALSE;
71 //
72 fbTimerCubePress (
73 IN := ( fbTimerCubePress . Q = FALSE ) ,
74 PT := tWaitingTimeStepCubePress_500 ,
75 Q => ,
76 ET => ) ;
77 //
78 IF ( fbTimerCubePress . Q = TRUE )
79 AND ( E_84B1_PressZylGST = TRUE ) THEN
80 uiNextStepCubePress := 600 ;
81 END_IF
82
// ---------------------------------------------------------------------------------------------
83 600 : //
84 // ****
85 // **** AUSSCHIEBER VORN - FAHREN
86 //
87 arOutputs [ 1 ] . AutoSetForward := TRUE ;
88 arOutputs [ 1 ] . AutoSetBackward := FALSE ;
89 //A_84Y2_Ausschieber := FALSE;
90 //
91 IF ( E_84B3_AusschiebeZylGST = TRUE ) THEN
92 uiNextStepCubePress := 700 ;
93 END_IF
94
// ---------------------------------------------------------------------------------------------
95 700 : //
96 // ****
97 // **** RÜCKMELDUNG AN HAUPT-SCHRITTKETTE
98 //
99 uiHandsakeCubePress := 400 ;
100 uiNextStepCubePress := 800 ;
101
// ---------------------------------------------------------------------------------------------
102 800 : //
103 // ****
104 // **** SCHRITTKETTE AUF BEGINN SETZEN
105 //
106 IF ( uiHandsakeCubePress = 0 ) THEN
107 uiNextStepCubePress := 0 ;
108 END_IF
109
// ---------------------------------------------------------------------------------------------
110 9999 : //
111 // ****
112
// **** SCHRITT - WEITERSCHALTUNG BEI ANWAHL EINZEL-SCHRITT-BETRIEB
113 //
209 1/4/2017
IndraWorks ML* 13V16.0110
210 1/4/2017
IndraWorks ML* 13V16.0110
176 //
177 IF ( uiActivStepCubePress <> uiNextStepCubePress )
THEN
178 uiActivStepCubePress := 9999 ;
179 END_IF
180 // ---------------------------------------
181 ELSE
182 uiLastStepCubePress := uiActivStepCubePress ;
183 uiActivStepCubePress := uiNextStepCubePress ;
184 END_CASE
185
// ---------------------------------------------------------------------------------------------
186 ELSE
187 //
188 uiActivStepCubePress := 0 ;
189 uiNextStepCubePress := 0 ;
190 uiLastStepCubePress := 0 ;
191
// ---------------------------------------------------------------------------------------------
192 END_CASE
193
211 1/4/2017
IndraWorks ML* 13V16.0110
1 // ---------------------------------------------------------------------------------------------
2 //
3 // **** CUBE PRESS / CASE CYLINDER
4 // **** A_84Y2_Ausschieber
5 //
6
// ---------------------------------------------------------------------------------------------
7 //
8 arOutputs [ 1 ] (
9 EmergencyStopOK := gb_bEmergencyStopOK ,
10 FunctionType := 1 ,
11 OperationMode := gb_uiActivOperationMode ,
12 AutoSetForward := ,
13 AutoSetBackward := ,
14 ReferenzSetForward := ,
15 ReferenzSetBackward := ,
16 TypeOfManualMode := 2 ,
17 ButtonForward := gb_bKeypadLeftButton01 ,
18 ButtonBackward := FALSE ,
19 ResponseForward := A_84Y2_Ausschieber ,
20 ResponseBackward := ,
21 MonitoringProperty := 1 ,
22 MonitoringInput_01 := E_84B3_AusschiebeZylGST ,
23 MonitoringInput_02 := E_84B4_AusschiebeZylAST ,
24 MonitoringTime_01 := T#5S ,
25 MonitoringTime_02 := T#5S ,
26 Reset := gb_bReset ,
27 FlashLightWord := wFlashLightWord ,
28 Forward => A_84Y2_Ausschieber ,
29 Backward => ,
30 LED_Forward => gb_bKeypadLeftLED_01 ,
31 LED_Backward => ,
32 Error => arError [ 1 ] ,
33 ErrorNo => arErrorNo [ 1 ] ) ;
34
// ---------------------------------------------------------------------------------------------
35 //
36 // **** CUBE PRESS / PRESS CYLINDER
37 // **** A_84Y1_PresseAusfahren
38 //
39
// ---------------------------------------------------------------------------------------------
40 //
41 arOutputs [ 4 ] (
42 EmergencyStopOK := gb_bEmergencyStopOK ,
43 FunctionType := 1 ,
44 OperationMode := gb_uiActivOperationMode ,
45 AutoSetForward := ,
46 AutoSetBackward := ,
47 ReferenzSetForward := ,
48 ReferenzSetBackward := ,
49 TypeOfManualMode := 2 ,
50 ButtonForward := gb_bKeypadLeftButton10 ,
51 ButtonBackward := FALSE ,
52 ResponseForward := A_84Y1_PresseAusfahren ,
53 ResponseBackward := ,
54 MonitoringProperty := 1 ,
55 MonitoringInput_01 := E_84B1_PressZylGST ,
56 MonitoringInput_02 := E_84B2_PressZylAST ,
57 MonitoringTime_01 := T#5S ,
212 1/4/2017
IndraWorks ML* 13V16.0110
58 MonitoringTime_02 := T#5S ,
59 Reset := gb_bReset ,
60 FlashLightWord := wFlashLightWord ,
61 Forward => A_84Y1_PresseAusfahren ,
62 Backward => ,
63 LED_Forward => gb_bKeypadLeftLED_10 ,
64 LED_Backward => ,
65 Error => arError [ 4 ] ,
66 ErrorNo => arErrorNo [ 4 ] ) ;
67
// ---------------------------------------------------------------------------------------------
68
// ---------------------------------------------------------------------------------------------
69 //
70 // **** PORTAL / VERTICAL CYLINDER
71 // **** A_83Y3_ZAchseAusfahren / A_83Y4_ZAchseEinfahren
72 //
73
// ---------------------------------------------------------------------------------------------
74 //
75 arOutputs [ 2 ] (
76 EmergencyStopOK := gb_bEmergencyStopOK ,
77 FunctionType := 1 ,
78 OperationMode := gb_uiActivOperationMode ,
79 AutoSetForward := ,
80 AutoSetBackward := ,
81 ReferenzSetForward := ,
82 ReferenzSetBackward := ,
83 TypeOfManualMode := 12 ,
84 ButtonForward := gb_bKeypadLeftButton02 ,
85 ButtonBackward := FALSE ,
86 ResponseForward := A_83Y3_ZAchseAusfahren ,
87 ResponseBackward := A_83Y4_ZAchseEinfahren ,
88 MonitoringProperty := 1 ,
89 MonitoringInput_01 := E_83B3_ZylZAchseOben ,
90 MonitoringInput_02 := E_83B4_ZylZAchseUnten ,
91 MonitoringTime_01 := T#5S ,
92 MonitoringTime_02 := T#5S ,
93 Reset := gb_bReset ,
94 FlashLightWord := wFlashLightWord ,
95 Forward => A_83Y3_ZAchseAusfahren ,
96 Backward => A_83Y4_ZAchseEinfahren ,
97 LED_Forward => gb_bKeypadLeftLED_02 ,
98 LED_Backward => ,
99 Error => arError [ 2 ] ,
100 ErrorNo => arErrorNo [ 2 ] ) ;
101
// ---------------------------------------------------------------------------------------------
102 //
103 // **** PORTAL / HORIZONTIAL CYLINDER
104 // ****
105 // E_83B1_SchlitzZylAST,
106
// ---------------------------------------------------------------------------------------------
107 //
108 arOutputs [ 5 ] (
109 EmergencyStopOK := gb_bEmergencyStopOK ,
110 FunctionType := 1 ,
111 OperationMode := gb_uiActivOperationMode ,
112 AutoSetForward := ,
113 AutoSetBackward := ,
114 ReferenzSetForward := ,
115 ReferenzSetBackward := ,
116 TypeOfManualMode := 2 ,
213 1/4/2017
IndraWorks ML* 13V16.0110
214 1/4/2017
IndraWorks ML* 13V16.0110
215 1/4/2017
IndraWorks ML* 13V16.0110
216 1/4/2017
IndraWorks ML* 13V16.0110
217 1/4/2017
IndraWorks ML* 13V16.0110
1 // ---------------------------------------------------------------------------------------------
2 //
3 // ****
4 // **** VAM_40_Tastenfeld_02 (rechtes) LED-Taste 01 - HAND
5 //
6
// ---------------------------------------------------------------------------------------------
7 //
8 arKeypad_02_LED [ 1 ] (
9 Enable := gb_bManualModeActiv ,
10 Activ := TRUE ,
11 Error := FALSE ,
12 FlashLightWord := wFlashLightWord ,
13 LED => gb_bKeypadRightLED_01 ) ;
14
// ---------------------------------------------------------------------------------------------
15 //
16 // ****
17 // **** VAM_40_Tastenfeld_02 (rechtes) LED-Taste 02 - NOT USED
18 //
19
// ---------------------------------------------------------------------------------------------
20 //
21 arKeypad_02_LED [ 2 ] (
22 Enable := FALSE ,
23 Activ := TRUE ,
24 Error := FALSE ,
25 FlashLightWord := wFlashLightWord ,
26 LED => gb_bKeypadRightLED_02 ) ;
27
// ---------------------------------------------------------------------------------------------
28 //
29 // ****
30 // **** VAM_40_Tastenfeld_02 (rechtes) LED-Taste 03 - AUTOMATIC
31 //
32
// ---------------------------------------------------------------------------------------------
33 //
34 arKeypad_02_LED [ 3 ] (
35 Enable := gb_bAutomaticModeActiv ,
36 Activ := TRUE ,
37 Error := FALSE ,
38 FlashLightWord := wFlashLightWord ,
39 LED => gb_bKeypadRightLED_03 ) ;
40
// ---------------------------------------------------------------------------------------------
41 //
42 // ****
43 // **** VAM_40_Tastenfeld_02 (rechtes) LED-Taste 04 - SINGLE-STEP-MODE
44 //
45
// ---------------------------------------------------------------------------------------------
46 //
47 arKeypad_02_LED [ 4 ] (
48 Enable := gb_bSingleStepModeActiv ,
49 Activ := TRUE ,
50 Error := FALSE ,
51 FlashLightWord := wFlashLightWord ,
52 LED => gb_bKeypadRightLED_04 ) ;
53
218 1/4/2017
IndraWorks ML* 13V16.0110
// ---------------------------------------------------------------------------------------------
54 //
55 // ****
56 // **** VAM_40_Tastenfeld_02 (rechtes) LED-Taste 05 - NOT USED
57 //
58
// ---------------------------------------------------------------------------------------------
59 //
60 arKeypad_02_LED [ 5 ] (
61 Enable := FALSE ,
62 Activ := TRUE ,
63 Error := FALSE ,
64 FlashLightWord := wFlashLightWord ,
65 LED => gb_bKeypadRightLED_05 ) ;
66
// ---------------------------------------------------------------------------------------------
67 //
68 // ****
69 // **** VAM_40_Tastenfeld_02 (rechtes) LED-Taste 06 - HOMING
70 //
71
// ---------------------------------------------------------------------------------------------
72 //
73 arKeypad_02_LED [ 6 ] (
74 Enable := ( gb_bHomingModeActiv = TRUE ) ,
75 Activ := TRUE ,
76 Error := FALSE ,
77 FlashLightWord := wFlashLightWord ,
78 LED => gb_bKeypadRightLED_06 ) ;
79
// ---------------------------------------------------------------------------------------------
80 //
81 // ****
82 // **** VAM_40_Tastenfeld_02 (rechtes) LLED-Taste 07 - NOT USED
83 //
84
// ---------------------------------------------------------------------------------------------
85 //
86 arKeypad_02_LED [ 7 ] (
87 Enable := FALSE ,
88 Activ := TRUE ,
89 Error := FALSE ,
90 FlashLightWord := wFlashLightWord ,
91 LED => ) ;
92
// ---------------------------------------------------------------------------------------------
93 //
94 // ****
95 // **** VAM_40_Tastenfeld_02 (rechtes) LED-Taste 08 - NOT USED
96 //
97
// ---------------------------------------------------------------------------------------------
98 //
99 arKeypad_02_LED [ 8 ] (
100 Enable := FALSE ,
101 Activ := TRUE ,
102 Error := FALSE ,
103 FlashLightWord := wFlashLightWord ,
104 LED => ) ;
105
// ---------------------------------------------------------------------------------------------
106 //
107 // ****
108 // **** VAM_40_Tastenfeld_02 (rechtes) LED-Taste 09 - RESET
219 1/4/2017
IndraWorks ML* 13V16.0110
109 //
110
// ---------------------------------------------------------------------------------------------
111 //
112 arKeypad_02_LED [ 9 ] (
113 Enable := gb_bError ,
114 Activ := TRUE ,
115 Error := FALSE ,
116 FlashLightWord := wFlashLightWord ,
117 LED => gb_bKeypadRightLED_09 ) ;
118
// ---------------------------------------------------------------------------------------------
119 //
120 // **** PUSHER
121 // **** VAM_40_Tastenfeld_02 (rechtes) LED-Taste 10 - NOT USED
122 //
123
// ---------------------------------------------------------------------------------------------
124 //
125 arKeypad_02_LED [ 10 ] (
126 Enable := FALSE ,
127 Activ := TRUE ,
128 Error := FALSE ,
129 FlashLightWord := wFlashLightWord ,
130 LED => gb_bKeypadRightLED_10 ) ;
131
// ---------------------------------------------------------------------------------------------
132 //
133 // ****
134 // **** VAM_40_Tastenfeld_02 (rechtes) LED-Taste 11 - NOT USED
135 //
136
// ---------------------------------------------------------------------------------------------
137 //
138 arKeypad_02_LED [ 11 ] (
139 Enable := FALSE ,
140 Activ := TRUE ,
141 Error := FALSE ,
142 FlashLightWord := wFlashLightWord ,
143 LED => gb_bKeypadRightLED_11 ) ;
144
// ---------------------------------------------------------------------------------------------
145 //
146 // **** BUTON
147 // **** VAM_40_Tastenfeld_02 (rechtes) LED-Taste 12 - TASTE STOP
148 //
149
// ---------------------------------------------------------------------------------------------
150 //
151 arKeypad_02_LED [ 12 ] (
152 Enable := gb_bStartStopAutomaticCycle AND NOT gb_bError ,
153 Activ := FALSE ,
154 Error := FALSE ,
155 FlashLightWord := wFlashLightWord ,
156 LED => gb_bKeypadRightLED_12 ) ;
157
// ---------------------------------------------------------------------------------------------
158 //
159 // **** BELT FORWARD
160 // **** VAM_40_Tastenfeld_02 (rechtes) LED-Taste 13 - NOT USED
161 //
162
// ---------------------------------------------------------------------------------------------
163 //
220 1/4/2017
IndraWorks ML* 13V16.0110
164 arKeypad_02_LED [ 13 ](
165 Enable := FALSE ,
166 Activ := TRUE ,
167 Error := FALSE ,
168 FlashLightWord := wFlashLightWord ,
169 LED => );
170
// ---------------------------------------------------------------------------------------------
171 //
172 // **** BELT FORWARD
173 // **** VAM_40_Tastenfeld_02 (rechtes) LED-Taste 14 - NOT USED
174 //
175
// ---------------------------------------------------------------------------------------------
176 //
177 arKeypad_02_LED [ 14 ] (
178 Enable := FALSE ,
179 Activ := TRUE ,
180 Error := FALSE ,
181 FlashLightWord := wFlashLightWord ,
182 LED => ) ;
183
// ---------------------------------------------------------------------------------------------
184 //
185 // **** BELT FORWARD
186 // **** VAM_40_Tastenfeld_02 (rechtes) LED-Taste 15 - TASTE START
187 //
188
// ---------------------------------------------------------------------------------------------
189 //
190 arKeypad_02_LED [ 15 ] (
191 Enable := (
192 ( gb_bHomingModeActiv = TRUE )
193 OR ( gb_bAutomaticModeActiv = TRUE )
194 OR ( gb_bSingleStepModeActiv = TRUE )
195 )
196 AND NOT gb_bError ,
197 Activ := ( ( gb_bHomingModeActiv = TRUE ) AND (
gb_bHomePosReached = TRUE ) )
198 OR ( ( ( gb_bAutomaticModeActiv = TRUE ) OR (
gb_bSingleStepModeActiv = TRUE ) ) AND ( gb_bStartStopAutomaticCycle = TRUE
)),
199 Error := FALSE ,
200 FlashLightWord := wFlashLightWord ,
201 LED => gb_bKeypadRightLED_15 ) ;
202
// ---------------------------------------------------------------------------------------------
203
221 1/4/2017
IndraWorks ML* 13V16.0110
1 // ---------------------------------------------------------------------------------------------
2 //
3 // **** ERROR
4 // **** FEHLER
5 //
6
// ---------------------------------------------------------------------------------------------
7 //
8 gb_bNotError := ( gb_bEmergencyStopOK = TRUE )
9 AND ( arError [ 1 ] = FALSE )
10 AND ( arError [ 2 ] = FALSE )
11 AND ( arError [ 3 ] = FALSE )
12 AND ( arError [ 4 ] = FALSE )
13 AND ( arError [ 5 ] = FALSE )
14 AND ( arError [ 6 ] = FALSE ) ;
15 //
16 IF ( gb_bNotError = TRUE ) THEN
17 gb_bError := FALSE ;
18 ELSE
19 gb_bError := TRUE ;
20 END_IF
21 //
22 A_K03_Reset := gb_bKeypadRightButton09 ;
23
// ---------------------------------------------------------------------------------------------
24
222 1/4/2017
IndraWorks ML* 13V16.0110
223 1/4/2017
IndraWorks ML* 13V16.0110
224 1/4/2017
IndraWorks ML* 13V16.0110
Priority: 5
Type: Cyclic
Interval: 10 Unit: ms
Watchdog: Active
Watchdog Time: 10 Unit: ms
Watchdog Sensitivity: 2
POUs: main_program
ProfibusDiag
225 1/4/2017
IndraWorks ML* 13V16.0110
Parameters:
Inline-Cycle-Counter,
Description: Inline-Cycle-Counter,
Count of Data-OK-Cycles, Type: UDINT,
Value: 0, Default Value: 0,
Description: Count of Data-OK-Cycles,
Count of Data-ERROR-Cycles, Type: UDINT,
Value: 0, Default Value: 0,
Description: Count of Data-ERROR-Cycles,
Count of Id-OK-Cycles, Type: UDINT,
Value: 0, Default Value: 0,
Description: Count of Id-OK-Cycles,
Count of Id-ERROR-Cycles, Type: UDINT,
Value: 0, Default Value: 0,
Description: Count of Id-ERROR-Cycles,
Record time, Type: UDINT,
Value: 0, Default Value: 0,
Unit: ms,
Description: Record time,
Diagnosis,
Description: Diagnosis,
Configuration error,
Description: Configuration error,
Error message, Type: UDINT,
Value: 0, Default Value: 0,
Description: Error message,
Number of errors, Type: UDINT,
Description: Number of errors,
Position of first wrong module, Type: UDINT,
Description: Position of first wrong module,
Position of last wrong module, Type: UDINT,
Description: Position of last wrong module,
Number of configured modules, Type: UDINT,
Description: Number of configured modules,
Number of activated modules, Type: UDINT,
Description: Number of activated modules,
Number of scanned modules, Type: UDINT,
Description: Number of scanned modules,
Configured module ID of first wrong module, Type: UDINT,
Description: Configured module ID of first wrong module,
Scanned module ID of first wrong module, Type: UDINT,
Description: Scanned module ID of first wrong module,
Master error,
Description: Master error,
Error message, Type: UDINT,
Value: 0, Default Value: 0,
Description: Error message,
Additional information, Type: UDINT,
Description: Additional information,
Bus error,
Description: Bus error,
Error message, Type: UDINT,
Value: 0, Default Value: 0,
Description: Error message,
Module position, Type: UDINT,
Description: Module position,
Number of modules, Type: UDINT,
Description: Number of modules,
Module error,
Description: Module error,
Error message, Type: UDINT,
226 1/4/2017
IndraWorks ML* 13V16.0110
227 1/4/2017
IndraWorks ML* 13V16.0110
Input Parameters:
Channel: Input0, Type: BYTE, Address: %IB0,
Channel: 1.1, Type: BOOL, Address: %IX0.0,
Channel: 2.1, Type: BOOL, Address: %IX0.1,
Channel: 1.4, Type: BOOL, Address: %IX0.2,
Channel: 2.4, Type: BOOL, Address: %IX0.3,
Information
Name: R-IB IL 24 DI 4
Vendor: Bosch Rexroth AG
Version: 0.0.0.1
Order number: R911170750, R911289287
Description: Inline terminal with 4 digital inputs.
DC 24 V
2- and 3-wire technology
228 1/4/2017
IndraWorks ML* 13V16.0110
Input Parameters:
Channel: Input0, Type: BYTE, Address: %IB1,
Channel: 1.1, Type: BOOL, Address: %IX1.0,
Channel: 2.1, Type: BOOL, Address: %IX1.1,
Channel: 1.4, Type: BOOL, Address: %IX1.2,
Channel: 2.4, Type: BOOL, Address: %IX1.3,
Information
Name: R-IB IL 24 DI 4
Vendor: Bosch Rexroth AG
Version: 0.0.0.1
Order number: R911170750, R911289287
Description: Inline terminal with 4 digital inputs.
DC 24 V
2- and 3-wire technology
229 1/4/2017
IndraWorks ML* 13V16.0110
Output Parameters:
Channel: Output0, Type: BYTE, Address: %QB0,
Channel: 1.1, Type: BOOL, Address: %QX0.0,
Channel: 2.1, Type: BOOL, Address: %QX0.1,
Channel: 1.4, Type: BOOL, Address: %QX0.2,
Channel: 2.4, Type: BOOL, Address: %QX0.3,
Information
Name: R-IB IL 24 DO 4
Vendor: Bosch Rexroth AG
Version: 0.0.0.1
Order number: R911170755, R911289295
Description: Inline terminal with 4 digital outputs.
DC 24 V, 0.5 A
2 and 3-wire technology
230 1/4/2017
IndraWorks ML* 13V16.0110
Output Parameters:
Channel: Output0, Type: BYTE, Address: %QB1,
Channel: 1.1, Type: BOOL, Address: %QX1.0,
Channel: 2.1, Type: BOOL, Address: %QX1.1,
Channel: 1.4, Type: BOOL, Address: %QX1.2,
Channel: 2.4, Type: BOOL, Address: %QX1.3,
Information
Name: R-IB IL 24 DO 4
Vendor: Bosch Rexroth AG
Version: 0.0.0.1
Order number: R911170755, R911289295
Description: Inline terminal with 4 digital outputs.
DC 24 V, 0.5 A
2 and 3-wire technology
231 1/4/2017
IndraWorks ML* 13V16.0110
Input Parameters:
Channel: Input0, Type: BYTE, Address: %IB2,
Channel: Fuse, Type: BOOL, Address: %IX2.0,
Channel: UM, Type: BOOL, Address: %IX2.1,
Information
232 1/4/2017
IndraWorks ML* 13V16.0110
Input Parameters:
Channel: Input0, Type: BYTE, Address: %IB51,
Channel: I1, Type: BOOL, Address: %IX51.0,
Channel: I2, Type: BOOL, Address: %IX51.1,
Channel: I3, Type: BOOL, Address: %IX51.2,
Channel: I4, Type: BOOL, Address: %IX51.3,
Channel: IO5, Type: BOOL, Address: %IX51.4,
Channel: IO6, Type: BOOL, Address: %IX51.5,
Channel: IO7, Type: BOOL, Address: %IX51.6,
Channel: IO8, Type: BOOL, Address: %IX51.7,
Output Parameters:
Channel: Output0, Type: BYTE, Address: %QB51,
Channel: N.C., Type: BOOL, Address: %QX51.0,
Channel: N.C., Type: BOOL, Address: %QX51.1,
Channel: N.C., Type: BOOL, Address: %QX51.2,
Channel: N.C., Type: BOOL, Address: %QX51.3,
Channel: IO5, Type: BOOL, Address: %QX51.4,
Channel: IO6, Type: BOOL, Address: %QX51.5,
Channel: IO7, Type: BOOL, Address: %QX51.6,
Channel: IO8, Type: BOOL, Address: %QX51.7,
Information
233 1/4/2017
IndraWorks ML* 13V16.0110
Input Parameters:
Channel: Input0, Type: BYTE, Address: %IB52,
Channel: I1, Type: BOOL, Address: %IX52.0,
Channel: I2, Type: BOOL, Address: %IX52.1,
Channel: I3, Type: BOOL, Address: %IX52.2,
Channel: I4, Type: BOOL, Address: %IX52.3,
Channel: I5, Type: BOOL, Address: %IX52.4,
Channel: I6, Type: BOOL, Address: %IX52.5,
Channel: I7, Type: BOOL, Address: %IX52.6,
Channel: I8, Type: BOOL, Address: %IX52.7,
Information
Name: RF-FLM DI 8 M8
Vendor: Bosch Rexroth AG
Version: 0.0.0.1
Order number: R911170449
Description: Fieldline modular M8 device with 8 digital inputs.
Connection to the Fieldline modular local bus using terminal R-IB IL 24 FLM.
Inputs DC 24 V.
Connection of digital sensors using M8 connectors.
234 1/4/2017
IndraWorks ML* 13V16.0110
Input Parameters:
Channel: Input0, Type: BYTE, Address: %IB53,
Channel: I1, Type: BOOL, Address: %IX53.0,
Channel: I2, Type: BOOL, Address: %IX53.1,
Channel: I3, Type: BOOL, Address: %IX53.2,
Channel: I4, Type: BOOL, Address: %IX53.3,
Channel: IO5, Type: BOOL, Address: %IX53.4,
Channel: IO6, Type: BOOL, Address: %IX53.5,
Channel: IO7, Type: BOOL, Address: %IX53.6,
Channel: IO8, Type: BOOL, Address: %IX53.7,
Output Parameters:
Channel: Output0, Type: BYTE, Address: %QB53,
Channel: N.C., Type: BOOL, Address: %QX53.0,
Channel: N.C., Type: BOOL, Address: %QX53.1,
Channel: N.C., Type: BOOL, Address: %QX53.2,
Channel: N.C., Type: BOOL, Address: %QX53.3,
Channel: IO5, Type: BOOL, Address: %QX53.4,
Channel: IO6, Type: BOOL, Address: %QX53.5,
Channel: IO7, Type: BOOL, Address: %QX53.6,
Channel: IO8, Type: BOOL, Address: %QX53.7,
Information
235 1/4/2017
IndraWorks ML* 13V16.0110
Input Parameters:
Channel: Input0, Type: BYTE, Address: %IB54,
Channel: I1, Type: BOOL, Address: %IX54.0,
Channel: I2, Type: BOOL, Address: %IX54.1,
Channel: I3, Type: BOOL, Address: %IX54.2,
Channel: I4, Type: BOOL, Address: %IX54.3,
Channel: IO5, Type: BOOL, Address: %IX54.4,
Channel: IO6, Type: BOOL, Address: %IX54.5,
Channel: IO7, Type: BOOL, Address: %IX54.6,
Channel: IO8, Type: BOOL, Address: %IX54.7,
Output Parameters:
Channel: Output0, Type: BYTE, Address: %QB54,
Channel: N.C., Type: BOOL, Address: %QX54.0,
Channel: N.C., Type: BOOL, Address: %QX54.1,
Channel: N.C., Type: BOOL, Address: %QX54.2,
Channel: N.C., Type: BOOL, Address: %QX54.3,
Channel: IO5, Type: BOOL, Address: %QX54.4, Description: Band vor,
Channel: IO6, Type: BOOL, Address: %QX54.5, Description: Band zurück,
Channel: IO7, Type: BOOL, Address: %QX54.6,
Channel: IO8, Type: BOOL, Address: %QX54.7,
Information
236 1/4/2017
IndraWorks ML* 13V16.0110
Input Parameters:
Channel: Input0, Type: BYTE, Address: %IB55,
Channel: I1, Type: BOOL, Address: %IX55.0,
Channel: I2, Type: BOOL, Address: %IX55.1,
Channel: I3, Type: BOOL, Address: %IX55.2,
Channel: I4, Type: BOOL, Address: %IX55.3,
Channel: I5, Type: BOOL, Address: %IX55.4,
Channel: I6, Type: BOOL, Address: %IX55.5,
Channel: I7, Type: BOOL, Address: %IX55.6,
Channel: I8, Type: BOOL, Address: %IX55.7,
Information
Name: RF-FLM DI 8 M8
Vendor: Bosch Rexroth AG
Version: 0.0.0.1
Order number: R911170449
Description: Fieldline modular M8 device with 8 digital inputs.
Connection to the Fieldline modular local bus using terminal R-IB IL 24 FLM.
Inputs DC 24 V.
Connection of digital sensors using M8 connectors.
237 1/4/2017
IndraWorks ML* 13V16.0110
1.3 : Profibus_DP_Master
Parameters:
NumberOfInputs, Type: WORD,
Value: 0, Default Value: 0,
Description: Number of input channels,
NumberOfOutputs, Type: WORD,
Value: 0, Default Value: 0,
Description: Number of output channels,
DpParameter,
Description: Parameter set of the Profibus DP master,
Bus parameter length, Type: WORD,
Value: 24, Default Value: 24,
Description: Length of the master parameter set,
Station address, Type: BYTE,
Value: 1,
Description: Address of the master,
Baudrate, Type: BYTE,
Value: 6, Default Value: 6,
Description: Selected baudrate,
T_SL, Type: WORD,
Value: 400, Default Value: 400,
Unit: Bit,
Description: Slot time,
min. T_SDR, Type: WORD,
Value: 11, Default Value: 11,
Unit: Bit,
Description: Minimum station delay responder time,
max. T_SDR, Type: WORD,
Value: 150, Default Value: 150,
Unit: Bit,
Description: Maximum station delay responder time,
T_QUI, Type: BYTE,
Value: 0, Default Value: 0,
Unit: Bit,
Description: Quiet time,
T_SET, Type: BYTE,
Value: 1, Default Value: 1,
Unit: Bit,
Description: Setup time,
T_TR, Type: DWORD,
Value: 4449, Default Value: 4449,
Unit: Bit,
Description: Target rotation time,
Gap update factor, Type: BYTE,
Value: 10, Default Value: 10,
Description: Gap update,
Highest station address, Type: BYTE,
Value: 125, Default Value: 125,
Description: Highest active station address,
max. retry limit, Type: BYTE,
Value: 2, Default Value: 2,
Description: Maximum retries if error occurs,
Bp flag, Type: BYTE,
Value: 0, Default Value: 0,
Description: Auto clear on / off,
min. slave interval, Type: WORD,
Value: 10, Default Value: 10,
Unit: 100 µs,
Description: Minimum slave interval time,
Poll timeout, Type: WORD,
Value: 100, Default Value: 100,
Unit: 10 ms,
238 1/4/2017
IndraWorks ML* 13V16.0110
239 1/4/2017
IndraWorks ML* 13V16.0110
240 1/4/2017
IndraWorks ML* 13V16.0110
241 1/4/2017
IndraWorks ML* 13V16.0110
IEC objects:
Variable: Profibus_DP_Master, Type: IoDrvCIFXProfibusDCIA
242 1/4/2017
IndraWorks ML* 13V16.0110
Parameters:
NumberOfInputs, Type: WORD,
Value: 0, Default Value: 0,
Description: Number of input channels,
NumberOfOutputs, Type: WORD,
Value: 0, Default Value: 0,
Description: Number of output channels,
SlavePrmData,
Description: Configuration telegram of the ProfiBus DP slave,
stationStatus, Type: BYTE,
Value: 136, Default Value: 136,
wdFact1, Type: BYTE,
Value: 1, Default Value: 10,
wdFact2, Type: BYTE,
Value: 40, Default Value: 10,
minTsdr, Type: BYTE,
Value: 11, Default Value: 11,
identNumber, Type: ARRAY[0..1] OF BYTE,
Value: [1,35], Default Value: [1,35],
group, Type: BYTE,
userPrmData,
userParameter, Type: ARRAY[0..2] OF BYTE,
Value: [0,2,0], Default Value: [0,2,0],
StationAddress, Type: BYTE,
Value: 3, Default Value: 1,
Description: Station address of the slave,
SlaveParams,
Description: Parameter set of a single ProfiBus DP slave,
slFlag, Type: BYTE,
Value: 160, Default Value: 160,
slaveType, Type: BYTE,
Value: 6, Default Value: 6,
maxDiagDataLen, Type: BYTE,
Value: 70, Default Value: 70,
maxAlarmLen, Type: BYTE,
Value: 0, Default Value: 0,
maxChannelDataLen, Type: BYTE,
Value: 244, Default Value: 244,
diagUpdDelay, Type: BYTE,
Value: 0, Default Value: 0,
alarmMode, Type: BYTE,
Value: 0, Default Value: 0,
addSlFlag, Type: BYTE,
reserved, Type: ARRAY[0..5] OF BYTE,
SlaveDiag,
Description: ProfiBus DP slave diagnostic information,
Status1, Type: BYTE, Value: {false, false, false, false, false, false, false, false},
Bit0, Type: BOOL,
Value: false, Default Value: false,
Bit1, Type: BOOL,
Value: false, Default Value: false,
Bit2, Type: BOOL,
Value: false, Default Value: false,
Bit3, Type: BOOL,
Value: false, Default Value: false,
Bit4, Type: BOOL,
Value: false, Default Value: false,
Bit5, Type: BOOL,
Value: false, Default Value: false,
Bit6, Type: BOOL,
Value: false, Default Value: false,
243 1/4/2017
IndraWorks ML* 13V16.0110
Name: VAM10,VAM40
Vendor: Rexroth
Version: Revision=V1.1#01, HW=V1.1, SW=V1.1
Order number:
Description: Profibus DP Slave imported from RX020123.gsd
244 1/4/2017
IndraWorks ML* 13V16.0110
Parameters:
NumberOfInputs, Type: WORD,
Value: 1, Default Value: 1,
Description: Number of input channels,
NumberOfOutputs, Type: WORD,
Value: 1, Default Value: 1,
Description: Number of output channels,
ConfigData, Type: ARRAY[0..3] OF BYTE,
Value: [193,0,1,43], Default Value: [193,0,1,43],
Description: Configuration data of the ProfiBus DP module,
ModuleIndex, Type: DINT,
Value: 0, Default Value: 0,
Description: Index of the module in the slaves module list,
Input Parameters:
Channel: Input0, Address: %IB100,
Channel: Byte0, Type: BYTE, Address: %IB100,
Channel: Bit0, Type: BOOL, Address: %IX100.0,
Channel: Bit1, Type: BOOL, Address: %IX100.1,
Channel: Bit2, Type: BOOL, Address: %IX100.2,
Channel: Bit3, Type: BOOL, Address: %IX100.3,
Channel: Bit4, Type: BOOL, Address: %IX100.4,
Channel: Bit5, Type: BOOL, Address: %IX100.5,
Channel: Bit6, Type: BOOL, Address: %IX100.6,
Channel: Bit7, Type: BOOL, Address: %IX100.7,
Channel: Byte1, Type: BYTE, Address: %IB101,
Channel: Bit0, Type: BOOL, Address: %IX101.0,
Channel: Bit1, Type: BOOL, Address: %IX101.1,
Channel: Bit2, Type: BOOL, Address: %IX101.2,
Channel: Bit3, Type: BOOL, Address: %IX101.3,
Channel: Bit4, Type: BOOL, Address: %IX101.4,
Channel: Bit5, Type: BOOL, Address: %IX101.5,
Channel: Bit6, Type: BOOL, Address: %IX101.6,
Channel: Bit7, Type: BOOL, Address: %IX101.7,
Output Parameters:
Channel: Output0, Type: BYTE, Address: %QB100,
Channel: Bit0, Type: BOOL, Address: %QX100.0,
Channel: Bit1, Type: BOOL, Address: %QX100.1,
Channel: Bit2, Type: BOOL, Address: %QX100.2,
Channel: Bit3, Type: BOOL, Address: %QX100.3,
Channel: Bit4, Type: BOOL, Address: %QX100.4,
Channel: Bit5, Type: BOOL, Address: %QX100.5,
Channel: Bit6, Type: BOOL, Address: %QX100.6,
Channel: Bit7, Type: BOOL, Address: %QX100.7,
245 1/4/2017
IndraWorks ML* 13V16.0110
Parameters:
NumberOfInputs, Type: WORD,
Value: 1, Default Value: 1,
Description: Number of input channels,
NumberOfOutputs, Type: WORD,
Value: 0, Default Value: 0,
Description: Number of output channels,
ConfigData, Type: ARRAY[0..2] OF BYTE,
Value: [65,65,44], Default Value: [65,65,44],
Description: Configuration data of the ProfiBus DP module,
ModuleIndex, Type: DINT,
Value: 1, Default Value: 1,
Description: Index of the module in the slaves module list,
Input Parameters:
Channel: Input0, Address: %IW102,
Channel: Word0, Type: WORD, Address: %IW102,
Channel: Bit0, Type: BOOL, Address: %IX102.0,
Channel: Bit1, Type: BOOL, Address: %IX102.1,
Channel: Bit2, Type: BOOL, Address: %IX102.2,
Channel: Bit3, Type: BOOL, Address: %IX102.3,
Channel: Bit4, Type: BOOL, Address: %IX102.4,
Channel: Bit5, Type: BOOL, Address: %IX102.5,
Channel: Bit6, Type: BOOL, Address: %IX102.6,
Channel: Bit7, Type: BOOL, Address: %IX102.7,
Channel: Bit8, Type: BOOL, Address: %IX103.0,
Channel: Bit9, Type: BOOL, Address: %IX103.1,
Channel: Bit10, Type: BOOL, Address: %IX103.2,
Channel: Bit11, Type: BOOL, Address: %IX103.3,
Channel: Bit12, Type: BOOL, Address: %IX103.4,
Channel: Bit13, Type: BOOL, Address: %IX103.5,
Channel: Bit14, Type: BOOL, Address: %IX103.6,
Channel: Bit15, Type: BOOL, Address: %IX103.7,
Channel: Word1, Type: WORD, Address: %IW104,
Channel: Bit0, Type: BOOL, Address: %IX104.0,
Channel: Bit1, Type: BOOL, Address: %IX104.1,
Channel: Bit2, Type: BOOL, Address: %IX104.2,
Channel: Bit3, Type: BOOL, Address: %IX104.3,
Channel: Bit4, Type: BOOL, Address: %IX104.4,
Channel: Bit5, Type: BOOL, Address: %IX104.5,
Channel: Bit6, Type: BOOL, Address: %IX104.6,
Channel: Bit7, Type: BOOL, Address: %IX104.7,
Channel: Bit8, Type: BOOL, Address: %IX105.0,
Channel: Bit9, Type: BOOL, Address: %IX105.1,
Channel: Bit10, Type: BOOL, Address: %IX105.2,
Channel: Bit11, Type: BOOL, Address: %IX105.3,
Channel: Bit12, Type: BOOL, Address: %IX105.4,
Channel: Bit13, Type: BOOL, Address: %IX105.5,
Channel: Bit14, Type: BOOL, Address: %IX105.6,
Channel: Bit15, Type: BOOL, Address: %IX105.7,
246 1/4/2017
IndraWorks ML* 13V16.0110
247 1/4/2017
IndraWorks ML* 13V16.0110
Parameters:
NumberOfInputs, Type: WORD,
Value: 1, Default Value: 1,
Description: Number of input channels,
NumberOfOutputs, Type: WORD,
Value: 0, Default Value: 0,
Description: Number of output channels,
ConfigData, Type: ARRAY[0..2] OF BYTE,
Value: [65,64,47], Default Value: [65,64,47],
Description: Configuration data of the ProfiBus DP module,
ModuleIndex, Type: DINT,
Value: 2, Default Value: 2,
Description: Index of the module in the slaves module list,
Input Parameters:
Channel: Input0, Type: WORD, Address: %IW106,
Channel: Bit0, Type: BOOL, Address: %IX106.0,
Channel: Bit1, Type: BOOL, Address: %IX106.1,
Channel: Bit2, Type: BOOL, Address: %IX106.2,
Channel: Bit3, Type: BOOL, Address: %IX106.3,
Channel: Bit4, Type: BOOL, Address: %IX106.4,
Channel: Bit5, Type: BOOL, Address: %IX106.5,
Channel: Bit6, Type: BOOL, Address: %IX106.6,
Channel: Bit7, Type: BOOL, Address: %IX106.7,
Channel: Bit8, Type: BOOL, Address: %IX107.0,
Channel: Bit9, Type: BOOL, Address: %IX107.1,
Channel: Bit10, Type: BOOL, Address: %IX107.2,
Channel: Bit11, Type: BOOL, Address: %IX107.3,
Channel: Bit12, Type: BOOL, Address: %IX107.4,
Channel: Bit13, Type: BOOL, Address: %IX107.5,
Channel: Bit14, Type: BOOL, Address: %IX107.6,
Channel: Bit15, Type: BOOL, Address: %IX107.7,
Name: Handwheel
Vendor: Rexroth
Version: Revision=V1.1#01, HW=V1.1, SW=V1.1
Order number:
Description: Profibus DP module for slave VAM10,VAM40 imported from RX020123.gsd
248 1/4/2017
IndraWorks ML* 13V16.0110
Parameters:
NumberOfInputs, Type: WORD,
Value: 1, Default Value: 1,
Description: Number of input channels,
NumberOfOutputs, Type: WORD,
Value: 1, Default Value: 1,
Description: Number of output channels,
ConfigData, Type: ARRAY[0..3] OF BYTE,
Value: [193,1,1,48], Default Value: [193,1,1,48],
Description: Configuration data of the ProfiBus DP module,
ModuleIndex, Type: DINT,
Value: 3, Default Value: 3,
Description: Index of the module in the slaves module list,
Input Parameters:
Channel: Input0, Address: %IB108,
Channel: Byte0, Type: BYTE, Address: %IB108,
Channel: Bit0, Type: BOOL, Address: %IX108.0,
Channel: Bit1, Type: BOOL, Address: %IX108.1,
Channel: Bit2, Type: BOOL, Address: %IX108.2,
Channel: Bit3, Type: BOOL, Address: %IX108.3,
Channel: Bit4, Type: BOOL, Address: %IX108.4,
Channel: Bit5, Type: BOOL, Address: %IX108.5,
Channel: Bit6, Type: BOOL, Address: %IX108.6,
Channel: Bit7, Type: BOOL, Address: %IX108.7,
Channel: Byte1, Type: BYTE, Address: %IB109,
Channel: Bit0, Type: BOOL, Address: %IX109.0,
Channel: Bit1, Type: BOOL, Address: %IX109.1,
Channel: Bit2, Type: BOOL, Address: %IX109.2,
Channel: Bit3, Type: BOOL, Address: %IX109.3,
Channel: Bit4, Type: BOOL, Address: %IX109.4,
Channel: Bit5, Type: BOOL, Address: %IX109.5,
Channel: Bit6, Type: BOOL, Address: %IX109.6,
Channel: Bit7, Type: BOOL, Address: %IX109.7,
Output Parameters:
Channel: Output0, Address: %QB101,
Channel: Byte0, Type: BYTE, Address: %QB101,
Channel: Bit0, Type: BOOL, Address: %QX101.0,
Channel: Bit1, Type: BOOL, Address: %QX101.1,
Channel: Bit2, Type: BOOL, Address: %QX101.2,
Channel: Bit3, Type: BOOL, Address: %QX101.3,
Channel: Bit4, Type: BOOL, Address: %QX101.4,
Channel: Bit5, Type: BOOL, Address: %QX101.5,
Channel: Bit6, Type: BOOL, Address: %QX101.6,
Channel: Bit7, Type: BOOL, Address: %QX101.7,
Channel: Byte1, Type: BYTE, Address: %QB102,
Channel: Bit0, Type: BOOL, Address: %QX102.0,
Channel: Bit1, Type: BOOL, Address: %QX102.1,
Channel: Bit2, Type: BOOL, Address: %QX102.2,
Channel: Bit3, Type: BOOL, Address: %QX102.3,
Channel: Bit4, Type: BOOL, Address: %QX102.4,
Channel: Bit5, Type: BOOL, Address: %QX102.5,
Channel: Bit6, Type: BOOL, Address: %QX102.6,
Channel: Bit7, Type: BOOL, Address: %QX102.7,
249 1/4/2017
IndraWorks ML* 13V16.0110
Name: Keypad TA
Vendor: Rexroth
Version: Revision=V1.1#01, HW=V1.1, SW=V1.1
Order number:
Description: Profibus DP module for slave VAM10,VAM40 imported from RX020123.gsd
250 1/4/2017
IndraWorks ML* 13V16.0110
Parameters:
NumberOfInputs, Type: WORD,
Value: 1, Default Value: 1,
Description: Number of input channels,
NumberOfOutputs, Type: WORD,
Value: 1, Default Value: 1,
Description: Number of output channels,
ConfigData, Type: ARRAY[0..3] OF BYTE,
Value: [193,1,1,48], Default Value: [193,1,1,48],
Description: Configuration data of the ProfiBus DP module,
ModuleIndex, Type: DINT,
Value: 4, Default Value: 4,
Description: Index of the module in the slaves module list,
Input Parameters:
Channel: Input0, Address: %IB110,
Channel: Byte0, Type: BYTE, Address: %IB110,
Channel: Bit0, Type: BOOL, Address: %IX110.0,
Channel: Bit1, Type: BOOL, Address: %IX110.1,
Channel: Bit2, Type: BOOL, Address: %IX110.2,
Channel: Bit3, Type: BOOL, Address: %IX110.3,
Channel: Bit4, Type: BOOL, Address: %IX110.4,
Channel: Bit5, Type: BOOL, Address: %IX110.5,
Channel: Bit6, Type: BOOL, Address: %IX110.6,
Channel: Bit7, Type: BOOL, Address: %IX110.7,
Channel: Byte1, Type: BYTE, Address: %IB111,
Channel: Bit0, Type: BOOL, Address: %IX111.0,
Channel: Bit1, Type: BOOL, Address: %IX111.1,
Channel: Bit2, Type: BOOL, Address: %IX111.2,
Channel: Bit3, Type: BOOL, Address: %IX111.3,
Channel: Bit4, Type: BOOL, Address: %IX111.4,
Channel: Bit5, Type: BOOL, Address: %IX111.5,
Channel: Bit6, Type: BOOL, Address: %IX111.6,
Channel: Bit7, Type: BOOL, Address: %IX111.7,
Output Parameters:
Channel: Output0, Address: %QB103,
Channel: Byte0, Type: BYTE, Address: %QB103,
Channel: Bit0, Type: BOOL, Address: %QX103.0,
Channel: Bit1, Type: BOOL, Address: %QX103.1,
Channel: Bit2, Type: BOOL, Address: %QX103.2,
Channel: Bit3, Type: BOOL, Address: %QX103.3,
Channel: Bit4, Type: BOOL, Address: %QX103.4,
Channel: Bit5, Type: BOOL, Address: %QX103.5,
Channel: Bit6, Type: BOOL, Address: %QX103.6,
Channel: Bit7, Type: BOOL, Address: %QX103.7,
Channel: Byte1, Type: BYTE, Address: %QB104,
Channel: Bit0, Type: BOOL, Address: %QX104.0,
Channel: Bit1, Type: BOOL, Address: %QX104.1,
Channel: Bit2, Type: BOOL, Address: %QX104.2,
Channel: Bit3, Type: BOOL, Address: %QX104.3,
Channel: Bit4, Type: BOOL, Address: %QX104.4,
Channel: Bit5, Type: BOOL, Address: %QX104.5,
Channel: Bit6, Type: BOOL, Address: %QX104.6,
Channel: Bit7, Type: BOOL, Address: %QX104.7,
251 1/4/2017
IndraWorks ML* 13V16.0110
Name: Keypad TA
Vendor: Rexroth
Version: Revision=V1.1#01, HW=V1.1, SW=V1.1
Order number:
Description: Profibus DP module for slave VAM10,VAM40 imported from RX020123.gsd
252 1/4/2017
IndraWorks ML* 13V16.0110
Parameters:
NumberOfInputs, Type: WORD,
Value: 1, Default Value: 1,
Description: Number of input channels,
NumberOfOutputs, Type: WORD,
Value: 0, Default Value: 0,
Description: Number of output channels,
ConfigData, Type: ARRAY[0..2] OF BYTE,
Value: [65,1,46], Default Value: [65,1,46],
Description: Configuration data of the ProfiBus DP module,
ModuleIndex, Type: DINT,
Value: 5, Default Value: 5,
Description: Index of the module in the slaves module list,
Input Parameters:
Channel: Input0, Address: %IB112,
Channel: Byte0, Type: BYTE, Address: %IB112,
Channel: Bit0, Type: BOOL, Address: %IX112.0,
Channel: Bit1, Type: BOOL, Address: %IX112.1,
Channel: Bit2, Type: BOOL, Address: %IX112.2,
Channel: Bit3, Type: BOOL, Address: %IX112.3,
Channel: Bit4, Type: BOOL, Address: %IX112.4,
Channel: Bit5, Type: BOOL, Address: %IX112.5,
Channel: Bit6, Type: BOOL, Address: %IX112.6,
Channel: Bit7, Type: BOOL, Address: %IX112.7,
Channel: Byte1, Type: BYTE, Address: %IB113,
Channel: Bit0, Type: BOOL, Address: %IX113.0,
Channel: Bit1, Type: BOOL, Address: %IX113.1,
Channel: Bit2, Type: BOOL, Address: %IX113.2,
Channel: Bit3, Type: BOOL, Address: %IX113.3,
Channel: Bit4, Type: BOOL, Address: %IX113.4,
Channel: Bit5, Type: BOOL, Address: %IX113.5,
Channel: Bit6, Type: BOOL, Address: %IX113.6,
Channel: Bit7, Type: BOOL, Address: %IX113.7,
Name: Override VB
Vendor: Rexroth
Version: Revision=V1.1#01, HW=V1.1, SW=V1.1
Order number:
Description: Profibus DP module for slave VAM10,VAM40 imported from RX020123.gsd
253 1/4/2017
IndraWorks ML* 13V16.0110
1.4 : Nicht_verwendet
254 1/4/2017