0% found this document useful (0 votes)
198 views254 pages

IndraLogic XLC2

This document is a table of contents for an IndraWorks ML program that controls an automation system. It lists the folders, programs, functions, actions, and devices that make up the control logic and configuration. There are folders for data types, function blocks, programs, and a Profibus diagnostic. Global variables are also defined. The main program controls the utilities, homing, automatic operation sequences, outputs, and errors. Devices include digital and analog inputs and outputs connected via Profibus to a VAM PLC and its modules.

Uploaded by

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

IndraLogic XLC2

This document is a table of contents for an IndraWorks ML program that controls an automation system. It lists the folders, programs, functions, actions, and devices that make up the control logic and configuration. There are folders for data types, function blocks, programs, and a Profibus diagnostic. Global variables are also defined. The main program controls the utilities, homing, automatic operation sequences, outputs, and errors. Devices include digital and analog inputs and outputs connected via Profibus to a VAM PLC and its modules.

Uploaded by

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

IndraWorks ML* 13V16.

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

1.1.1.3.10.20 Transition: T27_SaugerIstAus 121


1.1.1.3.10.21 Transition: T28_ZInGST 122
1.1.1.3.10.22 Transition: T29_CP2InGST 123
1.1.1.3.10.23 Transition: T2_PP4InAST 124
1.1.1.3.10.24 Transition: T30_CP1InAST 125
1.1.1.3.10.25 Transition: T31_CP1InGST 126
1.1.1.3.10.26 Transition: T32_CP2InAST 127
1.1.1.3.10.27 Transition: T33_ZInAST 128
1.1.1.3.10.28 Transition: T34_SaugerIstEin 129
1.1.1.3.10.29 Transition: T35_ZInGST 130
1.1.1.3.10.30 Transition: T36_HP1InGST 131
1.1.1.3.10.31 Transition: T37_ZInAST 132
1.1.1.3.10.32 Transition: T38_SaugerAus 133
1.1.1.3.10.33 Transition: T39_ZInGST 134
1.1.1.3.10.34 Transition: T3_PP4InGST_PP1InAST 135
1.1.1.3.10.35 Transition: T4_PP3InAST 136
1.1.1.3.10.36 Transition: T5_PP2InAST 137
1.1.1.3.10.37 Transition: T6_PP1PP2InGST_PP4InAST 138
1.1.1.3.10.38 Transition: T7_PP4PP3InGST 139
1.1.1.3.10.39 Transition: T8_TeilInLS 140
1.1.1.3.10.40 Transition: T9_VerzBandAus 141
1.1.1.3.11 POU: prZweiHand (PRG) 142
1.1.1.3.12 POU: Scheba_Handbewegung (FB) 144
1.1.1.3.13 POU: Scheba_Handbild (FB) 149
1.1.1.4 Folder: ProfibusDiag 152
1.1.1.4.1 POU: fbProfibusDiag (FB) 153
1.1.1.4.2 POU: ProfibusDiag (PRG) 155
1.1.1.5 Global Variable List: Bewegungen 159
1.1.1.6 Global Variable List: EA_SPS 160
1.1.1.7 Global Variable List: EA_VAM 164
1.1.1.8 Global Variable List: Messages 168
1.1.1.9 Global Variable List: UserVarGlobal 170
1.1.1.10 Library Manager: Library Manager 171
1.1.1.11 POU: main_program (PRG) 175
1.1.1.11.1 Action: act_0100_Utilities 179
1.1.1.11.2 Action: act_0200_Homing 182
1.1.1.11.3 Action: act_0300_AutomaticSingleStep 186
1.1.1.11.4 Action: act_0400_AutomaticSingleStep_PinPress 195
1.1.1.11.5 Action: act_0500_AutomaticSingleStep_Portal 201
1.1.1.11.6 Action: act_0600_AutomaticSingleStep_CubePress 208
1.1.1.11.7 Action: act_1000_Output 212
1.1.1.11.8 Action: act_1100_LEDs 218
1.1.1.11.9 Action: act_1200_Error 222
1.1.1.12 Symbol configuration: Symbol configuration 223
1.1.1.13 Task Configuration: Task Configuration 224
1.1.1.13.1 Task: PlcTask 225
1.2 Device: Inline_I_O 226
1.2.1 Device: DigInput_IB_00 (R-IB IL 24 DI 4) 228
1.2.2 Device: DigInput_IB_01 (R-IB IL 24 DI 4) 229
1.2.3 Device: DigOutput_QB_00 (R-IB IL 24 DO 4) 230

2 1/4/2017
IndraWorks ML* 13V16.0110

1.2.4 Device: DigOutput_QB_01 (R-IB IL 24 DO 4) 231


1.2.5 Device: R_IB_IL_24_SEG_F_D (R-IB IL 24 SEG/F-D) 232
1.2.6 Device: FLM_DI8_DO4_Bl_81 (RF-FLM DIO 8/4 M8) 233
1.2.7 Device: FLM_DI8_Bl_82 (RF-FLM DI 8 M8) 234
1.2.8 Device: FLM_DI8_DO4_Bl_83 (RF-FLM DIO 8/4 M8) 235
1.2.9 Device: FLM_DI8_DO4_Bl_84 (RF-FLM DIO 8/4 M8) 236
1.2.10 Device: FLM_DI8_Bl_85 (RF-FLM DI 8 M8) 237
1.3 : Profibus_DP_Master 238
1.3.1 Device: 3 - VAM10_VAM40 (VAM10,VAM40) 243
1.3.1.1 Device: _16DI_8DO (16DI, 8DO) 245
1.3.1.2 Device: Manual_Control_Unit (Manual Control Unit) 246
1.3.1.3 Device: Handwheel (Handwheel) 248
1.3.1.4 Device: Keypad_TA (Keypad TA) 249
1.3.1.5 Device: Keypad_TA_1 (Keypad TA) 251
1.3.1.6 Device: Override_VB (Override VB) 253
1.4 : Nicht_verwendet 254

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

1.1 Plc Logic: Logic

5 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1 Application: Application

6 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.1 Folder: Data types

7 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.1.1 DUT: SchnittstelleSchebaHandbewegungSchrittkette (STRUCT)

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.1.1.1.2 DUT: SchnittstelleSchebaHandbewegungVCP (STRUCT)

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.1.1.1.3 DUT: SchnittstelleSchebaHandbewegungVCP_Meldungen (STRUCT)

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.1.1.1.4 DUT: SchnittstelleSchebaHandbewegungVCP_Zeile (STRUCT)

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

1.1.1.2 Folder: function_blocks

12 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.2.1 POU: FunctionModul (FB)

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.1.1.2.1.1 Action: act_EmergencyStop

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.1.1.2.1.2 Action: act_LED

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.1.1.2.1.3 Action: act_Monitoring

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.1.1.2.1.4 Action: act_OP_100_ManualMode

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.1.1.2.1.5 Action: act_OP_200_Referenz

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.1.1.2.1.6 Action: act_OP_300_Automatic

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.1.1.2.2 POU: SwitchingLEDs (FB)

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.1.1.2.3 POU: TaktSignale (FB)

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

1.1.1.3 Folder: POUs

28 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.1 POU: fbDurchtakten (FB)

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

1 (* Gibt die Nummer des gesetzten Bit's in IN aus *)


2 (* Sind mehrere Bit's gesetzt, takten die Nummern nacheinander durch *)
3
4 (* Takt-Flanke erzeugen *)
5 FP_Takt ( CLK := Takt ) ;
6 (* Logik *)
7 IF IN = 0 THEN
8 (* Kein Bit gesetzt *)
9 OUT := 0 ;
10 ELSE
11 (* Mindestens ein Bit gesetzt *)
12 IF OUT = 0 OR FP_Takt . Q = TRUE THEN
13 REPEAT
14 FOR i := 1 TO 32 DO
15 dw := 1 ;
16 IF ( ROL ( dw , i - 1 ) AND IN ) <> 0 THEN
17 IF i > OUT THEN
18 OUT := i ;
19 RETURN ;
20 END_IF ;
21 END_IF ;
22 END_FOR ;
23 OUT := 0 ;
24 UNTIL OUT <> 0 END_REPEAT ;
25 END_IF ;
26 END_IF ;
27 RETURN ;
28

29 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.2 POU: GrayCode (FUN)

1 FUNCTION GrayCode : WORD


2 VAR_INPUT
3 In : WORD ;
4 END_VAR
5 VAR
6 Out : Word ;
7 END_VAR
8

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.1.1.3.3 POU: PlcProg (PRG)

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.1.1.3.4 POU: prErrorMessages (PRG)

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.1.1.3.5 POU: prErrorMessagesHandling (PRG)

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.1.1.3.6 POU: prGeneral (PRG)

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.1.1.3.7 POU: prHandbetrieb (PRG)

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.1.1.3.8 POU: prLights (PRG)

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.1.1.3.9 POU: prOperatingMessages (PRG)

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.1.1.3.10 POU: prSKAutomatik (PRG)

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

Step2 D t#… bVerzStep2


N pp4_sk.AM_…

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

Step5 D t#… bVerzStep5


N pp2_sk.AM_…

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

Step9 D t#… bVerzStep9

T9_VerzBandAus

Step10 N cb_sk.AM_A…

T10_BandIstAus

Step11 N hp3_sk.AM_…

T11_ZInAST

Step12 D t#… bVerzStep12


N hp2_sk.AM_…

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

Step16 D t#… bVerzStep16


N hp2_sk.AM_…

T16_SaugerIstAus

Step17 N hp3_sk.AM_…

T17_ZIstInGST

Step18 N hp1_sk.AM_…

T18_HP1InGST

Step19 N cb_sk.AM_A…

T19_WSInLS

Step20 D t#… bVerzStep20

T20_ZeitAbgelaufen

Step21 D t#… bVerzStep21


N cb_sk.AM_A…

T21_BandIstAus

Step22 N hp3_sk.AM_…

T22_ZInAST

Step23 D t#… bVerzStep23


N hp2_sk.AM_…

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

Step27 D t#… bVerzStep24


N hp2_sk.AM_…

T27_SaugerIstAus

Step28 N hp3_sk.AM_…

T28_ZInGST

Step29 N cp2_sk.AM_…

T29_CP2InGST

Step30 D t#… bVerzStep30


N cp1_sk.AM_…

T30_CP1InAST

Step31 N cp1_sk.AM_…

T31_CP1InGST

Step32 N cp2_sk.AM_…

T32_CP2InAST

Step33 N hp3_sk.AM_…

T33_ZInAST

Step34 D t#… bVerzStep34


N HP2_SK.AM_…

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

Step38 D t#… bVerzStep38


N hp2_sk.AM_…

T38_SaugerAus

Step39 N hp3_sk.AM_…

T39_ZInGST
Init

101 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.1 Transition: T0_AnlageInGST

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.1.1.3.10.2 Transition: T10_BandIstAus

1
AND
A_84K1_conveyor_belt_dir_end T10_BandIstAus
next

103 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.3 Transition: T11_ZInAST

1
AND
E_83B4_ZylZAchseUnten T11_ZInAST
next

104 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.4 Transition: T12_SaugerIstEin

1
AND
A_83Y1_SaugGreiferEin T12_SaugerIstEin
bVerzStep12
next

105 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.5 Transition: T13_ZIstInGST

1
AND
E_83B3_ZylZAchseOben T13_ZIstInGST
next

106 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.6 Transition: T14_HP1IstInAST

1
AND
E_83B1_SchlitzZylAST T14_HP1IstInAST
next

107 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.7 Transition: T15_ZIstInAST

1
AND
E_83B4_ZylZAchseUnten T15_ZIstInAST
next

108 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.8 Transition: T16_SaugerIstAus

1
AND
A_83Y1_SaugGreiferEin T16_SaugerIstAus
bVerzStep16
next

109 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.9 Transition: T17_ZIstInGST

1
AND
E_83B3_ZylZAchseOben T17_ZIstInGST
next

110 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.10 Transition: T18_HP1InGST

E_83B2_SchlitzZylGST T18_HP1InGST

111 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.11 Transition: T19_WSInLS

E_104_2_LS2Empfaenger T19_WSInLS

112 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.12 Transition: T1_WSAnLichtSchranke

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

1.1.1.3.10.13 Transition: T20_ZeitAbgelaufen

bVerzStep20 T20_ZeitAbgelaufen

114 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.14 Transition: T21_BandIstAus

1
AND
A_84K1_conveyor_belt_dir_end T21_BandIstAus
bVerzStep21
next

115 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.15 Transition: T22_ZInAST

1
AND
E_83B4_ZylZAchseUnten T22_ZInAST
next

116 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.16 Transition: T23_SaugerIstEin

1
AND
A_83Y1_SaugGreiferEin T23_SaugerIstEin
bVerzStep23
next

117 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.17 Transition: T24_ZIstInGST

1
AND
E_83B3_ZylZAchseOben T24_ZIstInGST
next

118 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.18 Transition: T25_HP1IstInAST

1
AND
E_83B1_SchlitzZylAST T25_HP1IstInAST
next

119 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.19 Transition: T26_ZInAST

1
AND
E_83B4_ZylZAchseUnten T26_ZInAST
next

120 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.20 Transition: T27_SaugerIstAus

1
AND
A_83Y1_SaugGreiferEin T27_SaugerIstAus
bVerzStep24
next

121 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.21 Transition: T28_ZInGST

1
AND
E_83B3_ZylZAchseOben T28_ZInGST
next

122 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.22 Transition: T29_CP2InGST

1
AND
E_84B3_AusschiebeZylGST T29_CP2InGST
next
(*bZweiHandAktiv*)true

123 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.23 Transition: T2_PP4InAST

1 IF bVerzStep2 AND E_82B5_AusschubZylAST THEN


2 T2_PP4InAST := TRUE ;
3 ELSE
4 T2_PP4InAST := FALSE ;
5 END_IF
6

124 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.24 Transition: T30_CP1InAST

1
AND
E_84B2_PressZylAST T30_CP1InAST
bVerzStep30
next

125 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.25 Transition: T31_CP1InGST

1
AND
E_84B1_PressZylGST T31_CP1InGST
next

126 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.26 Transition: T32_CP2InAST

1
AND
E_84B4_AusschiebeZylAST T32_CP2InAST
next

127 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.27 Transition: T33_ZInAST

1
AND
E_83B4_ZylZAchseUnten T33_ZInAST
next

128 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.28 Transition: T34_SaugerIstEin

1
AND
A_83Y1_SaugGreiferEin T34_SaugerIstEin
bVerzStep34
next

129 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.29 Transition: T35_ZInGST

1
AND
E_83B3_ZylZAchseOben T35_ZInGST
next

130 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.30 Transition: T36_HP1InGST

1
AND
E_83B2_SchlitzZylGST T36_HP1InGST
next

131 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.31 Transition: T37_ZInAST

1
AND
E_83B4_ZylZAchseUnten T37_ZInAST
next

132 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.32 Transition: T38_SaugerAus

1
AND
bVerzStep38 T38_SaugerAus
A_83Y1_SaugGreiferEin
next

133 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.33 Transition: T39_ZInGST

1
AND
E_83B3_ZylZAchseOben T39_ZInGST
next

134 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.34 Transition: T3_PP4InGST_PP1InAST

1 IF E_82B6_AusschubZylGST AND E_82B3_EinschubZylAST and next THEN


2 T3_PP4InGST_PP1InAST := TRUE ;
3 ELSE
4 T3_PP4InGST_PP1InAST := FALSE ;
5 END_IF
6

135 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.35 Transition: T4_PP3InAST

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.1.1.3.10.36 Transition: T5_PP2InAST

1
AND
E_82B1_PressZylinderAST T5_PP2InAST
bVerzStep5
next

137 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.37 Transition: T6_PP1PP2InGST_PP4InAST

1
AND
E_82B4_EinschubZylGST T6_PP1PP2InGST_PP4InAST
E_82B2_PressZylinderGST
E_82B5_AusschubZylAST
next

138 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.38 Transition: T7_PP4PP3InGST

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

1.1.1.3.10.39 Transition: T8_TeilInLS

E_104_2_LS2Empfaenger T8_TeilInLS

140 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.10.40 Transition: T9_VerzBandAus

bVerzStep9 T9_VerzBandAus

141 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.11 POU: prZweiHand (PRG)

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.1.1.3.12 POU: Scheba_Handbewegung (FB)

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

1 (* Wenn entsprechendes Bild aufgeschalgen Kommunikation mit VCP*)


2 IF Stationsnummer = SchnittstelleVCP . Stationsnummer AND Bildnummer =
SchnittstelleVCP . Bildnummer THEN
3 SchnittstelleVCP . Zeile [ Zeilennummer ] . Endlage_GST := Endlage_GST ;
4 SchnittstelleVCP . Zeile [ Zeilennummer ] . Endlage_AST := Endlage_AST ;
5 SchnittstelleVCP . Zeile [ Zeilennummer ] . Zusatzendlage_GST :=
Zusatzendlage_GST ;
6 SchnittstelleVCP . Zeile [ Zeilennummer ] . Zusatzendlage_AST :=
Zusatzendlage_AST ;
7 SchnittstelleVCP . Zeile [ Zeilennummer ] . Freigabe_GST := Freigabe_GST AND
Sicherheit_GST AND BetriebsartHand ;
8 SchnittstelleVCP . Zeile [ Zeilennummer ] . Freigabe_AST := Freigabe_AST AND
Sicherheit_AST AND BetriebsartHand ;
9 SchnittstelleVCP . Zeile [ Zeilennummer ] . Wert1 := Wert1 ;
10 SchnittstelleVCP . Zeile [ Zeilennummer ] . Wert2 := Wert2 ;
11 TempString18 := Name_Bewegung ;
12 FOR i := 1 TO ( 18 - LEN ( Name_Bewegung ) ) / 2 DO
13 TempString18 := CONCAT ( ' ' , TempString18 ) ;
14 END_FOR
15 SchnittstelleVCP . Zeile [ Zeilennummer ] . Name_Bewegung := TempString18 ;
16 SchnittstelleVCP . Zeile [ Zeilennummer ] . Name_GST := Name_GST ;
17 TempString8 := Name_AST ;
18 FOR i := 1 TO 8 - LEN ( Name_AST ) DO
19 TempString8 := CONCAT ( ' ' , TempString8 ) ;
20 END_FOR
21 SchnittstelleVCP . Zeile [ Zeilennummer ] . Name_AST := TempString8 ;
22 SchnittstelleVCP . Zeile [ Zeilennummer ] . Name_ZusatzGST := Name_ZusatzGST ;
23 TempString8 := Name_ZusatzAST ;
24 FOR i := 1 TO 8 - LEN ( Name_ZusatzAST ) DO
25 TempString8 := CONCAT ( ' ' , TempString8 ) ;
26 END_FOR
27 SchnittstelleVCP . Zeile [ Zeilennummer ] . Name_ZusatzAST := TempString8 ;
28 SchnittstelleVCP . Zeile [ Zeilennummer ] . Einheit_Wert1 := Einheit_Wert1 ;
29 SchnittstelleVCP . Zeile [ Zeilennummer ] . Einheit_Wert2 := Einheit_Wert2 ;
30 SchnittstelleVCP . Zeile [ Zeilennummer ] . Anzeige_ZusatzGST :=
Anzeige_ZusatzGST ;
31 SchnittstelleVCP . Zeile [ Zeilennummer ] . Anzeige_ZusatzAST :=
Anzeige_ZusatzAST ;
32 SchnittstelleVCP . Zeile [ Zeilennummer ] . Anzeige_Wert1 := Anzeige_Wert1 ;
33 SchnittstelleVCP . Zeile [ Zeilennummer ] . Anzeige_Wert2 := Anzeige_Wert2 ;
34 IF Anzeige_ZusatzGST THEN
35 IF Zusatzendlage_GST THEN
36 SchnittstelleVCP . Zeile [ Zeilennummer ] . Zusatzendlage_GST_Kombi
:= 1 ;
37 ELSE

145 1/4/2017
IndraWorks ML* 13V16.0110

38 SchnittstelleVCP . Zeile [ Zeilennummer ] . Zusatzendlage_GST_Kombi


:= 0 ;
39 END_IF
40 ELSE
41 SchnittstelleVCP . Zeile [ Zeilennummer ] . Zusatzendlage_GST_Kombi := 2 ;
42 END_IF
43 IF Anzeige_ZusatzAST THEN
44 IF Zusatzendlage_AST THEN
45 SchnittstelleVCP . Zeile [ Zeilennummer ] . Zusatzendlage_AST_Kombi
:= 1 ;
46 ELSE
47 SchnittstelleVCP . Zeile [ Zeilennummer ] . Zusatzendlage_AST_Kombi
:= 0 ;
48 END_IF
49 ELSE
50 SchnittstelleVCP . Zeile [ Zeilennummer ] . Zusatzendlage_AST_Kombi := 2 ;
51 END_IF
52 TasterGST := SchnittstelleVCP . Zeile [ Zeilennummer ] . TasterGST ;
53 TasterAST := SchnittstelleVCP . Zeile [ Zeilennummer ] . TasterAST ;
54 ELSE
55 TasterGST := FALSE ;
56 TasterAST := FALSE ;
57 END_IF ;
58
59 (* AM's zurücksetzen, wenn nicht Automatik *)
60 IF NOT BetriebsartAutomatik THEN
61 SchnittstelleSchrittkette . AM_GST := FALSE ;
62 SchnittstelleSchrittkette . AM_AUS := FALSE ;
63 SchnittstelleSchrittkette . AM_AST := FALSE ;
64 END_IF ;
65
66 (* Endlagen an Schrittkette übergeben *)
67 SchnittstelleSchrittkette . RM_InGST := Endlage_GST ;
68 SchnittstelleSchrittkette . RM_InAST := Endlage_AST ;
69
70 (* Was soll gemacht werden? *)
71 AktionGST := ( ( BetriebsartHand AND TasterGST ) OR ( BetriebsartAutomatik
AND SchnittstelleSchrittkette . AM_GST ) OR ( Extern_GST ) ) AND Freigabe_GST
AND Sicherheit_GST ;
72 AktionAUS := ( ( BetriebsartAutomatik AND SchnittstelleSchrittkette . AM_AUS )
OR Extern_AUS ) ;
73 AktionAST := ( ( BetriebsartHand AND TasterAST ) OR ( BetriebsartAutomatik
AND SchnittstelleSchrittkette . AM_AST ) OR ( Extern_AST ) ) AND Freigabe_AST
AND Sicherheit_AST ;
74 IF AktionAUS = TRUE THEN AktionGST := FALSE ; AktionAST := FALSE ; END_IF ;
75 IF AktionGST = TRUE THEN AktionAST := FALSE ; END_IF ;
76
77 (* Impulse generieren *)
78 TON_Impuls_GST ( IN := AktionGST , PT := T#1s ) ;
79 TON_Impuls_AST ( IN := AktionAST , PT := T#1s ) ;
80 TON_Impuls_NotAST ( IN := NOT AktionAST AND Freigabe_GST AND Sicherheit_GST ,
PT := T#1s ) ;
81
82 (* Eigentliche Logik *)
83 (* 0 - Direkt-Ventil *)
84 IF Ventiltyp = 0 THEN
85 Spule_GST := AktionGST ;
86 Spule_AST := AktionAST ;
87 END_IF ;
88 (* 1 - Impuls 1 Sek *)
89 IF Ventiltyp = 1 THEN
90 Spule_GST := AktionGST AND NOT TON_Impuls_GST . Q ;
91 Spule_AST := AktionAST AND NOT TON_Impuls_AST . Q ;
92 END_IF ;

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

146 SchnittstelleVCP . Meldung [ MeldenummerGST ] . InBenutzung := FALSE ;


147 MeldenummerGST := 0 ;
148 END_IF ;
149 END_IF ;
150 ELSE
151 GST_Gestoert := FALSE ;
152 IF MeldenummerGST > 0 THEN SchnittstelleVCP . Meldung [ MeldenummerGST ] .
InBenutzung := FALSE ; END_IF ;
153 MeldenummerGST := 0 ;
154 END_IF ;
155
156 IF UeZeit_AST <> T#0s THEN
157 TON_UeberwachungAST ( IN := NOT UeZeit_Deaktivieren AND VentilIstAST AND
Freigabe_AST AND Sicherheit_AST AND ( Endlage_GST OR NOT Endlage_AST ) ,
PT := UeZeit_AST ) ;
158 IF TON_UeberwachungAST . Q = TRUE AND MeldenummerAST = 0 THEN
159 AST_Gestoert := TRUE ;
160 FOR i := 1 TO 8 DO
161 IF SchnittstelleVCP . Meldung [ i ] . InBenutzung = FALSE THEN
162 MeldenummerAST := i ;
163 SchnittstelleVCP . Meldung [ MeldenummerAST ] . InBenutzung :=
TRUE ;
164 SchnittstelleVCP . Meldung [ MeldenummerAST ] . Name :=
Name_Bewegung ;
165 SchnittstelleVCP . Meldung [ MeldenummerAST ] . Endlage :=
Name_AST ;
166 i := 8 ;
167 END_IF ;
168 END_FOR ;
169 END_IF ;
170 IF TON_UeberwachungAST . Q = FALSE AND Quittieren THEN
171 AST_Gestoert := FALSE ;
172 IF MeldenummerAST > 0 THEN
173 SchnittstelleVCP . Meldung [ MeldenummerAST ] . InBenutzung := FALSE ;
174 MeldenummerAST := 0 ;
175 END_IF ;
176 END_IF ;
177 ELSE
178 AST_Gestoert := FALSE ;
179 IF MeldenummerAST > 0 THEN SchnittstelleVCP . Meldung [ MeldenummerAST ] .
InBenutzung := FALSE ; END_IF ;
180 MeldenummerAST := 0 ;
181 END_IF ;
182

148 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.3.13 POU: Scheba_Handbild (FB)

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

AnzahlBilderStation6 THEN SchnittstelleVCP . Bildnummer :=


AnzahlBilderStation6 ; END_IF ;
15 IF SchnittstelleVCP . Stationsnummer = 7 AND SchnittstelleVCP . Bildnummer >
AnzahlBilderStation7 THEN SchnittstelleVCP . Bildnummer :=
AnzahlBilderStation7 ; END_IF ;
16 IF SchnittstelleVCP . Stationsnummer = 8 AND SchnittstelleVCP . Bildnummer >
AnzahlBilderStation8 THEN SchnittstelleVCP . Bildnummer :=
AnzahlBilderStation8 ; END_IF ;
17
18 (* Pfeile für's Handbild *)
19 IF SchnittstelleVCP . Bildnummer > 1 THEN SchnittstelleVCP . PfeilMinus := TRUE
; ELSE SchnittstelleVCP . PfeilMinus := FALSE ; END_IF ;
20 SchnittstelleVCP . PfeilPlus := FALSE ;
21 IF SchnittstelleVCP . Stationsnummer = 1 AND SchnittstelleVCP . Bildnummer <
AnzahlBilderStation1 THEN SchnittstelleVCP . PfeilPlus := TRUE ; END_IF ;
22 IF SchnittstelleVCP . Stationsnummer = 2 AND SchnittstelleVCP . Bildnummer <
AnzahlBilderStation2 THEN SchnittstelleVCP . PfeilPlus := TRUE ; END_IF ;
23 IF SchnittstelleVCP . Stationsnummer = 3 AND SchnittstelleVCP . Bildnummer <
AnzahlBilderStation3 THEN SchnittstelleVCP . PfeilPlus := TRUE ; END_IF ;
24 IF SchnittstelleVCP . Stationsnummer = 4 AND SchnittstelleVCP . Bildnummer <
AnzahlBilderStation4 THEN SchnittstelleVCP . PfeilPlus := TRUE ; END_IF ;
25 IF SchnittstelleVCP . Stationsnummer = 5 AND SchnittstelleVCP . Bildnummer <
AnzahlBilderStation5 THEN SchnittstelleVCP . PfeilPlus := TRUE ; END_IF ;
26 IF SchnittstelleVCP . Stationsnummer = 6 AND SchnittstelleVCP . Bildnummer <
AnzahlBilderStation6 THEN SchnittstelleVCP . PfeilPlus := TRUE ; END_IF ;
27 IF SchnittstelleVCP . Stationsnummer = 7 AND SchnittstelleVCP . Bildnummer <
AnzahlBilderStation7 THEN SchnittstelleVCP . PfeilPlus := TRUE ; END_IF ;
28 IF SchnittstelleVCP . Stationsnummer = 8 AND SchnittstelleVCP . Bildnummer <
AnzahlBilderStation8 THEN SchnittstelleVCP . PfeilPlus := TRUE ; END_IF ;
29
30 (* Meldebit's ausgeben *)
31 Meldebit1 := SchnittstelleVCP . Meldung [ 1 ] . InBenutzung ;
32 Meldebit2 := SchnittstelleVCP . Meldung [ 2 ] . InBenutzung ;
33 Meldebit3 := SchnittstelleVCP . Meldung [ 3 ] . InBenutzung ;
34 Meldebit4 := SchnittstelleVCP . Meldung [ 4 ] . InBenutzung ;
35 Meldebit5 := SchnittstelleVCP . Meldung [ 5 ] . InBenutzung ;
36 Meldebit6 := SchnittstelleVCP . Meldung [ 6 ] . InBenutzung ;
37 Meldebit7 := SchnittstelleVCP . Meldung [ 7 ] . InBenutzung ;
38 Meldebit8 := SchnittstelleVCP . Meldung [ 8 ] . InBenutzung ;
39
40 (* Wenn sich Stationsnummer ändert Bildnummer auf 1 *)
41 IF ( LetzteStationsnummer <> SchnittstelleVCP . Stationsnummer ) OR NOT
HandbildWirdAngezeigt THEN
42 SchnittstelleVCP . Bildnummer := 1 ;
43 END_IF ;
44
45
(* Wenn sich Stationsnummer oder Bildnummer ändern alle Anzeigewerte nullen *)
46 IF ( LetzteStationsnummer <> SchnittstelleVCP . Stationsnummer ) OR (
LetzteBildnummer <> SchnittstelleVCP . Bildnummer ) OR NOT
HandbildWirdAngezeigt THEN
47 FOR i := 1 TO 6 DO
48 SchnittstelleVCP . Zeile [ i ] . BewegungGST := FALSE ;
49 SchnittstelleVCP . Zeile [ i ] . BewegungAST := FALSE ;
50 SchnittstelleVCP . Zeile [ i ] . Endlage_GST := FALSE ;
51 SchnittstelleVCP . Zeile [ i ] . Endlage_AST := FALSE ;
52 SchnittstelleVCP . Zeile [ i ] . Zusatzendlage_GST := FALSE ;
53 SchnittstelleVCP . Zeile [ i ] . Zusatzendlage_AST := FALSE ;
54 SchnittstelleVCP . Zeile [ i ] . Freigabe_GST := FALSE ;
55 SchnittstelleVCP . Zeile [ i ] . Freigabe_AST := FALSE ;
56 SchnittstelleVCP . Zeile [ i ] . Wert1 := 0.0 ;
57 SchnittstelleVCP . Zeile [ i ] . Wert2 := 0.0 ;
58 SchnittstelleVCP . Zeile [ i ] . Name_Bewegung := '' ;
59 SchnittstelleVCP . Zeile [ i ] . Name_GST := '' ;
60 SchnittstelleVCP . Zeile [ i ] . Name_AST := '' ;

150 1/4/2017
IndraWorks ML* 13V16.0110

61 SchnittstelleVCP . Zeile [ i ] . Name_ZusatzGST := '' ;


62 SchnittstelleVCP . Zeile [ i ] . Name_ZusatzAST := '' ;
63 SchnittstelleVCP . Zeile [ i ] . Einheit_Wert1 := '' ;
64 SchnittstelleVCP . Zeile [ i ] . Einheit_Wert2 := '' ;
65 SchnittstelleVCP . Zeile [ i ] . Anzeige_ZusatzGST := FALSE ;
66 SchnittstelleVCP . Zeile [ i ] . Anzeige_ZusatzAST := FALSE ;
67 SchnittstelleVCP . Zeile [ i ] . Anzeige_Wert1 := FALSE ;
68 SchnittstelleVCP . Zeile [ i ] . Anzeige_Wert2 := FALSE ;
69 SchnittstelleVCP . Zeile [ i ] . TasterGST := FALSE ;
70 SchnittstelleVCP . Zeile [ i ] . TasterAST := FALSE ;
71 SchnittstelleVCP . Zeile [ i ] . Zusatzendlage_GST_Kombi := 2 ;
72 SchnittstelleVCP . Zeile [ i ] . Zusatzendlage_AST_Kombi := 2 ;
73 END_FOR ;
74 END_IF ;
75
76 (* Letzte Stations- & Bildnummer merken *)
77 LetzteStationsnummer := SchnittstelleVCP . Stationsnummer ;
78 LetzteBildnummer := SchnittstelleVCP . Bildnummer ;
79
80 (* Die beiden Freigabebits invertiert zur Verfügung stellen *)
81 FOR i := 1 TO 6 DO
82 SchnittstelleVCP . Zeile [ i ] . FreigabeInvers_GST := NOT SchnittstelleVCP .
Zeile [ i ] . Freigabe_GST ;
83 SchnittstelleVCP . Zeile [ i ] . FreigabeInvers_AST := NOT SchnittstelleVCP .
Zeile [ i ] . Freigabe_AST ;
84 END_FOR ;
85

151 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.4 Folder: ProfibusDiag

152 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.4.1 POU: fbProfibusDiag (FB)

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

1 SlaveDiagListGet . Enable := Enable ;


2
3 (* Ausgefallene Teilnehmer ermitteln *)
4 SlaveDiagListGet ( SlaveDiagList => ) ;
5 FOR i := 0 TO 15 DO
6 DiagList [ 8 * i + 0 ] := SlaveDiagListGet . SlaveDiagList [ i ] . 0 ;
7 DiagList [ 8 * i + 1 ] := SlaveDiagListGet . SlaveDiagList [ i ] . 1 ;
8 DiagList [ 8 * i + 2 ] := SlaveDiagListGet . SlaveDiagList [ i ] . 2 ;
9 DiagList [ 8 * i + 3 ] := SlaveDiagListGet . SlaveDiagList [ i ] . 3 ;
10 DiagList [ 8 * i + 4 ] := SlaveDiagListGet . SlaveDiagList [ i ] . 4 ;
11 DiagList [ 8 * i + 5 ] := SlaveDiagListGet . SlaveDiagList [ i ] . 5 ;
12 DiagList [ 8 * i + 6 ] := SlaveDiagListGet . SlaveDiagList [ i ] . 6 ;
13 DiagList [ 8 * i + 7 ] := SlaveDiagListGet . SlaveDiagList [ i ] . 7 ;
14 END_FOR ;
15
16 (* Neue Meldungen erzeugen *)
17 FOR i := 0 TO 127 DO
18 IF DiagList [ i ] = TRUE AND ( Meldebit1 = FALSE OR Teilnehmer1 <> i ) AND
( Meldebit2 = FALSE OR Teilnehmer2 <> i ) AND ( Meldebit3 = FALSE OR
Teilnehmer3 <> i ) THEN
19 IF Meldebit1 = FALSE THEN
20 Meldebit1 := TRUE ;
21 Teilnehmer1 := i ;
22 ELSE IF Meldebit2 = FALSE THEN
23 Meldebit2 := TRUE ;
24 Teilnehmer2 := i ;
25 ELSE IF Meldebit3 = FALSE THEN
26 Meldebit3 := TRUE ;
27 Teilnehmer3 := i ;
28 END_IF ; END_IF ; END_IF ;
29 END_IF ;
30 END_FOR ;
31
32 (* Quittierung *)
33 IF Quittieren = TRUE AND Meldebit1 = TRUE AND DiagList [ Teilnehmer1 ] = FALSE
THEN
34 Meldebit1 := FALSE ;
35 Teilnehmer1 := 0 ;
36 END_IF ;
37 IF Quittieren = TRUE AND Meldebit2 = TRUE AND DiagList [ Teilnehmer2 ] = FALSE

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

1.1.1.4.2 POU: ProfibusDiag (PRG)

1 //GAT PlugIn ProfibusDiag


2 (*
3 General Header
4
----------------------------------------------------------------------------------------------
5
Short description : This GAT PlugIn scans all available profibus master interfaces
6
regarding slave errors and returns the number of slaves with
7
an error and a bitlist of the error flag for every slave
8 Version : 1.2.0.0
9 Author : DC-IA (AK)
10 Date : 2013-08-30
11 Company : Bosch Rexroth Electric Drives and Controls GmbH
12 Target : MLC13
13
----------------------------------------------------------------------------------------------
14
15
---------------------------------------- History ---------------------------------------------
16
----------------------------------------------------------------------------------------------
17 22-Sep-2012 AK
18
19 - Initial Version
20
21 Version 1.1.0.0
22 --------------------------------------------------------------------------
23 30-Aug-2013 AK
24
25 - Fix Defdb00158372, last profibus error is not cleared
26
27 Version 1.2.0.0
28 --------------------------------------------------------------------------
29 *)
30
31 PROGRAM ProfibusDiag
32
33
// ------------------------------------- Outputs ----------------------------------------------
34 VAR_OUTPUT
35 Error : BOOL ;
// One or more profibus slaves return error
36 DiagNo : DWORD ;
// diagnostic number according to MLC/XLC specification
37 DiagMessage : STRING ( 100 ) ; // diagnosis text message
38 NoOfSlaveErr : UINT ; // Number of Slaves with an error
39 SlaveErr : ARRAY [ 0 .. iMAXMASTERNO , 0 .. iMAXSLAVENO ] OF BOOL ;
// Bitlist with all slave error flags
40 ErrorID : ERROR_CODE ; // Error ID in case of FB error
41 ErrorIdent : ERROR_STRUCT ; // Error Ident in case of FB error
42 END_VAR
43
44
// ---------------------------------- Local variables ------------------------------------------
45 VAR
46 iMasterSlotIndex : INT ; // For loop index
47 i: INT ; // For loop index
48 j: INT ; // For loop index
49 iLoopIndex : INT ; // FOR loop index

155 1/4/2017
IndraWorks ML* 13V16.0110

50 iSubLoopIndex : INT ; // FOR loop index


51 iProfibusSlaveNo : INT ; // Profibus slave number with an error
52 arDiagBuffer : ARRAY [ 0 .. iMAXSLAVENO - 1 ] OF BYTE ;
// Diagnosis array buffer
53 byTempDiagList : BYTE ; // Temporary diagnosis byte
54 bExeDeviceListGet : BOOL := TRUE ; // Get device list enable input
55 bOldError : BOOL ;
56
//--------------------------------- Profibus diagnosis FBs -------------------------------
57 fbIL_DPDeviceListGet : IL_DPDeviceListGet ;
58 arfbIL_DPDevInfoGet : ARRAY [ 0 .. iMAXMASTERNO ] OF IL_DPDevInfoGet ;
59 arfbIL_DPSlaveDiagListGet : ARRAY [ 0 .. iMAXMASTERNO ] OF
IL_DPSlaveDiagListGet ;
60 arfbIL_DPReadDiag : ARRAY [ 0 .. iMAXMASTERNO ] OF IL_DPReadDiag ;
61 END_VAR
62
63
// ------------------------------------- Constants --------------------------------------------
64 VAR CONSTANT
65 byNOVALIDMASTERADR : BYTE := 16#FF ;
// Indivated that the slot contains no active master
66 iMAXMASTERNO : INT := 4 ;
// Maximum number of master function modules
67 iMAXSLAVENO : INT := 128 ;
// Maximum number of slaves at a master
68 dwERROR_PBDP : DWORD := 16#F0B20000 ; // profibus error
69 END_VAR
70

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.1.1.5 Global Variable List: Bewegungen

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.1.1.6 Global Variable List: EA_SPS

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 ;

// Zum Anschluss eines 2Hand-Bediengerätes, Sensor ist NC


36 E_ZweiHand_21 AT %IX0.1 : BOOL ;

// Zum Anschluss eines 2Hand-Bediengerätes, Sensor ist NC


37 E_ZweiHand_14 AT %IX0.2 : BOOL ;

// Zum Anschluss eines 2Hand-Bediengerätes, Sensor ist NO


38 E_ZweiHand_24 AT %IX0.3 : BOOL ;

// Zum Anschluss eines 2Hand-Bediengerätes, Sensor ist NO


39

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

84 E_82B6_AusschubZylGST AT %IX52.5 : BOOL ;


// Ausschubzylinder ein
85 //
86 E_82B7_StiftVorhandenLinks AT %IX52.6 : BOOL ;
// Stiftmagazin Stift vorhanden links, GST
87 E_82B8_StiftVorhandenRechts AT %IX52.7 : BOOL ;

// Stiftmagazin Stift vorhanden rechts, AST


88 //
89 E_83B1_SchlitzZylAST AT %IX53.0 : BOOL ;
// Schlitzzylinder ausgefahren, AST, hinten, über Presse
90 E_83B2_SchlitzZylGST AT %IX53.1 : BOOL ;
// Schlitzzylinder eingefahren, GST, vorn, über Förderband
91 //
92 E_83B3_ZylZAchseOben AT %IX53.2 : BOOL ;
// Zylinder Z-Achse oben, GST
93 E_83B4_ZylZAchseUnten AT %IX53.3 : BOOL ;
// Zylinder Z-Achse unten, AST
94 //
95 E_84B1_PressZylGST AT %IX54.0 : BOOL ;
// Presszylinder oben, GST
96 E_84B2_PressZylAST AT %IX54.1 : BOOL ;
// Presszylinder unten, AST
97 //
98 E_84B3_AusschiebeZylGST AT %IX54.2 : BOOL ;
// Ausschiebezylinder in GST
99 E_84B4_AusschiebeZylAST AT %IX54.3 : BOOL ;
// Ausschiebezylinder in AST
100 //
101 E_85B11_LSEmpfaenger AT %IX55.0 : BOOL ;
//85B1, LS am Einlauf
102
//E_85B11_LSSender AT %IX55.1: BOOL;
103 E_104_2_LS2Empfaenger AT %IX55.2 : BOOL ;
//85B2 LS an Presse, Bearbeitung
104
//E_104_3_LS2Sender AT %IX55.3: BOOL;
105 E_104_4 AT %IX55.4 : BOOL ;
106 E_104_5 AT %IX55.5 : BOOL ;
107 E_104_6 AT %IX55.6 : BOOL ;
108 E_104_7 AT %IX55.7 : BOOL ;
109
// ------------------------------------------------------------------------------------
110 //
111 // **** Inlinemodule Ausgänge
112 //
113 A_81Y1_VentilKurzhubZyl AT %QX51.4 : BOOL ;
// Ventil Kurzhubzylinder, 81Y1
114 A_81Y2_VentilAusschubZyl AT %QX51.5 : BOOL ;
// Ventil Ausschubzylinder, 81Y2
115 A_81Y3_VentilEinschubZyl AT %QX51.6 : BOOL ;
// Ventil Einschubzylinder, 81Y3
116 A_81Y4_VentilPressZyl AT %QX51.7 : BOOL ;
// Ventil Presszylinder, 81Y4
117 //
118 A_83Y1_SaugGreiferEin AT %QX53.4 : BOOL ;
// Ventil Sauggreifer an
119 A_83Y2_SchlitzZylinder AT %QX53.5 : BOOL ;
// Ventil Schlitzzylinder
120 A_83Y3_ZAchseAusfahren AT %QX53.6 : BOOL ;
// Ventil Z-Achse ausfahren
121 A_83Y4_ZAchseEinfahren AT %QX53.7 : BOOL ;
// Ventil Z-Achse einfahren
122 //
123 A_84Y1_PresseAusfahren AT %QX54.6 : BOOL ;
// Ventil Würfelresse ausfahren

162 1/4/2017
IndraWorks ML* 13V16.0110

124 A_84Y2_Ausschieber AT %QX54.7 : BOOL ;


// Ventil Ausschieber einfahren
125 //
126 A_84K1_conveyor_belt_dir_end AT %QX54.4 : BOOL ;
// Förderband in Prozessrichtung ein
127 A_84K2_conveyor_belt_dir_start AT %QX54.5 : BOOL ;
// Förderband gegen Prozessrichtung ein
128
// ------------------------------------------------------------------------------------
129 END_VAR
130

163 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.7 Global Variable List: EA_VAM

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 ;

// Handrad 1 Umdrehung = 400 Inkremente / Handwheel: 1 turn = 400 increments*)


25
// ------------------------------------------------------------------------------------
26 //
27 // **** LEFT KEYPAD
28 // **** LINKES TASTENFELD
29 //
30 gb_bKeypadLeftButton01 AT %IX108.0 : BOOL ;
// LEFT KEYPAD PUSH-BUTTON_01
31 gb_bKeypadLeftButton02 AT %IX108.1 : BOOL ;
// LEFT KEYPAD PUSH-BUTTON_02
32 gb_bKeypadLeftButton03 AT %IX108.2 : BOOL ;
// LEFT KEYPAD PUSH-BUTTON_03
33 gb_bKeypadLeftButton04 AT %IX108.3 : BOOL ;
// LEFT KEYPAD PUSH-BUTTON_04
34 gb_bKeypadLeftButton05 AT %IX108.4 : BOOL ;
// LEFT KEYPAD PUSH-BUTTON_05
35 gb_bKeypadLeftButton06 AT %IX108.5 : BOOL ;
// LEFT KEYPAD PUSH-BUTTON_06
36 gb_bKeypadLeftButton07 AT %IX108.6 : BOOL ;
// LEFT KEYPAD PUSH-BUTTON_07
37 gb_bKeypadLeftButton08 AT %IX108.7 : BOOL ;
// LEFT KEYPAD PUSH-BUTTON_08
38 gb_bKeypadLeftButton09 AT %IX109.0 : BOOL ;

164 1/4/2017
IndraWorks ML* 13V16.0110

// LEFT KEYPAD PUSH-BUTTON_09


39 gb_bKeypadLeftButton10 AT %IX109.1 : BOOL ;
// LEFT KEYPAD PUSH-BUTTON_10
40 gb_bKeypadLeftButton11 AT %IX109.2 : BOOL ;
// LEFT KEYPAD PUSH-BUTTON_11
41 gb_bKeypadLeftButton12 AT %IX109.3 : BOOL ;
// LEFT KEYPAD PUSH-BUTTON_12
42 gb_bKeypadLeftButton13 AT %IX109.4 : BOOL ;
// LEFT KEYPAD PUSH-BUTTON_13
43 gb_bKeypadLeftButton14 AT %IX109.5 : BOOL ;
// LEFT KEYPAD PUSH-BUTTON_14
44 gb_bKeypadLeftButton15 AT %IX109.6 : BOOL ;
// LEFT KEYPAD PUSH-BUTTON_15
45 gb_bKeypadLeftButton16 AT %IX109.7 : BOOL ;
// LEFT KEYPAD PUSH-BUTTON_16
46
// ------------------------------------------------------------------------------------
47 //
48 // **** LED LEFT KEYPAD
49 // **** LEDs LINKES TASTENFELD
50 //
51 gb_bKeypadLeftLED_01 AT %QX101.0 : BOOL ;
// LEFT KEYPAD LED_01
52 gb_bKeypadLeftLED_02 AT %QX101.1 : BOOL ;
// LEFT KEYPAD LED_02
53 gb_bKeypadLeftLED_03 AT %QX101.2 : BOOL ;
// LEFT KEYPAD LED_03
54 gb_bKeypadLeftLED_04 AT %QX101.3 : BOOL ;
// LEFT KEYPAD LED_04
55 gb_bKeypadLeftLED_05 AT %QX101.4 : BOOL ;
// LEFT KEYPAD LED_05
56 gb_bKeypadLeftLED_06 AT %QX101.5 : BOOL ;
// LEFT KEYPAD LED_06
57 gb_bKeypadLeftLED_07 AT %QX101.6 : BOOL ;
// LEFT KEYPAD LED_07
58 gb_bKeypadLeftLED_08 AT %QX101.7 : BOOL ;
// LEFT KEYPAD LED_08
59 gb_bKeypadLeftLED_09 AT %QX102.0 : BOOL ;
// LEFT KEYPAD LED_09
60 gb_bKeypadLeftLED_10 AT %QX102.1 : BOOL ;
// LEFT KEYPAD LED_10
61 gb_bKeypadLeftLED_11 AT %QX102.2 : BOOL ;
// LEFT KEYPAD LED_11
62 gb_bKeypadLeftLED_12 AT %QX102.3 : BOOL ;
// LEFT KEYPAD LED_12
63 gb_bKeypadLeftLED_13 AT %QX102.4 : BOOL ;
// LEFT KEYPAD LED_13
64 gb_bKeypadLeftLED_14 AT %QX102.5 : BOOL ;
// LEFT KEYPAD LED_14
65 gb_bKeypadLeftLED_15 AT %QX102.6 : BOOL ;
// LEFT KEYPAD LED_15
66 gb_bKeypadLeftLED_16 AT %QX102.7 : BOOL ;
// LEFT KEYPAD LED_16
67
// ------------------------------------------------------------------------------------
68 //
69 // **** RIGHT KEYPAD
70 // **** RECHTES TASTENFELD
71 //
72 gb_bKeypadRightButton01 AT %IX110.0 : BOOL ;
// RIGHT KEYPAD PUSH-BUTTON_01
73 gb_bKeypadRightButton02 AT %IX110.1 : BOOL ;
// RIGHT KEYPAD PUSH-BUTTON_02
74 gb_bKeypadRightButton03 AT %IX110.2 : BOOL ;
// RIGHT KEYPAD PUSH-BUTTON_03
75 gb_bKeypadRightButton04 AT %IX110.3 : BOOL ;
// RIGHT KEYPAD PUSH-BUTTON_04

165 1/4/2017
IndraWorks ML* 13V16.0110

76 gb_bKeypadRightButton05 AT %IX110.4 : BOOL ;


// RIGHT KEYPAD PUSH-BUTTON_05
77 gb_bKeypadRightButton06 AT %IX110.5 : BOOL ;
// RIGHT KEYPAD PUSH-BUTTON_06
78 gb_bKeypadRightButton07 AT %IX110.6 : BOOL ;
// RIGHT KEYPAD PUSH-BUTTON_07
79 gb_bKeypadRightButton08 AT %IX110.7 : BOOL ;
// RIGHT KEYPAD PUSH-BUTTON_08
80 gb_bKeypadRightButton09 AT %IX111.0 : BOOL ;
// RIGHT KEYPAD PUSH-BUTTON_09
81 gb_bKeypadRightButton10 AT %IX111.1 : BOOL ;
// RIGHT KEYPAD PUSH-BUTTON_10
82 gb_bKeypadRightButton11 AT %IX111.2 : BOOL ;
// RIGHT KEYPAD PUSH-BUTTON_11
83 gb_bKeypadRightButton12 AT %IX111.3 : BOOL ;
// RIGHT KEYPAD PUSH-BUTTON_12
84 gb_bKeypadRightButton13 AT %IX111.4 : BOOL ;
// RIGHT KEYPAD PUSH-BUTTON_13
85 gb_bKeypadRightButton14 AT %IX111.5 : BOOL ;
// RIGHT KEYPAD PUSH-BUTTON_14
86 gb_bKeypadRightButton15 AT %IX111.6 : BOOL ;
// RIGHT KEYPAD PUSH-BUTTON_15
87 gb_bKeypadRightButton16 AT %IX111.7 : BOOL ;
// RIGHT KEYPAD PUSH-BUTTON_16
88
// ------------------------------------------------------------------------------------
89 //
90 // **** LED RIGHT KEYPAD
91 // **** LEDs RECHTES TASTENFELD
92 //
93 gb_bKeypadRightLED_01 AT %QX103.0 : BOOL ;
// RIGHT KEYPAD LED_01
94 gb_bKeypadRightLED_02 AT %QX103.1 : BOOL ;
// RIGHT KEYPAD LED_02
95 gb_bKeypadRightLED_03 AT %QX103.2 : BOOL ;
// RIGHT KEYPAD LED_03
96 gb_bKeypadRightLED_04 AT %QX103.3 : BOOL ;
// RIGHT KEYPAD LED_04
97 gb_bKeypadRightLED_05 AT %QX103.4 : BOOL ;
// RIGHT KEYPAD LED_05
98 gb_bKeypadRightLED_06 AT %QX103.5 : BOOL ;
// RIGHT KEYPAD LED_06
99 gb_bKeypadRightLED_07 AT %QX103.6 : BOOL ;
// RIGHT KEYPAD LED_07
100 gb_bKeypadRightLED_08 AT %QX103.7 : BOOL ;
// RIGHT KEYPAD LED_08
101 gb_bKeypadRightLED_09 AT %QX104.0 : BOOL ;
// RIGHT KEYPAD LED_09
102 gb_bKeypadRightLED_10 AT %QX104.1 : BOOL ;
// RIGHT KEYPAD LED_10
103 gb_bKeypadRightLED_11 AT %QX104.2 : BOOL ;
// RIGHT KEYPAD LED_11
104 gb_bKeypadRightLED_12 AT %QX104.3 : BOOL ;
// RIGHT KEYPAD LED_12
105 gb_bKeypadRightLED_13 AT %QX104.4 : BOOL ;
// RIGHT KEYPAD LED_13
106 gb_bKeypadRightLED_14 AT %QX104.5 : BOOL ;
// RIGHT KEYPAD LED_14
107 gb_bKeypadRightLED_15 AT %QX104.6 : BOOL ;
// RIGHT KEYPAD LED_15
108 gb_bKeypadRightLED_16 AT %QX104.7 : BOOL ;
// RIGHT KEYPAD LED_16
109
// ------------------------------------------------------------------------------------
110 //
111 // **** ???

166 1/4/2017
IndraWorks ML* 13V16.0110

112 // **** ???


113 //
114 A_VAM_il_power_on AT %QX100.0 : BOOL ;
// indicator light TRUE=power is on
115 VAM_Q100_1 AT %QX100.1 : BOOL ;
//
116 VAM_Q100_2 AT %QX100.2 : BOOL ;
//
117 VAM_Q100_3 AT %QX100.3 : BOOL ;
//
118 VAM_Q100_4 AT %QX100.4 : BOOL ;
//
119 VAM_Q100_5 AT %QX100.5 : BOOL ;
//
120 VAM_Q100_6 AT %QX100.6 : BOOL ;
//
121 VAM_Q100_7 AT %QX100.7 : BOOL ;
//
122 //
123 // **** ???
124 // **** ???
125 //
126 VAM_EB_Override_axis_Gray AT %IB112 : BYTE ;
// Override Achsen (Gray-Code) / override axis grey code
127 VAM_EB_Override_spindle_Gray AT %IB113 : BYTE ;

// Override Spindeln (Gray-Code) / override spindle grey code


128 //
129 // **** ???
130 // **** ???
131 //
132 VAM_EB_Override_axis : WORD ;
// Override Achsen / override axes
133 VAM_EB_Override_spindle : WORD ;
// Override Spindeln / override spindle
134 END_VAR
135

167 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.8 Global Variable List: Messages

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

(*Operating Message 03: Einschubzylinder PP1 ausgefahren *)


47 OpMsg04 : BOOL ;
(*Operating Message 04: Stiftpresse PP2 ausgefahren*)
48 OpMsg05 : BOOL ;
(*Operating Message 05: Kurzhubzylinder PP3 ausgefahren *)
49 OpMsg06 : BOOL ;
(*Operating Message 06: Ausschubzylinder PP4 ausgefahren *)
50 OpMsg07 : BOOL ;
(*Operating Message 07: Einschubzylinder PP1 eingefahren *)
51 OpMsg08 : BOOL ;
(*Operating Message 08: Stiftpresse PP2 eingefahren *)
52 OpMsg09 : BOOL ;
(*Operating Message 09: Kurzhubzylinder PP3 eingefahren*)
53 OpMsg10 : BOOL ;
(*Operating Message 10: Ausschubzylinder PP4 eingefahren *)
54 OpMsg11 : BOOL ; (*Operating Message 11: Teil an LS1 erkannt *)
55 OpMsg12 : BOOL ; (*Operating Message 12: Teil an LS2 erkannt *)
56 OpMsg13 : BOOL ; (*Operating Message 13: Förderband CB ist ein *)
57 OpMsg14 : BOOL ; (*Operating Message 14: Förderband CB ist aus *)
58 OpMsg15 : BOOL ; (*Operating Message 15: Sauger HP2 ist ein *)
59 OpMsg16 : BOOL ; (*Operating Message 16: Sauger HP2 ist aus *)
60 OpMsg17 : BOOL ; (*Operating Message 17: *)
61 OpMsg18 : BOOL ; (*Operating Message 18: Z-Achse HP3 in GST *)
62 OpMsg19 : BOOL ; (*Operating Message 19: Z-Achse HP3 in AST *)
63 OpMsg20 : BOOL ; (*Operating Message 20: Würfelpresse CP1 in GST *)

64 OpMsg21 : BOOL ; (*Operating Message 21: Würfelpresse CP1 in AST *)


65 OpMsg22 : BOOL ;
(*Operating Message 22: Ausschubzylinder Würfelpresse CP2 in GST *)
66 OpMsg23 : BOOL ;
(*Operating Message 23: Ausschubzylinder Würfelpresse CP2 in AST *)
67 OpMsg24 : BOOL ;
(*Operating Message 24: Schlitzzylinder HP1 in GST *)
68 OpMsg25 : BOOL ;
(*Operating Message 25: Schlitzzylinder HP1 in AST *)
69 OpMsg26 : BOOL ; (*Operating Message 26: *)
70 OpMsg27 : BOOL ; (*Operating Message 27: *)
71 OpMsg28 : BOOL ; (*Operating Message 28: *)
72 OpMsg29 : BOOL ; (*Operating Message 29: *)
73 OpMsg30 : BOOL ; (*Operating Message 30: *)
74 OpMsg31 : BOOL ; (*Operating Message 31: *)
75 OpMsg32 : BOOL ; (*Operating Message 32: *)
76 END_VAR
77

169 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.9 Global Variable List: UserVarGlobal

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

1.1.1.10 Library Manager: Library Manager

#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.1.1.11 POU: main_program (PRG)

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

101 gb_bStartStopHoming : BOOL ;


102
// ------------------------------------------------------------------------------------------
103 uiFrontMaschine : UINT ;
104 uiRequestWorkpiece : UINT ;
105
// ------------------------------------------------------------------------------------------
106 n: UINT ;
107
// ------------------------------------------------------------------------------------------
108 uiBackMaschine : UINT ;
109 test : BOOL ;
110 END_VAR
111

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

47 IF ( gb_uiOperationMode = gb_uiMemOpMode ) THEN


48 gb_bNoOperationModeActiv := TRUE ;
49 gb_uiActivOperationMode := gb_uiOperationMode ;
50 ELSE
51 gb_bNoOperationModeActiv := FALSE ;
52 gb_uiActivOperationMode := 0 ;
53 END_IF
54 //
55 IF ( gb_uiOperationMode = gb_uiMemOpMode ) THEN
56 gb_bManualModeActiv := ( gb_uiOperationMode = 100 ) ;
57 gb_bHomingModeActiv := ( gb_uiOperationMode = 200 ) ;
58 gb_bAutomaticModeActiv := ( gb_uiOperationMode = 300 ) ;
59 gb_bSingleStepModeActiv := ( gb_uiOperationMode = 400 ) ;
60 //
61 ELSIF ( gb_uiOperationMode <> gb_uiMemOpMode ) THEN
62 gb_bManualModeActiv := FALSE ;
63 gb_bHomingModeActiv := FALSE ;
64 gb_bAutomaticModeActiv := FALSE ;
65 gb_bSingleStepModeActiv := FALSE ;
66 END_IF
67 //
68 gb_uiMemOpMode := gb_uiOperationMode ;
69
// ------------------------------------------------------------------------------------------
70 //
71 // ****
72 // **** AUFRUF ANDERE AKTIONEN
73 //
74 act_0100_Utilities ( ) ;
75 act_0200_Homing ( ) ;
76 act_0300_AutomaticSingleStep ( ) ;
77 act_1000_Output ( ) ;
78 act_1100_LEDs ( ) ;
79 act_1200_Error ( ) ;
80
// ------------------------------------------------------------------------------------------
81
82 E_82B7_StiftVorhandenLinks ;
83 E_82B8_StiftVorhandenRechts ;
84 //
85 E_85B11_LSEmpfaenger ;
86 //E_85B11_LSSender;
87 E_104_2_LS2Empfaenger ;
88 //E_104_3_LS2Sender;
89
90
91

178 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.11.1 Action: act_0100_Utilities

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.1.1.11.2 Action: act_0200_Homing

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 )

19 AND ( E_84B3_AusschiebeZylGST = TRUE ) ;


20 // BELT
21 bHomePosReachedBelt := ( E_85B11_LSEmpfaenger = FALSE )
22 AND ( E_104_2_LS2Empfaenger = FALSE ) ;

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

112 arOutputs [ 3 ] . ReferenzSetBackward := TRUE ;


113 arOutputs [ 3 ] . ReferenzSetForward := FALSE ;
114 //A_81Y2_VentilAusschubZyl := FALSE;
115 //
116 IF ( E_82B6_AusschubZylGST = TRUE ) THEN
117 uiNextStepReferenz := 1100 ;
118 END_IF
119
// ---------------------------------------------------------------------------------------------
120
// ---------------------------------------------------------------------------------------------
121 1100 : //
122 // ****
123 // **** PORTAL => VERTIKALE ACHSE IN GST
124 //
125 arOutputs [ 2 ] . ReferenzSetForward := FALSE ;
126 arOutputs [ 2 ] . ReferenzSetBackward := TRUE ;
127 //A_83Y3_ZAchseAusfahren := FALSE;
128 //A_83Y4_ZAchseEinfahren := TRUE;
129 //
130 IF ( E_83B3_ZylZAchseOben = TRUE ) THEN
131 uiNextStepReferenz := 1200 ;
132 END_IF
133
// ---------------------------------------------------------------------------------------------
134 1200 : //
135 // ****
136 // **** PORTAL => HORIZONTIAL ACHSE IN GST
137 //
138 arOutputs [ 5 ] . ReferenzSetForward := FALSE ;
139 arOutputs [ 5 ] . ReferenzSetBackward := TRUE ;
140 //A_83Y2_SchlitzZylinder := FALSE;
141 //
142 IF ( E_83B2_SchlitzZylGST = TRUE ) THEN
143 uiNextStepReferenz := 1300 ;
144 END_IF
145
// ---------------------------------------------------------------------------------------------
146 1300 : //
147 // ****
148 // **** PORTAL => SAUGER LUFT AUS
149 //
150 arOutputs [ 8 ] . ReferenzSetForward := FALSE ;
151 arOutputs [ 8 ] . ReferenzSetBackward := TRUE ;
152 //A_83Y1_SaugGreiferEin := FALSE;
153 uiNextStepReferenz := 2100 ;
154
// ---------------------------------------------------------------------------------------------
155 2100 : //
156 // ****
157 // **** CUBE PRESS => PRESSE ÖFFNEN
158 //
159 arOutputs [ 4 ] . ReferenzSetForward := FALSE ;
160 arOutputs [ 4 ] . ReferenzSetBackward := TRUE ;
161 //A_84Y1_PresseAusfahren := FALSE;
162 //
163 IF ( E_84B1_PressZylGST = TRUE ) THEN
164 uiNextStepReferenz := 2200 ;
165 END_IF
166
// ---------------------------------------------------------------------------------------------
167 2200 : //
168 // ****
169 // **** CUBE PRESS => AUSSCHIEBER IN GST

184 1/4/2017
IndraWorks ML* 13V16.0110

170 //
171 arOutputs [ 1 ] . ReferenzSetForward := TRUE ;
172 arOutputs [ 1 ] . ReferenzSetBackward := FALSE ;

173 //A_84Y2_Ausschieber := FALSE;


174 //
175 IF ( E_84B3_AusschiebeZylGST = TRUE ) THEN
176 uiNextStepReferenz := 0 ;
177 gb_bStartStopHoming := FALSE ;
178 END_IF
179
// ---------------------------------------------------------------------------------------------
180
// ---------------------------------------------------------------------------------------------
181 ELSE
182 //
183 // ****
184 // **** ABFRAGE STARTBEDINGUNG / REFERENZ MODE
185 //
186 IF ( gb_uiActivOperationMode = 200 ) THEN
187 //
188 IF ( gb_bStartStopHoming = TRUE ) THEN
189 uiNextStepReferenz := 100 ;
190 END_IF
191 //
192 ELSE
193 uiActivStepReferenz := 0 ;
194 uiNextStepReferenz := 0 ;
195 uiLastStepReferenz := 0 ;
196 END_IF
197 END_CASE
198
// ---------------------------------------------------------------------------------------------
199
// ---------------------------------------------------------------------------------------------
200 //
201 // ****
202 // **** SCHRITT - WEITERSCHALTUNG BEI ANWAHL AUTOMATIK
203 //
204 IF ( gb_bStartStopHoming = TRUE ) THEN
205 //
206 IF ( uiNextStepReferenz < 65000 ) THEN
207 uiLastStepReferenz := uiActivStepReferenz ;
208 uiActivStepReferenz := uiNextStepReferenz ;
209 END_IF
210 END_IF
211
// ---------------------------------------------------------------------------------------------
212
// ---------------------------------------------------------------------------------------------
213 //
214 // ****
215 // ****
216 //
217 gb_bStartStopHoming := ( gb_bKeypadRightButton12 = FALSE )
218 AND ( ( ( gb_bKeypadRightButton15 = TRUE ) AND (
gb_bHomePosReached = FALSE ) ) OR ( gb_bStartStopHoming = TRUE ) ) ;
219
// ---------------------------------------------------------------------------------------------
220

185 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.11.3 Action: act_0300_AutomaticSingleStep

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

442 // **** WEITERSCHULUNG


443 //
444 IF ( uiNextStep < 65000 ) THEN
445 uiLastStep := uiActivStep ;
446 uiActivStep := uiNextStep ;
447 END_IF
448
// ---------------------------------------------------------------------------------------------
449 400 : //
450
// **** SCHRITTE BEI DENEN AUF WEITERSCHALTUNG DURCH TASTE GEWARTET WIRD
451 //
452 CASE uiNextStep OF
453 // ---------------------------------------
454 200 , 400 , 500 , 600 , 1100 , 1300 , 1400 , 1500 :

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.1.1.11.4 Action: act_0400_AutomaticSingleStep_PinPress

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.1.1.11.5 Action: act_0500_AutomaticSingleStep_Portal

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

41 25 : uiNextStepPortal := 410 ; uiStepNoPortal := 26


; // X-ACHSE NACH HINTEN
42 26 : uiNextStepPortal := 315 ; uiStepNoPortal := 27
; // Z-ACHSE NACH UNTEN
43 27 : uiNextStepPortal := 220 ; uiStepNoPortal := 29
; // SAUGER-LUFT AUS
44 28 : uiNextStepPortal := 199 ; uiStepNoPortal := 29
; // WARTEZEIT
45 29 : uiNextStepPortal := 320 ; uiStepNoPortal := 30
; // Z-ACHSE NACH OBEN
46 30 : uiNextStepPortal := 130 ; uiStepNoPortal := 41
; // QUIT HANDSAKE => 600
47 //
48 // ****
49 // **** FERTIGER WÜRFEL ZURÜCK AUFs BAND
50 //
51 41 : uiNextStepPortal := 150 ; uiStepNoPortal := 42
; // WARTEN QUIT WÜRFEL PRESSE
52 42 : uiNextStepPortal := 310 ; uiStepNoPortal := 43
; // Z-ACHSE NACH UNTEN
53 43 : uiNextStepPortal := 210 ; uiStepNoPortal := 44
; // SAUGER-LUFT EIN
54 44 : uiNextStepPortal := 199 ; uiStepNoPortal := 45
; // WARTEZEIT
55 45 : uiNextStepPortal := 320 ; uiStepNoPortal := 46
; // Z-ACHSE NACH OBEN
56 46 : uiNextStepPortal := 420 ; uiStepNoPortal := 47
; // X-ACHSE NACH VORNE
57 47 : uiNextStepPortal := 310 ; uiStepNoPortal := 48
; // Z-ACHSE NACH UNTEN
58 48 : uiNextStepPortal := 220 ; uiStepNoPortal := 49
; // SAUGER-LUFT AUS
59 49 : uiNextStepPortal := 199 ; uiStepNoPortal := 50
; // WARTEZEIT
60 50 : uiNextStepPortal := 320 ; uiStepNoPortal := 51
; // Z-ACHSE NACH OBEN
61 51 : uiNextStepPortal := 140 ; uiStepNoPortal := 52
; // QUIT HANDSAKE => 800
62 52 : uiNextStepPortal := 0; uiStepNoPortal
:= 0 ; // SCHRITTKETTE GRUNDSTELLUNG
63 //
64 END_CASE
65
// ---------------------------------------------------------------------------------------------
66
// ---------------------------------------------------------------------------------------------
67 110 : //
68 // ****
69 // **** RÜCKMELDUNG AN HAUPT-SCHRITTKETTE
70 //
71 uiHandsakePortal := 200 ;
// SCHRITTKETTE PORTAL ANGELAUFEN
72 uiNextStepPortal := 100 ;
73
// ---------------------------------------------------------------------------------------------
74
// ---------------------------------------------------------------------------------------------
75 120 : //
76 // ****
77 // **** RÜCKMELDUNG AN HAUPT-SCHRITTKETTE
78 //
79 uiHandsakePortal := 400 ;
// UNTERTEIL VON BAND GENOMMEN
80 uiNextStepPortal := 100 ;

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.1.1.11.6 Action: act_0600_AutomaticSingleStep_CubePress

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

114 IF ( gb_bKeypadRightButton15 = TRUE )


115 AND ( bHelpFlagSingleStepStart = FALSE ) THEN
116 //
117 uiLastStepCubePress := uiActivStepCubePress ;
118 uiActivStepCubePress := uiNextStepCubePress ;
119 END_IF
120
// ---------------------------------------------------------------------------------------------
121
// ---------------------------------------------------------------------------------------------
122 ELSE
123 //
124 // ****
125 // **** GRUNDSTELLUNG CUBE PRESS
126 //
127 bHomePosReachedCubePress := ( E_84B3_AusschiebeZylGST =
TRUE )
128 AND ( E_84B1_PressZylGST
= TRUE ) ;
129 //
130 // ****
131
// **** WEITERSCHALTUNG IN AUTOMATIK ODER EINZEL-SCHRITT-BETRIEB
132 //
133 CASE gb_uiActivOperationMode OF
134
// --------------------------------------------------------------------------
135 300 : //
136 // **** AUTOMATIC MODE
137 //
138 IF ( uiHandsakeCubePress = 100 )
139 AND ( bHomePosReachedCubePress = TRUE ) THEN
140 uiNextStepCubePress := 100 ;
141 END_IF
142
// --------------------------------------------------------------------------
143 400 : //
144 // **** SINGLE STEP MODE
145 //
146 IF ( uiHandsakeCubePress = 100 )
147 AND ( bHomePosReachedCubePress = TRUE )
148 AND ( gb_bKeypadRightButton15 = TRUE ) THEN
149 uiNextStepCubePress := 100 ;
150 END_IF
151
// --------------------------------------------------------------------------
152 END_CASE
153 END_CASE
154
// ---------------------------------------------------------------------------------------------
155
// ---------------------------------------------------------------------------------------------
156 //
157 // ****
158 // **** SCHRITT - WEITERSCHALTUNG BEI ANWAHL AUTOMATIK
159 //
160 CASE gb_uiActivOperationMode OF
161
// ---------------------------------------------------------------------------------------------
162 300 : //
163 // **** WEITERSCHULUNG
164 //
165 IF ( uiNextStep < 65000 ) THEN
166 uiLastStepCubePress := uiActivStepCubePress ;

210 1/4/2017
IndraWorks ML* 13V16.0110

167 uiActivStepCubePress := uiNextStepCubePress ;


168 END_IF
169
// ---------------------------------------------------------------------------------------------
170 400 : //
171
// **** SCHRITTE BEI DENEN AUF WEITERSCHALTUNG DURCH TASTE GEWARTET WIRD
172 //
173 CASE uiNextStep OF
174 // ---------------------------------------
175 200 , 400 , 500 , 600 , 1100 , 1300 , 1400 , 1500 :

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.1.1.11.7 Action: act_1000_Output

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

117 ButtonForward := gb_bKeypadLeftButton05 ,


118 ButtonBackward := FALSE ,
119 ResponseForward := A_83Y2_SchlitzZylinder ,
120 ResponseBackward := NOT A_83Y2_SchlitzZylinder ,
121 MonitoringProperty := 12 ,
122 MonitoringInput_01 := E_83B1_SchlitzZylAST ,
123 MonitoringInput_02 := E_83B2_SchlitzZylGST ,
124 MonitoringTime_01 := T#5S ,
125 MonitoringTime_02 := T#5S ,
126 Reset := gb_bReset ,
127 FlashLightWord := wFlashLightWord ,
128 Forward => A_83Y2_SchlitzZylinder ,
129 Backward => ,
130 LED_Forward => gb_bKeypadLeftLED_05 ,
131 LED_Backward => ,
132 Error => arError [ 5 ] ,
133 ErrorNo => arErrorNo [ 5 ] ) ;
134
// ---------------------------------------------------------------------------------------------
135 //
136 // **** PORTAL / VACUUM
137 // **** A_83Y1_SaugGreiferEin
138 //
139
// ---------------------------------------------------------------------------------------------
140 //
141 arOutputs [ 8 ] (
142 EmergencyStopOK := gb_bEmergencyStopOK ,
143 FunctionType := 1 ,
144 OperationMode := gb_uiActivOperationMode ,
145 AutoSetForward := ,
146 AutoSetBackward := ,
147 ReferenzSetForward := ,
148 ReferenzSetBackward := ,
149 TypeOfManualMode := 1 ,
150 ButtonForward := gb_bKeypadLeftButton08 ,
151 ButtonBackward := FALSE ,
152 ResponseForward := A_83Y1_SaugGreiferEin ,
153 ResponseBackward := FALSE ,
154 MonitoringProperty := 0 ,
155 MonitoringInput_01 := FALSE ,
156 MonitoringInput_02 := FALSE ,
157 MonitoringTime_01 := T#5S ,
158 MonitoringTime_02 := T#5S ,
159 Reset := gb_bReset ,
160 FlashLightWord := wFlashLightWord ,
161 Forward => A_83Y1_SaugGreiferEin ,
162 Backward => ,
163 LED_Forward => gb_bKeypadLeftLED_08 ,
164 LED_Backward => ,
165 Error => arError [ 8 ] ,
166 ErrorNo => arErrorNo [ 8 ] ) ;
167
// ---------------------------------------------------------------------------------------------
168
// ---------------------------------------------------------------------------------------------
169 //
170 // **** PIN PRESS / STOP DROP CYLINDER
171 // **** A_81Y2_VentilAusschubZylinder
172 //
173
// ---------------------------------------------------------------------------------------------
174 //
175 arOutputs [ 3 ] (

214 1/4/2017
IndraWorks ML* 13V16.0110

176 EmergencyStopOK := gb_bEmergencyStopOK ,


177 FunctionType := 1,
178 OperationMode := gb_uiActivOperationMode ,
179 AutoSetForward := ,
180 AutoSetBackward := ,
181 ReferenzSetForward := ,
182 ReferenzSetBackward := ,
183 TypeOfManualMode := 2,
184 ButtonForward := gb_bKeypadLeftButton03 ,
185 ButtonBackward := FALSE ,
186 ResponseForward := A_81Y2_VentilAusschubZyl ,
187 ResponseBackward := FALSE ,
188 MonitoringProperty := 1,
189 MonitoringInput_01 := E_82B6_AusschubZylGST ,
190 MonitoringInput_02 := E_82B5_AusschubZylAST ,
191 MonitoringTime_01 := T#5S ,
192 MonitoringTime_02 := T#5S ,
193 Reset := gb_bReset ,
194 FlashLightWord := wFlashLightWord ,
195 Forward => A_81Y2_VentilAusschubZyl ,
196 Backward => ,
197 LED_Forward => gb_bKeypadLeftLED_03 ,
198 LED_Backward => ,
199 Error => arError [ 3 ] ,
200 ErrorNo => arErrorNo [ 3 ] ) ;
201
// ---------------------------------------------------------------------------------------------
202 //
203 // **** PIN PRESS / INSERT-CYLINDER
204 // **** A_81Y3_VentilEinschubZylinder
205 //
206
// ---------------------------------------------------------------------------------------------
207 //
208 arOutputs [ 6 ] (
209 EmergencyStopOK := gb_bEmergencyStopOK ,
210 FunctionType := 1 ,
211 OperationMode := gb_uiActivOperationMode ,
212 AutoSetForward := ,
213 AutoSetBackward := ,
214 ReferenzSetForward := ,
215 ReferenzSetBackward := ,
216 TypeOfManualMode := 2 ,
217 ButtonForward := gb_bKeypadLeftButton06 ,
218 ButtonBackward := FALSE ,
219 ResponseForward := A_81Y3_VentilEinschubZyl ,
220 ResponseBackward := FALSE ,
221 MonitoringProperty := 1 ,
222 MonitoringInput_01 := E_82B4_EinschubZylGST ,
223 MonitoringInput_02 := E_82B3_EinschubZylAST ,
224 MonitoringTime_01 := T#5S ,
225 MonitoringTime_02 := T#5S ,
226 Reset := gb_bReset ,
227 FlashLightWord := wFlashLightWord ,
228 Forward => A_81Y3_VentilEinschubZyl ,
229 Backward => ,
230 LED_Forward => gb_bKeypadLeftLED_06 ,
231 LED_Backward => ,
232 Error => arError [ 6 ] ,
233 ErrorNo => arErrorNo [ 6 ] ) ;
234
// ---------------------------------------------------------------------------------------------
235 //
236 // **** PIN PRESS / PIN-CYLINDER

215 1/4/2017
IndraWorks ML* 13V16.0110

237 // **** A_81Y1_VentilKurzhubZylinder


238 //
239
// ---------------------------------------------------------------------------------------------
240 //
241 arOutputs [ 9 ] (
242 EmergencyStopOK := gb_bEmergencyStopOK ,
243 FunctionType := 1 ,
244 OperationMode := gb_uiActivOperationMode ,
245 AutoSetForward := ,
246 AutoSetBackward := ,
247 ReferenzSetForward := ,
248 ReferenzSetBackward := ,
249 TypeOfManualMode := 2 ,
250 ButtonForward := gb_bKeypadLeftButton09 ,
251 ButtonBackward := FALSE ,
252 ResponseForward := A_81Y1_VentilKurzhubZyl ,
253 ResponseBackward := FALSE ,
254 MonitoringProperty := 0 ,
255 MonitoringInput_01 := E_81B2_KurzHubZyl_2_GST ,
256 MonitoringInput_02 := E_81B3_KurzHubZyl_1_AST ,
257 MonitoringTime_01 := T#5S ,
258 MonitoringTime_02 := T#5S ,
259 Reset := gb_bReset ,
260 FlashLightWord := wFlashLightWord ,
261 Forward => A_81Y1_VentilKurzhubZyl ,
262 Backward => ,
263 LED_Forward => gb_bKeypadLeftLED_09 ,
264 LED_Backward => ,
265 Error => arError [ 9 ] ,
266 ErrorNo => arErrorNo [ 9 ] ) ;
267
// ---------------------------------------------------------------------------------------------
268 //
269 // **** PIN PRESS / PRESS-CYLINDER
270 // **** A_81Y4_VentilPressZylinder
271 //
272
// ---------------------------------------------------------------------------------------------
273 //
274 arOutputs [ 12 ] (
275 EmergencyStopOK := gb_bEmergencyStopOK ,
276 FunctionType := 1 ,
277 OperationMode := gb_uiActivOperationMode ,
278 AutoSetForward := ,
279 AutoSetBackward := ,
280 ReferenzSetForward := ,
281 ReferenzSetBackward := ,
282 TypeOfManualMode := 2 ,
283 ButtonForward := gb_bKeypadLeftButton12 ,
284 ButtonBackward := FALSE ,
285 ResponseForward := A_81Y4_VentilPressZyl ,
286 ResponseBackward := FALSE ,
287 MonitoringProperty := 1 ,
288 MonitoringInput_01 := E_82B2_PressZylinderGST ,
289 MonitoringInput_02 := E_82B1_PressZylinderAST ,
290 MonitoringTime_01 := T#5S ,
291 MonitoringTime_02 := T#5S ,
292 Reset := gb_bReset ,
293 FlashLightWord := wFlashLightWord ,
294 Forward => A_81Y4_VentilPressZyl ,
295 Backward => ,
296 LED_Forward => gb_bKeypadLeftLED_12 ,
297 LED_Backward => ,

216 1/4/2017
IndraWorks ML* 13V16.0110

298 Error => arError [ 12 ] ,


299 ErrorNo => arErrorNo [ 12 ] ) ;
300
// ---------------------------------------------------------------------------------------------
301 //
302 // **** belt
303 // **** TRANSPORT-BAND
304 //
305
// ---------------------------------------------------------------------------------------------
306 //
307 arOutputs [ 15 ] (
308 EmergencyStopOK := gb_bEmergencyStopOK ,
309 FunctionType := 2 ,
310 OperationMode := gb_uiActivOperationMode ,
311 AutoSetForward := ,
312 AutoSetBackward := ,
313 ReferenzSetForward := ,
314 ReferenzSetBackward := ,
315 TypeOfManualMode := 11 ,
316 ButtonForward := gb_bKeypadRightButton13 ,
317 ButtonBackward := gb_bKeypadRightButton14 ,
318 ResponseForward := A_84K1_conveyor_belt_dir_end ,
319 ResponseBackward := A_84K2_conveyor_belt_dir_start ,
320 MonitoringProperty := 1 ,
321 MonitoringInput_01 := FALSE ,
322 MonitoringInput_02 := FALSE ,
323 MonitoringTime_01 := T#5S ,
324 MonitoringTime_02 := T#5S ,
325 Reset := gb_bReset ,
326 FlashLightWord := wFlashLightWord ,
327 Forward => A_84K1_conveyor_belt_dir_end ,
328 Backward => A_84K2_conveyor_belt_dir_start ,
329 LED_Forward => gb_bKeypadRightLED_13 ,
330 LED_Backward => gb_bKeypadRightLED_14 ,
331 Error => arError [ 15 ] ,
332 ErrorNo => arErrorNo [ 15 ] ) ;
333
// ---------------------------------------------------------------------------------------------
334

217 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.11.8 Action: act_1100_LEDs

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.1.1.11.9 Action: act_1200_Error

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

1.1.1.12 Symbol configuration: Symbol configuration

The object does not support the print functionality.

223 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.13 Task Configuration: Task Configuration

Max. number of cyclic tasks: 10


Max. number of freewheeling tasks: 10
Max. number of event tasks: 10
Max. number of external event tasks: 10

224 1/4/2017
IndraWorks ML* 13V16.0110

1.1.1.13.1 Task: PlcTask

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

1.2 Device: Inline_I_O

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

Description: Error message,


Module position, Type: UDINT,
Description: Module position,

Name: Inline I/O


Vendor: Bosch Rexroth AG
Version: 12.8.2.0
Order number:
Description: Interface for Inline I/O modules on IndraControl CMLxx.

227 1/4/2017
IndraWorks ML* 13V16.0110

1.2.1 Device: DigInput_IB_00 (R-IB IL 24 DI 4)

Inline-Module I/O Mapping

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

1.2.2 Device: DigInput_IB_01 (R-IB IL 24 DI 4)

Inline-Module I/O Mapping

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

1.2.3 Device: DigOutput_QB_00 (R-IB IL 24 DO 4)

Inline-Module I/O Mapping

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

1.2.4 Device: DigOutput_QB_01 (R-IB IL 24 DO 4)

Inline-Module I/O Mapping

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

1.2.5 Device: R_IB_IL_24_SEG_F_D (R-IB IL 24 SEG/F-D)

Inline-Module I/O Mapping

Input Parameters:
Channel: Input0, Type: BYTE, Address: %IB2,
Channel: Fuse, Type: BOOL, Address: %IX2.0,
Channel: UM, Type: BOOL, Address: %IX2.1,

Information

Name: R-IB IL 24 SEG/F-D


Vendor: Bosch Rexroth AG
Version: 0.0.0.1
Order number: R911170710
Description: Inline segment terminal with fuse and diagnostics.

232 1/4/2017
IndraWorks ML* 13V16.0110

1.2.6 Device: FLM_DI8_DO4_Bl_81 (RF-FLM DIO 8/4 M8)

Inline-Module I/O Mapping

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

Name: RF-FLM DIO 8/4 M8


Vendor: Bosch Rexroth AG
Version: 0.0.0.1
Order number: R911170450
Description: Fieldline modular M8 device with 4 digital inputs and 4 digital inputs or outputs.
Connection to the Fieldline modular local bus using terminal R-IB IL 24 FLM.
Inputs DC 24 V, outputs DC 24 V, 0.5 A.
Connection of digital sensors or actors using M8 connectors.

233 1/4/2017
IndraWorks ML* 13V16.0110

1.2.7 Device: FLM_DI8_Bl_82 (RF-FLM DI 8 M8)

Inline-Module I/O Mapping

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

1.2.8 Device: FLM_DI8_DO4_Bl_83 (RF-FLM DIO 8/4 M8)

Inline-Module I/O Mapping

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

Name: RF-FLM DIO 8/4 M8


Vendor: Bosch Rexroth AG
Version: 0.0.0.1
Order number: R911170450
Description: Fieldline modular M8 device with 4 digital inputs and 4 digital inputs or outputs.
Connection to the Fieldline modular local bus using terminal R-IB IL 24 FLM.
Inputs DC 24 V, outputs DC 24 V, 0.5 A.
Connection of digital sensors or actors using M8 connectors.

235 1/4/2017
IndraWorks ML* 13V16.0110

1.2.9 Device: FLM_DI8_DO4_Bl_84 (RF-FLM DIO 8/4 M8)

Inline-Module I/O Mapping

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

Name: RF-FLM DIO 8/4 M8


Vendor: Bosch Rexroth AG
Version: 0.0.0.1
Order number: R911170450
Description: Fieldline modular M8 device with 4 digital inputs and 4 digital inputs or outputs.
Connection to the Fieldline modular local bus using terminal R-IB IL 24 FLM.
Inputs DC 24 V, outputs DC 24 V, 0.5 A.
Connection of digital sensors or actors using M8 connectors.

236 1/4/2017
IndraWorks ML* 13V16.0110

1.2.10 Device: FLM_DI8_Bl_85 (RF-FLM DI 8 M8)

Inline-Module I/O Mapping

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

Data control time, Type: WORD,


Value: 2400, Default Value: 2400,
Unit: ms,
Description: Data control time,
AutoStart, Type: BOOL,
Value: TRUE, Default Value: TRUE,
Description: Perform automatic startup,
MasterDiag,
Description: Profibus DP master diagnostic information,
CommunicationCOS, Type: UDINT, Value: {false, false, false, false, false, false, false, false},
Ready, Type: BOOL,
Value: false, Default Value: false,
Run, Type: BOOL,
Value: false, Default Value: false,
BusOn, Type: BOOL,
Value: false, Default Value: false,
ConfigLocked, Type: BOOL,
Value: false, Default Value: false,
NewConfig, Type: BOOL,
Value: false, Default Value: false,
Restart, Type: BOOL,
Value: false, Default Value: false,
RestartEnabled, Type: BOOL,
Value: false, Default Value: false,
Unused, Type: BOOL,
Value: false, Default Value: false,
CommunicationState, Type: UDINT,
Value: 0, Default Value: 0,
Description: 0 = Unknown, 1 = Not Configured, 2 = Stop, 3 = Idle, 4 Operate,
Version, Type: UINT,
Value: 0, Default Value: 0,
Description: Version number of diagnosis structure,
Watchdog, Type: UINT,
Value: 0, Default Value: 0,
Description: Configured Watchdog Timeout,
ErrorCount, Type: UDINT,
Value: 0, Default Value: 0,
Description: Total number of detected errors since startup,
SlaveState, Type: UDINT,
Value: 0, Default Value: 0,
Description: 0 = Unknown, 1 = OK, 2 = Failed, 3 = Warning,
NumConfigSlaves, Type: UDINT,
Value: 0, Default Value: 0,
Description: Number of configured slaves,
NumActiveSlaves, Type: UDINT,
Value: 0, Default Value: 0,
Description: Number of active slaves,
NumDiagSlaves, Type: UDINT,
Value: 0, Default Value: 0,
Description: Number of slaves, reporting diagnostic issues.,
IdentNumber, Type: WORD,
Value: 356, Default Value: 356,
Description: IdentNumber of the Profibus DP master,
VendorName, Type: STRING,
Value: 'Bosch Rexroth AG', Default Value: 'Bosch Rexroth AG',
Description: VendorName of the Profibus DP master,
ModelName, Type: STRING,
Value: 'Profibus DP Master', Default Value: 'Profibus DP Master',
Description: ModelName of the Profibus DP master,
HW/FW Version,
Description: Profibus DP Master HW/FW Version,
Hardware Version DP, Type: BYTE,
Value: 16, Default Value: 16,
Description: HW-Version of the Profibus DP Master,
Firmware Version DP, Type: BYTE,
Value: 32, Default Value: 32,
Description: FW-Version of the Profibus DP Master,

239 1/4/2017
IndraWorks ML* 13V16.0110

Value: 16, Default Value: 16,


Description: HW-Version of the Profibus DP User,
Firmware Version User, Type: BYTE,
Value: 32, Default Value: 32,
Description: FW-Version of the Profibus DP User,
SupportedBaudrates,
Description: Supported baudrates of the device,
9,600, Type: BOOL,
Value: TRUE, Default Value: TRUE,
19,200, Type: BOOL,
Value: TRUE, Default Value: TRUE,
31,250, Type: BOOL,
Value: FALSE, Default Value: FALSE,
45,450, Type: BOOL,
Value: FALSE, Default Value: FALSE,
93,750, Type: BOOL,
Value: TRUE, Default Value: TRUE,
187,500, Type: BOOL,
Value: TRUE, Default Value: TRUE,
500,00, Type: BOOL,
Value: TRUE, Default Value: TRUE,
1500,00, Type: BOOL,
Value: TRUE, Default Value: TRUE,
3000,00, Type: BOOL,
Value: TRUE, Default Value: TRUE,
6000,00, Type: BOOL,
Value: TRUE, Default Value: TRUE,
12000,00, Type: BOOL,
Value: TRUE, Default Value: TRUE,
DefaultsTqui,
Description: Baudrate specific defaults for Tqui,
9,600, Type: DINT,
Value: 0, Default Value: 0,
19,200, Type: DINT,
Value: 0, Default Value: 0,
31,250, Type: DINT,
45,450, Type: DINT,
93,750, Type: DINT,
Value: 0, Default Value: 0,
187,500, Type: DINT,
Value: 0, Default Value: 0,
500,00, Type: DINT,
Value: 0, Default Value: 0,
1500,00, Type: DINT,
Value: 0, Default Value: 0,
3000,00, Type: DINT,
Value: 3, Default Value: 3,
6000,00, Type: DINT,
Value: 6, Default Value: 6,
12000,00, Type: DINT,
Value: 9, Default Value: 9,
DefaultsTrdy,
Description: Baudrate specific defaults for Trdy,
9,600, Type: DINT,
Value: 10, Default Value: 10,
19,200, Type: DINT,
Value: 10, Default Value: 10,
31,250, Type: DINT,
45,450, Type: DINT,
93,750, Type: DINT,
Value: 10, Default Value: 10,
187,500, Type: DINT,
Value: 10, Default Value: 10,
500,00, Type: DINT,
Value: 10, Default Value: 10,
1500,00, Type: DINT,
Value: 10, Default Value: 10,

240 1/4/2017
IndraWorks ML* 13V16.0110

Value: 10, Default Value: 10,


6000,00, Type: DINT,
Value: 10, Default Value: 10,
12000,00, Type: DINT,
Value: 10, Default Value: 10,
DefaultsTsdi,
Description: Baudrate specific defaults for Tsdi,
9,600, Type: DINT,
Value: 70, Default Value: 70,
19,200, Type: DINT,
Value: 70, Default Value: 70,
31,250, Type: DINT,
45,450, Type: DINT,
93,750, Type: DINT,
Value: 70, Default Value: 70,
187,500, Type: DINT,
Value: 70, Default Value: 70,
500,00, Type: DINT,
Value: 150, Default Value: 150,
1500,00, Type: DINT,
Value: 200, Default Value: 200,
3000,00, Type: DINT,
Value: 250, Default Value: 250,
6000,00, Type: DINT,
Value: 450, Default Value: 450,
12000,00, Type: DINT,
Value: 800, Default Value: 800,
DefaultsTset,
Description: Baudrate specific defaults for Tset,
9,600, Type: DINT,
Value: 1, Default Value: 1,
19,200, Type: DINT,
Value: 1, Default Value: 1,
31,250, Type: DINT,
45,450, Type: DINT,
93,750, Type: DINT,
Value: 1, Default Value: 1,
187,500, Type: DINT,
Value: 1, Default Value: 1,
500,00, Type: DINT,
Value: 1, Default Value: 1,
1500,00, Type: DINT,
Value: 1, Default Value: 1,
3000,00, Type: DINT,
Value: 4, Default Value: 4,
6000,00, Type: DINT,
Value: 8, Default Value: 8,
12000,00, Type: DINT,
Value: 16, Default Value: 16,
DefaultsMaxTsdr,
Description: Baudrate specific defaults for max. Tsdr,
9,600, Type: DINT,
Value: 60, Default Value: 60,
19,200, Type: DINT,
Value: 60, Default Value: 60,
31,250, Type: DINT,
45,450, Type: DINT,
93,750, Type: DINT,
Value: 60, Default Value: 60,
187,500, Type: DINT,
Value: 60, Default Value: 60,
500,00, Type: DINT,
Value: 100, Default Value: 100,
1500,00, Type: DINT,
Value: 150, Default Value: 150,
3000,00, Type: DINT,
Value: 250, Default Value: 250,

241 1/4/2017
IndraWorks ML* 13V16.0110

Value: 450, Default Value: 450,


12000,00, Type: DINT,
Value: 800, Default Value: 800,
DefaultPollTime, Type: WORD,
Value: 100, Default Value: 100,
Description: Default setting for the poll timeout,
AutoClearSupported, Type: BOOL,
Value: FALSE, Default Value: FALSE,
Description: auto-clear supported by master,
ClearOnStop, Type: BOOL,
Value: FALSE, Default Value: FALSE,
Description: The master goes into CLEAR state on PLC STOP.,
boardnumber, Type: UDINT,
Value: 16#FFFFFFFF, Default Value: 16#FFFFFFFF,
Description: NetX board number,
channelnumber, Type: UDINT,
Value: 16#FFFFFFFF, Default Value: 16#FFFFFFFF,
Description: NetX channel number,
Watchdog, Type: WORD,
Value: 1000, Default Value: 1000,
Description: Master watchdog,
Bus On Timeout, Type: UDINT,
Value: 1, Default Value: 1,
Description: BUS ON Timeout of driver,
OptimizationOn, Type: BOOL,
Value: TRUE, Default Value: TRUE,
Description: the driver optimizes the io update,
NetX_IO_ByteOrder, Type: BOOL,
Value: FALSE, Default Value: FALSE,
SWVersionnr, Type: UDINT,
Value: 8224, Default Value: 8224,
Description: SWVersionnr,
HWVersionnr, Type: UDINT,
Value: 4112, Default Value: 4112,
Description: HWVersionnr,

IEC objects:
Variable: Profibus_DP_Master, Type: IoDrvCIFXProfibusDCIA

Name: Profibus DP Master


Vendor: Bosch Rexroth AG
Version: 13.4.2.0
Order number:
Description: Profibus DP Master imported from RX010164.GSD

242 1/4/2017
IndraWorks ML* 13V16.0110

1.3.1 Device: 3 - VAM10_VAM40 (VAM10,VAM40)

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

Value: false, Default Value: false,


Status2, 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,
Bit7, Type: BOOL,
Value: false, Default Value: false,
Status3, Type: BYTE,
Value: 0, Default Value: 0,
Description: If Bit 7 set then extended diagnosis overflow,
MasterAddress, Type: BYTE,
Value: 0, Default Value: 0,
IdentNumberHigh, Type: BYTE,
Value: 0, Default Value: 0,
IdentNumberLow, Type: BYTE,
Value: 0, Default Value: 0,
ExtDiagLen, Type: BYTE,
Value: 64, Default Value: 64,
ExtDiag, Type: ARRAY[0..63] OF BYTE,
Value:
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0], Default Value:
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0],
SlaveDiagAcknowledge, Type: BOOL,
Value: 0, Default Value: 0,
Description: ProfiBus DP slave diagnostic acknowledge,

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

1.3.1.1 Device: _16DI_8DO (16DI, 8DO)

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,

Name: 16DI, 8DO


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

245 1/4/2017
IndraWorks ML* 13V16.0110

1.3.1.2 Device: Manual_Control_Unit (Manual Control Unit)

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

Name: Manual Control Unit


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

247 1/4/2017
IndraWorks ML* 13V16.0110

1.3.1.3 Device: Handwheel (Handwheel)

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

1.3.1.4 Device: Keypad_TA (Keypad TA)

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

1.3.1.5 Device: Keypad_TA_1 (Keypad TA)

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

1.3.1.6 Device: Override_VB (Override VB)

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

Name: Not Used


Vendor: Bosch Rexroth AG
Version: 12.2.0.0
Order number:
Description: This slot is not used.

254 1/4/2017

You might also like