Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Datum=10.07.

2019, Uhrzeit=17:23:27
Pfad=E:\ISU\ELECTRICAL MOTOR CONTROLS\PLC\SIEMENS\HOMEWORK\UDEMY-CRIMPDEVICE\UDEMY-CRIMPDEVICE.PRJ
Objekt=OB1, Projekt=UDEMY-CRIMPDEVICE.PRJ

OB1
"OB1"
Name: Family: Autor:
Version: 1.0
Time stamp of code: 2019-7-9 | 17:06:42(06)
Time stamp of inteface: 2019-7-9 | 17:06:42(06)
Block sizes (Block/Code/Data): 130/22/22

1 Cyclic main block

Block comment=

Address Declaration Name Type Initial value Comment


0.0 temp OB1_EV_CLASS BYTE Bits 0-3 = 1 (Coming event), Bits 4-7 = 1 (Event class 1)
1.0 temp OB1_SCAN_1 BYTE 1 (Cold restart scan 1 of OB 1), 3 (Scan 2-n of OB 1)
2.0 temp OB1_PRIORITY BYTE 1 (Priority of 1 is lowest)
3.0 temp OB1_OB_NUMBR BYTE 1 (Organization block 1, OB1)
4.0 temp OB1_RESERVED_1 BYTE Reserved for system
5.0 temp OB1_RESERVED_2 BYTE Reserved for system
6.0 temp OB1_PREV_CYCLE INT Cycle time of previous OB1 scan (milliseconds)
8.0 temp OB1_MIN_CYCLE INT Minimum cycle time of OB1 (milliseconds)
10.0 temp OB1_MAX_CYCLE INT Maximum cycle time of OB1 (milliseconds)
12.0 temp OB1_DATE_TIME DATE_AND_TIME Date and time OB1 started

Network 1 Network title=

Network comment=

Sequencer
EN EN0

"Sequencer" FC1 FC1 Process of the sequencer

Network 2 Network title=

Network comment=

"AlwaysOn" "FirstScanBit"
R

"AlwaysOn" M0.1 BOOL


"FirstScanBit" M0.2 BOOL

OB1 WinPLC7-Test Seite 1 von 5


Datum=10.07.2019, Uhrzeit=17:23:27
Pfad=E:\ISU\ELECTRICAL MOTOR CONTROLS\PLC\SIEMENS\HOMEWORK\UDEMY-CRIMPDEVICE\UDEMY-CRIMPDEVICE.PRJ
Objekt=OB100, Projekt=UDEMY-CRIMPDEVICE.PRJ

OB100
"OB100"
Name: Family: Autor:
Version: 1.0
Time stamp of code: 2019-7-9 | 17:06:42(24)
Time stamp of inteface: 2019-7-9 | 17:06:42(24)
Block sizes (Block/Code/Data): 130/26/20

1 Start up

Block comment=

Address Declaration Name Type Initial value Comment


0.0 temp OB100_EV_CLASS BYTE 16#13, Event class 1, Entering event state, Event logged in diagnostic buffer
1.0 temp OB100_STRTUP BYTE 16#81/82/83/84 Method of startup
2.0 temp OB100_PRIORITY BYTE 27 (Priority of 1 is lowest)
3.0 temp OB100_OB_NUMBR BYTE 100 (Organization block 100, OB100)
4.0 temp OB100_RESERVED_1 BYTE Reserved for system
5.0 temp OB100_RESERVED_2 BYTE Reserved for system
6.0 temp OB100_STOP WORD Event that caused CPU to stop (16#4xxx)
8.0 temp OB100_STRT_INFO DWORD Information on how system started
12.0 temp OB100_DATE_TIME DATE_AND_TIME Date and time OB100 started

Network 1 Resetting the sequencer at the start-up.

Network comment=

"AlwaysOff" "AlwaysOff"
R

"AlwaysOn" "AlwaysOn"
/ S

"AlwaysOn" "Step1"
R

"Step2"
R

"Step3"
R

"Step4"
R

"Step5"
R

"AlwaysOn" "FirstScanBit"

"AlwaysOff" M0.0 BOOL


"AlwaysOn" M0.1 BOOL
"Step1" M20.0 BOOL Step 1 in the sequencer
"Step2" M20.1 BOOL Step 2 in the sequencer
"Step3" M20.2 BOOL Step 3 in the sequencer
"Step4" M20.3 BOOL Step 4 in the sequencer
"Step5" M20.4 BOOL Step 5 in the sequencer
"FirstScanBit" M0.2 BOOL

OB100 WinPLC7-Test Seite 2 von 5


Datum=10.07.2019, Uhrzeit=17:23:27
Pfad=E:\ISU\ELECTRICAL MOTOR CONTROLS\PLC\SIEMENS\HOMEWORK\UDEMY-CRIMPDEVICE\UDEMY-CRIMPDEVICE.PRJ
Objekt=FC1, Projekt=UDEMY-CRIMPDEVICE.PRJ

FC1
"Sequencer"
Name: Family: Autor:
Version: 1.0
Time stamp of code: 2019-7-9 | 17:06:42(15)
Time stamp of inteface: 2019-7-9 | 16:51:30(82)
Block sizes (Block/Code/Data): 204/100/0

1 Sequencer

2 You find the created sequencer in this block.


3 What has to be done still?
4 - Check if all step conditions are correct.
5 Change it, if it's necessary.
6 - The last step still must be reset. (see network no 6)
7 - Since the outputs are not set in the sequencer yet,
8 you must define in the last network which outputs shall be set at which steps.

Address Declaration Name Type Initial value Comment


in
out
in_out
temp

Network 1 Network title=

Network comment=

"AlwaysOn" "StateChanged"
R

"AlwaysOn" M0.1 BOOL


"StateChanged" M0.3 BOOL

Network 2 Condition for step 1:

Network comment=

"Step1" "Step2" "Step3" "Step4" "Step5" "Step1"


/ / / / / S

"Step1" M20.0 BOOL Step 1 in the sequencer


"Step2" M20.1 BOOL Step 2 in the sequencer
"Step3" M20.2 BOOL Step 3 in the sequencer
"Step4" M20.3 BOOL Step 4 in the sequencer
"Step5" M20.4 BOOL Step 5 in the sequencer

Network 3 Condition for step 2:

Network comment=

"Step1" "S1Start" "StateChanged" "Step1"


/ R

"Step2"
S

"StateChanged"
S

"Step1" M20.0 BOOL Step 1 in the sequencer


"S1Start" I0.0 BOOL
"StateChanged" M0.3 BOOL
"Step2" M20.1 BOOL Step 2 in the sequencer

Network 4 Network title=

Network comment=

T1
"Step2"
S (SD)

S5T#2S
TV

"Step2" M20.1 BOOL Step 2 in the sequencer

Network 5 Condition for step 3:

FC1 WinPLC7-Test Seite 3 von 5


Datum=10.07.2019, Uhrzeit=17:23:27
Pfad=E:\ISU\ELECTRICAL MOTOR CONTROLS\PLC\SIEMENS\HOMEWORK\UDEMY-CRIMPDEVICE\UDEMY-CRIMPDEVICE.PRJ
Objekt=FC1, Projekt=UDEMY-CRIMPDEVICE.PRJ
Network comment=

"Step2" T1 "StateChanged" "Step2"


/ R

"Step3"
S

"StateChanged"
S

"Step2" M20.1 BOOL Step 2 in the sequencer


"StateChanged" M0.3 BOOL
"Step3" M20.2 BOOL Step 3 in the sequencer

Network 6 Network title=

Network comment=

T2
"Step3"
S (SD)

S5T#5S
TV

"Step3" M20.2 BOOL Step 3 in the sequencer

Network 7 Condition for step 4:

Network comment=

"Step3" T2 "StateChanged" "Step3"


/ R

"Step4"
S

"StateChanged"
S

"Step3" M20.2 BOOL Step 3 in the sequencer


"StateChanged" M0.3 BOOL
"Step4" M20.3 BOOL Step 4 in the sequencer

Network 8 Condition for step 5:

Network comment=

"Step4" "S2Confirm" "StateChanged" "Step4"


/ R

"Step5"
S

"StateChanged"
S

"Step4" M20.3 BOOL Step 4 in the sequencer


"S2Confirm" I0.1 BOOL
"StateChanged" M0.3 BOOL
"Step5" M20.4 BOOL Step 5 in the sequencer

Network 9 Resetting last step:

Network comment=

FC1 WinPLC7-Test Seite 4 von 5


Datum=10.07.2019, Uhrzeit=17:23:27
Pfad=E:\ISU\ELECTRICAL MOTOR CONTROLS\PLC\SIEMENS\HOMEWORK\UDEMY-CRIMPDEVICE\UDEMY-CRIMPDEVICE.PRJ
Objekt=FC1, Projekt=UDEMY-CRIMPDEVICE.PRJ

"Step5" "StateChanged" "Step5"


/ R

"Step1"
S

"StateChanged"
S

"Step5" M20.4 BOOL Step 5 in the sequencer


"StateChanged" M0.3 BOOL
"Step1" M20.0 BOOL Step 1 in the sequencer

Network 10 Set outputs

43 In this network you can assign


44 the sequencer bit memory or data block bits to the outputs.
45 A M 20.4
46 = Q 0.0
47 etc.

"Step2" "A1Crimp"

"Step4" "P1Unload"

"Step2" M20.1 BOOL Step 2 in the sequencer


"A1Crimp" Q0.0 BOOL
"Step4" M20.3 BOOL Step 4 in the sequencer
"P1Unload" Q0.1 BOOL

FC1 WinPLC7-Test Seite 5 von 5

You might also like