batch-example-2/plc/code/s5/updated/fx-blocks/fx-blocks.txt

9002 lines
252 KiB
Plaintext
Executable File
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FX 1 C:ZONE10ST.S5D LEN=12
Page 1
Segment 1
Name :A
:
:BE
FX 11 -FX11 HO501 FEED. HO A1 C:ZONE10ST.S5D LEN=146
Page 1
Segment 1 dosing out of feeding hopper
*******************************************************************************
Beschreibung :
--------------
In diesem Baustein wird das Befuellen , sowie das Dosieren aus einem
Einfuelltrichter abgearbeitet.
Der Einfuelltrichter kann durch einen Big - Bag oder durch Saecke befuellt
werden.
Der Ruettler am Big-Bag Rahmen wird durch einen Taster zugeschaltet.
Mit dem Endschalter am Deckel oder durch einen Schalter , wird die Besaugung
aktiviert.
Die Dosierung aus dem Einfuelltrichter erfolgt durch eine Dosierrinne
*******************************************************************************
parameter :
-----------
SINR : silo number
TIM1 : timer_1 ( cycle pocket purging )
TIM2 : timer_2 ( cycle vibration motor )
TIM3 : timer_3 ( reserve )
TIM4 : timer_4 ( reserve )
PWFU : analogue output for FC / Thyristor control
DBBE : object_DB_No for central suction
*******************************************************************************
internal used FB :
-----------------------------
FB 108 Timer Nachbildung
FB 115 Taster ( 1. mal tasten ist ein 2. mal tasten ist aus )
FB 116 Taktgeber ( Taktger mit 1 Timer )
FB 175 Lade_DW
FB 176 Transformiere_DW
*******************************************************************************
Name :HOP-TYP1
Decl :SINR I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :OFFS I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM1 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM2 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM3 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM4 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
:***
Segment 2 calculate object-DX
:LW =SINR
:LW =OFFS
:+F
:T -MW180 PARAMETER 1
:***
FW 180 = MW180 PARAMETER 1
Segment 3 open object-DX
FX 11 -FX11 HO501 FEED. HO A1 C:ZONE10ST.S5D LEN=146
Page 2
:DO -MW180 PARAMETER 1
:CX -DX 0 SYSTEM PARAMETER
:
:L KF +114
:T -MW180 PARAMETER 1
:
:JU -FB175 LOAD DW INDIR.
Name :LADE DW
DB : DW 0
DW : -MW180 PARAMETER 1
DBDX : KS DB
:T -MW18 STATUS FLAGS
:***
FW 180 = MW180 PARAMETER 1
FW 18 = MW18 STATUS FLAGS SCALE STATUS
FB 175 = FB175 LOAD DW INDIR. sp
DX 0 = DX 0 SYSTEM PARAMETER
Segment 4 load status
:L DW 1
:T -MW20 IND. OUTPUTS Silo
:***
FW 20 = MW20 IND. OUTPUTS Silo
Segment 5 dosing unit on
:A -M 18.0 SILO_NR_OK
:A -M 18.2 PRESSUR_BUILD_UP
:A -ME23.2 SAFETY SWITCH OK *(3) Safety switch
:= -MA20.1 DOSING UNIT ON
:= -MA21.3 AIR PURGED SEALS *(3) Air purged seals
:
:A -MA20.1 DOSING UNIT ON
:A -ME22.1 DOSING UNIT ON
:A -M 18.5 DOS_REL_SILO
:= -MA21.1 BLOCK VALVE OPEN
:
:A -MA21.1 BLOCK VALVE OPEN
:A -ME23.1 BLOCK VALVE OPEN
:A -ME22.2 FREQ.CONV. READY
:= -MA20.2 FREQ.CONV. REL.
:= -MA21.4 >DOS_RUNNING SIL
:***
F 18.0 = M 18.0 SILO_NR_OK
F 18.2 = M 18.2 PRESSUR_BUILD_UP
F 23.2 = ME23.2 SAFETY SWITCH OK
F 20.1 = MA20.1 DOSING UNIT ON
F 21.3 = MA21.3 AIR PURGED SEALS
F 22.1 = ME22.1 DOSING UNIT ON
F 18.5 = M 18.5 DOS_REL_SILO
F 21.1 = MA21.1 BLOCK VALVE OPEN
F 23.1 = ME23.1 BLOCK VALVE OPEN
F 22.2 = ME22.2 FREQ.CONV. READY
F 20.2 = MA20.2 FREQ.CONV. REL. *** not used
F 21.4 = MA21.4 >DOS_RUNNING SIL
Segment 6 timer pocket purging
:LW =TIM1
:T -MW180 PARAMETER 1
: --------------------------------
FX 11 -FX11 HO501 FEED. HO A1 C:ZONE10ST.S5D LEN=146
Page 3
:JU -FB106 TRANSFER KF->KT
Name :KF->KT
EINH : KF +2 convert impulse time
EING : DW 10
AUSG : FW 202
: --------------------------------
:JU -FB106 TRANSFER KF->KT
Name :KF->KT
EINH : KF +2 convert break time
EING : DW 11
AUSG : FW 204
: --------------------------------
:***
FW 180 = MW180 PARAMETER 1
FB 106 = FB106 TRANSFER KF->KT
Segment 7 cycle pocket purging
:JU -FB113 CLOCK GENERAT.TIM
Name :TAKT
FRG : -MA21.4 >DOS_RUNNING SIL
T : -T0 IND.ADDRES.(DUMMY)
DWIM : FW 202
DWPA : FW 204
AUSG : -MA21.2 POCKET PURGING
POS : -M 0.1 CONSTANT 1
DBT : -DB11 HO500 SCALE1:HO50X
RM : -MA21.2 POCKET PURGING
T-IN : -MW180 PARAMETER 1
IN : KS IN
SOLL : KF +0
IST : FW 206
FERT : F 200.1
BITL : FW 208
DAUE : -M 0.1 CONSTANT 1
DBST : -DB11 HO500 SCALE1:HO50X
:***
F 21.4 = MA21.4 >DOS_RUNNING SIL
T 0 = T0 IND.ADDRES.(DUMMY) standard
F 21.2 = MA21.2 POCKET PURGING
F 0.1 = M 0.1 CONSTANT 1
FW 180 = MW180 PARAMETER 1
DB 11 = DB11 HO500 SCALE1:HO50X HO500 area 1 scale 1: ingredient weighin
FB 113 = FB113 CLOCK GENERAT.TIM with nominal instruction HKT al
Segment 8 timer vibration motor
:LW =TIM2
:T -MW180 PARAMETER 1
: --------------------------------
:JU -FB106 TRANSFER KF->KT
Name :KF->KT
EINH : KF +2 convert impulse time
EING : DW 12
AUSG : FW 202
: --------------------------------
:JU -FB106 TRANSFER KF->KT
Name :KF->KT
EINH : KF +2 convert break time
EING : DW 13
AUSG : FW 204
FX 11 -FX11 HO501 FEED. HO A1 C:ZONE10ST.S5D LEN=146
Page 4
: --------------------------------
:***
FW 180 = MW180 PARAMETER 1
FB 106 = FB106 TRANSFER KF->KT
Segment 9 cycle vibration motor
:JU -FB113 CLOCK GENERAT.TIM
Name :TAKT
FRG : -MA21.4 >DOS_RUNNING SIL
T : -T0 IND.ADDRES.(DUMMY)
DWIM : FW 202
DWPA : FW 204
AUSG : -MA20.3 VIBRATOR ON
POS : -M 0.1 CONSTANT 1
DBT : -DB11 HO500 SCALE1:HO50X
RM : -ME22.3 VIBRATOR ON
T-IN : -MW180 PARAMETER 1
IN : KS IN
SOLL : KF +0
IST : FW 206
FERT : F 200.1
BITL : FW 208
DAUE : -M 0.1 CONSTANT 1
DBST : -DB11 HO500 SCALE1:HO50X
:***
F 21.4 = MA21.4 >DOS_RUNNING SIL
T 0 = T0 IND.ADDRES.(DUMMY) standard
F 20.3 = MA20.3 VIBRATOR ON
F 0.1 = M 0.1 CONSTANT 1
F 22.3 = ME22.3 VIBRATOR ON
FW 180 = MW180 PARAMETER 1
DB 11 = DB11 HO500 SCALE1:HO50X HO500 area 1 scale 1: ingredient weighin
FB 113 = FB113 CLOCK GENERAT.TIM with nominal instruction HKT al
Segment 10 store status
:L -MW20 IND. OUTPUTS Silo
:T DW 1
:
:L -MW22 IND. INPUTs Silo
:T DW 2
:***
FW 20 = MW20 IND. OUTPUTS Silo
FW 22 = MW22 IND. INPUTs Silo
Segment 11
:BE
FX 12 -FX12 HO502 FEED. HO A1 C:ZONE10ST.S5D LEN=146
Page 1
Segment 1 dosing out of feeding hopper
*******************************************************************************
Beschreibung :
--------------
In diesem Baustein wird das Befuellen , sowie das Dosieren aus einem
Einfuelltrichter abgearbeitet.
Der Einfuelltrichter kann durch einen Big - Bag oder durch Saecke befuellt
werden.
Der Ruettler am Big-Bag Rahmen wird durch einen Taster zugeschaltet.
Mit dem Endschalter am Deckel oder durch einen Schalter , wird die Besaugung
aktiviert.
Die Dosierung aus dem Einfuelltrichter erfolgt durch eine Dosierrinne
*******************************************************************************
parameter :
-----------
SINR : silo number
TIM1 : timer_1 ( cycle pocket purging )
TIM2 : timer_2 ( cycle vibration motor )
TIM3 : timer_3 ( reserve )
TIM4 : timer_4 ( reserve )
PWFU : analogue output for FC / Thyristor control
DBBE : object_DB_No for central suction
*******************************************************************************
internal used FB :
-----------------------------
FB 108 Timer Nachbildung
FB 115 Taster ( 1. mal tasten ist ein 2. mal tasten ist aus )
FB 116 Taktgeber ( Taktger mit 1 Timer )
FB 175 Lade_DW
FB 176 Transformiere_DW
*******************************************************************************
Name :HOP-TYP1
Decl :SINR I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :OFFS I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM1 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM2 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM3 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM4 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
:***
Segment 2 calculate object-DX
:LW =SINR
:LW =OFFS
:+F
:T -MW180 PARAMETER 1
:***
FW 180 = MW180 PARAMETER 1
Segment 3 open object-DX
FX 12 -FX12 HO502 FEED. HO A1 C:ZONE10ST.S5D LEN=146
Page 2
:DO -MW180 PARAMETER 1
:CX -DX 0 SYSTEM PARAMETER
:
:L KF +114
:T -MW180 PARAMETER 1
:
:JU -FB175 LOAD DW INDIR.
Name :LADE DW
DB : DW 0
DW : -MW180 PARAMETER 1
DBDX : KS DB
:T -MW18 STATUS FLAGS
:***
FW 180 = MW180 PARAMETER 1
FW 18 = MW18 STATUS FLAGS SCALE STATUS
FB 175 = FB175 LOAD DW INDIR. sp
DX 0 = DX 0 SYSTEM PARAMETER
Segment 4 load status
:L DW 1
:T -MW20 IND. OUTPUTS Silo
:***
FW 20 = MW20 IND. OUTPUTS Silo
Segment 5 dosing unit on
:A -M 18.0 SILO_NR_OK
:A -M 18.2 PRESSUR_BUILD_UP
:A -ME23.2 SAFETY SWITCH OK *(3) Safety switch
:= -MA20.1 DOSING UNIT ON
:= -MA21.3 AIR PURGED SEALS *(3) Air purged seals
:
:A -MA20.1 DOSING UNIT ON
:A -ME22.1 DOSING UNIT ON
:A -M 18.5 DOS_REL_SILO
:= -MA21.1 BLOCK VALVE OPEN
:
:A -MA21.1 BLOCK VALVE OPEN
:A -ME23.1 BLOCK VALVE OPEN
:A -ME22.2 FREQ.CONV. READY
:= -MA20.2 FREQ.CONV. REL.
:= -MA21.4 >DOS_RUNNING SIL
:***
F 18.0 = M 18.0 SILO_NR_OK
F 18.2 = M 18.2 PRESSUR_BUILD_UP
F 23.2 = ME23.2 SAFETY SWITCH OK
F 20.1 = MA20.1 DOSING UNIT ON
F 21.3 = MA21.3 AIR PURGED SEALS
F 22.1 = ME22.1 DOSING UNIT ON
F 18.5 = M 18.5 DOS_REL_SILO
F 21.1 = MA21.1 BLOCK VALVE OPEN
F 23.1 = ME23.1 BLOCK VALVE OPEN
F 22.2 = ME22.2 FREQ.CONV. READY
F 20.2 = MA20.2 FREQ.CONV. REL. *** not used
F 21.4 = MA21.4 >DOS_RUNNING SIL
Segment 6 timer pocket purging
:LW =TIM1
:T -MW180 PARAMETER 1
: --------------------------------
FX 12 -FX12 HO502 FEED. HO A1 C:ZONE10ST.S5D LEN=146
Page 3
:JU -FB106 TRANSFER KF->KT
Name :KF->KT
EINH : KF +2 convert impulse time
EING : DW 10
AUSG : FW 202
: --------------------------------
:JU -FB106 TRANSFER KF->KT
Name :KF->KT
EINH : KF +2 convert break time
EING : DW 11
AUSG : FW 204
: --------------------------------
:***
FW 180 = MW180 PARAMETER 1
FB 106 = FB106 TRANSFER KF->KT
Segment 7 cycle pocket purging
:JU -FB113 CLOCK GENERAT.TIM
Name :TAKT
FRG : -MA21.4 >DOS_RUNNING SIL
T : -T0 IND.ADDRES.(DUMMY)
DWIM : FW 202
DWPA : FW 204
AUSG : -MA21.2 POCKET PURGING
POS : -M 0.1 CONSTANT 1
DBT : -DB11 HO500 SCALE1:HO50X
RM : -MA21.2 POCKET PURGING
T-IN : -MW180 PARAMETER 1
IN : KS IN
SOLL : KF +0
IST : FW 206
FERT : F 200.1
BITL : FW 208
DAUE : -M 0.1 CONSTANT 1
DBST : -DB11 HO500 SCALE1:HO50X
:***
F 21.4 = MA21.4 >DOS_RUNNING SIL
T 0 = T0 IND.ADDRES.(DUMMY) standard
F 21.2 = MA21.2 POCKET PURGING
F 0.1 = M 0.1 CONSTANT 1
FW 180 = MW180 PARAMETER 1
DB 11 = DB11 HO500 SCALE1:HO50X HO500 area 1 scale 1: ingredient weighin
FB 113 = FB113 CLOCK GENERAT.TIM with nominal instruction HKT al
Segment 8 timer vibration motor
:LW =TIM2
:T -MW180 PARAMETER 1
: --------------------------------
:JU -FB106 TRANSFER KF->KT
Name :KF->KT
EINH : KF +2 convert impulse time
EING : DW 12
AUSG : FW 202
: --------------------------------
:JU -FB106 TRANSFER KF->KT
Name :KF->KT
EINH : KF +2 convert break time
EING : DW 13
AUSG : FW 204
FX 12 -FX12 HO502 FEED. HO A1 C:ZONE10ST.S5D LEN=146
Page 4
: --------------------------------
:***
FW 180 = MW180 PARAMETER 1
FB 106 = FB106 TRANSFER KF->KT
Segment 9 cycle vibration motor
:JU -FB113 CLOCK GENERAT.TIM
Name :TAKT
FRG : -MA21.4 >DOS_RUNNING SIL
T : -T0 IND.ADDRES.(DUMMY)
DWIM : FW 202
DWPA : FW 204
AUSG : -MA20.3 VIBRATOR ON
POS : -M 0.1 CONSTANT 1
DBT : -DB11 HO500 SCALE1:HO50X
RM : -ME22.3 VIBRATOR ON
T-IN : -MW180 PARAMETER 1
IN : KS IN
SOLL : KF +0
IST : FW 206
FERT : F 200.1
BITL : FW 208
DAUE : -M 0.1 CONSTANT 1
DBST : -DB11 HO500 SCALE1:HO50X
:***
F 21.4 = MA21.4 >DOS_RUNNING SIL
T 0 = T0 IND.ADDRES.(DUMMY) standard
F 20.3 = MA20.3 VIBRATOR ON
F 0.1 = M 0.1 CONSTANT 1
F 22.3 = ME22.3 VIBRATOR ON
FW 180 = MW180 PARAMETER 1
DB 11 = DB11 HO500 SCALE1:HO50X HO500 area 1 scale 1: ingredient weighin
FB 113 = FB113 CLOCK GENERAT.TIM with nominal instruction HKT al
Segment 10 store status
:L -MW20 IND. OUTPUTS Silo
:T DW 1
:
:L -MW22 IND. INPUTs Silo
:T DW 2
:***
FW 20 = MW20 IND. OUTPUTS Silo
FW 22 = MW22 IND. INPUTs Silo
Segment 11
:BE
FX 13 -FX13 HO503 FEED. HO A1 C:ZONE10ST.S5D LEN=146
Page 1
Segment 1 dosing out of feeding hopper
*******************************************************************************
Beschreibung :
--------------
In diesem Baustein wird das Befuellen , sowie das Dosieren aus einem
Einfuelltrichter abgearbeitet.
Der Einfuelltrichter kann durch einen Big - Bag oder durch Saecke befuellt
werden.
Der Ruettler am Big-Bag Rahmen wird durch einen Taster zugeschaltet.
Mit dem Endschalter am Deckel oder durch einen Schalter , wird die Besaugung
aktiviert.
Die Dosierung aus dem Einfuelltrichter erfolgt durch eine Dosierrinne
*******************************************************************************
parameter :
-----------
SINR : silo number
TIM1 : timer_1 ( cycle pocket purging )
TIM2 : timer_2 ( cycle vibration motor )
TIM3 : timer_3 ( reserve )
TIM4 : timer_4 ( reserve )
PWFU : analogue output for FC / Thyristor control
DBBE : object_DB_No for central suction
*******************************************************************************
internal used FB :
-----------------------------
FB 108 Timer Nachbildung
FB 115 Taster ( 1. mal tasten ist ein 2. mal tasten ist aus )
FB 116 Taktgeber ( Taktger mit 1 Timer )
FB 175 Lade_DW
FB 176 Transformiere_DW
*******************************************************************************
Name :HOP-TYP1
Decl :SINR I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :OFFS I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM1 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM2 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM3 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM4 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
:***
Segment 2 calculate object-DX
:LW =SINR
:LW =OFFS
:+F
:T -MW180 PARAMETER 1
:***
FW 180 = MW180 PARAMETER 1
Segment 3 open object-DX
FX 13 -FX13 HO503 FEED. HO A1 C:ZONE10ST.S5D LEN=146
Page 2
:DO -MW180 PARAMETER 1
:CX -DX 0 SYSTEM PARAMETER
:
:L KF +114
:T -MW180 PARAMETER 1
:
:JU -FB175 LOAD DW INDIR.
Name :LADE DW
DB : DW 0
DW : -MW180 PARAMETER 1
DBDX : KS DB
:T -MW18 STATUS FLAGS
:***
FW 180 = MW180 PARAMETER 1
FW 18 = MW18 STATUS FLAGS SCALE STATUS
FB 175 = FB175 LOAD DW INDIR. sp
DX 0 = DX 0 SYSTEM PARAMETER
Segment 4 load status
:L DW 1
:T -MW20 IND. OUTPUTS Silo
:***
FW 20 = MW20 IND. OUTPUTS Silo
Segment 5 dosing unit on
:A -M 18.0 SILO_NR_OK
:A -M 18.2 PRESSUR_BUILD_UP
:A -ME23.2 SAFETY SWITCH OK *(3) Safety switch
:= -MA20.1 DOSING UNIT ON
:= -MA21.3 AIR PURGED SEALS *(3) Air purged seals
:
:A -MA20.1 DOSING UNIT ON
:A -ME22.1 DOSING UNIT ON
:A -M 18.5 DOS_REL_SILO
:= -MA21.1 BLOCK VALVE OPEN
:
:A -MA21.1 BLOCK VALVE OPEN
:A -ME23.1 BLOCK VALVE OPEN
:A -ME22.2 FREQ.CONV. READY
:= -MA20.2 FREQ.CONV. REL.
:= -MA21.4 >DOS_RUNNING SIL
:***
F 18.0 = M 18.0 SILO_NR_OK
F 18.2 = M 18.2 PRESSUR_BUILD_UP
F 23.2 = ME23.2 SAFETY SWITCH OK
F 20.1 = MA20.1 DOSING UNIT ON
F 21.3 = MA21.3 AIR PURGED SEALS
F 22.1 = ME22.1 DOSING UNIT ON
F 18.5 = M 18.5 DOS_REL_SILO
F 21.1 = MA21.1 BLOCK VALVE OPEN
F 23.1 = ME23.1 BLOCK VALVE OPEN
F 22.2 = ME22.2 FREQ.CONV. READY
F 20.2 = MA20.2 FREQ.CONV. REL. *** not used
F 21.4 = MA21.4 >DOS_RUNNING SIL
Segment 6 timer pocket purging
:LW =TIM1
:T -MW180 PARAMETER 1
: --------------------------------
FX 13 -FX13 HO503 FEED. HO A1 C:ZONE10ST.S5D LEN=146
Page 3
:JU -FB106 TRANSFER KF->KT
Name :KF->KT
EINH : KF +2 convert impulse time
EING : DW 10
AUSG : FW 202
: --------------------------------
:JU -FB106 TRANSFER KF->KT
Name :KF->KT
EINH : KF +2 convert break time
EING : DW 11
AUSG : FW 204
: --------------------------------
:***
FW 180 = MW180 PARAMETER 1
FB 106 = FB106 TRANSFER KF->KT
Segment 7 cycle pocket purging
:JU -FB113 CLOCK GENERAT.TIM
Name :TAKT
FRG : -MA21.4 >DOS_RUNNING SIL
T : -T0 IND.ADDRES.(DUMMY)
DWIM : FW 202
DWPA : FW 204
AUSG : -MA21.2 POCKET PURGING
POS : -M 0.1 CONSTANT 1
DBT : -DB11 HO500 SCALE1:HO50X
RM : -MA21.2 POCKET PURGING
T-IN : -MW180 PARAMETER 1
IN : KS IN
SOLL : KF +0
IST : FW 206
FERT : F 200.1
BITL : FW 208
DAUE : -M 0.1 CONSTANT 1
DBST : -DB11 HO500 SCALE1:HO50X
:***
F 21.4 = MA21.4 >DOS_RUNNING SIL
T 0 = T0 IND.ADDRES.(DUMMY) standard
F 21.2 = MA21.2 POCKET PURGING
F 0.1 = M 0.1 CONSTANT 1
FW 180 = MW180 PARAMETER 1
DB 11 = DB11 HO500 SCALE1:HO50X HO500 area 1 scale 1: ingredient weighin
FB 113 = FB113 CLOCK GENERAT.TIM with nominal instruction HKT al
Segment 8 timer vibration motor
:LW =TIM2
:T -MW180 PARAMETER 1
: --------------------------------
:JU -FB106 TRANSFER KF->KT
Name :KF->KT
EINH : KF +2 convert impulse time
EING : DW 12
AUSG : FW 202
: --------------------------------
:JU -FB106 TRANSFER KF->KT
Name :KF->KT
EINH : KF +2 convert break time
EING : DW 13
AUSG : FW 204
FX 13 -FX13 HO503 FEED. HO A1 C:ZONE10ST.S5D LEN=146
Page 4
: --------------------------------
:***
FW 180 = MW180 PARAMETER 1
FB 106 = FB106 TRANSFER KF->KT
Segment 9 cycle vibration motor
:JU -FB113 CLOCK GENERAT.TIM
Name :TAKT
FRG : -MA21.4 >DOS_RUNNING SIL
T : -T0 IND.ADDRES.(DUMMY)
DWIM : FW 202
DWPA : FW 204
AUSG : -MA20.3 VIBRATOR ON
POS : -M 0.1 CONSTANT 1
DBT : -DB11 HO500 SCALE1:HO50X
RM : -ME22.3 VIBRATOR ON
T-IN : -MW180 PARAMETER 1
IN : KS IN
SOLL : KF +0
IST : FW 206
FERT : F 200.1
BITL : FW 208
DAUE : -M 0.1 CONSTANT 1
DBST : -DB11 HO500 SCALE1:HO50X
:***
F 21.4 = MA21.4 >DOS_RUNNING SIL
T 0 = T0 IND.ADDRES.(DUMMY) standard
F 20.3 = MA20.3 VIBRATOR ON
F 0.1 = M 0.1 CONSTANT 1
F 22.3 = ME22.3 VIBRATOR ON
FW 180 = MW180 PARAMETER 1
DB 11 = DB11 HO500 SCALE1:HO50X HO500 area 1 scale 1: ingredient weighin
FB 113 = FB113 CLOCK GENERAT.TIM with nominal instruction HKT al
Segment 10 store status
:L -MW20 IND. OUTPUTS Silo
:T DW 1
:
:L -MW22 IND. INPUTs Silo
:T DW 2
:***
FW 20 = MW20 IND. OUTPUTS Silo
FW 22 = MW22 IND. INPUTs Silo
Segment 11
:BE
FX 14 -FX14 HO504 FEED. HO A1 C:ZONE10ST.S5D LEN=131
Page 1
Segment 1 dosing out of feeding hopper
*******************************************************************************
Beschreibung :
--------------
In diesem Baustein wird das Befuellen , sowie das Dosieren aus einem
Einfuelltrichter abgearbeitet.
Der Einfuelltrichter kann durch einen Big - Bag oder durch Saecke befuellt
werden.
Der Ruettler am Big-Bag Rahmen wird durch einen Taster zugeschaltet.
Mit dem Endschalter am Deckel oder durch einen Schalter , wird die Besaugung
aktiviert.
Die Dosierung aus dem Einfuelltrichter erfolgt durch eine Dosierrinne
*******************************************************************************
parameter :
-----------
SINR : silo number
TIM1 : timer_1 ( delay time hopper empty )
TIM2 : timer_2 ( cycle vibration motor )
TIM3 : timer_3 ( reserve )
TIM4 : timer_4 ( reserve )
PWFU : analogue output for FC / Thyristor control
DBBE : object_DB_No for central suction
*******************************************************************************
Intern verwendete Bausteine :
-----------------------------
FB 108 Timer Nachbildung
FB 115 Taster ( 1. mal tasten ist ein 2. mal tasten ist aus )
FB 116 Taktgeber ( Taktger mit 1 Timer )
FB 175 Lade_DW
FB 176 Transformiere_DW
*******************************************************************************
Name :HOP-TYP2
Decl :SINR I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :OFFS I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM1 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM2 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM3 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM4 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
:***
Segment 2 calculate object-DX
:LW =SINR
:LW =OFFS
:+F
:T -MW180 PARAMETER 1
:***
FW 180 = MW180 PARAMETER 1
Segment 3 open object-DX
FX 14 -FX14 HO504 FEED. HO A1 C:ZONE10ST.S5D LEN=131
Page 2
:DO -MW180 PARAMETER 1
:CX -DX 0 SYSTEM PARAMETER
:
:L KF +114
:T -MW180 PARAMETER 1
:
:JU -FB175 LOAD DW INDIR.
Name :LADE DW
DB : DW 0
DW : -MW180 PARAMETER 1
DBDX : KS DB
:T -MW18 STATUS FLAGS
:***
FW 180 = MW180 PARAMETER 1
FW 18 = MW18 STATUS FLAGS SCALE STATUS
FB 175 = FB175 LOAD DW INDIR. sp
DX 0 = DX 0 SYSTEM PARAMETER
Segment 4 load status
:L DW 1
:T -MW20 IND. OUTPUTS Silo
:***
FW 20 = MW20 IND. OUTPUTS Silo
Segment 5 dosing unit on
:A -M 18.0 SILO_NR_OK
:A -M 18.2 PRESSUR_BUILD_UP
:= -MA20.1 DOSING UNIT ON
:
:A -M 0.1 CONSTANT 1
:R -MA20.2 FREQ.CONV. REL. no freq. converter
:
:A -MA20.1 DOSING UNIT ON
:A -ME22.1 DOSING UNIT ON
:A -M 18.5 DOS_REL_SILO
:= -MA20.7 FRESH AIR V.CLOS *(2) new flag
:
:A -MA20.7 FRESH AIR V.CLOS *(2)
:A -ME22.7 FRESH AIR V.CLOS *(2)
:AN -ME23.7 FRESH AIR V.OPEN *(2)
:= -MA21.4 >DOS_RUNNING SIL
:***
F 18.0 = M 18.0 SILO_NR_OK
F 18.2 = M 18.2 PRESSUR_BUILD_UP
F 20.1 = MA20.1 DOSING UNIT ON
F 0.1 = M 0.1 CONSTANT 1
F 20.2 = MA20.2 FREQ.CONV. REL. *** not used
F 22.1 = ME22.1 DOSING UNIT ON
F 18.5 = M 18.5 DOS_REL_SILO
F 20.7 = MA20.7 FRESH AIR V.CLOS
F 22.7 = ME22.7 FRESH AIR V.CLOS
F 23.7 = ME23.7 FRESH AIR V.OPEN
F 21.4 = MA21.4 >DOS_RUNNING SIL
Segment 6 hopper empty
:LW =TIM1
:T FW 200
: --------------------------------
:JU -FB106 TRANSFER KF->KT
FX 14 -FX14 HO504 FEED. HO A1 C:ZONE10ST.S5D LEN=131
Page 3
Name :KF->KT
EINH : KF +2 convert empty time
EING : DW 16
AUSG : -MW186 DW_ADDRESS
: --------------------------------
:A -ME23.4 LID CLOSED
:A -MA21.4 >DOS_RUNNING SIL
:A -ME23.3 INDICATOR FREE
:L -MW186 DW_ADDRESS
:DO FW 200
:SD -T0 IND.ADDRES.(DUMMY)
:
:DO FW 200
:A -T0 IND.ADDRES.(DUMMY)
:= -MA21.5 >SILO EMPTY
:***
FW 186 = MW186 DW_ADDRESS
F 23.4 = ME23.4 LID CLOSED
F 21.4 = MA21.4 >DOS_RUNNING SIL
F 23.3 = ME23.3 INDICATOR FREE
T 0 = T0 IND.ADDRES.(DUMMY) standard
F 21.5 = MA21.5 >SILO EMPTY
FB 106 = FB106 TRANSFER KF->KT
Segment 7 timer vibration motor
:LW =TIM2
:T -MW180 PARAMETER 1
: --------------------------------
:JU -FB106 TRANSFER KF->KT
Name :KF->KT
EINH : KF +2 convert impulse time
EING : DW 12
AUSG : FW 202
: --------------------------------
:JU -FB106 TRANSFER KF->KT
Name :KF->KT
EINH : KF +2 convert break time
EING : DW 13
AUSG : FW 204
: --------------------------------
:***
FW 180 = MW180 PARAMETER 1
FB 106 = FB106 TRANSFER KF->KT
Segment 8 cycle vibration motor
:JU -FB113 CLOCK GENERAT.TIM
Name :TAKT
FRG : -MA21.4 >DOS_RUNNING SIL
T : -T0 IND.ADDRES.(DUMMY)
DWIM : FW 202
DWPA : FW 204
AUSG : -MA20.3 VIBRATOR ON
POS : -M 0.1 CONSTANT 1
DBT : -DB11 HO500 SCALE1:HO50X
RM : -ME22.3 VIBRATOR ON
T-IN : -MW180 PARAMETER 1
IN : KS IN
SOLL : KF +0
IST : FW 206
FERT : F 200.1
FX 14 -FX14 HO504 FEED. HO A1 C:ZONE10ST.S5D LEN=131
Page 4
BITL : FW 208
DAUE : -M 0.1 CONSTANT 1
DBST : -DB11 HO500 SCALE1:HO50X
:***
F 21.4 = MA21.4 >DOS_RUNNING SIL
T 0 = T0 IND.ADDRES.(DUMMY) standard
F 20.3 = MA20.3 VIBRATOR ON
F 0.1 = M 0.1 CONSTANT 1
F 22.3 = ME22.3 VIBRATOR ON
FW 180 = MW180 PARAMETER 1
DB 11 = DB11 HO500 SCALE1:HO50X HO500 area 1 scale 1: ingredient weighin
FB 113 = FB113 CLOCK GENERAT.TIM with nominal instruction HKT al
Segment 9 store status
:L -MW20 IND. OUTPUTS Silo
:T DW 1
:
:L -MW22 IND. INPUTs Silo
:T DW 2
:***
FW 20 = MW20 IND. OUTPUTS Silo
FW 22 = MW22 IND. INPUTs Silo
Segment 10
:BE
FX 15 -FX15 HO505 FEED. HO A1 C:ZONE10ST.S5D LEN=182
Page 1
Segment 1 dosing out of feeding hopper
*******************************************************************************
Beschreibung :
--------------
In diesem Baustein wird das Befuellen , sowie das Dosieren aus einem
Einfuelltrichter abgearbeitet.
Der Einfuelltrichter kann durch einen Big - Bag oder durch Saecke befuellt
werden.
Der Ruettler am Big-Bag Rahmen wird durch einen Taster zugeschaltet.
Mit dem Endschalter am Deckel oder durch einen Schalter , wird die Besaugung
aktiviert.
Die Dosierung aus dem Einfuelltrichter erfolgt durch eine Dosierrinne
*******************************************************************************
parameter :
-----------
SINR : silo number
TIM1 : Timer_1 ( cyle pocket purging )
TIM2 : Timer_2 ( cycle vibration motor )
TIM3 : Timer_3 ( cycle virbration motor big-bag )
TIM4 : Timer_4 ( reserve )
PWFU : analogue output for FC / Thyristor control
DBBE : object_DB_No for central suction
*******************************************************************************
Intern verwendete Bausteine :
-----------------------------
FB 108 Timer Nachbildung
FB 115 Taster ( 1. mal tasten ist ein 2. mal tasten ist aus )
FB 116 Taktgeber ( Taktger mit 1 Timer )
FB 175 Lade_DW
FB 176 Transformiere_DW
*******************************************************************************
Name :HOP-TYP3
Decl :SINR I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :OFFS I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM1 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM2 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM3 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM4 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
:***
Segment 2 calculate object-DX
:LW =SINR
:LW =OFFS
:+F
:T -MW180 PARAMETER 1
:***
FW 180 = MW180 PARAMETER 1
Segment 3 open object-DX
FX 15 -FX15 HO505 FEED. HO A1 C:ZONE10ST.S5D LEN=182
Page 2
:DO -MW180 PARAMETER 1
:CX -DX 0 SYSTEM PARAMETER
:
:L KF +114
:T -MW180 PARAMETER 1
:
:JU -FB175 LOAD DW INDIR.
Name :LADE DW
DB : DW 0
DW : -MW180 PARAMETER 1
DBDX : KS DB
:T -MW18 STATUS FLAGS
:***
FW 180 = MW180 PARAMETER 1
FW 18 = MW18 STATUS FLAGS SCALE STATUS
FB 175 = FB175 LOAD DW INDIR. sp
DX 0 = DX 0 SYSTEM PARAMETER
Segment 4 load status
:L DW 1
:T -MW20 IND. OUTPUTS Silo
:***
FW 20 = MW20 IND. OUTPUTS Silo
Segment 5 dosing unit on
:A -M 18.0 SILO_NR_OK
:A -M 18.2 PRESSUR_BUILD_UP
:= -MA20.1 DOSING UNIT ON
:
:A -MA20.1 DOSING UNIT ON
:A -ME22.1 DOSING UNIT ON
:A -M 18.5 DOS_REL_SILO
:= -MA21.1 BLOCK VALVE OPEN
:
:A -MA21.1 BLOCK VALVE OPEN
:A -ME23.1 BLOCK VALVE OPEN
:A -ME22.2 FREQ.CONV. READY
:= -MA20.2 FREQ.CONV. REL.
:= -MA21.4 >DOS_RUNNING SIL
:***
F 18.0 = M 18.0 SILO_NR_OK
F 18.2 = M 18.2 PRESSUR_BUILD_UP
F 20.1 = MA20.1 DOSING UNIT ON
F 22.1 = ME22.1 DOSING UNIT ON
F 18.5 = M 18.5 DOS_REL_SILO
F 21.1 = MA21.1 BLOCK VALVE OPEN
F 23.1 = ME23.1 BLOCK VALVE OPEN
F 22.2 = ME22.2 FREQ.CONV. READY
F 20.2 = MA20.2 FREQ.CONV. REL. *** not used
F 21.4 = MA21.4 >DOS_RUNNING SIL
Segment 6 timer pocket purging
:LW =TIM1
:T -MW180 PARAMETER 1
: --------------------------------
:JU -FB106 TRANSFER KF->KT
Name :KF->KT
EINH : KF +2 convert impulse time
EING : DW 10
FX 15 -FX15 HO505 FEED. HO A1 C:ZONE10ST.S5D LEN=182
Page 3
AUSG : FW 202
: --------------------------------
:JU -FB106 TRANSFER KF->KT
Name :KF->KT
EINH : KF +2 convert break time
EING : DW 11
AUSG : FW 204
: --------------------------------
:***
FW 180 = MW180 PARAMETER 1
FB 106 = FB106 TRANSFER KF->KT
Segment 7 cycle pocket purging
:JU -FB113 CLOCK GENERAT.TIM
Name :TAKT
FRG : -MA21.4 >DOS_RUNNING SIL
T : -T0 IND.ADDRES.(DUMMY)
DWIM : FW 202
DWPA : FW 204
AUSG : -MA21.2 POCKET PURGING
POS : -M 0.1 CONSTANT 1
DBT : -DB11 HO500 SCALE1:HO50X
RM : -MA21.2 POCKET PURGING
T-IN : -MW180 PARAMETER 1
IN : KS IN
SOLL : KF +0
IST : FW 206
FERT : F 200.1
BITL : FW 208
DAUE : -M 0.1 CONSTANT 1
DBST : -DB11 HO500 SCALE1:HO50X
:***
F 21.4 = MA21.4 >DOS_RUNNING SIL
T 0 = T0 IND.ADDRES.(DUMMY) standard
F 21.2 = MA21.2 POCKET PURGING
F 0.1 = M 0.1 CONSTANT 1
FW 180 = MW180 PARAMETER 1
DB 11 = DB11 HO500 SCALE1:HO50X HO500 area 1 scale 1: ingredient weighin
FB 113 = FB113 CLOCK GENERAT.TIM with nominal instruction HKT al
Segment 8 timer vibration motor
:LW =TIM2
:T -MW180 PARAMETER 1
: --------------------------------
:JU -FB106 TRANSFER KF->KT
Name :KF->KT
EINH : KF +2 convert impulse time
EING : DW 12
AUSG : FW 202
: --------------------------------
:JU -FB106 TRANSFER KF->KT
Name :KF->KT
EINH : KF +2 convert break time
EING : DW 13
AUSG : FW 204
: --------------------------------
:***
FW 180 = MW180 PARAMETER 1
FX 15 -FX15 HO505 FEED. HO A1 C:ZONE10ST.S5D LEN=182
Page 4
FB 106 = FB106 TRANSFER KF->KT
Segment 9 cycle vibration motor
:JU -FB113 CLOCK GENERAT.TIM
Name :TAKT
FRG : -MA21.4 >DOS_RUNNING SIL
T : -T0 IND.ADDRES.(DUMMY)
DWIM : FW 202
DWPA : FW 204
AUSG : -MA20.3 VIBRATOR ON
POS : -M 0.1 CONSTANT 1
DBT : -DB11 HO500 SCALE1:HO50X
RM : -ME22.3 VIBRATOR ON
T-IN : -MW180 PARAMETER 1
IN : KS IN
SOLL : KF +0
IST : FW 206
FERT : F 200.1
BITL : FW 208
DAUE : -M 0.1 CONSTANT 1
DBST : -DB11 HO500 SCALE1:HO50X
:***
F 21.4 = MA21.4 >DOS_RUNNING SIL
T 0 = T0 IND.ADDRES.(DUMMY) standard
F 20.3 = MA20.3 VIBRATOR ON
F 0.1 = M 0.1 CONSTANT 1
F 22.3 = ME22.3 VIBRATOR ON
FW 180 = MW180 PARAMETER 1
DB 11 = DB11 HO500 SCALE1:HO50X HO500 area 1 scale 1: ingredient weighin
FB 113 = FB113 CLOCK GENERAT.TIM with nominal instruction HKT al
Segment 10 timer vibration motor big-bag
:LW =TIM3
:T -MW180 PARAMETER 1
: --------------------------------
:JU -FB106 TRANSFER KF->KT
Name :KF->KT
EINH : KF +2 convert impulse time
EING : DW 14
AUSG : FW 202
: --------------------------------
:JU -FB106 TRANSFER KF->KT
Name :KF->KT
EINH : KF +2 convert break time
EING : DW 15
AUSG : FW 204
: --------------------------------
:A -MA21.4 >DOS_RUNNING SIL
:A -ME23.3 INDICATOR FREE
:= F 200.0 release vibrator big-bag
:***
FW 180 = MW180 PARAMETER 1
F 21.4 = MA21.4 >DOS_RUNNING SIL
F 23.3 = ME23.3 INDICATOR FREE
FB 106 = FB106 TRANSFER KF->KT
Segment 11 cycle vibration motor big-bag
:JU -FB113 CLOCK GENERAT.TIM
Name :TAKT
FX 15 -FX15 HO505 FEED. HO A1 C:ZONE10ST.S5D LEN=182
Page 5
FRG : F 200.0
T : -T0 IND.ADDRES.(DUMMY)
DWIM : FW 202
DWPA : FW 204
AUSG : -MA20.4 VIBRATOR BIG-BAG
POS : -M 0.1 CONSTANT 1
DBT : -DB11 HO500 SCALE1:HO50X
RM : -ME22.4 VIBRATOR BIG-BAG
T-IN : -MW180 PARAMETER 1
IN : KS IN
SOLL : KF +0
IST : FW 206
FERT : F 200.1
BITL : FW 208
DAUE : -M 0.1 CONSTANT 1
DBST : -DB11 HO500 SCALE1:HO50X
:***
T 0 = T0 IND.ADDRES.(DUMMY) standard
F 20.4 = MA20.4 VIBRATOR BIG-BAG
F 0.1 = M 0.1 CONSTANT 1
F 22.4 = ME22.4 VIBRATOR BIG-BAG
FW 180 = MW180 PARAMETER 1
DB 11 = DB11 HO500 SCALE1:HO50X HO500 area 1 scale 1: ingredient weighin
FB 113 = FB113 CLOCK GENERAT.TIM with nominal instruction HKT al
Segment 12 store status
:L -MW20 IND. OUTPUTS Silo
:T DW 1
:
:L -MW22 IND. INPUTs Silo
:T DW 2
:***
FW 20 = MW20 IND. OUTPUTS Silo
FW 22 = MW22 IND. INPUTs Silo
Segment 13
:BE
FX 30 -FX30 DR540 DRYER A 2&3 C:ZONE10ST.S5D LEN=125
Page 1
Segment 1 dosing out of dryer silo
*******************************************************************************
Beschreibung :
--------------
In diesem Baustein wird das Befuellen , sowie das Dosieren aus einem
Einfuelltrichter abgearbeitet.
Der Einfuelltrichter kann durch einen Big - Bag oder durch Saecke befuellt
werden.
Der Ruettler am Big-Bag Rahmen wird durch einen Taster zugeschaltet.
Mit dem Endschalter am Deckel oder durch einen Schalter , wird die Besaugung
aktiviert.
Die Dosierung aus dem Einfuelltrichter erfolgt durch eine Dosierrinne
*******************************************************************************
Parameter :
-----------
SINR : silo number
TIM1 : timer_1 ( delay time silo empty )
TIM2 : timer_2 ( reserve )
TIM3 : timer_3 ( reserve )
TIM4 : timer_4 ( reserve )
PWFU : analogue output for FC / Thyristor control
DBBE : object_DB_No for central suction
*******************************************************************************
Intern verwendete Bausteine :
-----------------------------
FB 108 Timer Nachbildung
FB 115 Taster ( 1. mal tasten ist ein 2. mal tasten ist aus )
FB 116 Taktgeber ( Taktger mit 1 Timer )
FB 175 Lade_DW
FB 176 Transformiere_DW
*******************************************************************************
Name :DRYER SI
Decl :SINR I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :OFFS I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM1 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM2 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM3 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM4 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :PWFU I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
:***
Segment 2 calculate object-DX
:LW =SINR
:LW =OFFS
:+F
:T -MW180 PARAMETER 1
:***
FW 180 = MW180 PARAMETER 1
FX 30 -FX30 DR540 DRYER A 2&3 C:ZONE10ST.S5D LEN=125
Page 2
Segment 3 open object-DX
:DO -MW180 PARAMETER 1
:CX -DX 0 SYSTEM PARAMETER
:
:L KF +114
:T -MW180 PARAMETER 1
:
:JU -FB175 LOAD DW INDIR.
Name :LADE DW
DB : DW 0
DW : -MW180 PARAMETER 1
DBDX : KS DB
:T -MW18 STATUS FLAGS
:***
FW 180 = MW180 PARAMETER 1
FW 18 = MW18 STATUS FLAGS SCALE STATUS
FB 175 = FB175 LOAD DW INDIR. sp
DX 0 = DX 0 SYSTEM PARAMETER
Segment 4 read status
:L DW 1
:T -MW20 IND. OUTPUTS Silo
:***
FW 20 = MW20 IND. OUTPUTS Silo
Segment 5 rotary feeder
:A -M 18.0 SILO_NR_OK
:A -M 18.3 SILO_OCCUPIED_OK
:A -ME23.2 SAFETY SWITCH OK
:= -MA20.1 DOSING UNIT ON
:***
F 18.0 = M 18.0 SILO_NR_OK
F 18.3 = M 18.3 SILO_OCCUPIED_OK
F 23.2 = ME23.2 SAFETY SWITCH OK
F 20.1 = MA20.1 DOSING UNIT ON
Segment 6 release frequency converter
:A -M 18.5 DOS_REL_SILO
:A -ME22.1 DOSING UNIT ON
:A -ME22.2 FREQ.CONV. READY
:= -MA20.2 FREQ.CONV. REL.
:= -MA21.4 >DOS_RUNNING SIL
:***
F 18.5 = M 18.5 DOS_REL_SILO
F 22.1 = ME22.1 DOSING UNIT ON
F 22.2 = ME22.2 FREQ.CONV. READY
F 20.2 = MA20.2 FREQ.CONV. REL. *** not used
F 21.4 = MA21.4 >DOS_RUNNING SIL
Segment 7 load speed dosing screw
:L KF +146
:T -MW182 PARAMETER 2
:
:JU -FB175 LOAD DW INDIR.
Name :LADE DW
DB : DW 0
DW : -MW182 PARAMETER 2
DBDX : KS DB
FX 30 -FX30 DR540 DRYER A 2&3 C:ZONE10ST.S5D LEN=125
Page 3
:T DW 7
:***
FW 182 = MW182 PARAMETER 2
FB 175 = FB175 LOAD DW INDIR. sp
Segment 8 frequency converter
:LW =PWFU
:T -MW182 PARAMETER 2
:
:JU -FB251 WRIT ANALOG VALUE
Name :AN-AUS
APW : -MW182 PARAMETER 2
OG : KG +1000000+04
UG : KG +0000000+00
AMAX : KF +1024
AMIN : KF +0
WERG : FD 192
WERT : DW 7
G/F : KS F
IN : KS IN
FORM : KS ..
:
:***
FW 182 = MW182 PARAMETER 2
FB 251 = FB251 WRIT ANALOG VALUE
Segment 9 convert empty time
:LW =TIM1
:T FW 200
: --------------------------------
:JU -FB106 TRANSFER KF->KT
Name :KF->KT
EINH : KF +2 convert empty time
EING : DW 16
AUSG : -MW186 DW_ADDRESS
: --------------------------------
:***
FW 186 = MW186 DW_ADDRESS
FB 106 = FB106 TRANSFER KF->KT
Segment 10 silo empty
:A -ME23.6 DRYER_DISCH ON *(2) new flag
:A -MA21.4 >DOS_RUNNING SIL
:A -ME23.2 SAFETY SWITCH OK
:A -ME23.3 INDICATOR FREE
:L -MW186 DW_ADDRESS
:DO FW 200
:SD -T0 IND.ADDRES.(DUMMY)
:
:DO FW 200
:A -T0 IND.ADDRES.(DUMMY)
:= -MA21.5 >SILO EMPTY
:***
F 23.6 = ME23.6 DRYER_DISCH ON
F 21.4 = MA21.4 >DOS_RUNNING SIL
F 23.2 = ME23.2 SAFETY SWITCH OK
F 23.3 = ME23.3 INDICATOR FREE
FX 30 -FX30 DR540 DRYER A 2&3 C:ZONE10ST.S5D LEN=125
Page 4
FW 186 = MW186 DW_ADDRESS
T 0 = T0 IND.ADDRES.(DUMMY) standard
F 21.5 = MA21.5 >SILO EMPTY
Segment 11 store status
:L -MW20 IND. OUTPUTS Silo
:T DW 1
:
:L -MW22 IND. INPUTs Silo
:T DW 2
:***
FW 20 = MW20 IND. OUTPUTS Silo
FW 22 = MW22 IND. INPUTs Silo
Segment 12
:BE
FX 31 C:ZONE10ST.S5D LEN=66
Page 1
Segment 1 Dosieren aus Einfuelltrichter
*******************************************************************************
Beschreibung :
--------------
In diesem Baustein wird das Befuellen , sowie das Dosieren aus einem
Einfuelltrichter abgearbeitet.
Der Einfuelltrichter kann durch einen Big - Bag oder durch Saecke befuellt
werden.
Der Ruettler am Big-Bag Rahmen wird durch einen Taster zugeschaltet.
Mit dem Endschalter am Deckel oder durch einen Schalter , wird die Besaugung
aktiviert.
Die Dosierung aus dem Einfuelltrichter erfolgt durch eine Dosierrinne
*******************************************************************************
Parameter :
-----------
SINR : Silonummer
TIM1 : Timer_1 ( Takt fuer Vibrator Big - Bag )
TIM2 : Timer_2 ( Reserve )
TIM3 : Timer_3 ( Reserve )
TIM4 : Timer_4 ( Reserve )
PWFU : Analogausgang fuer FU / Thyristorsteuerung
DBBE : Objekt_DB_NR fuer Zenrtalbesaugung
*******************************************************************************
Intern verwendete Bausteine :
-----------------------------
FB 108 Timer Nachbildung
FB 115 Taster ( 1. mal tasten ist ein 2. mal tasten ist aus )
FB 116 Taktgeber ( Taktger mit 1 Timer )
FB 175 Lade_DW
FB 176 Transformiere_DW
*******************************************************************************
Name :HOP-TYP4
Decl :SINR I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :OFFS I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM1 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM2 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM3 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM4 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
:***
Segment 2 Objekt DX berechnen
:LW =SINR
:LW =OFFS
:+F
:T -MW180 PARAMETER 1
:***
FW 180 = MW180 PARAMETER 1
Segment 3 Objekt DX oeffnen
FX 31 C:ZONE10ST.S5D LEN=66
Page 2
:DO -MW180 PARAMETER 1
:CX -DX 0 SYSTEM PARAMETER
:
:L KF +114
:T -MW180 PARAMETER 1
:
:JU -FB175 LOAD DW INDIR.
Name :LADE DW
DB : DW 0
DW : -MW180 PARAMETER 1
DBDX : KS DB
:T -MW18 STATUS FLAGS
:***
FW 180 = MW180 PARAMETER 1
FW 18 = MW18 STATUS FLAGS SCALE STATUS
FB 175 = FB175 LOAD DW INDIR. sp
DX 0 = DX 0 SYSTEM PARAMETER
Segment 4 Status einlesen
:L DW 1
:T -MW20 IND. OUTPUTS Silo
:***
FW 20 = MW20 IND. OUTPUTS Silo
Segment 5
:A -M 18.5 DOS_REL_SILO
:= -MA20.5 DOSING FEEDER ON
:
:A -MA20.5 DOSING FEEDER ON
:A -ME22.5 DOSING FEEDER ON
:= -MA21.4 >DOS_RUNNING SIL
:***
F 18.5 = M 18.5 DOS_REL_SILO
F 20.5 = MA20.5 DOSING FEEDER ON
F 22.5 = ME22.5 DOSING FEEDER ON
F 21.4 = MA21.4 >DOS_RUNNING SIL
Segment 6 Status abspeichern
:L -MW20 IND. OUTPUTS Silo
:T DW 1
:
:L -MW22 IND. INPUTs Silo
:T DW 2
:***
FW 20 = MW20 IND. OUTPUTS Silo
FW 22 = MW22 IND. INPUTs Silo
Segment 7
:BE
FX 32 C:ZONE10ST.S5D LEN=66
Page 1
Segment 1 Dosieren aus Einfuelltrichter
*******************************************************************************
Beschreibung :
--------------
In diesem Baustein wird das Befuellen , sowie das Dosieren aus einem
Einfuelltrichter abgearbeitet.
Der Einfuelltrichter kann durch einen Big - Bag oder durch Saecke befuellt
werden.
Der Ruettler am Big-Bag Rahmen wird durch einen Taster zugeschaltet.
Mit dem Endschalter am Deckel oder durch einen Schalter , wird die Besaugung
aktiviert.
Die Dosierung aus dem Einfuelltrichter erfolgt durch eine Dosierrinne
*******************************************************************************
Parameter :
-----------
SINR : Silonummer
TIM1 : Timer_1 ( Takt fuer Vibrator Big - Bag )
TIM2 : Timer_2 ( Reserve )
TIM3 : Timer_3 ( Reserve )
TIM4 : Timer_4 ( Reserve )
PWFU : Analogausgang fuer FU / Thyristorsteuerung
DBBE : Objekt_DB_NR fuer Zenrtalbesaugung
*******************************************************************************
Intern verwendete Bausteine :
-----------------------------
FB 108 Timer Nachbildung
FB 115 Taster ( 1. mal tasten ist ein 2. mal tasten ist aus )
FB 116 Taktgeber ( Taktger mit 1 Timer )
FB 175 Lade_DW
FB 176 Transformiere_DW
*******************************************************************************
Name :HOP-TYP4
Decl :SINR I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :OFFS I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM1 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM2 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM3 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIM4 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
:***
Segment 2 Objekt DX berechnen
:LW =SINR
:LW =OFFS
:+F
:T -MW180 PARAMETER 1
:***
FW 180 = MW180 PARAMETER 1
Segment 3 Objekt DX oeffnen
FX 32 C:ZONE10ST.S5D LEN=66
Page 2
:DO -MW180 PARAMETER 1
:CX -DX 0 SYSTEM PARAMETER
:
:L KF +114
:T -MW180 PARAMETER 1
:
:JU -FB175 LOAD DW INDIR.
Name :LADE DW
DB : DW 0
DW : -MW180 PARAMETER 1
DBDX : KS DB
:T -MW18 STATUS FLAGS
:***
FW 180 = MW180 PARAMETER 1
FW 18 = MW18 STATUS FLAGS SCALE STATUS
FB 175 = FB175 LOAD DW INDIR. sp
DX 0 = DX 0 SYSTEM PARAMETER
Segment 4 Status einlesen
:L DW 1
:T -MW20 IND. OUTPUTS Silo
:***
FW 20 = MW20 IND. OUTPUTS Silo
Segment 5
:A -M 18.5 DOS_REL_SILO
:= -MA20.5 DOSING FEEDER ON
:
:A -MA20.5 DOSING FEEDER ON
:A -ME22.5 DOSING FEEDER ON
:= -MA21.4 >DOS_RUNNING SIL
:***
F 18.5 = M 18.5 DOS_REL_SILO
F 20.5 = MA20.5 DOSING FEEDER ON
F 22.5 = ME22.5 DOSING FEEDER ON
F 21.4 = MA21.4 >DOS_RUNNING SIL
Segment 6 Status abspeichern
:L -MW20 IND. OUTPUTS Silo
:T DW 1
:
:L -MW22 IND. INPUTs Silo
:T DW 2
:***
FW 20 = MW20 IND. OUTPUTS Silo
FW 22 = MW22 IND. INPUTs Silo
Segment 7
:BE
FX 100 -FX100 PHASE-L EMPTY C:ZONE10ST.S5D LEN=418
Page 1
Segment 1
*****************************************************************************
BESCHREIBUNG :
---------------
Dieser Baustein setzt das PLI ( Phase Logic Interface ) von Open - Batch
auf die Schnittstelle HsH - PC zur SPS - Waage ( DB 210 ) um
******************************************************************************
PARAMETER :
-----------
PLDX : Nr. des DX Datenbaustein fuer PLI
OFFS : Offset fuer PLI Anfang
WZNR : Zaehlnummer der SPS - Waage
DBPC : Datenbaustein fuer Schnittstelle PC - SPS Waage
DBST : Steuerdatenbaustein PC - SPS Waage
AUTO : Automatik - Mode
******************************************************************************
Name :PL-SS-EM
Decl :PLDX I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :OFFS I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :WZNR I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :EMPY I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :UNID I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :TDDP I/Q/D/B/T/C: T
:***
Segment 2 PLI DX oeffnen
:LW =PLDX
:T -MW188 ADDR_OBJECT_DB/DX
:DO -MW188 ADDR_OBJECT_DB/DX
:CX -DX 0 SYSTEM PARAMETER
:***
FW 188 = MW188 ADDR_OBJECT_DB/DX
DX 0 = DX 0 SYSTEM PARAMETER
Segment 3 Load Control bits PLI
:LW =OFFS
:L KF +10
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 168_OUT_PLI Ausgangsbitleiste von PLI
: --------------------------------
:L -MW186 DW_ADDRESS
:L KF +1
:+F
:T -MW186 DW_ADDRESS 11
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 166_IN_PLI Eingangsbitleiste von PLI
: --------------------------------
:***
FX 100 -FX100 PHASE-L EMPTY C:ZONE10ST.S5D LEN=418
Page 2
FW 186 = MW186 DW_ADDRESS
FW 168 = MW 168_OUT_PLI Ausgangssteuerbitleiste von PLI
FW 166 = MW 166_IN_PLI Eingangsbitleiste an PLI
Segment 4 Load Status bits PLI / Unit idle
:LW =OFFS
:L KF +19
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 160_STATUS_PL Status bits PLI
: --------------------------------
:JU =M001 !!!!!!!!!!!!! TEST !!!!!!!!!!!!!
:A -MO169.4 START_BY_PLI
:AN =UNID
:R -MO169.4 START_BY_PLI
:S -MI167.4 IDLE(ready)
M001 :***
FW 186 = MW186 DW_ADDRESS
FW 160 = MW 160_STATUS_PL
F 169.4 = MO169.4 START_BY_PLI
F 167.4 = MI167.4 IDLE(ready)
Segment 5 Request registers
:LW =OFFS
:T -MW 152 PHASE_REQUEST
:
:L -MW 152 PHASE_REQUEST
:I 13
:T -MW 154 REQ_DATA1
:
:L -MW 152 PHASE_REQUEST
:I 14
:T -MW 156 REQ_DATA2
:
:L -MW 152 PHASE_REQUEST
:I 12
:T -MW 158 PHASE_ST_FAILURE
:
:L KF +0
:DO -MW 158 PHASE_ST_FAILURE
:T DW 0 reset stored failure
:***
FW 152 = MW 152 PHASE_REQUEST
FW 154 = MW 154 REQ_DATA1
FW 156 = MW 156 REQ_DATA2
FW 158 = MW 158 PHASE_ST_FAILURE
Segment 6 Operator confirm
:DO -MW 152 PHASE_REQUEST
:L DW 0
:L KF +1200
:>=F
:= -MS161.4 ! OPER_CONFRM !
:***
FW 152 = MW 152 PHASE_REQUEST
F 161.4 = MS161.4 ! OPER_CONFRM !
Segment 7 Request in work
:DO -MW 152 PHASE_REQUEST
FX 100 -FX100 PHASE-L EMPTY C:ZONE10ST.S5D LEN=418
Page 3
:L DW 0
:L KF +6000
:!=F
:= F 200.0 RQ 6000
:R -MI167.6 RQ_IN_WORK
:DO -MW 152 PHASE_REQUEST
:L DW 0
:L KF +1000
:>=F
:AN F 200.0 RQ 6000
:S -MI167.6 RQ_IN_WORK
:JC =M001
:
:L KF +0
:DO -MW 154 REQ_DATA1
:T DW 0
:DO -MW 156 REQ_DATA2
:T DW 0
M001 :***
FW 152 = MW 152 PHASE_REQUEST
F 167.6 = MI167.6 RQ_IN_WORK
FW 154 = MW 154 REQ_DATA1
FW 156 = MW 156 REQ_DATA2
Segment 8 Complete
:L -MW 152 PHASE_REQUEST
:L KF +4
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:L KF +70
:!=F
:S -MI167.1 COMPLETE
:
:AN -MO169.4 START_BY_PLI
:JC =M001
:
:AN -M 0.1 CONSTANT 1
:SD =TDDP
M001 :***
FW 152 = MW 152 PHASE_REQUEST
FW 186 = MW186 DW_ADDRESS
F 167.1 = MI167.1 COMPLETE
F 169.4 = MO169.4 START_BY_PLI
F 0.1 = M 0.1 CONSTANT 1
Segment 9 start sequence
:L -MW 152 PHASE_REQUEST
:L KF +3
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 150 PHASE_STEP_INDEX
:
:AN -MO169.4 START_BY_PLI
:AN F 200.0 RQ 6000
:JC =M001
:
:L KF +0
:T -MW 160_STATUS_PL
FX 100 -FX100 PHASE-L EMPTY C:ZONE10ST.S5D LEN=418
Page 4
:
:AN -MO169.4 START_BY_PLI
:JC =M001
:L KF +10
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 152 = MW 152 PHASE_REQUEST
FW 186 = MW186 DW_ADDRESS
FW 150 = MW 150 PHASE_STEP_INDEX
F 169.4 = MO169.4 START_BY_PLI
FW 160 = MW 160_STATUS_PL
Segment 10 Step 10: load para
:L -MW 150 PHASE_STEP_INDEX
:L KF +10
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:A -MS160.0 STP 10: ACTIVE
:JC =M002
:L KF +1
:DO -MW 154 REQ_DATA1
:T DW 0
:DO -MW 156 REQ_DATA2
:T DW 0
:
:A -M 0.1 CONSTANT 1
:L KT 003.2
:SD =TDDP
:
:AN =TDDP
:JC =M001
:L KF +1103
:DO -MW 152 PHASE_REQUEST
:T DW 0
:
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
:S -MS160.0 STP 10: ACTIVE
:AN -M 0.1 CONSTANT 1
:SD =TDDP
:JU =M001
M002 :
:L -MW 152 PHASE_REQUEST
:I 40
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:O -MS161.7 STP 10:HOLD_ACT
:JC =M003
:DO -MW 158 PHASE_ST_FAILURE
:T DW 0
:
:AN -MS161.7 STP 10:HOLD_ACT
:S -MS161.7 STP 10:HOLD_ACT
:JU =M001
:
:A -M 0.1 CONSTANT 1
M003 :R -MS160.0 STP 10: ACTIVE
:R -MS161.7 STP 10:HOLD_ACT
FX 100 -FX100 PHASE-L EMPTY C:ZONE10ST.S5D LEN=418
Page 5
:
:L KF +20
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 160.0 = MS160.0 STP 10: ACTIVE
FW 154 = MW 154 REQ_DATA1
FW 156 = MW 156 REQ_DATA2
F 0.1 = M 0.1 CONSTANT 1
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 161.7 = MS161.7 STP 10:HOLD_ACT
FW 158 = MW 158 PHASE_ST_FAILURE
Segment 11 Step 20: confirm empty or overri
:L -MW 150 PHASE_STEP_INDEX
:L KF +20
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:A -MS160.1 STP 20: ACTIVE
:JC =M002
:L -MW 152 PHASE_REQUEST
:I 42
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F empty confirm not required !
:A =EMPY and empty
:JC =M003 no confirms !
:
:A =EMPY
:L KF +1205
:JC =M004
:L KF +1204
M004 :DO -MW 152 PHASE_REQUEST
:T DW 0
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
M003 :S -MS160.1 STP 20: ACTIVE
:JU =M001
M002 :
:A -M 0.1 CONSTANT 1
:R -MS160.1 STP 20: ACTIVE
:
:L KF +30
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 160.1 = MS160.1 STP 20: ACTIVE
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 0.1 = M 0.1 CONSTANT 1
Segment 12 Step 30: Upload reports
:L -MW 150 PHASE_STEP_INDEX
FX 100 -FX100 PHASE-L EMPTY C:ZONE10ST.S5D LEN=418
Page 6
:L KF +30
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:AN -MS160.2 STP 30: ACTIVE
:S -MS160.2 STP 30: ACTIVE
:JC =M001
: Upload fin. after complete
:L -MW 152 PHASE_REQUEST
:I 41
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:JC =M002
:L KF +2 Hold at end
:DO -MW 158 PHASE_ST_FAILURE
:T DW 0
:
:A -M 0.1 CONSTANT 1
M002 :R -MS160.2 STP 30: ACTIVE
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 160.2 = MS160.2 STP 30: ACTIVE
FW 152 = MW 152 PHASE_REQUEST
FW 158 = MW 158 PHASE_ST_FAILURE
F 0.1 = M 0.1 CONSTANT 1
Segment 13 Control bits PLI
:A =UNID
:= -MS161.5 !! UNIT IDLE !!
:
:A -MO169.4 START_BY_PLI
:AN -MO169.0 ABORTING_BY_PLI
:AN -MO169.2 STOPPING_BY_PLI
:S -MI167.5 PLI_RUNNING
:
:A -MO169.0 ABORTING_BY_PLI
:S -MI167.3 ABORTED
:
:A -MO169.1 HOLDING_BY_PLI
:S -MI167.0 HELD
:
:A -MO169.3 RESTART_BY_PLI
:S -MI166.3 RESTART_COMPL
:***
F 161.5 = MS161.5 !! UNIT IDLE !!
F 169.4 = MO169.4 START_BY_PLI
F 169.0 = MO169.0 ABORTING_BY_PLI
F 169.2 = MO169.2 STOPPING_BY_PLI
F 167.5 = MI167.5 PLI_RUNNING
F 167.3 = MI167.3 ABORTED
F 169.1 = MO169.1 HOLDING_BY_PLI
F 167.0 = MI167.0 HELD
F 169.3 = MO169.3 RESTART_BY_PLI
F 166.3 = MI166.3 RESTART_COMPL
Segment 14 Control bits PLI
FX 100 -FX100 PHASE-L EMPTY C:ZONE10ST.S5D LEN=418
Page 7
:A -MO169.2 STOPPING_BY_PLI
:AN -MI167.6 RQ_IN_WORK
:AN -MI167.2 STOPPED
:S -MI166.1 RQ_2000 ULall
:S -MI167.2 STOPPED
:
:O -MO169.0 ABORTING_BY_PLI
:O -MO169.2 STOPPING_BY_PLI
:R -MS160.2 STP 30: ACTIVE
:
:A -MI167.5 PLI_RUNNING
:A -MS160.2 STP 30: ACTIVE
:S -MI167.1 COMPLETE
:O -MO169.0 ABORTING_BY_PLI
:O -MO169.1 HOLDING_BY_PLI om 169.1
:O -MO169.2 STOPPING_BY_PLI
:O -MO169.4 START_BY_PLI
:R -MI167.1 COMPLETE
:***
F 169.2 = MO169.2 STOPPING_BY_PLI
F 167.6 = MI167.6 RQ_IN_WORK
F 167.2 = MI167.2 STOPPED
F 166.1 = MI166.1 RQ_2000 ULall
F 169.0 = MO169.0 ABORTING_BY_PLI
F 160.2 = MS160.2 STP 30: ACTIVE
F 167.5 = MI167.5 PLI_RUNNING
F 167.1 = MI167.1 COMPLETE
F 169.1 = MO169.1 HOLDING_BY_PLI
F 169.4 = MO169.4 START_BY_PLI
Segment 15 PLI DX
:LW =PLDX
:T -MW188 ADDR_OBJECT_DB/DX
:DO -MW188 ADDR_OBJECT_DB/DX
:CX -DX 0 SYSTEM PARAMETER
:***
FW 188 = MW188 ADDR_OBJECT_DB/DX
DX 0 = DX 0 SYSTEM PARAMETER
Segment 16 Store step number
:LW =OFFS
:L KF +3
:+F
:T -MW186 DW_ADDRESS
:
:L -MW 150 PHASE_STEP_INDEX
:DO -MW186 DW_ADDRESS
:T DW 0
:***
FW 186 = MW186 DW_ADDRESS
FW 150 = MW 150 PHASE_STEP_INDEX
Segment 17 Store Control bits PLI
:LW =OFFS
:L KF +11
:+F
:T -MW186 DW_ADDRESS
:
:L -MW 166_IN_PLI
:DO -MW186 DW_ADDRESS
FX 100 -FX100 PHASE-L EMPTY C:ZONE10ST.S5D LEN=418
Page 8
:T DW 0
:
:LW =OFFS
:L KF +19
:+F
:T -MW186 DW_ADDRESS
:
:L -MW 160_STATUS_PL
:DO -MW186 DW_ADDRESS
:T DW 0
:***
FW 186 = MW186 DW_ADDRESS
FW 166 = MW 166_IN_PLI Eingangsbitleiste an PLI
FW 160 = MW 160_STATUS_PL
Segment 18 Reports to PLI
:LW =WZNR
:L KF +100
:+F
:T FW 190
:
:L KF +198
:T FW 192
:
:L KF +38
:T FW 194
:
:L KF +2
:T FW 196
:***
Segment 19 Record report
:AN -MI167.5 PLI_RUNNING
:R -MS160.2 STP 30: ACTIVE
:
:O -MS160.2 STP 30: ACTIVE
:O -MO169.2 STOPPING_BY_PLI
:AN -MI167.6 RQ_IN_WORK
:JC -FB173 COPY BLOCK
Name :COPY DKF
QUEL : KS DB DB
DB-Q : FW 190 10X
VON : FW 192 198
BIS : FW 192
ZIEL : KS DB DB
DB-Z : FW 190 10X
NACH : FW 194 38
FEHL : -M 0.0 IND.ADDRES(DUMMY)
LAEN : FW 196 2 DW's
L-B : KS LA
:***
F 167.5 = MI167.5 PLI_RUNNING
F 160.2 = MS160.2 STP 30: ACTIVE
F 169.2 = MO169.2 STOPPING_BY_PLI
F 167.6 = MI167.6 RQ_IN_WORK
F 0.0 = M 0.0 IND.ADDRES(DUMMY)
FB 173 = FB173 COPY BLOCK parameter: EW sp
Segment 20 Reports to PLI
:L -MW 152 PHASE_REQUEST
FX 100 -FX100 PHASE-L EMPTY C:ZONE10ST.S5D LEN=418
Page 9
:L KF +44
:+F
:T FW 198
:O -MS160.2 STP 30: ACTIVE
:O -MO169.2 STOPPING_BY_PLI
:AN -MI167.6 RQ_IN_WORK
:JC -FB173 COPY BLOCK
Name :COPY DKF
QUEL : KS DB DB
DB-Q : FW 190 10X
VON : FW 192 198
BIS : FW 192
ZIEL : KS DX DX
DB-Z : -MW188 ADDR_OBJECT_DB/DX
NACH : FW 198 44
FEHL : -M 0.0 IND.ADDRES(DUMMY)
LAEN : FW 196 2 DW's
L-B : KS LA
:BE
FW 152 = MW 152 PHASE_REQUEST
F 160.2 = MS160.2 STP 30: ACTIVE
F 169.2 = MO169.2 STOPPING_BY_PLI
F 167.6 = MI167.6 RQ_IN_WORK
FW 188 = MW188 ADDR_OBJECT_DB/DX
F 0.0 = M 0.0 IND.ADDRES(DUMMY)
FB 173 = FB173 COPY BLOCK parameter: EW sp
FX 101 -FX101 PHASE-L ING_ADD C:ZONE10ST.S5D LEN=470
Page 1
Segment 1
*****************************************************************************
BESCHREIBUNG :
---------------
Dieser Baustein setzt das PLI ( Phase Logic Interface ) von Open - Batch
auf die Schnittstelle HsH - PC zur SPS - Waage ( DB 210 ) um
******************************************************************************
PARAMETER :
-----------
PLDX : Nr. des DX Datenbaustein fuer PLI
OFFS : Offset fuer PLI Anfang
WZNR : Zaehlnummer der SPS - Waage
DBPC : Datenbaustein fuer Schnittstelle PC - SPS Waage
DBST : Steuerdatenbaustein PC - SPS Waage
AUTO : Automatik - Mode
******************************************************************************
Name :PL-SS-IA
Decl :PLDX I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :OFFS I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :WADB I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :EOSI I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :UNID I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :REPO I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :TDDP I/Q/D/B/T/C: T
:***
Segment 2 PLI DX oeffnen
:LW =PLDX
:T -MW188 ADDR_OBJECT_DB/DX
:DO -MW188 ADDR_OBJECT_DB/DX
:CX -DX 0 SYSTEM PARAMETER
:***
FW 188 = MW188 ADDR_OBJECT_DB/DX
DX 0 = DX 0 SYSTEM PARAMETER
Segment 3 Load Control bits PLI
:LW =OFFS
:L KF +10
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 168_OUT_PLI Ausgangsbitleiste von PLI
: --------------------------------
:L -MW186 DW_ADDRESS
:L KF +1
:+F
:T -MW186 DW_ADDRESS 11
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 166_IN_PLI Eingangsbitleiste von PLI
: --------------------------------
:***
FX 101 -FX101 PHASE-L ING_ADD C:ZONE10ST.S5D LEN=470
Page 2
FW 186 = MW186 DW_ADDRESS
FW 168 = MW 168_OUT_PLI Ausgangssteuerbitleiste von PLI
FW 166 = MW 166_IN_PLI Eingangsbitleiste an PLI
Segment 4 Load Status bits PLI/ Unit idle
:LW =OFFS
:L KF +19
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 160_STATUS_PL Status bits PLI
: --------------------------------
:JU =M001 !!!!!!!!! TEST !!!!!!!!!!!!!!!!!
:A -MO169.4 START_BY_PLI
:AN =UNID
:R -MO169.4 START_BY_PLI
:S -MI167.4 IDLE(ready)
M001 :***
FW 186 = MW186 DW_ADDRESS
FW 160 = MW 160_STATUS_PL
F 169.4 = MO169.4 START_BY_PLI
F 167.4 = MI167.4 IDLE(ready)
Segment 5 Request registers
:LW =OFFS
:T -MW 152 PHASE_REQUEST
:
:L -MW 152 PHASE_REQUEST
:I 13
:T -MW 154 REQ_DATA1
:
:L -MW 152 PHASE_REQUEST
:I 14
:T -MW 156 REQ_DATA2
:
:L -MW 152 PHASE_REQUEST
:I 12
:T -MW 158 PHASE_ST_FAILURE
:
:L KF +0
:DO -MW 158 PHASE_ST_FAILURE
:T DW 0 reset stored failure
:***
FW 152 = MW 152 PHASE_REQUEST
FW 154 = MW 154 REQ_DATA1
FW 156 = MW 156 REQ_DATA2
FW 158 = MW 158 PHASE_ST_FAILURE
Segment 6 Operator confirm
:DO -MW 152 PHASE_REQUEST
:L DW 0
:L KF +1200
:>=F
:= -MS161.4 ! OPER_CONFRM !
:***
FW 152 = MW 152 PHASE_REQUEST
F 161.4 = MS161.4 ! OPER_CONFRM !
Segment 7 Request in work
:DO -MW 152 PHASE_REQUEST
FX 101 -FX101 PHASE-L ING_ADD C:ZONE10ST.S5D LEN=470
Page 3
:L DW 0
:L KF +6000
:!=F
:= F 200.0 RQ 6000
:R -MI167.6 RQ_IN_WORK
:DO -MW 152 PHASE_REQUEST
:L DW 0
:L KF +1000
:>=F
:AN F 200.0 RQ 6000
:S -MI167.6 RQ_IN_WORK
:JC =M001
:
:L KF +0
:DO -MW 154 REQ_DATA1
:T DW 0
:DO -MW 156 REQ_DATA2
:T DW 0
M001 :***
FW 152 = MW 152 PHASE_REQUEST
F 167.6 = MI167.6 RQ_IN_WORK
FW 154 = MW 154 REQ_DATA1
FW 156 = MW 156 REQ_DATA2
Segment 8 Complete / Reports ?
:L -MW 152 PHASE_REQUEST
:L KF +4
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:L KF +70
:!=F
:S -MI167.1 COMPLETE
:
:AN -MO169.4 START_BY_PLI
:JC =M001
:
:A -M 0.1 CONSTANT 1
:S =REPO
:
:AN -M 0.1 CONSTANT 1
:SD =TDDP
M001 :***
FW 152 = MW 152 PHASE_REQUEST
FW 186 = MW186 DW_ADDRESS
F 167.1 = MI167.1 COMPLETE
F 169.4 = MO169.4 START_BY_PLI
F 0.1 = M 0.1 CONSTANT 1
Segment 9 start sequence
:L -MW 152 PHASE_REQUEST
:L KF +3
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 150 PHASE_STEP_INDEX
:
:AN -MO169.4 START_BY_PLI
:AN F 200.0 RQ 6000
:JC =M001
FX 101 -FX101 PHASE-L ING_ADD C:ZONE10ST.S5D LEN=470
Page 4
:
:L KF +0
:T -MW 160_STATUS_PL
:
:AN -MO169.4 START_BY_PLI
:JC =M001
:L KF +5
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 152 = MW 152 PHASE_REQUEST
FW 186 = MW186 DW_ADDRESS
FW 150 = MW 150 PHASE_STEP_INDEX
F 169.4 = MO169.4 START_BY_PLI
FW 160 = MW 160_STATUS_PL
Segment 10 Step 5: last ingredient ?
:L -MW 150 PHASE_STEP_INDEX
:L KF +5
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:A -MS161.6 STP 5: ACTIVE
:JC =M002
:L KF +1225
:DO -MW 152 PHASE_REQUEST
:T DW 0
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
:S -MS161.6 STP 5: ACTIVE
:JU =M001
M002 :
:L -MW 152 PHASE_REQUEST
:I 39
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:L KF +10
:JC =M003
:
:L KF +90
:A -M 0.1 CONSTANT 1
:RB =REPO
M003 :R -MS161.6 STP 5: ACTIVE
:
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 161.6 = MS161.6 STP 5: ACTIVE additional to stp 10:
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 0.1 = M 0.1 CONSTANT 1
Segment 11 Step 10: load para
:L -MW 150 PHASE_STEP_INDEX
:L KF +10
:><F
:ON -MI167.5 PLI_RUNNING
FX 101 -FX101 PHASE-L ING_ADD C:ZONE10ST.S5D LEN=470
Page 5
:O -MI167.6 RQ_IN_WORK
:JC =M001
:A -MS160.0 STP 10: ACTIVE
:JC =M002
:L KF +1
:DO -MW 154 REQ_DATA1
:T DW 0
:DO -MW 156 REQ_DATA2
:T DW 0
:
:A -M 0.1 CONSTANT 1
:L KT 003.2
:SD =TDDP
:
:AN =TDDP
:JC =M001
:L KF +1122
:DO -MW 152 PHASE_REQUEST
:T DW 0
:
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
:S -MS160.0 STP 10: ACTIVE
:AN -M 0.1 CONSTANT 1
:SD =TDDP
:JU =M001
M002 :
:L -MW 152 PHASE_REQUEST
:I 40
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:O -MS161.7 STP 10:HOLD_ACT
:JC =M003
:DO -MW 158 PHASE_ST_FAILURE
:T DW 0
:
:A -M 0.1 CONSTANT 1
:S -MS161.7 STP 10:HOLD_ACT
:JU =M001
:
:A -M 0.1 CONSTANT 1
M003 :R -MS160.0 STP 10: ACTIVE
:R -MS161.7 STP 10:HOLD_ACT
:
:L KF +30
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 160.0 = MS160.0 STP 10: ACTIVE
FW 154 = MW 154 REQ_DATA1
FW 156 = MW 156 REQ_DATA2
F 0.1 = M 0.1 CONSTANT 1
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 161.7 = MS161.7 STP 10:HOLD_ACT
FW 158 = MW 158 PHASE_ST_FAILURE
Segment 12 Step 30: confirm to start ?
FX 101 -FX101 PHASE-L ING_ADD C:ZONE10ST.S5D LEN=470
Page 6
:L -MW 150 PHASE_STEP_INDEX
:L KF +30
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:A -MS160.2 STP 30: ACTIVE
:JC =M002
:L -MW 152 PHASE_REQUEST
:I 42
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:JC =M003
:
:L KF +1223
:DO -MW 152 PHASE_REQUEST
:T DW 0
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
M003 :S -MS160.2 STP 30: ACTIVE
:JU =M001
M002 :
:A -M 0.1 CONSTANT 1
:R -MS160.2 STP 30: ACTIVE
:
:L KF +40
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 160.2 = MS160.2 STP 30: ACTIVE
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 0.1 = M 0.1 CONSTANT 1
Segment 13 Step 40: start weighing
:L -MW 150 PHASE_STEP_INDEX
:L KF +40
:><F
:ON -MI167.5 PLI_RUNNING
:JC =M001
:
:A =EOSI
:R -MS160.3 STP 40: ACTIVE
:
:AN =EOSI
:S -MS160.3 STP 40: ACTIVE
:JC =M001
:
:L KF +70
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 160.3 = MS160.3 STP 40: ACTIVE
Segment 14 Step 70: confirm at end ?
:L -MW 150 PHASE_STEP_INDEX
FX 101 -FX101 PHASE-L ING_ADD C:ZONE10ST.S5D LEN=470
Page 7
:L KF +70
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:O -MS160.6 STP 70: ACTIVE
:JC =M002
:L -MW 152 PHASE_REQUEST
:I 43
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:JC =M003
:
:L KF +1224
:DO -MW 152 PHASE_REQUEST
:T DW 0
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
M003 :S -MS160.6 STP 70: ACTIVE
:JU =M001
M002 :
:A -M 0.1 CONSTANT 1
:R -MS160.6 STP 70: ACTIVE
:
:L KF +75
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 160.6 = MS160.6 STP 70: ACTIVE
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 0.1 = M 0.1 CONSTANT 1
Segment 15 Step 75: manual add confirm
:L -MW 150 PHASE_STEP_INDEX
:L KF +75
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:O -MS161.1 STP 75: ACTIVE
:JC =M002
:
:L KF +1226
:DO -MW 152 PHASE_REQUEST
:T DW 0
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
:S -MS161.1 STP 75: ACTIVE
:JU =M001
M002 :
:A -M 0.1 CONSTANT 1
:R -MS161.1 STP 75: ACTIVE
:
:L KF +90
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FX 101 -FX101 PHASE-L ING_ADD C:ZONE10ST.S5D LEN=470
Page 8
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 161.1 = MS161.1 STP 75: ACTIVE additional to stp 70:
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 0.1 = M 0.1 CONSTANT 1
Segment 16 Step 90: Upload reports
:L -MW 150 PHASE_STEP_INDEX
:L KF +90
:><F
:ON -MI167.5 PLI_RUNNING
:ON -MI167.1 COMPLETE
:O -MI167.6 RQ_IN_WORK
:JC =M001
: Upload fin. after complete
:L -MW 152 PHASE_REQUEST
:I 41
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:JC =M001
:L KF +2 Hold at end
:DO -MW 158 PHASE_ST_FAILURE
:T DW 0
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.1 = MI167.1 COMPLETE
F 167.6 = MI167.6 RQ_IN_WORK
FW 152 = MW 152 PHASE_REQUEST
FW 158 = MW 158 PHASE_ST_FAILURE
Segment 17 PLI DX
:LW =PLDX
:T -MW188 ADDR_OBJECT_DB/DX
:DO -MW188 ADDR_OBJECT_DB/DX
:CX -DX 0 SYSTEM PARAMETER
:***
FW 188 = MW188 ADDR_OBJECT_DB/DX
DX 0 = DX 0 SYSTEM PARAMETER
Segment 18 Store step number
:LW =OFFS
:L KF +3
:+F
:T -MW186 DW_ADDRESS
:
:L -MW 150 PHASE_STEP_INDEX
:DO -MW186 DW_ADDRESS
:T DW 0
:
:A =UNID
:= -MS161.5 !! UNIT IDLE !!
:***
FW 186 = MW186 DW_ADDRESS
FW 150 = MW 150 PHASE_STEP_INDEX
FX 101 -FX101 PHASE-L ING_ADD C:ZONE10ST.S5D LEN=470
Page 9
F 161.5 = MS161.5 !! UNIT IDLE !!
Segment 19 Store Control bits PLI
:LW =OFFS
:L KF +11
:+F
:T -MW186 DW_ADDRESS
:
:L -MW 166_IN_PLI
:DO -MW186 DW_ADDRESS
:T DW 0
:
:LW =OFFS
:L KF +19
:+F
:T -MW186 DW_ADDRESS
:
:L -MW 160_STATUS_PL
:DO -MW186 DW_ADDRESS
:T DW 0
:***
FW 186 = MW186 DW_ADDRESS
FW 166 = MW 166_IN_PLI Eingangsbitleiste an PLI
FW 160 = MW 160_STATUS_PL
Segment 20 Reports to PLI
:LW =WADB
:T FW 190
:
:L KF +130
:T FW 192
:
:L -MW 152 PHASE_REQUEST
:L KF +44
:+F
:T FW 194
:
:L KF +6
:T FW 196
:***
FW 152 = MW 152 PHASE_REQUEST
Segment 21 Reports to PLI
:JU -FB173 COPY BLOCK
Name :COPY DKF
QUEL : KS DB
DB-Q : FW 190
VON : FW 192
BIS : FW 192
ZIEL : KS DX
DB-Z : -MW188 ADDR_OBJECT_DB/DX
NACH : FW 194
FEHL : -M 0.0 IND.ADDRES(DUMMY)
LAEN : FW 196
L-B : KS LA
:BE
FW 188 = MW188 ADDR_OBJECT_DB/DX
F 0.0 = M 0.0 IND.ADDRES(DUMMY)
FB 173 = FB173 COPY BLOCK parameter: EW sp
FX 102 -FX102 PHASE-L DISCH_NOP C:ZONE10ST.S5D LEN=427
Page 1
Segment 1
*****************************************************************************
BESCHREIBUNG :
---------------
Dieser Baustein setzt das PLI ( Phase Logic Interface ) von Open - Batch
auf die Schnittstelle HsH - PC zur SPS - Waage ( DB 210 ) um
******************************************************************************
PARAMETER :
-----------
PLDX : Nr. des DX Datenbaustein fuer PLI
OFFS : Offset fuer PLI Anfang
WZNR : Zaehlnummer der SPS - Waage
DBPC : Datenbaustein fuer Schnittstelle PC - SPS Waage
DBST : Steuerdatenbaustein PC - SPS Waage
AUTO : Automatik - Mode
******************************************************************************
Name :PL-SS-DN
Decl :PLDX I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :OFFS I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :ADB I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :EOSI I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :REPO I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :UNID I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :CEMP I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :PCOM I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :TDDP I/Q/D/B/T/C: T
:***
Segment 2 PLI DX oeffnen
:LW =PLDX
:T -MW188 ADDR_OBJECT_DB/DX
:DO -MW188 ADDR_OBJECT_DB/DX
:CX -DX 0 SYSTEM PARAMETER
:***
FW 188 = MW188 ADDR_OBJECT_DB/DX
DX 0 = DX 0 SYSTEM PARAMETER
Segment 3 Load Control bits PLI
:LW =OFFS
:L KF +10
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 168_OUT_PLI Ausgangsbitleiste von PLI
: --------------------------------
:L -MW186 DW_ADDRESS
:L KF +1
:+F
:T -MW186 DW_ADDRESS 11
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 166_IN_PLI Eingangsbitleiste von PLI
FX 102 -FX102 PHASE-L DISCH_NOP C:ZONE10ST.S5D LEN=427
Page 2
: --------------------------------
:***
FW 186 = MW186 DW_ADDRESS
FW 168 = MW 168_OUT_PLI Ausgangssteuerbitleiste von PLI
FW 166 = MW 166_IN_PLI Eingangsbitleiste an PLI
Segment 4 Load Status bits PLI/ Unit idle
:LW =OFFS
:L KF +19
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 160_STATUS_PL Status bits PLI
: --------------------------------
:JU =M001 !!!! TEST !!!!
:A -MO169.4 START_BY_PLI
:AN =UNID
:R -MO169.4 START_BY_PLI
:S -MI167.4 IDLE(ready)
M001 :***
FW 186 = MW186 DW_ADDRESS
FW 160 = MW 160_STATUS_PL
F 169.4 = MO169.4 START_BY_PLI
F 167.4 = MI167.4 IDLE(ready)
Segment 5 Request registers
:LW =OFFS
:T -MW 152 PHASE_REQUEST
:
:L -MW 152 PHASE_REQUEST
:I 13
:T -MW 154 REQ_DATA1
:
:L -MW 152 PHASE_REQUEST
:I 14
:T -MW 156 REQ_DATA2
:
:L -MW 152 PHASE_REQUEST
:I 12
:T -MW 158 PHASE_ST_FAILURE
:
:L KF +0
:DO -MW 158 PHASE_ST_FAILURE
:T DW 0 reset stored failure
:***
FW 152 = MW 152 PHASE_REQUEST
FW 154 = MW 154 REQ_DATA1
FW 156 = MW 156 REQ_DATA2
FW 158 = MW 158 PHASE_ST_FAILURE
Segment 6 Operator confirm
:DO -MW 152 PHASE_REQUEST
:L DW 0
:L KF +1200
:>=F
:= -MS161.4 ! OPER_CONFRM !
:***
FW 152 = MW 152 PHASE_REQUEST
F 161.4 = MS161.4 ! OPER_CONFRM !
FX 102 -FX102 PHASE-L DISCH_NOP C:ZONE10ST.S5D LEN=427
Page 3
Segment 7 Request in work
:DO -MW 152 PHASE_REQUEST
:L DW 0
:L KF +6000
:!=F
:= F 200.0 RQ 6000
:R -MI167.6 RQ_IN_WORK
:DO -MW 152 PHASE_REQUEST
:L DW 0
:L KF +1000
:>=F
:AN F 200.0 RQ 6000
:S -MI167.6 RQ_IN_WORK
:JC =M001
:
:L KF +0
:DO -MW 154 REQ_DATA1
:T DW 0
:DO -MW 156 REQ_DATA2
:T DW 0
M001 :***
FW 152 = MW 152 PHASE_REQUEST
F 167.6 = MI167.6 RQ_IN_WORK
FW 154 = MW 154 REQ_DATA1
FW 156 = MW 156 REQ_DATA2
Segment 8 Complete & Aborted
:L -MW 152 PHASE_REQUEST
:L KF +4
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:L KF +70
:!=F
:O =PCOM
:S -MI167.1 COMPLETE
:
:O -MI167.0 HELD
:O -MI167.2 STOPPED
:O -MI167.3 ABORTED
:RB =CEMP
:
:AN -MO169.4 START_BY_PLI
:JC =M001
:
:AN -M 0.1 CONSTANT 1
:SD =TDDP
M001 :***
FW 152 = MW 152 PHASE_REQUEST
FW 186 = MW186 DW_ADDRESS
F 167.1 = MI167.1 COMPLETE
F 167.0 = MI167.0 HELD
F 167.2 = MI167.2 STOPPED
F 167.3 = MI167.3 ABORTED
F 169.4 = MO169.4 START_BY_PLI
F 0.1 = M 0.1 CONSTANT 1
Segment 9 start sequence
:L -MW 152 PHASE_REQUEST
:L KF +3
:+F
FX 102 -FX102 PHASE-L DISCH_NOP C:ZONE10ST.S5D LEN=427
Page 4
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 150 PHASE_STEP_INDEX
:
:AN -MO169.4 START_BY_PLI
:AN F 200.0 RQ 6000
:JC =M001
:
:L KF +0
:T -MW 160_STATUS_PL
:
:AN -MO169.4 START_BY_PLI
:JC =M001
:L KF +10
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 152 = MW 152 PHASE_REQUEST
FW 186 = MW186 DW_ADDRESS
FW 150 = MW 150 PHASE_STEP_INDEX
F 169.4 = MO169.4 START_BY_PLI
FW 160 = MW 160_STATUS_PL
Segment 10 Step 10: load para
:L -MW 150 PHASE_STEP_INDEX
:L KF +10
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:A -MS160.0 STP 10: ACTIVE
:JC =M002
:L KF +4
:DO -MW 154 REQ_DATA1
:T DW 0
:DO -MW 156 REQ_DATA2
:T DW 0
:
:A -M 0.1 CONSTANT 1
:L KT 003.2
:SD =TDDP
:
:AN =TDDP
:JC =M001
:L KF +1104
:DO -MW 152 PHASE_REQUEST
:T DW 0
:
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
:S -MS160.0 STP 10: ACTIVE
:AN -M 0.1 CONSTANT 1
:SD =TDDP
:JU =M001
M002 :
:L -MW 152 PHASE_REQUEST
:I 40
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:O -MS161.7 STP 10:HOLD_ACT
FX 102 -FX102 PHASE-L DISCH_NOP C:ZONE10ST.S5D LEN=427
Page 5
:JC =M003
:DO -MW 158 PHASE_ST_FAILURE Hold at start
:T DW 0
:
:A -M 0.1 CONSTANT 1
:S -MS161.7 STP 10:HOLD_ACT
:JU =M001
:
:A -M 0.1 CONSTANT 1
M003 :R -MS160.0 STP 10: ACTIVE
:R -MS161.7 STP 10:HOLD_ACT
:
:L KF +30
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 160.0 = MS160.0 STP 10: ACTIVE
FW 154 = MW 154 REQ_DATA1
FW 156 = MW 156 REQ_DATA2
F 0.1 = M 0.1 CONSTANT 1
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 161.7 = MS161.7 STP 10:HOLD_ACT
FW 158 = MW 158 PHASE_ST_FAILURE
Segment 11 Step 30: confirm to start ?
:L -MW 150 PHASE_STEP_INDEX
:L KF +30
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:O -MS160.2 STP 30: ACTIVE
:JC =M002
:L -MW 152 PHASE_REQUEST
:I 42
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:JC =M003
:
:L KF +1201
:DO -MW 152 PHASE_REQUEST
:T DW 0
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
M003 :S -MS160.2 STP 30: ACTIVE
:JU =M001
M002 :
:A -M 0.1 CONSTANT 1
:R -MS160.2 STP 30: ACTIVE
:
:L KF +40
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
FX 102 -FX102 PHASE-L DISCH_NOP C:ZONE10ST.S5D LEN=427
Page 6
F 160.2 = MS160.2 STP 30: ACTIVE
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 0.1 = M 0.1 CONSTANT 1
Segment 12 Step 40: start discharge
:L -MW 150 PHASE_STEP_INDEX
:L KF +40
:><F
:ON -MI167.5 PLI_RUNNING
:JC =M001
:
:A =EOSI
:R -MS160.3 STP 40: ACTIVE
:
:AN =EOSI
:S -MS160.3 STP 40: ACTIVE
:JC =M001
:
:L KF +70
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 160.3 = MS160.3 STP 40: ACTIVE
Segment 13 Step 70: confirm at end ?
:L -MW 150 PHASE_STEP_INDEX
:L KF +70
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:A -MS160.6 STP 70: ACTIVE
:JC =M002
:L -MW 152 PHASE_REQUEST
:I 43
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:JC =M003
:AN =REPO only blender
:S =CEMP
:L KF +1202
:DO -MW 152 PHASE_REQUEST
:T DW 0
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
M003 :S -MS160.6 STP 70: ACTIVE
:JU =M001
M002 :
:A -M 0.1 CONSTANT 1
:R -MS160.6 STP 70: ACTIVE
:RB =CEMP
:
:L KF +90
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
FX 102 -FX102 PHASE-L DISCH_NOP C:ZONE10ST.S5D LEN=427
Page 7
F 167.6 = MI167.6 RQ_IN_WORK
F 160.6 = MS160.6 STP 70: ACTIVE
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 0.1 = M 0.1 CONSTANT 1
Segment 14 Step 90: Upload reports
:L -MW 150 PHASE_STEP_INDEX
:L KF +90
:><F
:ON -MI167.5 PLI_RUNNING
:O(
:A =REPO 01 if reports
:AN -MI167.1 COMPLETE 01
:) 01
:O -MI167.6 RQ_IN_WORK
:JC =M001
:A -MS161.0 STP 90: ACTIVE
:JC =M001
: Upload fin. after complete
:L -MW 152 PHASE_REQUEST
:I 41
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:JC =M002
:L KF +2 Hold at end
:DO -MW 158 PHASE_ST_FAILURE
:T DW 0
:
:A -M 0.1 CONSTANT 1
M002 :S -MS161.0 STP 90: ACTIVE
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.1 = MI167.1 COMPLETE
F 167.6 = MI167.6 RQ_IN_WORK
F 161.0 = MS161.0 STP 90: ACTIVE
FW 152 = MW 152 PHASE_REQUEST
FW 158 = MW 158 PHASE_ST_FAILURE
F 0.1 = M 0.1 CONSTANT 1
Segment 15 PLI DX
:LW =PLDX
:T -MW188 ADDR_OBJECT_DB/DX
:DO -MW188 ADDR_OBJECT_DB/DX
:CX -DX 0 SYSTEM PARAMETER
:***
FW 188 = MW188 ADDR_OBJECT_DB/DX
DX 0 = DX 0 SYSTEM PARAMETER
Segment 16 Store step number
:LW =OFFS
:L KF +3
:+F
:T -MW186 DW_ADDRESS
:
:L -MW 150 PHASE_STEP_INDEX
:DO -MW186 DW_ADDRESS
FX 102 -FX102 PHASE-L DISCH_NOP C:ZONE10ST.S5D LEN=427
Page 8
:T DW 0
:
:A =UNID
:= -MS161.5 !! UNIT IDLE !!
:***
FW 186 = MW186 DW_ADDRESS
FW 150 = MW 150 PHASE_STEP_INDEX
F 161.5 = MS161.5 !! UNIT IDLE !!
Segment 17 Store Control bits PLI
:LW =OFFS
:L KF +11
:+F
:T -MW186 DW_ADDRESS
:
:L -MW 166_IN_PLI
:DO -MW186 DW_ADDRESS
:T DW 0
:
:LW =OFFS
:L KF +19
:+F
:T -MW186 DW_ADDRESS
:
:L -MW 160_STATUS_PL
:DO -MW186 DW_ADDRESS
:T DW 0
:
:***
FW 186 = MW186 DW_ADDRESS
FW 166 = MW 166_IN_PLI Eingangsbitleiste an PLI
FW 160 = MW 160_STATUS_PL
Segment 18 Reports to PLI
:LW =ADB
:T FW 190
:
:L KF +136
:T FW 192
:
:L -MW 152 PHASE_REQUEST
:L KF +44
:+F
:T FW 194
:
:L KF +6
:T FW 196
:***
FW 152 = MW 152 PHASE_REQUEST
Segment 19 Reports to PLI
:A =REPO
:JC -FB173 COPY BLOCK
Name :COPY DKF
QUEL : KS DB
DB-Q : FW 190
VON : FW 192
BIS : FW 192
ZIEL : KS DX
DB-Z : -MW188 ADDR_OBJECT_DB/DX
NACH : FW 194
FX 102 -FX102 PHASE-L DISCH_NOP C:ZONE10ST.S5D LEN=427
Page 9
FEHL : -M 0.0 IND.ADDRES(DUMMY)
LAEN : FW 196
L-B : KS LA
:BE
FW 188 = MW188 ADDR_OBJECT_DB/DX
F 0.0 = M 0.0 IND.ADDRES(DUMMY)
FB 173 = FB173 COPY BLOCK parameter: EW sp
FX 103 -FX103 PHASE-L CHARGE C:ZONE10ST.S5D LEN=521
Page 1
Segment 1
*****************************************************************************
BESCHREIBUNG :
---------------
Dieser Baustein setzt das PLI ( Phase Logic Interface ) von Open - Batch
auf die Schnittstelle HsH - PC zur SPS - Waage ( DB 210 ) um
******************************************************************************
PARAMETER :
-----------
PLDX : Nr. des DX Datenbaustein fuer PLI
OFFS : Offset fuer PLI Anfang
WZNR : Zaehlnummer der SPS - Waage
DBPC : Datenbaustein fuer Schnittstelle PC - SPS Waage
DBST : Steuerdatenbaustein PC - SPS Waage
AUTO : Automatik - Mode
******************************************************************************
Name :PL-SS-CH
Decl :PLDX I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :OFFS I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :ADB I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :EOSI I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :SC? I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :UNID I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :PCOM I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :TDDP I/Q/D/B/T/C: T
:***
Segment 2 PLI DX oeffnen
:LW =PLDX
:T -MW188 ADDR_OBJECT_DB/DX
:DO -MW188 ADDR_OBJECT_DB/DX
:CX -DX 0 SYSTEM PARAMETER
:***
FW 188 = MW188 ADDR_OBJECT_DB/DX
DX 0 = DX 0 SYSTEM PARAMETER
Segment 3 Load Control bits PLI
:LW =OFFS
:L KF +10
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 168_OUT_PLI Ausgangsbitleiste von PLI
: --------------------------------
:L -MW186 DW_ADDRESS
:L KF +1
:+F
:T -MW186 DW_ADDRESS 11
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 166_IN_PLI Eingangsbitleiste von PLI
: --------------------------------
FX 103 -FX103 PHASE-L CHARGE C:ZONE10ST.S5D LEN=521
Page 2
:***
FW 186 = MW186 DW_ADDRESS
FW 168 = MW 168_OUT_PLI Ausgangssteuerbitleiste von PLI
FW 166 = MW 166_IN_PLI Eingangsbitleiste an PLI
Segment 4 Load Status bits PLI/ Unit idle
:LW =OFFS
:L KF +19
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 160_STATUS_PL Status bits PLI
: --------------------------------
:JU =M001 !!! TEST !!!
:A -MO169.4 START_BY_PLI
:AN =UNID
:R -MO169.4 START_BY_PLI
:S -MI167.4 IDLE(ready)
M001 :***
FW 186 = MW186 DW_ADDRESS
FW 160 = MW 160_STATUS_PL
F 169.4 = MO169.4 START_BY_PLI
F 167.4 = MI167.4 IDLE(ready)
Segment 5 Request registers
:LW =OFFS
:T -MW 152 PHASE_REQUEST
:
:L -MW 152 PHASE_REQUEST
:I 13
:T -MW 154 REQ_DATA1
:
:L -MW 152 PHASE_REQUEST
:I 14
:T -MW 156 REQ_DATA2
:
:L -MW 152 PHASE_REQUEST
:I 12
:T -MW 158 PHASE_ST_FAILURE
:
:L KF +0
:DO -MW 158 PHASE_ST_FAILURE
:T DW 0 reset stored failure
:***
FW 152 = MW 152 PHASE_REQUEST
FW 154 = MW 154 REQ_DATA1
FW 156 = MW 156 REQ_DATA2
FW 158 = MW 158 PHASE_ST_FAILURE
Segment 6 Operator confirm
:DO -MW 152 PHASE_REQUEST
:L DW 0
:L KF +1200
:>=F
:= -MS161.4 ! OPER_CONFRM !
:***
FW 152 = MW 152 PHASE_REQUEST
F 161.4 = MS161.4 ! OPER_CONFRM !
FX 103 -FX103 PHASE-L CHARGE C:ZONE10ST.S5D LEN=521
Page 3
Segment 7 Request in work
:DO -MW 152 PHASE_REQUEST
:L DW 0
:L KF +6000
:!=F
:= F 200.0 RQ 6000
:R -MI167.6 RQ_IN_WORK
:DO -MW 152 PHASE_REQUEST
:L DW 0
:L KF +1000
:>=F
:AN F 200.0 RQ 6000
:S -MI167.6 RQ_IN_WORK
:JC =M001
:
:L KF +0
:DO -MW 154 REQ_DATA1
:T DW 0
:DO -MW 156 REQ_DATA2
:T DW 0
M001 :***
FW 152 = MW 152 PHASE_REQUEST
F 167.6 = MI167.6 RQ_IN_WORK
FW 154 = MW 154 REQ_DATA1
FW 156 = MW 156 REQ_DATA2
Segment 8 Complete
:L -MW 152 PHASE_REQUEST
:L KF +4
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:L KF +70
:!=F
:O =PCOM
:S -MI167.1 COMPLETE
:
:AN -MO169.4 START_BY_PLI
:JC =M001
:
:A -M 0.1 CONSTANT 1
:R -MS161.0 STP 90: ACTIVE
:
:AN -M 0.1 CONSTANT 1
:SD =TDDP
M001 :***
FW 152 = MW 152 PHASE_REQUEST
FW 186 = MW186 DW_ADDRESS
F 167.1 = MI167.1 COMPLETE
F 169.4 = MO169.4 START_BY_PLI
F 0.1 = M 0.1 CONSTANT 1
F 161.0 = MS161.0 STP 90: ACTIVE
Segment 9 start sequence
:L -MW 152 PHASE_REQUEST
:L KF +3
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 150 PHASE_STEP_INDEX
FX 103 -FX103 PHASE-L CHARGE C:ZONE10ST.S5D LEN=521
Page 4
:
:AN -MO169.4 START_BY_PLI
:AN F 200.0 RQ 6000
:JC =M001
:
:L KF +0
:T -MW 160_STATUS_PL
:
:AN -MO169.4 START_BY_PLI
:JC =M001
:L KF +10
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 152 = MW 152 PHASE_REQUEST
FW 186 = MW186 DW_ADDRESS
FW 150 = MW 150 PHASE_STEP_INDEX
F 169.4 = MO169.4 START_BY_PLI
FW 160 = MW 160_STATUS_PL
Segment 10 Step 10: load para
:L -MW 150 PHASE_STEP_INDEX
:L KF +10
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:A -MS160.0 STP 10: ACTIVE
:JC =M002
:L KF +4
:DO -MW 154 REQ_DATA1
:T DW 0
:DO -MW 156 REQ_DATA2
:T DW 0
:
:A -M 0.1 CONSTANT 1
:L KT 003.2
:SD =TDDP
:
:AN =TDDP
:JC =M001
:L KF +1115
:DO -MW 152 PHASE_REQUEST
:T DW 0
:
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
:S -MS160.0 STP 10: ACTIVE
:AN -M 0.1 CONSTANT 1
:SD =TDDP
:JU =M001
M002 :
:L -MW 152 PHASE_REQUEST
:I 40
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:O -MS161.7 STP 10:HOLD_ACT
:JC =M003
:DO -MW 158 PHASE_ST_FAILURE Hold at start
:T DW 0
:
FX 103 -FX103 PHASE-L CHARGE C:ZONE10ST.S5D LEN=521
Page 5
:A -M 0.1 CONSTANT 1
:S -MS161.7 STP 10:HOLD_ACT
:JU =M001
:
:A -M 0.1 CONSTANT 1
M003 :R -MS160.0 STP 10: ACTIVE
:R -MS161.7 STP 10:HOLD_ACT
:
:L KF +20
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 160.0 = MS160.0 STP 10: ACTIVE
FW 154 = MW 154 REQ_DATA1
FW 156 = MW 156 REQ_DATA2
F 0.1 = M 0.1 CONSTANT 1
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 161.7 = MS161.7 STP 10:HOLD_ACT
FW 158 = MW 158 PHASE_ST_FAILURE
Segment 11 Step 20: wait for message partne
:L -MW 150 PHASE_STEP_INDEX
:L KF +20
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:O -MS160.1 STP 20: ACTIVE
:JC =M002
:
:L KF +5201
:DO -MW 152 PHASE_REQUEST
:T DW 0
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
:S -MS160.1 STP 20: ACTIVE
:JU =M001
M002 :
:A -M 0.1 CONSTANT 1
:R -MS160.1 STP 20: ACTIVE
:
:L KF +30
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 160.1 = MS160.1 STP 20: ACTIVE
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 0.1 = M 0.1 CONSTANT 1
Segment 12 Step 30: confirm to start ?
:L -MW 150 PHASE_STEP_INDEX
:L KF +30
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
FX 103 -FX103 PHASE-L CHARGE C:ZONE10ST.S5D LEN=521
Page 6
:A -MS160.2 STP 30: ACTIVE
:JC =M002
:L -MW 152 PHASE_REQUEST
:I 42
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:JC =M003
:
:L KF +1201
:DO -MW 152 PHASE_REQUEST
:T DW 0
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
M003 :S -MS160.2 STP 30: ACTIVE
:JU =M001
M002 :
:A -M 0.1 CONSTANT 1
:R -MS160.2 STP 30: ACTIVE
:
:L KF +40
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 160.2 = MS160.2 STP 30: ACTIVE
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 0.1 = M 0.1 CONSTANT 1
Segment 13 Step 40: start charge
:L -MW 150 PHASE_STEP_INDEX
:L KF +40
:><F
:ON -MI167.5 PLI_RUNNING
:JC =M001
:
:A =EOSI
:R -MS160.3 STP 40: ACTIVE
:
:AN =EOSI
:S -MS160.3 STP 40: ACTIVE
:JC =M001
:
:L KF +50
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 160.3 = MS160.3 STP 40: ACTIVE
Segment 14 Step 50: cleaning
:L -MW 150 PHASE_STEP_INDEX
:L KF +50
:><F
:ON -MI167.5 PLI_RUNNING
:JC =M001
:L -MW 152 PHASE_REQUEST
:I 39
FX 103 -FX103 PHASE-L CHARGE C:ZONE10ST.S5D LEN=521
Page 7
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:L KF +70
:JC =M002
:
:L KF +60
M002 :T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
FW 152 = MW 152 PHASE_REQUEST
Segment 15 Step 60: confirm cleaning
:L -MW 150 PHASE_STEP_INDEX
:L KF +60
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:O -MS160.5 STP 60: ACTIVE
:JC =M002
:
:L KF +1203
:DO -MW 152 PHASE_REQUEST
:T DW 0
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
:S -MS160.5 STP 60: ACTIVE
:JU =M001
M002 :
:A -M 0.1 CONSTANT 1
:R -MS160.5 STP 60: ACTIVE
:
:L KF +70
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 160.5 = MS160.5 STP 60: ACTIVE
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 0.1 = M 0.1 CONSTANT 1
Segment 16 Step 70: confirm at end ?
:L -MW 150 PHASE_STEP_INDEX
:L KF +70
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:A -MS160.6 STP 70: ACTIVE
:JC =M002
:L -MW 152 PHASE_REQUEST
:I 43
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
FX 103 -FX103 PHASE-L CHARGE C:ZONE10ST.S5D LEN=521
Page 8
:><F
:JC =M003
:
:L KF +1202
:DO -MW 152 PHASE_REQUEST
:T DW 0
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
M003 :S -MS160.6 STP 70: ACTIVE
:JU =M001
M002 :
:A -M 0.1 CONSTANT 1
:R -MS160.6 STP 70: ACTIVE
:
:L KF +80
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 160.6 = MS160.6 STP 70: ACTIVE
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 0.1 = M 0.1 CONSTANT 1
Segment 17 Step 80: wait for message partne
:L -MW 150 PHASE_STEP_INDEX
:L KF +80
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:O -MS160.7 STP 80: ACTIVE
:JC =M002
:
:L KF +5202
:DO -MW 152 PHASE_REQUEST
:T DW 0
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
:S -MS160.7 STP 80: ACTIVE
:JU =M001
M002 :
:A -M 0.1 CONSTANT 1
:R -MS160.7 STP 80: ACTIVE
:
:L KF +90
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 160.7 = MS160.7 STP 80: ACTIVE
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 0.1 = M 0.1 CONSTANT 1
Segment 18 Step 90: Upload reports
:L -MW 150 PHASE_STEP_INDEX
:L KF +90
:><F
:ON -MI167.5 PLI_RUNNING
FX 103 -FX103 PHASE-L CHARGE C:ZONE10ST.S5D LEN=521
Page 9
:ON -MI167.1 COMPLETE
:O -MI167.6 RQ_IN_WORK
:JC =M001
:L -MW 152 PHASE_REQUEST
:I 41
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:O -MS161.0 STP 90: ACTIVE
:JC =M001
:L KF +2 Hold at end
:DO -MW 158 PHASE_ST_FAILURE
:T DW 0
:
:A -M 0.1 CONSTANT 1
:S -MS161.0 STP 90: ACTIVE
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.1 = MI167.1 COMPLETE
F 167.6 = MI167.6 RQ_IN_WORK
FW 152 = MW 152 PHASE_REQUEST
F 161.0 = MS161.0 STP 90: ACTIVE
FW 158 = MW 158 PHASE_ST_FAILURE
F 0.1 = M 0.1 CONSTANT 1
Segment 19 PLI DX
:LW =PLDX
:T -MW188 ADDR_OBJECT_DB/DX
:DO -MW188 ADDR_OBJECT_DB/DX
:CX -DX 0 SYSTEM PARAMETER
:***
FW 188 = MW188 ADDR_OBJECT_DB/DX
DX 0 = DX 0 SYSTEM PARAMETER
Segment 20 Store step number
:LW =OFFS
:L KF +3
:+F
:T -MW186 DW_ADDRESS
:
:L -MW 150 PHASE_STEP_INDEX
:DO -MW186 DW_ADDRESS
:T DW 0
:
:A =UNID
:= -MS161.5 !! UNIT IDLE !!
:***
FW 186 = MW186 DW_ADDRESS
FW 150 = MW 150 PHASE_STEP_INDEX
F 161.5 = MS161.5 !! UNIT IDLE !!
Segment 21 Store Control bits PLI
:LW =OFFS
:L KF +11
:+F
:T -MW186 DW_ADDRESS
:
FX 103 -FX103 PHASE-L CHARGE C:ZONE10ST.S5D LEN=521
Page 10
:L -MW 166_IN_PLI
:DO -MW186 DW_ADDRESS
:T DW 0
:
:LW =OFFS
:L KF +19
:+F
:T -MW186 DW_ADDRESS
:
:L -MW 160_STATUS_PL
:DO -MW186 DW_ADDRESS
:T DW 0
:***
FW 186 = MW186 DW_ADDRESS
FW 166 = MW 166_IN_PLI Eingangsbitleiste an PLI
FW 160 = MW 160_STATUS_PL
Segment 22 Reports to PLI
:LW =ADB
:T FW 190
:
:A =SC?
:L KF +130
:JC =M001
:L KF +30
M001 :T FW 192
:
:L -MW 152 PHASE_REQUEST
:L KF +44
:+F
:T FW 194
:
:A =SC?
:L KF +6
:JC =M002
:L KF +1
M002 :T FW 196
:***
FW 152 = MW 152 PHASE_REQUEST
Segment 23 Reports to PLI
:JU -FB173 COPY BLOCK
Name :COPY DKF
QUEL : KS DB
DB-Q : FW 190
VON : FW 192
BIS : FW 192
ZIEL : KS DX
DB-Z : -MW188 ADDR_OBJECT_DB/DX
NACH : FW 194
FEHL : -M 0.0 IND.ADDRES(DUMMY)
LAEN : FW 196
L-B : KS LA
:BE
FW 188 = MW188 ADDR_OBJECT_DB/DX
F 0.0 = M 0.0 IND.ADDRES(DUMMY)
FB 173 = FB173 COPY BLOCK parameter: EW sp
FX 104 -FX104 PHASE-L DISCHARGE C:ZONE10ST.S5D LEN=478
Page 1
Segment 1
*****************************************************************************
BESCHREIBUNG :
---------------
Dieser Baustein setzt das PLI ( Phase Logic Interface ) von Open - Batch
auf die Schnittstelle HsH - PC zur SPS - Waage ( DB 210 ) um
******************************************************************************
PARAMETER :
-----------
PLDX : Nr. des DX Datenbaustein fuer PLI
OFFS : Offset fuer PLI Anfang
WZNR : Zaehlnummer der SPS - Waage
DBPC : Datenbaustein fuer Schnittstelle PC - SPS Waage
DBST : Steuerdatenbaustein PC - SPS Waage
AUTO : Automatik - Mode
******************************************************************************
Name :PL-SS-DI
Decl :PLDX I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :OFFS I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :ADB I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :EOSI I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :REPO I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :UNID I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :CEMP I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :PCOM I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :TDDP I/Q/D/B/T/C: T
:***
Segment 2 PLI DX oeffnen
:LW =PLDX
:T -MW188 ADDR_OBJECT_DB/DX
:DO -MW188 ADDR_OBJECT_DB/DX
:CX -DX 0 SYSTEM PARAMETER
:***
FW 188 = MW188 ADDR_OBJECT_DB/DX
DX 0 = DX 0 SYSTEM PARAMETER
Segment 3 Load Control bits PLI
:LW =OFFS
:L KF +10
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 168_OUT_PLI Ausgangsbitleiste von PLI
: --------------------------------
:L -MW186 DW_ADDRESS
:L KF +1
:+F
:T -MW186 DW_ADDRESS 11
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 166_IN_PLI Eingangsbitleiste von PLI
FX 104 -FX104 PHASE-L DISCHARGE C:ZONE10ST.S5D LEN=478
Page 2
: --------------------------------
:***
FW 186 = MW186 DW_ADDRESS
FW 168 = MW 168_OUT_PLI Ausgangssteuerbitleiste von PLI
FW 166 = MW 166_IN_PLI Eingangsbitleiste an PLI
Segment 4 Load Status bits PLI/ Unit idle
:LW =OFFS
:L KF +19
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 160_STATUS_PL Status bits PLI
: --------------------------------
:JU =M001 !!! TEST !!!
:A -MO169.4 START_BY_PLI
:AN =UNID
:R -MO169.4 START_BY_PLI
:S -MI167.4 IDLE(ready)
M001 :***
FW 186 = MW186 DW_ADDRESS
FW 160 = MW 160_STATUS_PL
F 169.4 = MO169.4 START_BY_PLI
F 167.4 = MI167.4 IDLE(ready)
Segment 5 Request registers
:LW =OFFS
:T -MW 152 PHASE_REQUEST
:
:L -MW 152 PHASE_REQUEST
:I 13
:T -MW 154 REQ_DATA1
:
:L -MW 152 PHASE_REQUEST
:I 14
:T -MW 156 REQ_DATA2
:
:L -MW 152 PHASE_REQUEST
:I 12
:T -MW 158 PHASE_ST_FAILURE
:
:L KF +0
:DO -MW 158 PHASE_ST_FAILURE
:T DW 0 reset stored failure
:***
FW 152 = MW 152 PHASE_REQUEST
FW 154 = MW 154 REQ_DATA1
FW 156 = MW 156 REQ_DATA2
FW 158 = MW 158 PHASE_ST_FAILURE
Segment 6 Operator confirm
:DO -MW 152 PHASE_REQUEST
:L DW 0
:L KF +1200
:>=F
:= -MS161.4 ! OPER_CONFRM !
:***
FW 152 = MW 152 PHASE_REQUEST
F 161.4 = MS161.4 ! OPER_CONFRM !
FX 104 -FX104 PHASE-L DISCHARGE C:ZONE10ST.S5D LEN=478
Page 3
Segment 7 Request in work
:DO -MW 152 PHASE_REQUEST
:L DW 0
:L KF +6000
:!=F
:= F 200.0 RQ 6000
:R -MI167.6 RQ_IN_WORK
:DO -MW 152 PHASE_REQUEST
:L DW 0
:L KF +1000
:>=F
:AN F 200.0 RQ 6000
:S -MI167.6 RQ_IN_WORK
:JC =M001
:
:L KF +0
:DO -MW 154 REQ_DATA1
:T DW 0
:DO -MW 156 REQ_DATA2
:T DW 0
M001 :***
FW 152 = MW 152 PHASE_REQUEST
F 167.6 = MI167.6 RQ_IN_WORK
FW 154 = MW 154 REQ_DATA1
FW 156 = MW 156 REQ_DATA2
Segment 8 Complete & Aborted
:L -MW 152 PHASE_REQUEST
:L KF +4
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:L KF +70
:!=F
:O =PCOM
:S -MI167.1 COMPLETE
:
:O -MI167.0 HELD
:O -MI167.2 STOPPED
:O -MI167.3 ABORTED
:RB =CEMP
:
:AN -MO169.4 START_BY_PLI
:JC =M001
:
:AN -M 0.1 CONSTANT 1
:SD =TDDP
M001 :***
FW 152 = MW 152 PHASE_REQUEST
FW 186 = MW186 DW_ADDRESS
F 167.1 = MI167.1 COMPLETE
F 167.0 = MI167.0 HELD
F 167.2 = MI167.2 STOPPED
F 167.3 = MI167.3 ABORTED
F 169.4 = MO169.4 START_BY_PLI
F 0.1 = M 0.1 CONSTANT 1
Segment 9 start sequence
:L -MW 152 PHASE_REQUEST
:L KF +3
:+F
FX 104 -FX104 PHASE-L DISCHARGE C:ZONE10ST.S5D LEN=478
Page 4
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 150 PHASE_STEP_INDEX
:
:AN -MO169.4 START_BY_PLI
:AN F 200.0 RQ 6000
:JC =M001
:
:L KF +0
:T -MW 160_STATUS_PL
:
:AN -MO169.4 START_BY_PLI
:JC =M001
:L KF +10
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 152 = MW 152 PHASE_REQUEST
FW 186 = MW186 DW_ADDRESS
FW 150 = MW 150 PHASE_STEP_INDEX
F 169.4 = MO169.4 START_BY_PLI
FW 160 = MW 160_STATUS_PL
Segment 10 Step 10: load para
:L -MW 150 PHASE_STEP_INDEX
:L KF +10
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:A -MS160.0 STP 10: ACTIVE
:JC =M002
:L KF +4
:DO -MW 154 REQ_DATA1
:T DW 0
:DO -MW 156 REQ_DATA2
:T DW 0
:
:A -M 0.1 CONSTANT 1
:L KT 003.2
:SD =TDDP
:
:AN =TDDP
:JC =M001
:L KF +1104
:DO -MW 152 PHASE_REQUEST
:T DW 0
:
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
:S -MS160.0 STP 10: ACTIVE
:AN -M 0.1 CONSTANT 1
:SD =TDDP
:JU =M001
M002 :
:L -MW 152 PHASE_REQUEST
:I 40
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:O -MS161.7 STP 10:HOLD_ACT
FX 104 -FX104 PHASE-L DISCHARGE C:ZONE10ST.S5D LEN=478
Page 5
:JC =M003
:DO -MW 158 PHASE_ST_FAILURE Hold at start
:T DW 0
:
:A -M 0.1 CONSTANT 1
:S -MS161.7 STP 10:HOLD_ACT
:JU =M001
:
:A -M 0.1 CONSTANT 1
M003 :R -MS160.0 STP 10: ACTIVE
:R -MS161.7 STP 10:HOLD_ACT
:
:L KF +20
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 160.0 = MS160.0 STP 10: ACTIVE
FW 154 = MW 154 REQ_DATA1
FW 156 = MW 156 REQ_DATA2
F 0.1 = M 0.1 CONSTANT 1
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 161.7 = MS161.7 STP 10:HOLD_ACT
FW 158 = MW 158 PHASE_ST_FAILURE
Segment 11 Step 20: wait for message partne
:L -MW 150 PHASE_STEP_INDEX
:L KF +20
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:O -MS160.1 STP 20: ACTIVE
:JC =M002
:
:L KF +5501
:DO -MW 152 PHASE_REQUEST
:T DW 0
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
:S -MS160.1 STP 20: ACTIVE
:JU =M001
M002 :
:A -M 0.1 CONSTANT 1
:R -MS160.1 STP 20: ACTIVE
:
:L KF +30
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 160.1 = MS160.1 STP 20: ACTIVE
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 0.1 = M 0.1 CONSTANT 1
Segment 12 Step 30: confirm to start ?
:L -MW 150 PHASE_STEP_INDEX
:L KF +30
FX 104 -FX104 PHASE-L DISCHARGE C:ZONE10ST.S5D LEN=478
Page 6
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:A -MS160.2 STP 30: ACTIVE
:JC =M002
:L -MW 152 PHASE_REQUEST
:I 42
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:JC =M003
:
:L KF +1201
:DO -MW 152 PHASE_REQUEST
:T DW 0
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
M003 :S -MS160.2 STP 30: ACTIVE
:JU =M001
M002 :
:A -M 0.1 CONSTANT 1
:R -MS160.2 STP 30: ACTIVE
:
:L KF +40
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 160.2 = MS160.2 STP 30: ACTIVE
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 0.1 = M 0.1 CONSTANT 1
Segment 13 Step 40: start discharge
:L -MW 150 PHASE_STEP_INDEX
:L KF +40
:><F
:ON -MI167.5 PLI_RUNNING
:JC =M001
:
:A =EOSI
:R -MS160.3 STP 40: ACTIVE
:
:AN =EOSI
:S -MS160.3 STP 40: ACTIVE
:JC =M001
:
:L KF +70
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 160.3 = MS160.3 STP 40: ACTIVE
Segment 14 Step 70: confirm at end ?
:L -MW 150 PHASE_STEP_INDEX
:L KF +70
:><F
FX 104 -FX104 PHASE-L DISCHARGE C:ZONE10ST.S5D LEN=478
Page 7
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:A -MS160.6 STP 70: ACTIVE
:JC =M002
:L -MW 152 PHASE_REQUEST
:I 43
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:JC =M003
:AN =REPO only blender
:S =CEMP
:L KF +1202
:DO -MW 152 PHASE_REQUEST
:T DW 0
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
M003 :S -MS160.6 STP 70: ACTIVE
:JU =M001
M002 :
:A -M 0.1 CONSTANT 1
:R -MS160.6 STP 70: ACTIVE
:RB =CEMP
:
:L KF +80
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 160.6 = MS160.6 STP 70: ACTIVE
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 0.1 = M 0.1 CONSTANT 1
Segment 15 Step 80: wait for message partne
:L -MW 150 PHASE_STEP_INDEX
:L KF +80
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:O -MS160.7 STP 80: ACTIVE
:JC =M002
:
:L KF +5502
:DO -MW 152 PHASE_REQUEST
:T DW 0
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
:S -MS160.7 STP 80: ACTIVE
:JU =M001
M002 :
:A -M 0.1 CONSTANT 1
:R -MS160.7 STP 80: ACTIVE
:
:L KF +90
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FX 104 -FX104 PHASE-L DISCHARGE C:ZONE10ST.S5D LEN=478
Page 8
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 160.7 = MS160.7 STP 80: ACTIVE
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 0.1 = M 0.1 CONSTANT 1
Segment 16 Step 90: Upload reports
:L -MW 150 PHASE_STEP_INDEX
:L KF +90
:><F
:ON -MI167.5 PLI_RUNNING
:O(
:A =REPO 01 if reports
:AN -MI167.1 COMPLETE 01
:) 01
:O -MI167.6 RQ_IN_WORK
:JC =M001
:A -MS161.0 STP 90: ACTIVE
:JC =M001
: Upload fin. after complete
:L -MW 152 PHASE_REQUEST
:I 41
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:JC =M002
:L KF +2 Hold at end
:DO -MW 158 PHASE_ST_FAILURE
:T DW 0
:
:A -M 0.1 CONSTANT 1
M002 :S -MS161.0 STP 90: ACTIVE
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.1 = MI167.1 COMPLETE
F 167.6 = MI167.6 RQ_IN_WORK
F 161.0 = MS161.0 STP 90: ACTIVE
FW 152 = MW 152 PHASE_REQUEST
FW 158 = MW 158 PHASE_ST_FAILURE
F 0.1 = M 0.1 CONSTANT 1
Segment 17 PLI DX
:LW =PLDX
:T -MW188 ADDR_OBJECT_DB/DX
:DO -MW188 ADDR_OBJECT_DB/DX
:CX -DX 0 SYSTEM PARAMETER
:***
FW 188 = MW188 ADDR_OBJECT_DB/DX
DX 0 = DX 0 SYSTEM PARAMETER
Segment 18 Store step number
:LW =OFFS
:L KF +3
:+F
:T -MW186 DW_ADDRESS
:
FX 104 -FX104 PHASE-L DISCHARGE C:ZONE10ST.S5D LEN=478
Page 9
:L -MW 150 PHASE_STEP_INDEX
:DO -MW186 DW_ADDRESS
:T DW 0
:
:A =UNID
:= -MS161.5 !! UNIT IDLE !!
:***
FW 186 = MW186 DW_ADDRESS
FW 150 = MW 150 PHASE_STEP_INDEX
F 161.5 = MS161.5 !! UNIT IDLE !!
Segment 19 Store Control bits PLI
:LW =OFFS
:L KF +11
:+F
:T -MW186 DW_ADDRESS
:
:L -MW 166_IN_PLI
:DO -MW186 DW_ADDRESS
:T DW 0
:
:LW =OFFS
:L KF +19
:+F
:T -MW186 DW_ADDRESS
:
:L -MW 160_STATUS_PL
:DO -MW186 DW_ADDRESS
:T DW 0
:***
FW 186 = MW186 DW_ADDRESS
FW 166 = MW 166_IN_PLI Eingangsbitleiste an PLI
FW 160 = MW 160_STATUS_PL
Segment 20 Reports to PLI
:LW =ADB
:T FW 190
:
:L KF +136
:T FW 192
:
:L -MW 152 PHASE_REQUEST
:L KF +44
:+F
:T FW 194
:
:L KF +6
:T FW 196
:***
FW 152 = MW 152 PHASE_REQUEST
Segment 21 Reports to PLI
:A =REPO
:JC -FB173 COPY BLOCK
Name :COPY DKF
QUEL : KS DB
DB-Q : FW 190
VON : FW 192
BIS : FW 192
ZIEL : KS DX
DB-Z : -MW188 ADDR_OBJECT_DB/DX
FX 104 -FX104 PHASE-L DISCHARGE C:ZONE10ST.S5D LEN=478
Page 10
NACH : FW 194
FEHL : -M 0.0 IND.ADDRES(DUMMY)
LAEN : FW 196
L-B : KS LA
:BE
FW 188 = MW188 ADDR_OBJECT_DB/DX
F 0.0 = M 0.0 IND.ADDRES(DUMMY)
FB 173 = FB173 COPY BLOCK parameter: EW sp
FX 105 -FX105 PHASE-L BLEND C:ZONE10ST.S5D LEN=454
Page 1
Segment 1
*****************************************************************************
BESCHREIBUNG :
---------------
Dieser Baustein setzt das PLI ( Phase Logic Interface ) von Open - Batch
auf die Schnittstelle HsH - PC zur SPS - Waage ( DB 210 ) um
******************************************************************************
PARAMETER :
-----------
PLDX : Nr. des DX Datenbaustein fuer PLI
OFFS : Offset fuer PLI Anfang
WZNR : Zaehlnummer der SPS - Waage
DBPC : Datenbaustein fuer Schnittstelle PC - SPS Waage
DBST : Steuerdatenbaustein PC - SPS Waage
AUTO : Automatik - Mode
******************************************************************************
Name :PL-SS-BL
Decl :PLDX I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :OFFS I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :MADB I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :EOSI I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :BLEN I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :UNID I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :PREP I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :TDDP I/Q/D/B/T/C: T
:***
Segment 2 PLI DX oeffnen
:LW =PLDX
:T -MW188 ADDR_OBJECT_DB/DX
:DO -MW188 ADDR_OBJECT_DB/DX
:CX -DX 0 SYSTEM PARAMETER
:***
FW 188 = MW188 ADDR_OBJECT_DB/DX
DX 0 = DX 0 SYSTEM PARAMETER
Segment 3 Load Control bits PLI
:LW =OFFS
:L KF +10
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 168_OUT_PLI Ausgangsbitleiste von PLI
: --------------------------------
:L -MW186 DW_ADDRESS
:L KF +1
:+F
:T -MW186 DW_ADDRESS 11
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 166_IN_PLI Eingangsbitleiste von PLI
: --------------------------------
FX 105 -FX105 PHASE-L BLEND C:ZONE10ST.S5D LEN=454
Page 2
:***
FW 186 = MW186 DW_ADDRESS
FW 168 = MW 168_OUT_PLI Ausgangssteuerbitleiste von PLI
FW 166 = MW 166_IN_PLI Eingangsbitleiste an PLI
Segment 4 Load Status bits PLI/ Unit idle
:LW =OFFS
:L KF +19
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 160_STATUS_PL Status bits PLI
: --------------------------------
:JU =M001 !!! TEST !!!
:A -MO169.4 START_BY_PLI
:AN =UNID
:R -MO169.4 START_BY_PLI
:S -MI167.4 IDLE(ready)
M001 :***
FW 186 = MW186 DW_ADDRESS
FW 160 = MW 160_STATUS_PL
F 169.4 = MO169.4 START_BY_PLI
F 167.4 = MI167.4 IDLE(ready)
Segment 5 Request registers
:LW =OFFS
:T -MW 152 PHASE_REQUEST
:
:L -MW 152 PHASE_REQUEST
:I 13
:T -MW 154 REQ_DATA1
:
:L -MW 152 PHASE_REQUEST
:I 14
:T -MW 156 REQ_DATA2
:
:L -MW 152 PHASE_REQUEST
:I 12
:T -MW 158 PHASE_ST_FAILURE
:
:L KF +0
:DO -MW 158 PHASE_ST_FAILURE
:T DW 0 reset stored failure
:***
FW 152 = MW 152 PHASE_REQUEST
FW 154 = MW 154 REQ_DATA1
FW 156 = MW 156 REQ_DATA2
FW 158 = MW 158 PHASE_ST_FAILURE
Segment 6 Operator confirm
:DO -MW 152 PHASE_REQUEST
:L DW 0
:L KF +1200
:>=F
:= -MS161.4 ! OPER_CONFRM !
:***
FW 152 = MW 152 PHASE_REQUEST
F 161.4 = MS161.4 ! OPER_CONFRM !
FX 105 -FX105 PHASE-L BLEND C:ZONE10ST.S5D LEN=454
Page 3
Segment 7 Request in work
:DO -MW 152 PHASE_REQUEST
:L DW 0
:L KF +6000
:!=F
:= F 200.0 RQ 6000
:R -MI167.6 RQ_IN_WORK
:DO -MW 152 PHASE_REQUEST
:L DW 0
:L KF +1000
:>=F
:AN F 200.0 RQ 6000
:S -MI167.6 RQ_IN_WORK
:JC =M001
:
:L KF +0
:DO -MW 154 REQ_DATA1
:T DW 0
:DO -MW 156 REQ_DATA2
:T DW 0
M001 :***
FW 152 = MW 152 PHASE_REQUEST
F 167.6 = MI167.6 RQ_IN_WORK
FW 154 = MW 154 REQ_DATA1
FW 156 = MW 156 REQ_DATA2
Segment 8 Complete
:L -MW 152 PHASE_REQUEST
:L KF +4
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:L KF +70
:!=F
:S -MI167.1 COMPLETE
:
:AN -MO169.4 START_BY_PLI
:JC =M001
:
:AN -M 0.1 CONSTANT 1
:SD =TDDP
M001 :***
FW 152 = MW 152 PHASE_REQUEST
FW 186 = MW186 DW_ADDRESS
F 167.1 = MI167.1 COMPLETE
F 169.4 = MO169.4 START_BY_PLI
F 0.1 = M 0.1 CONSTANT 1
Segment 9 start sequence
:L -MW 152 PHASE_REQUEST
:L KF +3
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 150 PHASE_STEP_INDEX
:
:AN -MO169.4 START_BY_PLI
:AN F 200.0 RQ 6000
:JC =M001
:
FX 105 -FX105 PHASE-L BLEND C:ZONE10ST.S5D LEN=454
Page 4
:L KF +0
:T -MW 160_STATUS_PL
:
:AN -MO169.4 START_BY_PLI
:JC =M001
:L KF +10
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 152 = MW 152 PHASE_REQUEST
FW 186 = MW186 DW_ADDRESS
FW 150 = MW 150 PHASE_STEP_INDEX
F 169.4 = MO169.4 START_BY_PLI
FW 160 = MW 160_STATUS_PL
Segment 10 Step 10: load para
:L -MW 150 PHASE_STEP_INDEX
:L KF +10
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:A -MS160.0 STP 10: ACTIVE
:JC =M002
:AN -MI167.7 RQ_1000 DLall
:S -MI167.7 RQ_1000 DLall
:S -MS160.0 STP 10: ACTIVE
:JU =M001
M002 :
:L -MW 152 PHASE_REQUEST
:I 40
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:AN -S 2.6 SPEED FAULT BD560 *(6)
:O -MS161.7 STP 10:HOLD_ACT
:JC =M003
:AN -S 2.6 SPEED FAULT BD560 *(6)
:JC =M004 *(6)
:L KF +50 *(6) device Hold
M004 :DO -MW 158 PHASE_ST_FAILURE *(6)
:T DW 0
:
:AN -S 2.6 SPEED FAULT BD560 *(6)
:S -MS161.7 STP 10:HOLD_ACT
:JU =M001
:
:A -M 0.1 CONSTANT 1
M003 :R -MS160.0 STP 10: ACTIVE
:R -MS161.7 STP 10:HOLD_ACT
:
:L KF +40
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 160.0 = MS160.0 STP 10: ACTIVE
F 167.7 = MI167.7 RQ_1000 DLall
FW 152 = MW 152 PHASE_REQUEST
S 2.6 = S 2.6 SPEED FAULT BD560 *(6)
FX 105 -FX105 PHASE-L BLEND C:ZONE10ST.S5D LEN=454
Page 5
F 161.7 = MS161.7 STP 10:HOLD_ACT
FW 158 = MW 158 PHASE_ST_FAILURE
F 0.1 = M 0.1 CONSTANT 1
Segment 11 Step 40: start blending
:L -MW 150 PHASE_STEP_INDEX
:L KF +40
:><F
:ON -MI167.5 PLI_RUNNING
:JC =M001
:O -MS160.2 STP 30: ACTIVE simul.
:O -MS160.3 STP 40: ACTIVE
:JC =M002
:AN -MS160.2 STP 30: ACTIVE
:S -MS160.2 STP 30: ACTIVE simul. for transfer impuls
:JU =M001
M002 :
:A =EOSI
:R -MS160.3 STP 40: ACTIVE
:R -MS160.2 STP 30: ACTIVE simul.
:
:AN =EOSI
:S -MS160.3 STP 40: ACTIVE
:R -MS160.2 STP 30: ACTIVE
:JC =M001
:
:L KF +90
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 160.2 = MS160.2 STP 30: ACTIVE
F 160.3 = MS160.3 STP 40: ACTIVE
Segment 12 Step 90: Upload reports
:L -MW 150 PHASE_STEP_INDEX
:L KF +90
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:AN -MS161.0 STP 90: ACTIVE
:S -MS161.0 STP 90: ACTIVE
:JC =M001
:
:A -MS161.0 STP 90: ACTIVE
:R -MS161.0 STP 90: ACTIVE
:
:L -MW 152 PHASE_REQUEST
:I 41
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:AN -S 2.6 SPEED FAULT BD560 *(6)
:JC =M001
:AN -S 2.6 SPEED FAULT BD560 *(6)
:L KF +2 Hold at end
:JC =M002 *(6)
:L KF +50 *(6) device Hold
M002 :DO -MW 158 PHASE_ST_FAILURE *(6)
:T DW 0
FX 105 -FX105 PHASE-L BLEND C:ZONE10ST.S5D LEN=454
Page 6
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 161.0 = MS161.0 STP 90: ACTIVE
FW 152 = MW 152 PHASE_REQUEST
S 2.6 = S 2.6 SPEED FAULT BD560 *(6)
FW 158 = MW 158 PHASE_ST_FAILURE
Segment 13 transfer requested blend time
:LW =MADB
:T FW 190
:
:L KF +28
:T FW 192
:
:L -MW 152 PHASE_REQUEST
:L KF +20
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW180 PARAMETER 1
:
:A -MS160.2 STP 30: ACTIVE simul. for transfer impuls
:JC -FB176 STORE DW INDIR.
Name :TANS DW
DB : FW 190
DW : FW 192
WERT : -MW180 PARAMETER 1
DBDX : KS DB
:***
FW 152 = MW 152 PHASE_REQUEST
FW 186 = MW186 DW_ADDRESS
FW 180 = MW180 PARAMETER 1
F 160.2 = MS160.2 STP 30: ACTIVE
FB 176 = FB176 STORE DW INDIR. sp
Segment 14 Control bits PLI
:A =UNID
:= -MS161.5 !! UNIT IDLE !!
:
:A -MO169.4 START_BY_PLI
:AN -MO169.0 ABORTING_BY_PLI
:AN -MO169.2 STOPPING_BY_PLI
:S -MI167.5 PLI_RUNNING
:
:A -MO169.4 START_BY_PLI
:S -M 61.0 RESET ALL BLTIME
:
:A -MO169.0 ABORTING_BY_PLI
:S -MI167.3 ABORTED
:
:A -MO169.1 HOLDING_BY_PLI
:S -MI167.0 HELD
:
:A -MO169.3 RESTART_BY_PLI
:S -MI166.3 RESTART_COMPL
:***
F 161.5 = MS161.5 !! UNIT IDLE !!
FX 105 -FX105 PHASE-L BLEND C:ZONE10ST.S5D LEN=454
Page 7
F 169.4 = MO169.4 START_BY_PLI
F 169.0 = MO169.0 ABORTING_BY_PLI
F 169.2 = MO169.2 STOPPING_BY_PLI
F 167.5 = MI167.5 PLI_RUNNING
F 61.0 = M 61.0 RESET ALL BLTIME
F 167.3 = MI167.3 ABORTED
F 169.1 = MO169.1 HOLDING_BY_PLI
F 167.0 = MI167.0 HELD
F 169.3 = MO169.3 RESTART_BY_PLI
F 166.3 = MI166.3 RESTART_COMPL
Segment 15 Control bits PLI
:O -MI167.5 PLI_RUNNING
:O -MO169.2 STOPPING_BY_PLI
:A(
:L -MW 150 PHASE_STEP_INDEX 01
:L KF +40 01
:>=F 01
:) 01
:= =PREP
:
:A -MO169.2 STOPPING_BY_PLI
:AN -MI167.6 RQ_IN_WORK
:AN -MI167.2 STOPPED
:= F 200.0
:S -MI167.2 STOPPED
:
:A F 200.0
:A =PREP
:S -MI166.1 RQ_2000 ULall
:***
F 167.5 = MI167.5 PLI_RUNNING
F 169.2 = MO169.2 STOPPING_BY_PLI
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.6 = MI167.6 RQ_IN_WORK
F 167.2 = MI167.2 STOPPED
F 166.1 = MI166.1 RQ_2000 ULall
Segment 16 Control bits PLI
:A -MI167.5 PLI_RUNNING
:A -MS161.0 STP 90: ACTIVE
:S -MI167.1 COMPLETE
:
:O -MO169.0 ABORTING_BY_PLI
:O -MO169.1 HOLDING_BY_PLI
:O -MO169.2 STOPPING_BY_PLI
:O -MO169.4 START_BY_PLI
:R -MI167.1 COMPLETE
:
:A -MI167.5 PLI_RUNNING
:AN -MI167.1 COMPLETE
:= =BLEN
:***
F 167.5 = MI167.5 PLI_RUNNING
F 161.0 = MS161.0 STP 90: ACTIVE
F 167.1 = MI167.1 COMPLETE
F 169.0 = MO169.0 ABORTING_BY_PLI
F 169.1 = MO169.1 HOLDING_BY_PLI
F 169.2 = MO169.2 STOPPING_BY_PLI
F 169.4 = MO169.4 START_BY_PLI
Segment 17 PLI DX
FX 105 -FX105 PHASE-L BLEND C:ZONE10ST.S5D LEN=454
Page 8
:LW =PLDX
:T -MW188 ADDR_OBJECT_DB/DX
:DO -MW188 ADDR_OBJECT_DB/DX
:CX -DX 0 SYSTEM PARAMETER
:***
FW 188 = MW188 ADDR_OBJECT_DB/DX
DX 0 = DX 0 SYSTEM PARAMETER
Segment 18 Store step number
:LW =OFFS
:L KF +3
:+F
:T -MW186 DW_ADDRESS
:
:L -MW 150 PHASE_STEP_INDEX
:DO -MW186 DW_ADDRESS
:T DW 0
:***
FW 186 = MW186 DW_ADDRESS
FW 150 = MW 150 PHASE_STEP_INDEX
Segment 19 Store Control bits PLI
:LW =OFFS
:L KF +11
:+F
:T -MW186 DW_ADDRESS
:
:L -MW 166_IN_PLI
:DO -MW186 DW_ADDRESS
:T DW 0
:
:LW =OFFS
:L KF +19
:+F
:T -MW186 DW_ADDRESS
:
:L -MW 160_STATUS_PL
:DO -MW186 DW_ADDRESS
:T DW 0
:***
FW 186 = MW186 DW_ADDRESS
FW 166 = MW 166_IN_PLI Eingangsbitleiste an PLI
FW 160 = MW 160_STATUS_PL
Segment 20 Report Time to PLI
:LW =MADB
:T FW 190
:
:L KF +31
:T FW 192
:
:L -MW 152 PHASE_REQUEST
:L KF +44
:+F
:T FW 194
:
:L KF +1
:T FW 196
:***
FX 105 -FX105 PHASE-L BLEND C:ZONE10ST.S5D LEN=454
Page 9
FW 152 = MW 152 PHASE_REQUEST
Segment 21 Report Time to PLI
:O -MS161.0 STP 90: ACTIVE
:O -MO169.2 STOPPING_BY_PLI
:AN -MI167.6 RQ_IN_WORK
:JC -FB173 COPY BLOCK
Name :COPY DKF
QUEL : KS DB
DB-Q : FW 190
VON : FW 192
BIS : FW 192
ZIEL : KS DX
DB-Z : -MW188 ADDR_OBJECT_DB/DX
NACH : FW 194
FEHL : -M 0.0 IND.ADDRES(DUMMY)
LAEN : FW 196
L-B : KS LA
:***
F 161.0 = MS161.0 STP 90: ACTIVE
F 169.2 = MO169.2 STOPPING_BY_PLI
F 167.6 = MI167.6 RQ_IN_WORK
FW 188 = MW188 ADDR_OBJECT_DB/DX
F 0.0 = M 0.0 IND.ADDRES(DUMMY)
FB 173 = FB173 COPY BLOCK parameter: EW sp
Segment 22 Report Revolution to PLI
:LW =MADB
:T FW 190
:
:L KF +44
:T FW 192
:
:L -MW 152 PHASE_REQUEST
:L KF +45
:+F
:T FW 194
:
:L KF +2
:T FW 196
:***
FW 152 = MW 152 PHASE_REQUEST
Segment 23 Report Revolution to PLI
:O -MS161.0 STP 90: ACTIVE
:O -MO169.2 STOPPING_BY_PLI
:AN -MI167.6 RQ_IN_WORK
:JC -FB173 COPY BLOCK
Name :COPY DKF
QUEL : KS DB
DB-Q : FW 190
VON : FW 192
BIS : FW 192
ZIEL : KS DX
DB-Z : -MW188 ADDR_OBJECT_DB/DX
NACH : FW 194
FEHL : -M 0.0 IND.ADDRES(DUMMY)
LAEN : FW 196
L-B : KS LA
:BE
FX 105 -FX105 PHASE-L BLEND C:ZONE10ST.S5D LEN=454
Page 10
F 161.0 = MS161.0 STP 90: ACTIVE
F 169.2 = MO169.2 STOPPING_BY_PLI
F 167.6 = MI167.6 RQ_IN_WORK
FW 188 = MW188 ADDR_OBJECT_DB/DX
F 0.0 = M 0.0 IND.ADDRES(DUMMY)
FB 173 = FB173 COPY BLOCK parameter: EW sp
FX 106 -FX106 PHASE-L MAN_ADD C:ZONE10ST.S5D LEN=452
Page 1
Segment 1
*****************************************************************************
BESCHREIBUNG :
---------------
Dieser Baustein setzt das PLI ( Phase Logic Interface ) von Open - Batch
auf die Schnittstelle HsH - PC zur SPS - Waage ( DB 210 ) um
******************************************************************************
PARAMETER :
-----------
PLDX : Nr. des DX Datenbaustein fuer PLI
OFFS : Offset fuer PLI Anfang
WZNR : Zaehlnummer der SPS - Waage
DBPC : Datenbaustein fuer Schnittstelle PC - SPS Waage
DBST : Steuerdatenbaustein PC - SPS Waage
AUTO : Automatik - Mode
******************************************************************************
Name :PL-SS-MA
Decl :PLDX I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :OFFS I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :MADB I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :EOSI I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :LOAC I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :UNID I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :TDDP I/Q/D/B/T/C: T
:***
Segment 2 PLI DX oeffnen
:LW =PLDX
:T -MW188 ADDR_OBJECT_DB/DX
:DO -MW188 ADDR_OBJECT_DB/DX
:CX -DX 0 SYSTEM PARAMETER
:***
FW 188 = MW188 ADDR_OBJECT_DB/DX
DX 0 = DX 0 SYSTEM PARAMETER
Segment 3 Load Control bits PLI
:LW =OFFS
:L KF +10
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 168_OUT_PLI Ausgangsbitleiste von PLI
: --------------------------------
:L -MW186 DW_ADDRESS
:L KF +1
:+F
:T -MW186 DW_ADDRESS 11
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 166_IN_PLI Eingangsbitleiste von PLI
: --------------------------------
:***
FX 106 -FX106 PHASE-L MAN_ADD C:ZONE10ST.S5D LEN=452
Page 2
FW 186 = MW186 DW_ADDRESS
FW 168 = MW 168_OUT_PLI Ausgangssteuerbitleiste von PLI
FW 166 = MW 166_IN_PLI Eingangsbitleiste an PLI
Segment 4 Load Status bits PLI/ Unit idle
:LW =OFFS
:L KF +19
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 160_STATUS_PL Status bits PLI
: --------------------------------
:JU =M001
:A -MO169.4 START_BY_PLI
:AN =UNID
:R -MO169.4 START_BY_PLI
:S -MI167.4 IDLE(ready)
M001 :***
FW 186 = MW186 DW_ADDRESS
FW 160 = MW 160_STATUS_PL
F 169.4 = MO169.4 START_BY_PLI
F 167.4 = MI167.4 IDLE(ready)
Segment 5 Request registers
:LW =OFFS
:T -MW 152 PHASE_REQUEST
:
:L -MW 152 PHASE_REQUEST
:I 13
:T -MW 154 REQ_DATA1
:
:L -MW 152 PHASE_REQUEST
:I 14
:T -MW 156 REQ_DATA2
:
:L -MW 152 PHASE_REQUEST
:I 12
:T -MW 158 PHASE_ST_FAILURE
:
:L KF +0
:DO -MW 158 PHASE_ST_FAILURE
:T DW 0 reset stored failure
:***
FW 152 = MW 152 PHASE_REQUEST
FW 154 = MW 154 REQ_DATA1
FW 156 = MW 156 REQ_DATA2
FW 158 = MW 158 PHASE_ST_FAILURE
Segment 6 Operator confirm
:DO -MW 152 PHASE_REQUEST
:L DW 0
:L KF +1200
:>=F
:= -MS161.4 ! OPER_CONFRM !
:
:AN -MO169.4 START_BY_PLI
:JC =M001
:
:A -M 0.1 CONSTANT 1
:R -MS161.2 STP 7: ACTIVE
:R -MS161.0 STP 90: ACTIVE
FX 106 -FX106 PHASE-L MAN_ADD C:ZONE10ST.S5D LEN=452
Page 3
:
:AN -M 0.1 CONSTANT 1
:SD =TDDP
M001 :***
FW 152 = MW 152 PHASE_REQUEST
F 161.4 = MS161.4 ! OPER_CONFRM !
F 169.4 = MO169.4 START_BY_PLI
F 0.1 = M 0.1 CONSTANT 1
F 161.2 = MS161.2 STP 7: ACTIVE additional to stp 10:
F 161.0 = MS161.0 STP 90: ACTIVE
Segment 7 Request in work
:DO -MW 152 PHASE_REQUEST
:L DW 0
:L KF +6000
:!=F
:= F 200.0 RQ 6000
:R -MI167.6 RQ_IN_WORK
:DO -MW 152 PHASE_REQUEST
:L DW 0
:L KF +1000
:>=F
:AN F 200.0 RQ 6000
:S -MI167.6 RQ_IN_WORK
:JC =M001
:
:L KF +0
:DO -MW 154 REQ_DATA1
:T DW 0
:DO -MW 156 REQ_DATA2
:T DW 0
M001 :***
FW 152 = MW 152 PHASE_REQUEST
F 167.6 = MI167.6 RQ_IN_WORK
FW 154 = MW 154 REQ_DATA1
FW 156 = MW 156 REQ_DATA2
Segment 8 Complete
:L -MW 152 PHASE_REQUEST
:L KF +4
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:L KF +70
:!=F
:S -MI167.1 COMPLETE
:***
FW 152 = MW 152 PHASE_REQUEST
FW 186 = MW186 DW_ADDRESS
F 167.1 = MI167.1 COMPLETE
Segment 9 start sequence
:L -MW 152 PHASE_REQUEST
:L KF +3
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 150 PHASE_STEP_INDEX
:
FX 106 -FX106 PHASE-L MAN_ADD C:ZONE10ST.S5D LEN=452
Page 4
:AN -MO169.4 START_BY_PLI
:AN F 200.0 RQ 6000
:JC =M001
:
:L KF +0
:T -MW 160_STATUS_PL
:
:AN -MO169.4 START_BY_PLI
:JC =M001
:L KF +5
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 152 = MW 152 PHASE_REQUEST
FW 186 = MW186 DW_ADDRESS
FW 150 = MW 150 PHASE_STEP_INDEX
F 169.4 = MO169.4 START_BY_PLI
FW 160 = MW 160_STATUS_PL
Segment 10 Step 5: last ingredient ?
:L -MW 150 PHASE_STEP_INDEX
:L KF +5
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:A -MS161.6 STP 5: ACTIVE
:JC =M002
:L KF +1207
:DO -MW 152 PHASE_REQUEST
:T DW 0
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
:S -MS161.6 STP 5: ACTIVE
:JU =M001
M002 :
:A -M 0.1 CONSTANT 1
:R -MS161.6 STP 5: ACTIVE
:
:L KF +7
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 161.6 = MS161.6 STP 5: ACTIVE additional to stp 10:
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 0.1 = M 0.1 CONSTANT 1
Segment 11 Step 7: last addition ?
:L -MW 150 PHASE_STEP_INDEX
:L KF +7
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:A -MS161.2 STP 7: ACTIVE
:JC =M002
:L KF +1208
:DO -MW 152 PHASE_REQUEST
:T DW 0
:AN -MI166.0 RQ_1100 DLpart
FX 106 -FX106 PHASE-L MAN_ADD C:ZONE10ST.S5D LEN=452
Page 5
:S -MI166.0 RQ_1100 DLpart
:S -MS161.2 STP 7: ACTIVE
:JU =M001
M002 :
:L -MW 152 PHASE_REQUEST
:I 20
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:A(
:L -MW 152 PHASE_REQUEST 01
:I 21 01
:T FW 192 01
:DO FW 192 01
:L DW 0 01
:L KF +1 01
:><F 01
:) 01
:L KF +10
:JC =M003
:
:L KF +90
:AN -M 0.1 CONSTANT 1
M003 :R -MS161.2 STP 7: ACTIVE
:
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 161.2 = MS161.2 STP 7: ACTIVE additional to stp 10:
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 0.1 = M 0.1 CONSTANT 1
Segment 12 Step 10: load para
:L -MW 150 PHASE_STEP_INDEX
:L KF +10
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:A -MS160.0 STP 10: ACTIVE
:JC =M002
:L KF +1
:DO -MW 154 REQ_DATA1
:T DW 0
:DO -MW 156 REQ_DATA2
:T DW 0
:
:A -M 0.1 CONSTANT 1
:L KT 003.2
:SD =TDDP
:
:AN =TDDP
:JC =M001
:L KF +1105
:DO -MW 152 PHASE_REQUEST
:T DW 0
:
:AN -MI166.0 RQ_1100 DLpart
FX 106 -FX106 PHASE-L MAN_ADD C:ZONE10ST.S5D LEN=452
Page 6
:S -MI166.0 RQ_1100 DLpart
:S -MS160.0 STP 10: ACTIVE
:AN -M 0.1 CONSTANT 1
:SD =TDDP
:JU =M001
M002 :
:L -MW 152 PHASE_REQUEST
:I 40
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:O -MS161.7 STP 10:HOLD_ACT
:JC =M003
:DO -MW 158 PHASE_ST_FAILURE
:T DW 0
:
:A -M 0.1 CONSTANT 1
:S -MS161.7 STP 10:HOLD_ACT
:JU =M001
:
:A -M 0.1 CONSTANT 1
M003 :R -MS160.0 STP 10: ACTIVE
:R -MS161.7 STP 10:HOLD_ACT
:
:L KF +40
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 160.0 = MS160.0 STP 10: ACTIVE
FW 154 = MW 154 REQ_DATA1
FW 156 = MW 156 REQ_DATA2
F 0.1 = M 0.1 CONSTANT 1
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 161.7 = MS161.7 STP 10:HOLD_ACT
FW 158 = MW 158 PHASE_ST_FAILURE
Segment 13 Step 40: unlock lid
:L -MW 150 PHASE_STEP_INDEX
:L KF +40
:><F
:ON -MI167.5 PLI_RUNNING
:JC =M001
:
:A -MS160.3 STP 40: ACTIVE lid open (n EOSI)
:R -MS160.3 STP 40: ACTIVE
:AN -MS160.3 STP 40: ACTIVE
:A -MS160.3 STP 40: ACTIVE lid closed ( EOSI)
:S -MS160.3 STP 40: ACTIVE
:JC =M001
:
:L KF +70
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 160.3 = MS160.3 STP 40: ACTIVE
FX 106 -FX106 PHASE-L MAN_ADD C:ZONE10ST.S5D LEN=452
Page 7
Segment 14 Step 70: confirm at end ?
:L -MW 150 PHASE_STEP_INDEX
:L KF +70
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:A -MS160.6 STP 70: ACTIVE
: lid is closed again (n EOSI)
:JC =M002
:
:L KF +1206
:DO -MW 152 PHASE_REQUEST
:T DW 0
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
:S -MS160.6 STP 70: ACTIVE
:JU =M001
M002 :
:A -M 0.1 CONSTANT 1
:R -MS160.6 STP 70: ACTIVE
:
:L KF +90
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 160.6 = MS160.6 STP 70: ACTIVE
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 0.1 = M 0.1 CONSTANT 1
Segment 15 Step 90: Upload reports
:L -MW 150 PHASE_STEP_INDEX
:L KF +90
:><F
:ON -MI167.5 PLI_RUNNING
:JC =M001
:A -MS161.2 STP 7: ACTIVE
:JC =M002
:A -MS161.0 STP 90: ACTIVE
:JC =M001
:
:L -MW 152 PHASE_REQUEST
:I 41
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:JC =M002
:L KF +2
:DO -MW 158 PHASE_ST_FAILURE
:T DW 0
:
:AN -MS161.0 STP 90: ACTIVE
M002 :S -MS161.0 STP 90: ACTIVE
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 161.2 = MS161.2 STP 7: ACTIVE additional to stp 10:
FX 106 -FX106 PHASE-L MAN_ADD C:ZONE10ST.S5D LEN=452
Page 8
F 161.0 = MS161.0 STP 90: ACTIVE
FW 152 = MW 152 PHASE_REQUEST
FW 158 = MW 158 PHASE_ST_FAILURE
Segment 16 Control bits PLI
:A =UNID
:= -MS161.5 !! UNIT IDLE !!
:
:A -MO169.4 START_BY_PLI
:AN -MO169.0 ABORTING_BY_PLI
:AN -MO169.2 STOPPING_BY_PLI
:S -MI167.5 PLI_RUNNING
:
:A -MO169.0 ABORTING_BY_PLI
:S -MI167.3 ABORTED
:
:A -MO169.1 HOLDING_BY_PLI
:S -MI167.0 HELD
:
:A -MO169.3 RESTART_BY_PLI
:S -MI166.3 RESTART_COMPL
:***
F 161.5 = MS161.5 !! UNIT IDLE !!
F 169.4 = MO169.4 START_BY_PLI
F 169.0 = MO169.0 ABORTING_BY_PLI
F 169.2 = MO169.2 STOPPING_BY_PLI
F 167.5 = MI167.5 PLI_RUNNING
F 167.3 = MI167.3 ABORTED
F 169.1 = MO169.1 HOLDING_BY_PLI
F 167.0 = MI167.0 HELD
F 169.3 = MO169.3 RESTART_BY_PLI
F 166.3 = MI166.3 RESTART_COMPL
Segment 17 Control bits PLI
:A -MO169.2 STOPPING_BY_PLI
:S -MI167.2 STOPPED
:
:A -MI167.5 PLI_RUNNING
:A -MS161.0 STP 90: ACTIVE
:AN =EOSI lid closed again
:S -MI167.1 COMPLETE
:O -MO169.0 ABORTING_BY_PLI
:O -MO169.1 HOLDING_BY_PLI
:O -MO169.2 STOPPING_BY_PLI
:O -MO169.4 START_BY_PLI
:R -MI167.1 COMPLETE
:***
F 169.2 = MO169.2 STOPPING_BY_PLI
F 167.2 = MI167.2 STOPPED
F 167.5 = MI167.5 PLI_RUNNING
F 161.0 = MS161.0 STP 90: ACTIVE
F 167.1 = MI167.1 COMPLETE
F 169.0 = MO169.0 ABORTING_BY_PLI
F 169.1 = MO169.1 HOLDING_BY_PLI
F 169.4 = MO169.4 START_BY_PLI
Segment 18 lock active
:L -MW 150 PHASE_STEP_INDEX
:L KF +40
:>=F running
:A(
:L -MW 150 PHASE_STEP_INDEX 01
FX 106 -FX106 PHASE-L MAN_ADD C:ZONE10ST.S5D LEN=452
Page 9
:L KF +70 01
:<=F 01 man_add_confirm
:) 01
:AN -MI167.1 COMPLETE
:A -MI167.5 PLI_RUNNING
:= =LOAC
:***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.1 = MI167.1 COMPLETE
F 167.5 = MI167.5 PLI_RUNNING
Segment 19 PLI DX
:LW =PLDX
:T -MW188 ADDR_OBJECT_DB/DX
:DO -MW188 ADDR_OBJECT_DB/DX
:CX -DX 0 SYSTEM PARAMETER
:***
FW 188 = MW188 ADDR_OBJECT_DB/DX
DX 0 = DX 0 SYSTEM PARAMETER
Segment 20 Store step number
:LW =OFFS
:L KF +3
:+F
:T -MW186 DW_ADDRESS
:
:L -MW 150 PHASE_STEP_INDEX
:DO -MW186 DW_ADDRESS
:T DW 0
:***
FW 186 = MW186 DW_ADDRESS
FW 150 = MW 150 PHASE_STEP_INDEX
Segment 21 Store Control bits PLI
:LW =OFFS
:L KF +11
:+F
:T -MW186 DW_ADDRESS
:
:L -MW 166_IN_PLI
:DO -MW186 DW_ADDRESS
:T DW 0
:
:LW =OFFS
:L KF +19
:+F
:T -MW186 DW_ADDRESS
:
:L -MW 160_STATUS_PL
:DO -MW186 DW_ADDRESS
:T DW 0
:BE
FW 186 = MW186 DW_ADDRESS
FW 166 = MW 166_IN_PLI Eingangsbitleiste an PLI
FW 160 = MW 160_STATUS_PL
FX 111 C:ZONE10ST.S5D LEN=393
Page 1
Segment 1
*****************************************************************************
BESCHREIBUNG :
---------------
Dieser Baustein setzt das PLI ( Phase Logic Interface ) von Open - Batch
auf die Schnittstelle HsH - PC zur SPS - Waage ( DB 210 ) um
******************************************************************************
PARAMETER :
-----------
PLDX : Nr. des DX Datenbaustein fuer PLI
OFFS : Offset fuer PLI Anfang
WZNR : Zaehlnummer der SPS - Waage
DBPC : Datenbaustein fuer Schnittstelle PC - SPS Waage
DBST : Steuerdatenbaustein PC - SPS Waage
AUTO : Automatik - Mode
******************************************************************************
Name :PL-SS-IA
Decl :PLDX I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :OFFS I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :WADB I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :EOSI I/Q/D/B/T/C: I BI/BY/W/D: BI
:***
Segment 2 PLI DX oeffnen
:LW =PLDX
:T -MW188 ADDR_OBJECT_DB/DX
:DO -MW188 ADDR_OBJECT_DB/DX
:CX -DX 0 SYSTEM PARAMETER
:***
FW 188 = MW188 ADDR_OBJECT_DB/DX
DX 0 = DX 0 SYSTEM PARAMETER
Segment 3 Load Control bits PLI
:LW =OFFS
:L KF +10
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 168_OUT_PLI Ausgangsbitleiste von PLI
: --------------------------------
:L -MW186 DW_ADDRESS
:L KF +1
:+F
:T -MW186 DW_ADDRESS 11
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 166_IN_PLI Eingangsbitleiste von PLI
: --------------------------------
:***
FW 186 = MW186 DW_ADDRESS
FW 168 = MW 168_OUT_PLI Ausgangssteuerbitleiste von PLI
FX 111 C:ZONE10ST.S5D LEN=393
Page 2
FW 166 = MW 166_IN_PLI Eingangsbitleiste an PLI
Segment 4 Load Status bits PLI
:LW =OFFS
:L KF +19
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 160_STATUS_PL Status bits PLI
: --------------------------------
:***
FW 186 = MW186 DW_ADDRESS
FW 160 = MW 160_STATUS_PL
Segment 5 Request registers
:LW =OFFS
:T -MW 152 PHASE_REQUEST
:
:L -MW 152 PHASE_REQUEST
:I 13
:T -MW 154 REQ_DATA1
:
:L -MW 152 PHASE_REQUEST
:I 14
:T -MW 156 REQ_DATA2
:
:L -MW 152 PHASE_REQUEST
:I 12
:T -MW 158 PHASE_ST_FAILURE
:
:L KF +0
:DO -MW 158 PHASE_ST_FAILURE
:T DW 0 reset stored failure
:***
FW 152 = MW 152 PHASE_REQUEST
FW 154 = MW 154 REQ_DATA1
FW 156 = MW 156 REQ_DATA2
FW 158 = MW 158 PHASE_ST_FAILURE
Segment 6 Request in work
:DO -MW 152 PHASE_REQUEST
:L DW 0
:L KF +6000
:!=F
:= F 200.0 RQ 6000
:R -MI167.6 RQ_IN_WORK
:DO -MW 152 PHASE_REQUEST
:L DW 0
:L KF +1000
:>=F
:AN F 200.0 RQ 6000
:S -MI167.6 RQ_IN_WORK
:JC =M001
:
:L KF +0
:DO -MW 154 REQ_DATA1
:T DW 0
:DO -MW 156 REQ_DATA2
:T DW 0
M001 :***
FX 111 C:ZONE10ST.S5D LEN=393
Page 3
FW 152 = MW 152 PHASE_REQUEST
F 167.6 = MI167.6 RQ_IN_WORK
FW 154 = MW 154 REQ_DATA1
FW 156 = MW 156 REQ_DATA2
Segment 7 Complete
:L -MW 152 PHASE_REQUEST
:L KF +4
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:L KF +70
:!=F
:S -MI167.1 COMPLETE
:***
FW 152 = MW 152 PHASE_REQUEST
FW 186 = MW186 DW_ADDRESS
F 167.1 = MI167.1 COMPLETE
Segment 8 start sequence
:L -MW 152 PHASE_REQUEST
:L KF +3
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 150 PHASE_STEP_INDEX
:
:AN -MO169.4 START_BY_PLI
:AN F 200.0 RQ 6000
:JC =M001
:
:L KF +0
:T -MW 160_STATUS_PL
:
:AN -MO169.4 START_BY_PLI
:JC =M001
:L KF +10
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 152 = MW 152 PHASE_REQUEST
FW 186 = MW186 DW_ADDRESS
FW 150 = MW 150 PHASE_STEP_INDEX
F 169.4 = MO169.4 START_BY_PLI
FW 160 = MW 160_STATUS_PL
Segment 9 Step 5: load para
:L -MW 150 PHASE_STEP_INDEX
:L KF +5
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:A -MS161.6 STP 5: ACTIVE
:JC =M002
:L KF +1103
:DO -MW 152 PHASE_REQUEST
:T DW 0
:L KF +1
:DO -MW 154 REQ_DATA1
:T DW 0
FX 111 C:ZONE10ST.S5D LEN=393
Page 4
:DO -MW 156 REQ_DATA2
:T DW 0
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
:S -MS161.6 STP 5: ACTIVE
:JU =M001
M002 :
:A -M 0.1 CONSTANT 1
:R -MS161.6 STP 5: ACTIVE
:
:L KF +10
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 161.6 = MS161.6 STP 5: ACTIVE additional to stp 10:
FW 152 = MW 152 PHASE_REQUEST
FW 154 = MW 154 REQ_DATA1
FW 156 = MW 156 REQ_DATA2
F 166.0 = MI166.0 RQ_1100 DLpart
F 0.1 = M 0.1 CONSTANT 1
Segment 10 Step 10: load para
:L -MW 150 PHASE_STEP_INDEX
:L KF +10
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:A -MS160.0 STP 10: ACTIVE
:JC =M002
:L KF +1120
:DO -MW 152 PHASE_REQUEST
:T DW 0
:L KF +5
:DO -MW 154 REQ_DATA1
:T DW 0
:DO -MW 156 REQ_DATA2
:T DW 0
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
:S -MS160.0 STP 10: ACTIVE
:JU =M001
M002 :
:L -MW 152 PHASE_REQUEST
:I 40
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:O -MS161.7 STP 10:HOLD_ACT
:JC =M003
:DO -MW 158 PHASE_ST_FAILURE
:T DW 0
:
:A -M 0.1 CONSTANT 1
:S -MS161.7 STP 10:HOLD_ACT
:JU =M001
:
:A -M 0.1 CONSTANT 1
M003 :R -MS160.0 STP 10: ACTIVE
FX 111 C:ZONE10ST.S5D LEN=393
Page 5
:R -MS161.7 STP 10:HOLD_ACT
:
:L KF +30
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 160.0 = MS160.0 STP 10: ACTIVE
FW 152 = MW 152 PHASE_REQUEST
FW 154 = MW 154 REQ_DATA1
FW 156 = MW 156 REQ_DATA2
F 166.0 = MI166.0 RQ_1100 DLpart
F 161.7 = MS161.7 STP 10:HOLD_ACT
FW 158 = MW 158 PHASE_ST_FAILURE
F 0.1 = M 0.1 CONSTANT 1
Segment 11 Step 30: confirm to start ?
:L -MW 150 PHASE_STEP_INDEX
:L KF +30
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:A -MS160.2 STP 30: ACTIVE
:JC =M002
:L -MW 152 PHASE_REQUEST
:I 42
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:JC =M003
:
:L KF +1201
:DO -MW 152 PHASE_REQUEST
:T DW 0
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
M003 :S -MS160.2 STP 30: ACTIVE
:JU =M001
M002 :
:A -M 0.1 CONSTANT 1
:R -MS160.2 STP 30: ACTIVE
:
:L KF +40
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 160.2 = MS160.2 STP 30: ACTIVE
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 0.1 = M 0.1 CONSTANT 1
Segment 12 Step 40: start weighing
:L -MW 150 PHASE_STEP_INDEX
:L KF +40
:><F
:ON -MI167.5 PLI_RUNNING
FX 111 C:ZONE10ST.S5D LEN=393
Page 6
:JC =M001
:
:A =EOSI
:R -MS160.3 STP 40: ACTIVE
:
:AN =EOSI
:S -MS160.3 STP 40: ACTIVE
:JC =M001
:
:L KF +70
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 160.3 = MS160.3 STP 40: ACTIVE
Segment 13 Step 70: confirm at end ?
:L -MW 150 PHASE_STEP_INDEX
:L KF +70
:><F
:ON -MI167.5 PLI_RUNNING
:O -MI167.6 RQ_IN_WORK
:JC =M001
:O -MS160.6 STP 70: ACTIVE
:JC =M002
:L -MW 152 PHASE_REQUEST
:I 43
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:JC =M003
:
:L KF +1202
:DO -MW 152 PHASE_REQUEST
:T DW 0
:AN -MI166.0 RQ_1100 DLpart
:S -MI166.0 RQ_1100 DLpart
M003 :S -MS160.6 STP 70: ACTIVE
:JU =M001
M002 :
:A -M 0.1 CONSTANT 1
:R -MS160.6 STP 70: ACTIVE
:
:L KF +90
:T -MW 150 PHASE_STEP_INDEX
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.6 = MI167.6 RQ_IN_WORK
F 160.6 = MS160.6 STP 70: ACTIVE
FW 152 = MW 152 PHASE_REQUEST
F 166.0 = MI166.0 RQ_1100 DLpart
F 0.1 = M 0.1 CONSTANT 1
Segment 14 Step 90: Upload reports
:L -MW 150 PHASE_STEP_INDEX
:L KF +90
:><F
:ON -MI167.5 PLI_RUNNING
:ON -MI167.1 COMPLETE
FX 111 C:ZONE10ST.S5D LEN=393
Page 7
:O -MI167.6 RQ_IN_WORK
:JC =M001
: Upload fin. after complete
:L -MW 152 PHASE_REQUEST
:I 41
:T FW 190
:DO FW 190
:L DW 0
:L KF +1
:><F
:JC =M001
:L KF +2 Hold at end
:DO -MW 158 PHASE_ST_FAILURE
:T DW 0
M001 :***
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.5 = MI167.5 PLI_RUNNING
F 167.1 = MI167.1 COMPLETE
F 167.6 = MI167.6 RQ_IN_WORK
FW 152 = MW 152 PHASE_REQUEST
FW 158 = MW 158 PHASE_ST_FAILURE
Segment 15 PLI DX
:LW =PLDX
:T -MW188 ADDR_OBJECT_DB/DX
:DO -MW188 ADDR_OBJECT_DB/DX
:CX -DX 0 SYSTEM PARAMETER
:***
FW 188 = MW188 ADDR_OBJECT_DB/DX
DX 0 = DX 0 SYSTEM PARAMETER
Segment 16 Store step number
:LW =OFFS
:L KF +3
:+F
:T -MW186 DW_ADDRESS
:
:L -MW 150 PHASE_STEP_INDEX
:DO -MW186 DW_ADDRESS
:T DW 0
:***
FW 186 = MW186 DW_ADDRESS
FW 150 = MW 150 PHASE_STEP_INDEX
Segment 17 Store Control bits PLI
:LW =OFFS
:L KF +11
:+F
:T -MW186 DW_ADDRESS
:
:L -MW 166_IN_PLI
:DO -MW186 DW_ADDRESS
:T DW 0
:
:LW =OFFS
:L KF +19
:+F
:T -MW186 DW_ADDRESS
:
:L -MW 160_STATUS_PL
FX 111 C:ZONE10ST.S5D LEN=393
Page 8
:DO -MW186 DW_ADDRESS
:T DW 0
:***
FW 186 = MW186 DW_ADDRESS
FW 166 = MW 166_IN_PLI Eingangsbitleiste an PLI
FW 160 = MW 160_STATUS_PL
Segment 18 Reports to PLI
:LW =WADB
:T FW 190
:
:L KF +130
:T FW 192
:
:L -MW 152 PHASE_REQUEST
:L KF +44
:+F
:T FW 194
:
:L KF +6
:T FW 196
:***
FW 152 = MW 152 PHASE_REQUEST
Segment 19 Reports to PLI
:JU -FB173 COPY BLOCK
Name :COPY DKF
QUEL : KS DB
DB-Q : FW 190
VON : FW 192
BIS : FW 192
ZIEL : KS DX
DB-Z : -MW188 ADDR_OBJECT_DB/DX
NACH : FW 194
FEHL : -M 0.0 IND.ADDRES(DUMMY)
LAEN : FW 196
L-B : KS LA
:BE
FW 188 = MW188 ADDR_OBJECT_DB/DX
F 0.0 = M 0.0 IND.ADDRES(DUMMY)
FB 173 = FB173 COPY BLOCK parameter: EW sp
FX 200 -FX200 PLI_WATCHDOG RSB C:ZONE10ST.S5D LEN=63
Page 1
Segment 1 WATCHDOG FOR OPEN BATCH
Name :WATCHDOG
Decl :DBNR I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :OFF I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :TIMR I/Q/D/B/T/C: T
Decl :TIME I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KT
Decl :ALAR I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :DBDX I/Q/D/B/T/C: I BI/BY/W/D: BI
:LW =DBNR
:T FW 200
:
:A =DBDX
:JC =M001
:
:DO FW 200
:C -DB 0 IND.ADRESS.(DUMNY)
:JU =M002
:
M001 :DO FW 200
:CX -DX 0 SYSTEM PARAMETER
:
M002 :LW =OFF
:T FW 200
:DO FW 200
:L DW 0
:T FW 202
:
:L KH 0001
:><F
:LW =TIME
:SD =TIMR
:
:A =TIMR
:= =ALAR
:BEC
:
:L KH 0000
:DO FW 200
:T DW 0
:BE
DB 0 = DB 0 IND.ADRESS.(DUMNY)
DX 0 = DX 0 SYSTEM PARAMETER
FX 201 -FX201 PLI_INTERFACE RSB C:ZONE10ST.S5D LEN=885
Page 1
Segment 1 PLI
FX 201 PLI INTERFACE FOR RS BATCH STAND : 01.10.98
===============================================================================
***** CPU : ALLE CPU'S *****
===============================================================================
NR. DATUM BEARBEITER
------------------------------------------------------
ERSTELLT : 01.10.98 H.URBAN
(UR)
ALS GRUNDLAGE FUER DEN BAUSTEIN WURDE EIN PLI VON LANG & PEITLER FUER OPEN
BATCH VERWENDET
-------------------------------------------------------------
LETZTE AENDERUNG :
NR. DATUM AENDERUNG BEARBEITER
-------------------------------------------------------------------------------
01 12.10.98 HALT AM ENDE waehrend RQ2000 vor komplett N13 /grr
02 19.10.98 Reports bei gestoppt N8 /grr
03 28.10.98 Externes Leitsystem N11,12,13,19,20,21,22 /grr
===============================================================================
SYMBOLIKDATEI : FX201Z0.SEQ
----------------------------
BAUSTEINPARAMETER :
--------------------
DBNR: NUMBER OF THE DATA BLOCK USED FOR THE PLI
OFF: NUMBER OF THE FIRST DATA WORD USED FOR THE PLI-REGISTERS
ALARM: ALARM FLAG FROM THE WATCHDOG BLOCK 201
ALAR = 0: NO FAILURE
ALAR = 1: FAILURE -> HOLDING
ENAB: ENABLE FLAG FOR THE PLI BLOCK
ENAB = 0: PLI NOT ENABLED
ENAB = 1: PLI ENABLED
OWNR: OWNER FLAG FOR THE PLI
OWNR = 1: EXTERNAL OWNERSHIP
OWNR = 0: OPENBATCH HAS OWNERSHIP
PARA: DOWNLOAD ALL PARAMETERS FOR START AND NEWSTART?
PARA = 0: NO
PARA = 1: YES
REPO: UPLOAD ALL REPORTS FOR COMLETE ?
REPO = 0: NO
REPO = 1: YES
DBDX: FLAG FOR USE OF DATA BLOCKS (DB) OR EXTENDED DATA BLOCKS (DX)
DBDX = 0: USE DB
DBDX = 1: USE DX
Name :PLI
Decl :DBNR I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :OFF I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :ALAR I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :ENAB I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :OWNR I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :PARA I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :REPO I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :DBDX I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :ENOW I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :TDUR I/Q/D/B/T/C: T
:***
FX 201 -FX201 PLI_INTERFACE RSB C:ZONE10ST.S5D LEN=885
Page 2
Segment 2 OPEN ACTUAL DB/DX
:LW =DBNR
:T FW 200
:
:A =DBDX
:JC =M001
:
:DO FW 200
:C -DB 0 IND.ADRESS.(DUMNY)
:JU =M002
:
M001 :DO FW 200
:CX -DX 0 SYSTEM PARAMETER
:
M002 :***
DB 0 = DB 0 IND.ADRESS.(DUMNY)
DX 0 = DX 0 SYSTEM PARAMETER
Segment 3 LOAD STATUS BITS IN
:
:LW =OFF
:I 11
:T FW 200
:DO FW 200
:L DW 0
:T FW 220
:
:AN =ENAB
:BEC
:
:***
Segment 4 WHO'S THE OWNER?
OWNR = 0: EXTERNAL OWNERSHIP
PHASE_EC = PHASE_CD
OWNR = 1: OPENBATCH HAS OWNERSHIP
PHASE_OC = PHASE_CD
:LW =OFF (4
:I 2
:T FW 200
:DO FW 200
:L DW 0
:T FW 206
: )
:A =OWNR
:JC =M001
:A =ENOW (4
:A F 207.0
:JC =M001 )
:
:L FW 200
:D 1 (4)
:T FW 200
:DO FW 200
:L DW 0
:T FW 204
:
FX 201 -FX201 PLI_INTERFACE RSB C:ZONE10ST.S5D LEN=885
Page 3
:L KF +0
:T FW 206
:
:JU =M002
:
M001 :L FW 200
:I 16 (4)
:T FW 200
:DO FW 200
:L DW 0
:T FW 204
:
:L KF +1
:T FW 206
:
M002 :***
Segment 5 ASSIGNMENT OF THE FLAG WORDS
IF THE PLI IS AKTIVE, THE DATA WORDS MUST BE ASSIGNED TO THE INTERNAL FLAGWORDS.
:LW =OFF
:T FW 200
:DO FW 200
:L DW 0
:T FW 202
:
:L FW 200
:I 4
:T FW 200
:DO FW 200
:L DW 0
:T FW 212
:
:L FW 200
:I 1
:T FW 200
:DO FW 200
:L DW 0
:T FW 214
:
:L FW 200
:I 2
:T FW 200
:DO FW 200
:L DW 0
:T FW 216
:
:L FW 200
:I 1
:T FW 200
:DO FW 200
:L DW 0
:T FW 222
:
:L FW 200
:I 1
:T FW 200
:DO FW 200
:L DW 0
:T FW 210
:
:L FW 200
FX 201 -FX201 PLI_INTERFACE RSB C:ZONE10ST.S5D LEN=885
Page 4
:I 1
:T FW 200
:DO FW 200
:L DW 0
:T FW 218
:
:L FW 200
:I 2
:T FW 200
:DO FW 200
:L DW 0
:T FW 208
:***
Segment 6 ABORT-COMMAND
THE ABORT COMMAND IS SENT BY THE OPENBATCH SERVER TO COMMAND THE PHASE TO
ABORTING STATE. THE OFFSET BIT 10.0 WILL BE SET BY THE PLI AND THE STATE
ABORTING WILL BE WRITTEN INTO THE STATUS REGISTER (OFFSET 4). IF THE PHASE IS
ABORTED, THE PLC HAS TO SET THE OFFSET BIT 11.3. THEN THE PLI WILL WRITE THE
STATE ABORTED IN THE STATUS REGISTER (OFFSET 4).
IF THE CLEAR REQUEST BIT (OFFSET BIT 11.12) IS SET BY THE PLC AND A REQUEST TO
OPENBATCH IS IN WORK, THE REQUEST WILL BE CLEARED. IF THE FLAG ISN'T SET, NO
REQUEST WILL BE CLEARED.
:A F 221.3
:JC =M001
:
:L FY 205
:L KF +10
:!=F
:AN F 221.1
:AN F 221.2
:AN F 221.4
:S F 219.0
:
:AN F 219.0
:JC =M002
:
:A F 219.0
:R F 221.0
:R F 221.2
:R F 221.5
:R F 219.3
:R F 220.3
:R F 219.1
:R F 219.2
:R F 219.6
:R F 218.0
:R F 219.4
:
:L KF +10
:T FW 212
:
:L FW 202
:L KF +0
:!=F
:ON F 220.4
:JC =M002
:L KF +6000
:T FW 202
:
FX 201 -FX201 PLI_INTERFACE RSB C:ZONE10ST.S5D LEN=885
Page 5
:L FW 218
:L KM 11111111 00111111
:AW
:T FW 218
:
:L FW 220
:L KM 11111000 00111111
:AW
:T FW 220
M001 :
:AN F 221.3
:JC =M002
:A F 221.3
:R F 219.0
:L KF +90
:T FW 212
M002 :***
Segment 7 HOLD-COMMAND
THE HOLD COMMAND IS SENT BY THE OPENBATCH SERVER TO COMMAND THE PHASE TO HOLDING
STATE. THE OFFSET BIT 10.1 WILL BE SET BY THE PLI AND THE STATE HOLDING WILL BE
WRITTEN INTO THE STATUS REGISTER (OFFSET 4). IF THE STATE IS HELD. THE PLC HAS
TO SET THE OFFSET BIT 11.0. THEN THE PLI WILL WRITE THE STATE HELD IN THE STATUS
REGISTER (OFFSET 4).
IF THE CLEAR REQUEST BIT (OFFSET BIT 11.12) IS SET BY THE PLC AND A REQUEST TO
OPENBATCH IS IN WORK, THE REQUEST WILL BE CLEARED. IF THE BIT ISN'T SET, NO
REQUEST WILL BE CLEARED.
:A F 221.0
:JC =M001
:A(
:L FY 205 01
:L KF +20 01
:!=F 01
:O( 01
:L FW 208 02
:L KF +0 02
:><F 02
:) 02
:O( 01 (
:A =ALAR 02
:AN F 207.0 02
:) 02 5)
:) 01
:A(
:O F 219.6 01
:O F 219.7 01
:O F 218.0 01
:O F 219.4 01
:O F 221.5 01
:O F 219.3 01
:) 01
:S F 219.1
:
:AN F 219.1
:JC =M002
:
:A F 219.1
FX 201 -FX201 PLI_INTERFACE RSB C:ZONE10ST.S5D LEN=885
Page 6
:R F 221.5
:R F 219.3
:R F 220.3
:R F 219.4
:R F 219.6
:R F 218.0
:L KF +20
:T FW 212
:
:L FW 202
:L KF +0
:!=F
:ON F 220.4
:JC =M002
:L KF +6000
:T FW 202
:
:L FW 218
:L KM 11111111 00111111
:AW
:T FW 218
:
:L FW 220
:L KM 11111000 00111111
:AW
:T FW 220
M001 :
:AN F 221.0
:JC =M002
:A F 221.0
:R F 219.1
:L KF +60
:T FW 212
M002 :***
Segment 8 STOP-COMMAND
THE STOP COMMAND IS SENT BY THE OPENBATCH SERVER TO COMMAND THE PHASE TO
STOPPING STATE. THE OFFSET BIT 10.2 WILL BE SET BY THE PLI AND THE STATE
STOPPING WILL BE WRITTEN INTO THE STATUS REGISTER (OFFSET 4). IF THE STATE
IS STOPPED: THE PLC FAS TO SET THE OFFSET BIT 11.2. THEN THE PLI WILL WRITE
THE STATE STOPPED IN THE STATUS REGISTER.
IF THE CLEAR REQUEST FLAG (OFFSET BIT 11.12) IS SET BY THE PLC AND A REQUEST TO
OPENBATCH IS IN WORK; THE REQUEST WILL BE CLEARED. IF THE BIT ISN'T SET, NO
REQUEST WILL BE CLEARED.
:A F 221.2
:JC =M001
:
:L FY 205
:L KF +30
:!=F
:A(
:O F 219.6 01
:O F 219.7 01
:O F 218.0 01
:O F 219.4 01
:O F 221.5 01
:O F 219.3 01
:O F 219.1 01
:O F 221.0 01
:) 01
FX 201 -FX201 PLI_INTERFACE RSB C:ZONE10ST.S5D LEN=885
Page 7
:S F 219.2
:
:AN F 219.2
:JC =M002
:
:A F 219.2
:R F 221.5
:R F 219.3
:R F 220.3
:R F 219.4
:R F 219.1
:R F 221.0
:R F 219.6
:R F 218.0
:
:L KF +30
:T FW 212
:
:L FW 202
:L KF +0
:!=F
:ON F 220.4
:JC =M002
:
:L KF +6000
:T FW 202
:
:L FW 218
:L KM 11111111 00111111
:AW
:T FW 218
:
:L FW 220
:L KM 11111000 00111111
:AW
:T FW 220
:
M001 :AN F 221.2
:O F 220.1 *(2)
:JC =M002
:A F 221.2
:R F 219.2
:L KF +80
:T FW 212
:
M002 :***
Segment 9 RESET-COMMAND
THE RESET COMMAND IS SENT BY THE OPENBATCH SERVER TO COMMAND THE PHASE TO THE
IDLE STATE. THE COMMAND IS ONLY VALID, WHEN THE PHASE IS IN STOPPED, COMPLETE
OR ABORTED.
:L FY 205
:L KF +40
:!=F
:A(
:O F 221.1 01
:O F 221.2 01
:O F 221.3 01
:) 01
:R F 221.1
:R F 221.2
FX 201 -FX201 PLI_INTERFACE RSB C:ZONE10ST.S5D LEN=885
Page 8
:R F 219.2
:R F 219.0
:R F 221.3
:S F 221.4
:AN F 221.4
:JC =M001
:
:L KF +100
:T FW 212
:
M001 :***
Segment 10 DOWNLOAD-COMMAND
THE DOWNLOAD COMMAND IS SENT BY THE BATCH SERVER TO INDICATE TO THE PHASE,
THAT THE PHASE HAS CROSSED A RECIPE TRANSITION. THIS COMMAND REQUESTS THE
PHASE TO ASK FOR RECIPE DATAS. IN THIS PLI FOLLOWS A REQUEST TO DOWNLOAD ALL
PARAMETERS FROM OPENBATCH TO THE PHASE.
:L FY 205
:L KF +70
:><F
:JC =M001
:S F 221.7
:
M001 :***
Segment 11 RESTART-COMMAND
THE RESTART COMMAND IS SENT BY THE BATCH SERVER TO THE PHASE TO RESTART THE
PHASE AFTER IT HAS HELD. THE PHASE WILL TRANSITION FROM THE HELD STATE THROUGH
THE RESTARTING STATE TO THE RUNNING STATE. IF THE COMMAND IS COMMING FROM
OPENBATCH, THE OFFSET BIT 10.3 (NEWSTART) WILL BE SET. THE STATUS RESTARTING
IS SENT TO OPENBATCH BY THE STATUS REGISTER (OFFSET 4). IF THE PHASE HAS
COMPLETED THE RESTART, THE OFFSET BIT 11.11 HAS TO BE SET BY THE PLC. THEN
THEN PLI SETS THE RUNNING BIT (OFFSET BIT 11.5) AND WRITES THE STATUS RUNNING
TO THE STATUS REGISTER (OFFSET 4).
IF YOU WANT TO DOWNLOAD ALL PARAMETER VALUES BEFORE NEWSTARTING THE PHASE,
YOU HAVE TO SET THE FLAG "PARA" OF THE SPECIAL PHASE. WHEN THIS FLAG IS SET,
ALL PARAMETERS WILL BE LOADED DOWN BEFORE THE PHASE WILL GET THE NEWSTART
SIGNAL. IF YOU DON'T WANT TO DOWNLOAD ALL PARAMETERS BEFORE NEWSTARTING A PHASE,
YOU HAVE TO RESET THE FLAG "PARA".
:A F 220.3
:JC =M001
:
:A F 218.0
:A F 221.7
:JC =M002
:
:A F 218.0
:AN F 221.7
:JC =M003
:
:L FY 205
:L KF +90
:><F
:O(
:L FW 214 01
:L KF +0 01
FX 201 -FX201 PLI_INTERFACE RSB C:ZONE10ST.S5D LEN=885
Page 9
:><F 01
:) 01
:ON F 221.0
:JC =M002
:
:AN =PARA
: *(3) om207.0
:JC =M003
:
:A =PARA
:S F 221.7
:S F 218.0
:L KF +40
:T FW 212
:R F 221.0
:R F 219.1
:JU =M002
:
M003 :S F 219.3
:AN F 219.3
:JC =M002
:
:A F 219.3
:R F 221.0
:R F 219.1
:R F 218.0
:L KF +40
:T FW 212
:
M001 :AN F 220.3
:JC =M002
:A F 220.3
:S F 221.5
:R F 219.3
:R F 220.3
:L KF +50
:T FW 212
:
M002 :***
Segment 12 START-COMMAND
THE START COMMAND IS SENT BY THE OPENBATCH SERVER TO THE PHASE TO START THE
PHASE. THE OFFSET BIT 10.4 WILL BE SET BY THE PLI AND THE STATE RUNNING WILL
BE WRITTEN TO THE STATUS REGISTER (OFFSET 4). THEN THE PLC HAS TO SET THE
OFFSET BIT 10.5 FOR RUNNING. IF THIS FLAG IS SET, THE PLI SENDS TO OPENBATCH
THAT THE STATE IS RUNNING (OFFSET 4).
IF YOU WANT TO DOWNLOAD ALL PARAMETER VALUES BEFORE STARTING THE PHASE, YOU
HAVE TO SET THE FLAG "PARA" OF THE SPECIAL PHASE. WHEN THIS FLAG IS SET, ALL
PARAMETERS WILL BE LOADED DOWN BEFORE THE PHASE WILL GET THE START SIGNAL. IF
YOU DON'T WANT TO DOWNLOAD ALL PARAMETERS BEFORE STARTING, YOU HAVE TO RESET
THE FLAG "PARA".
:A F 221.5
:JC =M001
:
:A F 219.6
:A F 221.7
:JC =M001
:
:A F 219.6
:AN F 221.7
FX 201 -FX201 PLI_INTERFACE RSB C:ZONE10ST.S5D LEN=885
Page 10
:JC =M002
:
:L FY 205
:L KF +100
:><F
:O(
:L FW 214 01
:L KF +0 01
:><F 01
:) 01
:ON F 221.4
:JC =M001
:
:AN =PARA
: *(3) om207.0
:JC =M002
:A =PARA
:S F 221.7
:S F 219.6
:L KF +50
:T FW 212
:R F 221.4
:JU =M001
:
M002 :AN F 219.4
:AN F 219.0
:AN F 219.1
:AN F 219.2
:S F 219.4
:R F 219.6
:R F 221.4
:L KF +50
:T FW 212
:
M001 :***
Segment 13 RUNNING-SEQUENCE
WHEN THE PHASE IS IN RUNNING STATE AND THE COMPLETE BIT (OFFSET BIT 11.1) IS
SET BY THE PLC, THE PLI WILL WRITE THE STATUS COMLPETE IN THE STATUS REGISTER.
THE RUNNING BIT IS RESET BY THE PLI.
IF YOU WANT TO UPLOAD ALL REPORT VALUES BEFORE THE RUNNING SEQUENCE IS
COMPLETE, YOU HAVE TO SET THE FLAG "REPO" OF THE SPECIAL PHASE. WHEN THIS
FLAG IS SET; ALL REPORT VALUES OF THE PHASE WILL BE UPLOADED TO OPENBATCH.
IF YOU DON'T WANT TO UPLOAD ALL REPORT VALUES BEFORE COMPLETITION YOU HAVE
TO RESET THE FLAG "REPO".
:A F 219.7
:A F 220.1
:JC =M001
:A F 221.5 *(1)
:A F 219.7
:AN F 220.1
:JC =M002
:
:A F 221.5
:R F 219.3
:R F 220.3
:R F 219.4
:
:AN F 221.5
:JC =M001
FX 201 -FX201 PLI_INTERFACE RSB C:ZONE10ST.S5D LEN=885
Page 11
:L KF +50
:T FW 212
:
:AN F 221.1
:JC =M001
:A F 221.1
:A(
:AN =REPO 01
: 01 *(3) OM207.0
:) 01
:AN F 220.1 **
:AN F 221.6 **
:JC =M002
:
:A =REPO
:S F 220.1
:S F 219.7
:JU =M001
:
M002 :A F 221.5
:R F 221.5
:R F 219.7
:L KF +70
:T FW 212
:
M001 :***
Segment 14 REQ_COMPLETE
THE REQUEST COMPLETE COMMAND IS SEND BY THE BATCH SERVER TO INDICATE THE
PHASE THAT THE CURRENT PHASE REQUEST HAS BEEN SUCCESSFULLY COMPLETED.
:O(
:L FY 205 01
:L KF +140 01
:><F 01
:) 01
:O(
:L FW 202 01
:L KF +6000 01
:!=F 01
:) 01
:JC =M001
:L KF +10
:T FW 202
:
M001 :***
Segment 15 REQ_ABORTACK
THE REQUEST ABORTACK COMMAND IS SENT BY THE BATCH SERVER TO INDICATE TO
THE PHASE THAT PREVIOUS REQUEST WAS SUCCESSFULLY ABORTED.
:L KF +150
:L FY 205
:><F
:JC =M001
:L KF +20
:T FW 202
:
M001 :***
FX 201 -FX201 PLI_INTERFACE RSB C:ZONE10ST.S5D LEN=885
Page 12
Segment 16 REQ_ABORTFAIL
THE REQ_ABORTFAIL COMMAND IS SENT BY THE BATCHSERVER TO INDICATE TO THE
PHASE THAT THE PREVIOUS REQUEST WAS UNSUCCESSFULLY ABORTED
:L FY 205
:L KF +160
:><F
:JC =M001
:L KF +30
:T FW 202
:
M001 :***
Segment 17 REQ_RESET
THE REQ_RESET COMMAND IS SENT BY THE BATCH SERVER TO INDICATE TO THE PLI THAT
THE REQUEST HAS BEEN SUCCESSFULLY COMPLETED AND CAN BE RESET TO ALLOW FOR A
NEW REQUEST.
:L FY 205
:L KF +170
:><F
:JC =M001
:L KF +0
:T FW 202
:
M001 :***
Segment 18 FAILURE
A FAILURE NUMBER IS SET WHENEVER ANY DEVICES DETECT A FAIL CONDITION OR
WHENEVER A PROCESS CONDITION OCCURS THAT REQUIRES A HELD STATE. A FAILURE
NUMBER GREATER THAN ZERO MUST BE WRITTEN INTO THE STORED FAILURE REGISTER
(OFFSET 12) BY THE PLC WHILE THERE IS A FAILURE IN THE PHASE (FOR EVERY
CYCLE). THE PLI WRITES THIS FAILURE NUMBER TO THE OPENBATCH FAILURE
REGISTER (OFFSET 5).
IF THE CLEAR FAILURE COMMAND IS SENT BY THE BATCH SERVER, OUTSTANDING
PHASE FAILURES WILL BE CLEARED IF THERE ARE NO MORE FAILURES IN THE PHASE.
:L FW 208
:L KF +0
:!=F
:JC =M001
:
:L FW 208
:T FW 214
:
M001 :L FW 208
:L KF +0
:><F
:O(
:L FY 205 01
:L KF +130 01
:><F 01
:) 01
:JC =M002
:
:L KH 0000
:T FW 214
:
FX 201 -FX201 PLI_INTERFACE RSB C:ZONE10ST.S5D LEN=885
Page 13
M002 :***
Segment 19 DOWNLOAD ALL PARAMETERS
IF THE OFFSET BIT 11.7 IS SET DURING A STEP IN THE PHASE, THE PLI MAKES A
REQUEST TO DOWNLOAD ALL PHASE PARAMETER VALUES. THIS FLAG BIT BE RESET BY
THE PLI WHEN THE HANDSHAKE BETWEEN OPENBATCH AND THE PLI IS COMPLETED. THE
FALLING SLOPE OF THIS FLAG IS A SIGNAL FOR THE PHASE, THAT THE PARAMETER
VALUES ARE DOWNLOADED (CONTINUE THE PHASE).
:A F 207.0
:AN F 207.0 *(3)
:JC =M001 nie
:L KF +0
:L FW 202
:><F
:ON F 221.7
:
:
:JC =M001
:A F 221.6
:JC =M002
:L KF +1000
:T FW 202
:S F 221.6
:JU =M001
M002 :L KF +0
:L FW 202
:><F
:JC =M001
:R F 221.6
:R F 221.7
:
M001 :***
Segment 20 DOWNLOAD A RANGE OF PARAMETERS
IF THE OFFSET BIT 11.8 IS SET DURING A STEP IN THE PHASE, THE PLI MAKES A
REQUEST TO DOWNLOAD A RANGE OF PARAMETER VALUES. THIS REQUIRES THE REQ_DATA1,
REQ_DATA2 AND REQ_DATA3. THE BIT WILL BE RESET BY THE PLI WHEN THE HANDSHAKE
BETWEEN OPENBATCH AND THE PLI IS COMPLETED. THE FALLING SLOPE OF THIS BIT IS
A SIGNAL FOR THE PHASE, THAT THE PRAMETERS ARE DOWNLOADED (CONTINUE THE PHASE).
REQ_DATA1: PARAMETER ID OF 1st PHASE PARAMETER
REQ_DATA2: INDEX INTO THE PHASE PARAMETER ARRAY
REQ_DATA3: NUMBER OF PHASE PARAMETERS
:A F 207.0
:AN F 207.0 *(3)
:JC =M001 nie
:L KF +0 lkf0
:L FW 202 lmw202
:><F ><F
:ON F 220.0
:
:
:JC =M001
:A F 221.6
:JC =M002
:
:AN F 221.6
:S F 221.6
FX 201 -FX201 PLI_INTERFACE RSB C:ZONE10ST.S5D LEN=885
Page 14
:JU =M001
M002 :L KF +0
:L FW 202
:><F
:JC =M001
:R F 221.6
:R F 220.0
:
M001 :***
Segment 21 UPLOAD ALL REPORTS
IF THE OFFSET BIT 11.9 IS SET DURING A STEP IN THE PHASE, THE PLI MAKES A
REQUEST TO UPLOAD ALL PHASE REPORT VALUES. THIS BIT WILL BE RESET BY THE PLI
WHEN THE HANDSHAKE BETWEEN OPENBATCH AND THE PLI IS COMPLETED. THE FALLING
SLOPE OF THIS BIT IS A SIGNAL FOR THE PHASE, THAT THE REPORT VALUES ARE
UPLOADED (CONTINUE THE PHASE).
:A F 207.0
:AN F 207.0 *(3)
:JC =M001 nie
:L KF +0
:L FW 202
:><F
:ON F 220.1
:
:
:JC =M001
:
:A F 220.1
:L KT 003.2
:SD =TDUR
:
:AN =TDUR
:JC =M001
:
:A F 221.6
:JC =M002
:L KF +2000
:T FW 202
:S F 221.6
:JU =M001
M002 :L KF +0
:L FW 202
:><F
:JC =M001
:R F 221.6
:R F 220.1
:A F 220.1
:SD =TDUR
M001 :***
Segment 22 UPLOAD A RANGE OF REPORTS
IF THE OFFSET BIT 11.10 IS SET DURING A STEP IN THE PHASE, THE PLI MAKES A
REQUEST TO UPLOAD A RANGE OF PHASE REPORT VALUES. THIS REQUIRES THE
REQ_DATA1, REQ_DATA 2 AND REQ_DATA3. THE BIT WILL BE RESET BY THE PLI WHEN
THE HANDSHAKE BETWEEN OPENBATCH AND THE PLI IS COMPLETED. THE FALLING SLOPE
OF THIS BIT IS A SIGNAL FOR THE PHASE, THAT THE REPORTS ARE UPLOADED
(CONTINUE THE PHASE).
REQ_DATA1: REPORT ID OF 1st REPORT
FX 201 -FX201 PLI_INTERFACE RSB C:ZONE10ST.S5D LEN=885
Page 15
REQ_DATA2: INDEX INTO THE REPORT ARRAY
REQ_DATA3: NUMBER OF REPORT VALUES
:A F 207.0
:AN F 207.0 *(3)
:JC =M001 nie
:L KF +0
:L FW 202
:><F
:ON F 220.2
:
:
:JC =M001
:A F 221.6
:JC =M002
:
:AN F 221.6
:S F 221.6
:JU =M001
M002 :L KF +0
:L FW 202
:><F
:JC =M001
:R F 221.6
:R F 220.2
:
M001 :***
Segment 23 DOWNLOAD ALL PARAMETERS CYCLIC
IF THE OFFSET BIT 11.15 IS SET BY THE PLC, ALL PARAMETER VALUES WILL BE
LOADED DOWN CYCLIC.
:
:A F 221.5
:A F 220.7
:AN F 221.7
:S F 221.7
:
:***
Segment 24 SINGLE_STEP
THE SINGLE_STEP COMMAND IS SENT BY THE BATCH SERVER TO INDICATE THE PHASE
TO GO IN SINGLE STEP MODE. THIS COMMAND CAUSES THE PHASE TO SET THE SINGLE
STEP MODE ATTRIBUTE (OFFSET 7.0) THAT ALLOWS THE PHASE TO TRANSITION TO THE
PAUSED STATE AT EACH PROGRAMMED PAUSE TRANSITION AND WAIT FOR THE OPERATOR
TO ISSUE A RESUME COMMAND.
:L FY 205
:L KF +60
:><F
:JC =M001
:AN F 217.0
:JC =M002
:L KH 0000
:T FW 216
:JU =M001
M002 :L KH 0001
:T FW 216
:
M001 :***
FX 201 -FX201 PLI_INTERFACE RSB C:ZONE10ST.S5D LEN=885
Page 16
Segment 25 PAUSE
THE PAUSE COMMAND IS SENT BY THE BATCH SERVER TO COMMAND THE PHASE TO PAUSE
AT THE NEXT PROGRAMMED PAUSE TRANSITION WITHIN ITS SEQUENCING LOGIC AND WAIT
FOR A RESUME COMMAND BEFORE PROCEEDING.
THE OPERATOR CAN REQUEST A SINGLE PAUSE BY ISSUING A PAUSE COMMAND TO THE
PHASE. THIS SETS THE PAUSE BIT (OFFSET BIT 8.0), INDICATING THAT THE PHASE
WILL PAUSE AT THE NEXT PROGRAMMED TRANSITION. ONCE THE PHASE HAS PAUSED AT
THE PROGRAMMED PAUSE TRANSITION, THE PHASE LOGIC SETS THE PAUSED BIT (OFFSET
BIT 9.0), INDICATING THAT THE PHASE HAS PAUSED AT THE PROGRAMMED TRANSITION.
THE PLI RESETS THE PAUSE- AND THE PAUSED-BIT WHEN THE NEXT RESUME COMMAND
OCCURS.
:A(
:L FY 205 01
:L KF +50 01
:><F 01
:) 01
:AN F 217.0
:JC =M001
:L KH 0001
:T FW 222
:
M001 :***
Segment 26 RESUME
THE RESUME COMMAND IS SENT BY THE BATCH SERVER TO THE PHASE TO RESUME AFTER
THE PHASE HAS PAUSED AT A PREPROGRAMMED TRANSITION.
:L FY 205
:L KF +80
:><F
:JC =M001
:L KH 0000
:T FW 222
:L KH 0000
:T FW 210
:
M001 :***
Segment 27 RE_WRITE THE FLAG WORDS
THE FLAG WORDS ARE MUST BE WRITTEN BACK TO THE DATA WORDS OF THE PLI DATA
BLOCK.ONLY THE LOW-BYTE OF THE PHASE_OC REGISTER IS WRITTEN BACK.
:LW =OFF
:T FW 200
:L FW 202
:DO FW 200
:T DW 0
:
:L FW 200
:I 2
:T FW 200
:L FW 206
:DO FW 200
:T DW 0
:
:L FW 200
:I 2
FX 201 -FX201 PLI_INTERFACE RSB C:ZONE10ST.S5D LEN=885
Page 17
:T FW 200
:L FW 212
:DO FW 200
:T DW 0
:
:L FW 200
:I 1
:T FW 200
:L FW 214
:DO FW 200
:T DW 0
:
:L FW 200
:I 2
:T FW 200
:L FW 216
:DO FW 200
:T DW 0
:
:L FW 200
:I 1
:T FW 200
:L FW 222
:DO FW 200
:T DW 0
:
:L FW 200
:I 1
:T FW 200
:L FW 210
:DO FW 200
:T DW 0
:
:L FW 200
:I 1
:T FW 200
:L FW 218
:DO FW 200
:T DW 0
:
:L FW 200
:I 1
:T FW 200
:L FW 220
:DO FW 200
:T DW 0
:
:L FW 200
:I 1
:T FW 200
:L FW 208
:DO FW 200
:T DW 0
:
:A F 207.0
:JC =M001
:L FY 205
:L KF +0
:!=F
:JC =M002
:LW =OFF
:I 1
:T FW 200
:L KF +0
FX 201 -FX201 PLI_INTERFACE RSB C:ZONE10ST.S5D LEN=885
Page 18
:DO FW 200
:T DR 0
:
:JU =M002
:
M001 :L FY 205
:L KF +0
:!=F
:JC =M002
:LW =OFF
:I 18
:T FW 200
:L KF +0
:DO FW 200
:T DW 0
:
M002 :BE
FX 202 -FX202 PLI->SCALE CHARGE C:ZONE10ST.S5D LEN=388
Page 1
Segment 1
*****************************************************************************
BESCHREIBUNG :
---------------
Dieser Baustein setzt das PLI ( Phase Logic Interface ) von Open - Batch
auf die Schnittstelle HsH - PC zur SPS - Waage ( DB 210 ) um
******************************************************************************
PARAMETER :
-----------
PLDX : Nr. des DX Datenbaustein fuer PLI
OFFS : Offset fuer PLI Anfang
WZNR : Zaehlnummer der SPS - Waage
DBPC : Datenbaustein fuer Schnittstelle PC - SPS Waage
DBST : Steuerdatenbaustein PC - SPS Waage
AUTO : Automatik - Mode
******************************************************************************
Name :PLI-SC C
Decl :PLDX I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :OFFS I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :WZNR I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :DBPC I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :DBST I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :WADB I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :REPO I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :PREP I/Q/D/B/T/C: Q BI/BY/W/D: BI
:***
Segment 2 PLI DX oeffnen
:LW =PLDX
:T -MW188 ADDR_OBJECT_DB/DX
:DO -MW188 ADDR_OBJECT_DB/DX
:CX -DX 0 SYSTEM PARAMETER
:***
FW 188 = MW188 ADDR_OBJECT_DB/DX
DX 0 = DX 0 SYSTEM PARAMETER
Segment 3 Steuerbitleiste von PLI einlesen
:LW =OFFS
:L KF +10
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 168_OUT_PLI Ausgangsbitleiste von PLI
: --------------------------------
:L -MW186 DW_ADDRESS
:L KF +1
:+F
:T -MW186 DW_ADDRESS 11
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 166_IN_PLI Eingangsbitleiste von PLI
: --------------------------------
FX 202 -FX202 PLI->SCALE CHARGE C:ZONE10ST.S5D LEN=388
Page 2
:***
FW 186 = MW186 DW_ADDRESS
FW 168 = MW 168_OUT_PLI Ausgangssteuerbitleiste von PLI
FW 166 = MW 166_IN_PLI Eingangsbitleiste an PLI
Segment 4 Load Status bits PLI
:LW =OFFS
:L KF +19
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 160_STATUS_PL Status bits PLI
: --------------------------------
:***
FW 186 = MW186 DW_ADDRESS
FW 160 = MW 160_STATUS_PL
Segment 5 Quell Adresse fuer Parameter
:LW =OFFS
:L KF +20
:+F
:T FW 190 20
:***
Segment 6 Zieladresse fuer Parameter
:LW =WZNR
:L KF +1
:-F
:L KF +31
:XF
:L KF +3 ab 3!
:+F
:T FW 192 Anfangsadresse Schnittstellen_DB
:***
Segment 7 PLI->DB_PC DW 3-9(12)
:ON -MI167.5 PLI_RUNNING
:O -MS161.3 PARA_DOWNL FIN!
:JC =M001
:LW =DBPC
:T FW 194
:
:L KF +6 6 DW(3-8) uebertragen
:T FW 196
:
:JU -FB173 COPY BLOCK
Name :COPY DKF
QUEL : KS DX
DB-Q : -MW188 ADDR_OBJECT_DB/DX
VON : FW 190 20
BIS : FW 190
ZIEL : KS DB
DB-Z : FW 194 210
NACH : FW 192 3
FEHL : -M 0.0 IND.ADDRES(DUMMY)
LAEN : FW 196 6(3-8)
L-B : KS LA
:
:L FW 190
FX 202 -FX202 PLI->SCALE CHARGE C:ZONE10ST.S5D LEN=388
Page 3
:L KF +6
:+F
:T FW 196 26 Adresse Silonummer
:
:DO FW 196 26
:L DW 0
:T FW 196 DW26 akt_Silonummer einlesen
:
:L FW 192 3
:L KF +9
:+F
:T FW 198 12
:
:JU -FB176 STORE DW INDIR.
Name :TANS DW
DB : FW 194 210 akt_Silonummer an DB_PC
DW : FW 198 12 uebergeben
WERT : FW 196 DW26
DBDX : KS DB
:
M001 :***
F 167.5 = MI167.5 PLI_RUNNING
F 161.3 = MS161.3 PARA_DOWNL FIN!
FW 188 = MW188 ADDR_OBJECT_DB/DX
F 0.0 = M 0.0 IND.ADDRES(DUMMY)
FB 173 = FB173 COPY BLOCK parameter: EW sp
FB 176 = FB176 STORE DW INDIR. sp
Segment 8 DW 17-26 von DB_PC nach Waagen_D
:ON -MI167.5 PLI_RUNNING
:O -MS161.3 PARA_DOWNL FIN!
:JC =M001
:
:L FW 190 20
:L KF +7
:+F
:T FW 190 27 von
:
:L FW 192 3
:L KF +14
:+F
:T FW 192 17
:
:LW =DBPC
:T FW 194
:
:L KF +10 10 DW (17-26) uebertragen
:T FW 196
:
:JU -FB173 COPY BLOCK
Name :COPY DKF
QUEL : KS DX
DB-Q : -MW188 ADDR_OBJECT_DB/DX
VON : FW 190 27
BIS : FW 190
ZIEL : KS DB
DB-Z : FW 194 210
NACH : FW 192 17
FEHL : -M 0.0 IND.ADDRES(DUMMY)
LAEN : FW 196 10
L-B : KS LA
:
FX 202 -FX202 PLI->SCALE CHARGE C:ZONE10ST.S5D LEN=388
Page 4
:L FW 192 17
:L KF +3
:-F
:T FW 192 14
:
:DO FW 194
:C -DB 0 IND.ADRESS.(DUMNY)
:L KG +5000000+03 default value 500
:DO FW 192
:T DD 0 troughput rate (for simulation)
:
M001 :***
F 167.5 = MI167.5 PLI_RUNNING
F 161.3 = MS161.3 PARA_DOWNL FIN!
FW 188 = MW188 ADDR_OBJECT_DB/DX
F 0.0 = M 0.0 IND.ADDRES(DUMMY)
DB 0 = DB 0 IND.ADRESS.(DUMNY)
FB 173 = FB173 COPY BLOCK parameter: EW sp
Segment 9
:A -MS160.3 STP 40: ACTIVE
:S -MS161.3 PARA_DOWNL FIN!
:
:AN -MI167.5 PLI_RUNNING
:R -MS161.3 PARA_DOWNL FIN!
:***
F 160.3 = MS160.3 STP 40: ACTIVE
F 161.3 = MS161.3 PARA_DOWNL FIN!
F 167.5 = MI167.5 PLI_RUNNING
Segment 10 Steuerbitleiste akt_Waagen_DB
:LW =DBST ( DB 208 )
:T -MW188 ADDR_OBJECT_DB/DX
:DO -MW188 ADDR_OBJECT_DB/DX
:C -DB 0 IND.ADRESS.(DUMNY) Steuer_DB oeffnen
: --------------------------------
:LW =WZNR
:L KF +1
:-F
:L KF +2
:XF
:T -MW186 DW_ADDRESS Adresse Steuerbitleist akt_Waage
: --------------------------------
:DO -MW186 DW_ADDRESS
:L DD 0 Steuerbitleiste akt_Waage aus
:T FD 222 Steuer_DB ( DB 208 ) auslesen
: --------------------------------
:T FD 192
:
:***
FW 188 = MW188 ADDR_OBJECT_DB/DX
FW 186 = MW186 DW_ADDRESS
DB 0 = DB 0 IND.ADRESS.(DUMNY)
Segment 11 Steuerbitleiste akt_Waage
:LW =WZNR
:L KF +100
:+F
FX 202 -FX202 PLI->SCALE CHARGE C:ZONE10ST.S5D LEN=388
Page 5
:T FW 190
:DO FW 190
:C -DB 0 IND.ADRESS.(DUMNY) akt_Waagen_DB oeffnen
: --------------------------------
:L DW 191 Steuerbitleiste
:T FW 242 akt_Waage einlesen
:***
DB 0 = DB 0 IND.ADRESS.(DUMNY)
Segment 12 Handshake Waage
:A -MS160.3 STP 40: ACTIVE *U=AUTO immer start
:A -MI167.5 PLI_RUNNING *UM169.4 START PLI
:S F 223.1 REbene aktiv
:
:A -MS160.3 STP 40: ACTIVE *UM169.4
:A -MI167.5 PLI_RUNNING *
:AN F 243.0 KEbene aktiv
:S F 223.0 KEbene starten
: --------------------------------
:A F 243.0 grr*
:R F 223.0 grr*
:
:O -MO169.0 ABORTING_BY_PLI
:O -MO169.2 STOPPING_BY_PLI
:O F 195.6 Komponente von VIEW??abgebrochen
:A F 243.0 KEbene aktiv
:= F 225.6 KEbene abbrechen
:
:A -MO169.1 HOLDING_BY_PLI
:S F 225.1 Waage anhalten
:
:O -MI167.5 PLI_RUNNING (von PLI gesetzt bei Restart)
:ON F 223.1 REbene aktiv
:R F 225.1 Waage anhalten
: --------------------------------
:A F 243.3 Registrierter Wert uebernehmen
:S F 223.3 Registrierter Wert uebernommen
:R F 223.1 --------------------------------
:
:AN F 243.3 grr*
:R F 223.3 grr*
:*** *** TEST ***
F 160.3 = MS160.3 STP 40: ACTIVE
F 167.5 = MI167.5 PLI_RUNNING
F 169.0 = MO169.0 ABORTING_BY_PLI
F 169.2 = MO169.2 STOPPING_BY_PLI
F 169.1 = MO169.1 HOLDING_BY_PLI
Segment 13
:L -MW 150 PHASE_STEP_INDEX
:L KF +300
:>=F
:JC =M001
:ON F 225.6 KEbene abbrechen
:JC =M002
:
:L -MW 150 PHASE_STEP_INDEX
:L KF +300
:+F
:T -MW 150 PHASE_STEP_INDEX
:JU =M002
FX 202 -FX202 PLI->SCALE CHARGE C:ZONE10ST.S5D LEN=388
Page 6
M001 :O F 225.6 KEbene abbrechen
:JC =M002
:
:L -MW 150 PHASE_STEP_INDEX
:L KF +300
:-F
:T -MW 150 PHASE_STEP_INDEX
M002 :***
FW 150 = MW 150 PHASE_STEP_INDEX
Segment 14 Steuerbitleiste abspeichern
:DO -MW188 ADDR_OBJECT_DB/DX
:C -DB 0 IND.ADRESS.(DUMNY)
:L FD 222
:DO -MW186 DW_ADDRESS Steuerbitleiste zurueckschreiben
:T DD 0 ( In DB 208 )
: --------------------------------
:***
FW 188 = MW188 ADDR_OBJECT_DB/DX
FW 186 = MW186 DW_ADDRESS
DB 0 = DB 0 IND.ADRESS.(DUMNY)
Segment 15 Steuerbits an PLI
: *KEbene_aktiv u m243.0
:A -MO169.4 START_BY_PLI *Waage anhalten un m245.1
:AN -MO169.0 ABORTING_BY_PLI
:AN -MO169.2 STOPPING_BY_PLI
:S -MI167.5 PLI_RUNNING KEbene_aktiv
: ( wird von PLI zurueckgesetzt )
: --------------------------------
:A -MO169.0 ABORTING_BY_PLI
:AN F 243.0
:S -MI167.3 ABORTED Abgebrochen an PLI
: --------------------------------
:L -MW 150 PHASE_STEP_INDEX
:L KF +90
:!=F
:A -MI167.5 PLI_RUNNING
:AN F 243.0 Registrierter Wert uebernehmen
:S -MI167.1 COMPLETE
:O -MO169.0 ABORTING_BY_PLI
:O -MO169.1 HOLDING_BY_PLI
:O -MO169.2 STOPPING_BY_PLI
:O -MO169.3 RESTART_BY_PLI
:O -MO169.4 START_BY_PLI
:R -MI167.1 COMPLETE
:
:O -MI167.5 PLI_RUNNING
:O -MO169.2 STOPPING_BY_PLI
:A(
:L -MW 150 PHASE_STEP_INDEX 01
:L KF +40 01
:>=F 01
:) 01
:A =REPO
:= =PREP
:
:A -MO169.2 STOPPING_BY_PLI
:AN F 243.0
:AN -MI167.6 RQ_IN_WORK
:AN -MI167.2 STOPPED
FX 202 -FX202 PLI->SCALE CHARGE C:ZONE10ST.S5D LEN=388
Page 7
:= F 190.0
:S -MI167.2 STOPPED
:
:A F 190.0
:A =PREP
:S -MI166.1 RQ_2000 ULall
:
:A -MO169.1 HOLDING_BY_PLI
:S -MI167.0 HELD
:
:A -MO169.3 RESTART_BY_PLI
:S -MI166.3 RESTART_COMPL
:***
F 169.4 = MO169.4 START_BY_PLI
F 169.0 = MO169.0 ABORTING_BY_PLI
F 169.2 = MO169.2 STOPPING_BY_PLI
F 167.5 = MI167.5 PLI_RUNNING
F 167.3 = MI167.3 ABORTED
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.1 = MI167.1 COMPLETE
F 169.1 = MO169.1 HOLDING_BY_PLI
F 169.3 = MO169.3 RESTART_BY_PLI
F 167.6 = MI167.6 RQ_IN_WORK
F 167.2 = MI167.2 STOPPED
F 166.1 = MI166.1 RQ_2000 ULall
F 167.0 = MI167.0 HELD
F 166.3 = MI166.3 RESTART_COMPL
Segment 16 Steuerbits an PLI uebergeben
:LW =PLDX
:T -MW188 ADDR_OBJECT_DB/DX
:DO -MW188 ADDR_OBJECT_DB/DX
:CX -DX 0 SYSTEM PARAMETER PLI DX oeffnen
:
:LW =OFFS
:L KF +11
:+F
:T -MW186 DW_ADDRESS
: Adresse Steuerbits_IN PLI
:L -MW 166_IN_PLI
:DO -MW186 DW_ADDRESS
:T DW 0
:***
FW 188 = MW188 ADDR_OBJECT_DB/DX
FW 186 = MW186 DW_ADDRESS
FW 166 = MW 166_IN_PLI Eingangsbitleiste an PLI
DX 0 = DX 0 SYSTEM PARAMETER
Segment 17 Store Status bits PLI
:LW =OFFS
:L KF +19
:+F
:T -MW186 DW_ADDRESS
:
:L -MW 160_STATUS_PL
:DO -MW186 DW_ADDRESS
:T DW 0
: Status bits PLI
: --------------------------------
:***
FX 202 -FX202 PLI->SCALE CHARGE C:ZONE10ST.S5D LEN=388
Page 8
FW 186 = MW186 DW_ADDRESS
FW 160 = MW 160_STATUS_PL
Segment 18 tolerance gap
:ON -MS160.2 STP 30: ACTIVE
:O -MI167.6 RQ_IN_WORK
:JC =M001
:
:LW =OFFS
:L KF +23
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DD 0
:T FD 190
:
:LW =WADB
:T -MW188 ADDR_OBJECT_DB/DX
:DO -MW188 ADDR_OBJECT_DB/DX
:C -DB 0 IND.ADRESS.(DUMNY)
:
:L FD 190
:T DD 110
M001 :BE
F 160.2 = MS160.2 STP 30: ACTIVE
F 167.6 = MI167.6 RQ_IN_WORK
FW 186 = MW186 DW_ADDRESS
FW 188 = MW188 ADDR_OBJECT_DB/DX
DB 0 = DB 0 IND.ADRESS.(DUMNY)
FX 203 -FX203 PLI->SCALE DISCHA C:ZONE10ST.S5D LEN=283
Page 1
Segment 1
*****************************************************************************
BESCHREIBUNG :
---------------
Dieser Baustein setzt das PLI ( Phase Logic Interface ) von Open - Batch
auf die Schnittstelle HsH - PC zur SPS - Waage ( DB 210 ) um
******************************************************************************
PARAMETER :
-----------
PLDX : Nr. des DX Datenbaustein fuer PLI
OFFS : Offset fuer PLI Anfang
WZNR : Zaehlnummer der SPS - Waage
DBPC : Datenbaustein fuer Schnittstelle PC - SPS Waage
DBST : Steuerdatenbaustein PC - SPS Waage
AUTO : Automatik - Mode
******************************************************************************
Name :PLI-SC D
Decl :PLDX I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :OFFS I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :WZNR I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :DBPC I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :DBST I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :WADB I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :PREP I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :ENRE I/Q/D/B/T/C: I BI/BY/W/D: BI
:***
Segment 2 PLI DX oeffnen
:LW =PLDX
:T -MW188 ADDR_OBJECT_DB/DX
:DO -MW188 ADDR_OBJECT_DB/DX
:CX -DX 0 SYSTEM PARAMETER
:***
FW 188 = MW188 ADDR_OBJECT_DB/DX
DX 0 = DX 0 SYSTEM PARAMETER
Segment 3 Steuerbitleiste von PLI einlesen
:LW =OFFS
:L KF +10
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 168_OUT_PLI Ausgangsbitleiste von PLI
: --------------------------------
:L -MW186 DW_ADDRESS
:L KF +1
:+F
:T -MW186 DW_ADDRESS 11
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 166_IN_PLI Eingangsbitleiste von PLI
: --------------------------------
FX 203 -FX203 PLI->SCALE DISCHA C:ZONE10ST.S5D LEN=283
Page 2
:***
FW 186 = MW186 DW_ADDRESS
FW 168 = MW 168_OUT_PLI Ausgangssteuerbitleiste von PLI
FW 166 = MW 166_IN_PLI Eingangsbitleiste an PLI
Segment 4 load step index
:LW =OFFS
:L KF +3
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 150 PHASE_STEP_INDEX
:***
FW 186 = MW186 DW_ADDRESS
FW 150 = MW 150 PHASE_STEP_INDEX
Segment 5 Quell Adresse fuer Parameter
:LW =OFFS
:L KF +20
:+F
:T FW 190 20
:***
Segment 6 Zieladresse fuer Parameter
:LW =WZNR
:L KF +1
:-F
:L KF +31
:XF
:L KF +3 ab 3!
:+F
:T FW 192 Anfangsadresse Schnittstellen_DB
:***
Segment 7 PLI->DB_PC DW 3-9(12)
:AN -MO169.4 START_BY_PLI
:JC =M001
:
:LW =DBPC
:T FW 194
:
:L KF +5
:T FW 190
:
:JU -FB176 STORE DW INDIR.
Name :TANS DW
DB : FW 194 210 akt_Silonummer an DB_PC
DW : FW 192 3 uebergeben
WERT : FW 190 5 = discharge
DBDX : KS DB
:
M001 :
:A -MO169.4 START_BY_PLI
:RB =ENRE
:***
F 169.4 = MO169.4 START_BY_PLI
FB 176 = FB176 STORE DW INDIR. sp
FX 203 -FX203 PLI->SCALE DISCHA C:ZONE10ST.S5D LEN=283
Page 3
Segment 8 Steuerbitleiste akt_Waagen_DB
:LW =DBST ( DB 208 )
:T -MW188 ADDR_OBJECT_DB/DX
:DO -MW188 ADDR_OBJECT_DB/DX
:C -DB 0 IND.ADRESS.(DUMNY) Steuer_DB oeffnen
: --------------------------------
:LW =WZNR
:L KF +1
:-F
:L KF +2
:XF
:T -MW186 DW_ADDRESS Adresse Steuerbitleist akt_Waage
: --------------------------------
:DO -MW186 DW_ADDRESS
:L DD 0 Steuerbitleiste akt_Waage aus
:T FD 222 Steuer_DB ( DB 208 ) auslesen
: --------------------------------
:T FD 192
:
:***
FW 188 = MW188 ADDR_OBJECT_DB/DX
FW 186 = MW186 DW_ADDRESS
DB 0 = DB 0 IND.ADRESS.(DUMNY)
Segment 9 Steuerbitleiste akt_Waage
:LW =WZNR
:L KF +100
:+F
:T FW 190
:DO FW 190
:C -DB 0 IND.ADRESS.(DUMNY) akt_Waagen_DB oeffnen
: --------------------------------
:L DW 191 Steuerbitleiste
:T FW 242 akt_Waage einlesen
:***
DB 0 = DB 0 IND.ADRESS.(DUMNY)
Segment 10 Handshake Waage
:A -MS160.3 STP 40: ACTIVE *U=AUTO immer start
:A -MI167.5 PLI_RUNNING *UM169.4 START PLI
:S F 223.1 REbene aktiv
:
:A -MS160.3 STP 40: ACTIVE *UM169.4
:A -MI167.5 PLI_RUNNING *
:AN F 243.0 KEbene aktiv
:S F 223.0 KEbene starten
: --------------------------------
:A F 243.0 grr*
:R F 223.0 grr*
:
:A(
:O -MO169.0 ABORTING_BY_PLI 01
:O -MO169.2 STOPPING_BY_PLI 01
:O F 195.6 01 Komponente von VIEW??abgebrochen
:) 01
:A F 243.0 KEbene aktiv
:= F 225.6 KEbene abbrechen
:
:A -MO169.1 HOLDING_BY_PLI
:S F 225.1 Waage anhalten
FX 203 -FX203 PLI->SCALE DISCHA C:ZONE10ST.S5D LEN=283
Page 4
:
:O -MI167.5 PLI_RUNNING (von PLI gesetzt bei Restart)
:ON F 223.1 REbene aktiv
:R F 225.1 Waage anhalten
: --------------------------------
:A F 243.3 Registrierter Wert uebernehmen
:S F 223.3 Registrierter Wert uebernommen
:R F 223.1 --------------------------------
:
:AN F 243.3 grr*
:R F 223.3 grr*
:***
F 160.3 = MS160.3 STP 40: ACTIVE
F 167.5 = MI167.5 PLI_RUNNING
F 169.0 = MO169.0 ABORTING_BY_PLI
F 169.2 = MO169.2 STOPPING_BY_PLI
F 169.1 = MO169.1 HOLDING_BY_PLI
Segment 11
:L -MW 150 PHASE_STEP_INDEX
:L KF +300
:>=F
:JC =M001
:ON F 225.6 KEbene abbrechen
:JC =M002
:
:L -MW 150 PHASE_STEP_INDEX
:L KF +300
:+F
:T -MW 150 PHASE_STEP_INDEX
:JU =M002
M001 :O F 225.6 KEbene abbrechen
:JC =M002
:
:L -MW 150 PHASE_STEP_INDEX
:L KF +300
:-F
:T -MW 150 PHASE_STEP_INDEX
M002 :***
FW 150 = MW 150 PHASE_STEP_INDEX
Segment 12 Steuerbitleiste abspeichern
:DO -MW188 ADDR_OBJECT_DB/DX
:C -DB 0 IND.ADRESS.(DUMNY)
:L FD 222
:DO -MW186 DW_ADDRESS Steuerbitleiste zurueckschreiben
:T DD 0 ( In DB 208 )
: --------------------------------
:***
FW 188 = MW188 ADDR_OBJECT_DB/DX
FW 186 = MW186 DW_ADDRESS
DB 0 = DB 0 IND.ADRESS.(DUMNY)
Segment 13 Steuerbits an PLI
: *KEbene_aktiv u m243.0
:A -MO169.4 START_BY_PLI *Waage anhalten un m245.1
:AN -MO169.0 ABORTING_BY_PLI
:AN -MO169.2 STOPPING_BY_PLI
:S -MI167.5 PLI_RUNNING KEbene_aktiv
: ( wird von PLI zurueckgesetzt )
FX 203 -FX203 PLI->SCALE DISCHA C:ZONE10ST.S5D LEN=283
Page 5
: --------------------------------
:A -MO169.0 ABORTING_BY_PLI
:AN F 243.0
:S -MI167.3 ABORTED Abgebrochen an PLI
: --------------------------------
:L -MW 150 PHASE_STEP_INDEX
:L KF +90
:!=F
:A -MI167.5 PLI_RUNNING
:AN F 243.0
:S -MI167.1 COMPLETE Registrierter Wert uebernehmen
:O -MO169.0 ABORTING_BY_PLI
:O -MO169.1 HOLDING_BY_PLI
:O -MO169.2 STOPPING_BY_PLI
:O -MO169.3 RESTART_BY_PLI
:O -MO169.4 START_BY_PLI
:R -MI167.1 COMPLETE
:
:O -MI167.5 PLI_RUNNING
:O -MO169.2 STOPPING_BY_PLI
:A(
:L -MW 150 PHASE_STEP_INDEX 01
:L KF +40 01
:>=F 01
:) 01
:A =ENRE
:= =PREP
:
:A -MO169.2 STOPPING_BY_PLI
:AN -MI167.6 RQ_IN_WORK
:AN -MI167.2 STOPPED
:AN F 243.0
:= F 190.0
:S -MI167.2 STOPPED
:
:A F 190.0
:A =PREP
:S -MI166.1 RQ_2000 ULall
:
:A -MO169.1 HOLDING_BY_PLI
:S -MI167.0 HELD
:
:A -MO169.3 RESTART_BY_PLI
:S -MI166.3 RESTART_COMPL
:***
F 169.4 = MO169.4 START_BY_PLI
F 169.0 = MO169.0 ABORTING_BY_PLI
F 169.2 = MO169.2 STOPPING_BY_PLI
F 167.5 = MI167.5 PLI_RUNNING
F 167.3 = MI167.3 ABORTED
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.1 = MI167.1 COMPLETE
F 169.1 = MO169.1 HOLDING_BY_PLI
F 169.3 = MO169.3 RESTART_BY_PLI
F 167.6 = MI167.6 RQ_IN_WORK
F 167.2 = MI167.2 STOPPED
F 166.1 = MI166.1 RQ_2000 ULall
F 167.0 = MI167.0 HELD
F 166.3 = MI166.3 RESTART_COMPL
Segment 14 Steuerbits an PLI uebergeben
:LW =PLDX
:T -MW188 ADDR_OBJECT_DB/DX
FX 203 -FX203 PLI->SCALE DISCHA C:ZONE10ST.S5D LEN=283
Page 6
:DO -MW188 ADDR_OBJECT_DB/DX
:CX -DX 0 SYSTEM PARAMETER PLI DX oeffnen
:
:LW =OFFS
:L KF +11
:+F
:T -MW186 DW_ADDRESS Adresse Steuerbits_IN PLI
:
:L -MW 166_IN_PLI
:DO -MW186 DW_ADDRESS
:T DW 0
:***
FW 188 = MW188 ADDR_OBJECT_DB/DX
FW 186 = MW186 DW_ADDRESS
FW 166 = MW 166_IN_PLI Eingangsbitleiste an PLI
DX 0 = DX 0 SYSTEM PARAMETER
Segment 15 store step index
:LW =OFFS
:L KF +3
:+F
:T -MW186 DW_ADDRESS
:
:L -MW 150 PHASE_STEP_INDEX
:DO -MW186 DW_ADDRESS
:T DW 0
:BE
FW 186 = MW186 DW_ADDRESS
FW 150 = MW 150 PHASE_STEP_INDEX
FX 204 -FX204 PLI->BLEND CH&DI C:ZONE10ST.S5D LEN=138
Page 1
Segment 1
*****************************************************************************
BESCHREIBUNG :
---------------
Dieser Baustein setzt das PLI ( Phase Logic Interface ) von Open - Batch
auf die Schnittstelle HsH - PC zur SPS - Waage ( DB 210 ) um
******************************************************************************
PARAMETER :
-----------
PLDX : Nr. des DX Datenbaustein fuer PLI
OFFS : Offset fuer PLI Anfang
WZNR : Zaehlnummer der SPS - Waage
DBPC : Datenbaustein fuer Schnittstelle PC - SPS Waage
DBST : Steuerdatenbaustein PC - SPS Waage
AUTO : Automatik - Mode
******************************************************************************
Name :P-BL C&D
Decl :PLDX I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :OFFS I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :PSTR I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :PACT I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :MADB I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :REPO I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :PREP I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :PCOM I/Q/D/B/T/C: Q BI/BY/W/D: BI
:***
Segment 2 PLI DX oeffnen
:LW =PLDX
:T -MW188 ADDR_OBJECT_DB/DX
:DO -MW188 ADDR_OBJECT_DB/DX
:CX -DX 0 SYSTEM PARAMETER
:***
FW 188 = MW188 ADDR_OBJECT_DB/DX
DX 0 = DX 0 SYSTEM PARAMETER
Segment 3 Steuerbitleiste von PLI einlesen
:LW =OFFS
:L KF +10
:+F
:T -MW186 DW_ADDRESS
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 168_OUT_PLI Ausgangsbitleiste von PLI
: --------------------------------
:L -MW186 DW_ADDRESS
:L KF +1
:+F
:T -MW186 DW_ADDRESS 11
:DO -MW186 DW_ADDRESS
:L DW 0
:T -MW 166_IN_PLI Eingangsbitleiste von PLI
: --------------------------------
FX 204 -FX204 PLI->BLEND CH&DI C:ZONE10ST.S5D LEN=138
Page 2
:***
FW 186 = MW186 DW_ADDRESS
FW 168 = MW 168_OUT_PLI Ausgangssteuerbitleiste von PLI
FW 166 = MW 166_IN_PLI Eingangsbitleiste an PLI
Segment 4 Steuerbits an PLI
:A -MO169.4 START_BY_PLI
:AN -MO169.0 ABORTING_BY_PLI
:AN -MO169.2 STOPPING_BY_PLI
:S -MI167.5 PLI_RUNNING
:
:A -MO169.4 START_BY_PLI
:S -M 61.0 RESET ALL BLTIME
:
:L -MW 150 PHASE_STEP_INDEX
:L KF +90
:<F
:A -MI167.5 PLI_RUNNING
:= =PSTR
:
:A -MO169.0 ABORTING_BY_PLI
:AN =PSTR
:AN =PACT
:S -MI167.3 ABORTED
:
:A -MI167.5 PLI_RUNNING
:AN =PSTR step = 90
:AN =PACT
:S =PCOM ==> complete
:
:O -MO169.0 ABORTING_BY_PLI
:O -MO169.1 HOLDING_BY_PLI
:O -MO169.2 STOPPING_BY_PLI
:O -MO169.3 RESTART_BY_PLI
:O -MO169.4 START_BY_PLI
:RB =PCOM ==> complete
:R -MI167.1 COMPLETE
:
:O -MI167.5 PLI_RUNNING
:O -MO169.2 STOPPING_BY_PLI
:A(
:L -MW 150 PHASE_STEP_INDEX 01
:L KF +40 01
:>=F 01
:) 01
:A =REPO
:= =PREP
:
:A -MO169.2 STOPPING_BY_PLI
:AN =PSTR
:AN =PACT
:AN -MI167.6 RQ_IN_WORK
:AN -MI167.2 STOPPED
:= F 200.0
:S -MI167.2 STOPPED
:
:A F 200.0
:A =PREP
:S -MI166.1 RQ_2000 ULall
:
:A -MO169.1 HOLDING_BY_PLI
:S -MI167.0 HELD
:
FX 204 -FX204 PLI->BLEND CH&DI C:ZONE10ST.S5D LEN=138
Page 3
:A -MO169.3 RESTART_BY_PLI
:S -MI166.3 RESTART_COMPL
:***
F 169.4 = MO169.4 START_BY_PLI
F 169.0 = MO169.0 ABORTING_BY_PLI
F 169.2 = MO169.2 STOPPING_BY_PLI
F 167.5 = MI167.5 PLI_RUNNING
F 61.0 = M 61.0 RESET ALL BLTIME
FW 150 = MW 150 PHASE_STEP_INDEX
F 167.3 = MI167.3 ABORTED
F 169.1 = MO169.1 HOLDING_BY_PLI
F 169.3 = MO169.3 RESTART_BY_PLI
F 167.1 = MI167.1 COMPLETE
F 167.6 = MI167.6 RQ_IN_WORK
F 167.2 = MI167.2 STOPPED
F 166.1 = MI166.1 RQ_2000 ULall
F 167.0 = MI167.0 HELD
F 166.3 = MI166.3 RESTART_COMPL
Segment 5 Steuerbits an PLI uebergeben
:LW =PLDX
:T -MW188 ADDR_OBJECT_DB/DX
:DO -MW188 ADDR_OBJECT_DB/DX
:CX -DX 0 SYSTEM PARAMETER PLI DX oeffnen
:
:LW =OFFS
:L KF +11
:+F
:T -MW186 DW_ADDRESS Adresse Steuerbits_IN PLI
:
:L -MW 166_IN_PLI
:DO -MW186 DW_ADDRESS
:T DW 0
:BE
FW 188 = MW188 ADDR_OBJECT_DB/DX
FW 186 = MW186 DW_ADDRESS
FW 166 = MW 166_IN_PLI Eingangsbitleiste an PLI
DX 0 = DX 0 SYSTEM PARAMETER
FX 210 -FX210 DEFINE WAYs C:ZONE10ST.S5D LEN=270
Page 1
Segment 1
**************************************************************************
erstellt: G.Herkert Datum : 15.04.97
**************************************************************************
Funktion: Wege definieren, die in Verbindung mit FX211 gestellt werden
**************************************************************************
Parameter:
Weg : Wegnummer
A1 : Rohrweichen-Ausgang 1
..A9
NA1
..NA9
E1 : Rohrweichen-Eingang 1
..E9
Rese : Reset
BE01 : Weiche 1 belegt
..BE09
DB = Weichen-DB
Name :WEG
Decl :WEG I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KF
Decl :A1 I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :A2 I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :A3 I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :A4 I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :A5 I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :A6 I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :A7 I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :A8 I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :A9 I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :NA1 I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :NA2 I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :NA3 I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :NA4 I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :NA5 I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :NA6 I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :NA7 I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :NA8 I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :NA9 I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :E1 I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :E2 I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :E3 I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :E4 I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :E5 I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :E6 I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :E7 I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :E8 I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :E9 I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :RESE I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :BE01 I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :BE02 I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :BE03 I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :BE04 I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :BE05 I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :BE06 I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :BE07 I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :BE08 I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :BE09 I/Q/D/B/T/C: I BI/BY/W/D: BI
Decl :DB I/Q/D/B/T/C: I BI/BY/W/D: W
FX 210 -FX210 DEFINE WAYs C:ZONE10ST.S5D LEN=270
Page 2
:***
Segment 2 Weg-DB erzeugen
:L =DB
:T FW 210
:JU -FB171 TEST DB
Name :DB-TEST
ADR : FW 200
LAEN : FW 202
DBDX : KS DB
:JC =M001
:L KF +0
:JU =M002
:
M001 :
:L KF +100
:T FW 200
:JU -FB172 CREATE DB
Name :E DB
DB : FW 210
LAEN : FW 200
ZWSP : FW 202
DBDX : KS DB
M002 :
:***
FB 171 = FB171 TEST DB sp
FB 172 = FB172 CREATE DB sp
Segment 3 Wegstatus laden
:L =DB
:T FW 210
:DO FW 210
:C -DB 0 IND.ADRESS.(DUMNY)
:
:LW =WEG
:T FW 210
:DO FW 210
:L DW 0
:T FW 202
:***
DB 0 = DB 0 IND.ADRESS.(DUMNY)
Segment 4 Weg belegt ?
:A -M 0.0 IND.ADDRES(DUMMY)
:R -M 0.0 IND.ADDRES(DUMMY)
:O =BE01
:O =BE02
:O =BE03
:O =BE04
:O =BE05
:O =BE06
:O =BE07
:O =BE08
:O =BE09 Weiche 10 im Weg
:= F 202.2 D1.3 = eine Weiche im Weg belegt
:= F 200.0
:***
F 0.0 = M 0.0 IND.ADDRES(DUMMY)
FX 210 -FX210 DEFINE WAYs C:ZONE10ST.S5D LEN=270
Page 3
Segment 5 Weg stellen
:A F 200.0 M200.0 = Weg belegt
:JC =M001
:ON F 202.1 D1.1=anwahl
:O F 202.0 D1.0= belegt
:JC =M001
:O -M 0.0 IND.ADDRES(DUMMY)
:ON -M 0.0 IND.ADDRES(DUMMY) VKE = 1 erzeugen
:S =A1
:S =A2
:S =A3
:S =A4
:S =A5
:S =A6
:S =A7
:S =A8
:S =A9
:S =BE01
:S =BE02
:S =BE03
:S =BE04
:S =BE05
:S =BE06
:S =BE07
:S =BE08
:S =BE09
:RB =NA1
:RB =NA2
:RB =NA3
:RB =NA4
:RB =NA5
:RB =NA6
:RB =NA7
:RB =NA8
:RB =NA9
:
:S F 202.0
M001 :
:***
F 0.0 = M 0.0 IND.ADDRES(DUMMY)
Segment 6 Weg OK?
:A F 202.1 D 1.1 = Anwahl
:A =E1 anwahl
:A =E2
:A =E3
:A =E4
:A =E5
:A =E6
:A =E7
:A =E8
:A =E9
:= F 202.3 D 1.3 = Weg OK
:***
Segment 7 Weg freigeben
:AN F 202.1 WegDB D1.1=anwahl
:A F 202.0 WegDB D1.0=gestellt
:JC =M001
:JU =M002
M001 :
:A F 202.0 gestellt
FX 210 -FX210 DEFINE WAYs C:ZONE10ST.S5D LEN=270
Page 4
:RB =BE01
:RB =BE02
:RB =BE03
:RB =BE04
:RB =BE05
:RB =BE06
:RB =BE07
:RB =BE08
:RB =BE09
:RB =A1
:RB =A2
:RB =A3
:RB =A4
:RB =A5
:RB =A6
:RB =A7
:RB =A8
:RB =A9
:R F 202.0
M002 :
:***
Segment 8 allgemeiner Reset
:A =RESE
:RB =BE01
:RB =BE02
:RB =BE03
:RB =BE04
:RB =BE05
:RB =BE06
:RB =BE07
:RB =BE08
:RB =BE09
:***
Segment 9 Wegstatus speichern
:L FW 202
:DO FW 210 MW210 = Zeiger Weg-DB
:T DW 0
:
:BE
FX 211 -FX211 CONTROL WAYs C:ZONE10ST.S5D LEN=65
Page 1
Segment 1 Weg Nr. x stellen
******************************************************************************
Datum:
erstellt: G.Herkert 15.04.97
******************************************************************************
Beschreibung:
Ueber diesen Baustein wird die Weganforderung eines Weges gesetzt.
Die Wege werden ueber Fx210 parametriert
******************************************************************************
Parameter:
W-DB: Weg-DB
Solw: Soll-Weg - zu stellender Weg
W OK: Weg OK
Free: Weg frei
Anfo: Weganforderung
******************************************************************************
Name :WEG STEL
Decl :W-DB I/Q/D/B/T/C: I BI/BY/W/D: W
Decl :SOLW I/Q/D/B/T/C: I BI/BY/W/D: W
Decl :W OK I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :FREE I/Q/D/B/T/C: Q BI/BY/W/D: BI
Decl :ANFO I/Q/D/B/T/C: I BI/BY/W/D: BI
:L =SOLW
:T FW 210
:L KF +0
:!=F
:BEC
:***
Segment 2 Weg laden
:A =ANFO
:= F 200.0 M200.0=Verb.zu Silo gewuenscht
:L FW 210
:L FW 212
:
:L =W-DB
:T FW 220
:DO FW 220
:C -DB 0 IND.ADRESS.(DUMNY)
:
:DO FW 210 Weg 1
:L DW 0
:T FW 202
:***
DB 0 = DB 0 IND.ADRESS.(DUMNY)
Segment 3 Weg frei ?
:AN F 202.2
:= =FREE
:***
FX 211 -FX211 CONTROL WAYs C:ZONE10ST.S5D LEN=65
Page 2
Segment 4 Weg Stellen
:
:A F 200.0 M200.0=Verb.zu Silo gewuenscht
:AN F 202.0 M202.0 = Weg 1 belegt
:AN F 202.2 D202.2 = Weg von anderem belegt
:S F 202.1 D202.1 = Weg 1 stellen
:
:AN F 200.0
:R F 202.1
:***
Segment 5 Weg OK ?
:A F 202.3 Weg OK
:= =W OK
:***
Segment 6 Weg speichern
:L FW 202
:DO FW 210
:T DW 0
:BE