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

Hot Press New Siemens / MAIN (OB1)

Block: MAIN
Author:
Created: 06/14/2020 03:41:53 pm
Last Modified: 06/27/2020 11:34:13 am

Symbol Var Type Data Type Comment


TEMP
TEMP
TEMP
TEMP

PROGRAM COMMENTS
Network 1 START STOP
Network Comment

Start_button :I3.0 Stop_button :I3.1 Stop_Flag :M0.1 Start_Flag :M0.0


/ /

Start_Flag :M0.0

Symbol Address Comment


Start_button I3.0 Auto Mode.
Start_Flag M0.0 Start_Flag
Stop_button I3.1 Auto Mode.
Stop_Flag M0.1 Stop_Flag

Network 2 LOADER

Main_Pusher_~ :I1.1 Start_Flag :M0.0 Stop_button :I3.1 Stop_Flag_Lo~ :M0.4 Start_flag_Lo~ :M0.3
/ /

Start_flag_Lo~ :M0.3 Loader


EN

Symbol Address Comment


Main_Pusher_Forward I1.1 Plate Pusher status
Start_Flag M0.0 Start_Flag
Start_flag_Loader M0.3 Start_flag_Loader
Stop_button I3.1 Auto Mode.
Stop_Flag_Loader M0.4 Stop_Flag_Loader

1 / 22
Hot Press New Siemens / MAIN (OB1)

Network 3 PUSHER

Ready_Flag_~ :M0.5 Ready_Flag_~ :M1.3 Start_Flag :M0.0 Stop_Flag_Pu~ :M0.7 Start_Flag_P~ :M0.6
/ 3.A

Start_Flag_P~ :M0.6 Cake_full_Flag :M2.6

3.A

Pusher
EN

Symbol Address Comment


Cake_full_Flag M2.6 Cake full Flag
Ready_Flag_Hot_Press M1.3 Ready_Flag_Hot_Press
Ready_Flag_Loader M0.5 Ready_Flag_Loader
Start_Flag M0.0 Start_Flag
Start_Flag_Pusher M0.6 Start_Flag_Pusher
Stop_Flag_Pusher M0.7 Stop_Flag_Pusher

Network 4 HOT PRESS

Start_Flag :M0.0 Stop_button :I3.1 Stop_Flag_H~ :M1.2 Start_Flag_H~ :M1.1


/ /

Start_Flag_H~ :M1.1 Hot_press


EN

Symbol Address Comment


Start_Flag M0.0 Start_Flag
Start_Flag_Hot_Press M1.1 Start_Flag_Hot_Press
Stop_button I3.1 Auto Mode.
Stop_Flag_Hot_Press M1.2 Stop_Flag_Hot_Press

2 / 22
Hot Press New Siemens / MAIN (OB1)

Network 5

Start_Flag :M0.0 Stop_button :I3.1 Plate_sensor_4 :I1.0 even_cake_cou~ :C2 Cake_full_Coun~ :C3
/ <=I CU CTU
10
Plate_sensor_2 :I0.6 odd_cakke_cou~ :C1
>=I
10
Main_Pusher_~ :I1.2
R

20 PV

Symbol Address Comment


Cake_full_Counter C3
even_cake_counter C2
Main_Pusher_Reverse I1.2 Plate Pusher status
odd_cakke_counter C1
Plate_sensor_2 I0.6 For Plate direction
Plate_sensor_4 I1.0 For Plate direction
Start_Flag M0.0 Start_Flag
Stop_button I3.1 Auto Mode.

Network 6

Cake_full_Coun~ :C3 Cake_full_Flag :M2.6


==I
20

Symbol Address Comment


Cake_full_Counter C3
Cake_full_Flag M2.6 Cake full Flag

Network 7

SM0.1 HSC_INIT
EN

3 / 22
Hot Press New Siemens / MAIN (OB1)

Network 8

SM0.0 MOV_DW
EN ENO

HC0 IN OUT SMD100

Network 9

SM0.0 DI_R
EN ENO

300 IN OUT SMD200

Network 10

SM0.0 DI_R
EN ENO

SMD100 IN OUT SMD300

Network 11

SM0.0 DIV_R
EN ENO

SMD300 IN1 OUT SMD400


SMD200 IN2

4 / 22
Hot Press New Siemens / MAIN (OB1)

Network 12

SM0.0 PID0_INIT
EN

AIW0 PV_I Output MW0


PID0_PV :VD0 Setpoint~ HighAla~ Q2.0
LowAlar~ Q2.1

Symbol Address Comment


PID0_PV VD0 Normalized Process Variable

5 / 22
Hot Press New Siemens / Loader (SBR0)

Block: Loader
Author:
Created: 06/14/2020 03:41:53 pm
Last Modified: 06/26/2020 09:39:44 am

Symbol Var Type Data Type Comment


EN IN BOOL
IN
IN_OUT
OUT
TEMP

SUBROUTINE COMMENTS
Network 1 Plate Position UP
Network Comment

Plate_sensor_2 :I0.6 Plate_sensor_3 :I0.7 Plate_sensor_4 :I1.0 Stop_Flag_Lo~ :M0.4 Plate_position~ :M2.0 Plate_position~ :M1.7
/ /

Plate_position~ :M1.7 Stop_button :I3.1 Main_Pusher_~ :I1.1


/

Symbol Address Comment


Main_Pusher_Forward I1.1 Plate Pusher status
Plate_position_Down M2.0 Plate_position_Down
Plate_position_up M1.7 Plate_position_up
Plate_sensor_2 I0.6 For Plate direction
Plate_sensor_3 I0.7 For Plate direction
Plate_sensor_4 I1.0 For Plate direction
Stop_button I3.1 Auto Mode.
Stop_Flag_Loader M0.4 Stop_Flag_Loader

Network 2

Plate_position~ :M1.7 Stop_Flag_Lo~ :M0.4 Start_flag_Lo~ :M0.3


/

Start_flag_Lo~ :M0.3

Symbol Address Comment


Plate_position_up M1.7 Plate_position_up
Start_flag_Loader M0.3 Start_flag_Loader
Stop_Flag_Loader M0.4 Stop_Flag_Loader

6 / 22
Hot Press New Siemens / Loader (SBR0)

Network 3 Counter

Plate_sensor_4 :I1.0 even_cake_cou~ :C2 odd_cakke_cou~ :C1


<=I P CU CTU
10
Plate_sensor_1 :I0.5 Plate_sensor_2 :I0.6 Plate_sensor_3 :I0.7
R

Cake_full_Coun~ :C3 Total_Plate_c~ :M2.3 11 PV


/

Symbol Address Comment


Cake_full_Counter C3
even_cake_counter C2
odd_cakke_counter C1
Plate_sensor_1 I0.5 For Plate direction
Plate_sensor_2 I0.6 For Plate direction
Plate_sensor_3 I0.7 For Plate direction
Plate_sensor_4 I1.0 For Plate direction
Total_Plate_counter_fla M2.3 Total_Plate_counter

Network 4

Plate_sensor_2 :I0.6 odd_cakke_cou~ :C1 even_cake_cou~ :C2


>=I P CU CTU
10
Plate_sensor_2 :I0.6 Plate_sensor_3 :I0.7 Plate_sensor_4 :I1.0
R

Cake_full_Coun~ :C3 Total_Plate_c~ :M2.3 11 PV


/

Symbol Address Comment


Cake_full_Counter C3
even_cake_counter C2
odd_cakke_counter C1
Plate_sensor_2 I0.6 For Plate direction
Plate_sensor_3 I0.7 For Plate direction
Plate_sensor_4 I1.0 For Plate direction
Total_Plate_counter_fla M2.3 Total_Plate_counter

7 / 22
Hot Press New Siemens / Loader (SBR0)

Network 5

VW0 T37 Total_Plate_c~ :M2.3


==I /
21
Total_Plate_c~ :M2.3 T37
IN TON

100 PT 100 ms

Symbol Address Comment


Total_Plate_counter_fla M2.3 Total_Plate_counter

Network 6

Start_flag_Lo~ :M0.3 ADD_I


EN ENO

odd_cakke_cou~ :C1 IN1 OUT VW0


even_cake_cou~ :C2 IN2

Symbol Address Comment


even_cake_counter C2
odd_cakke_counter C1
Start_flag_Loader M0.3 Start_flag_Loader

Network 7

VW0 Loader_cycle~ :M2.4


>=I
20
T38
IN TON

100 PT 100 ms

Symbol Address Comment


Loader_cycle_com_flag M2.4 Loader_cycle_com_flag

8 / 22
Hot Press New Siemens / Loader (SBR0)

Network 8

Plate_sensor_4 :I1.0 even_cake_cou~ :C2 Total_Cake_cou~ :C0


<=I P CU CTU
10
Plate_sensor_2 :I0.6 odd_cakke_cou~ :C1
>=I P
10
M3.0
R

10000 PV

Symbol Address Comment


even_cake_counter C2
odd_cakke_counter C1
Plate_sensor_2 I0.6 For Plate direction
Plate_sensor_4 I1.0 For Plate direction
Total_Cake_counter C0

Network 9

Cake_sensor_1 :I0.2 Cake_sensor_2 :I0.3 cake_in_tray_~ :M2.5

T42 T41
IN TON

100 PT 100 ms

Symbol Address Comment


cake_in_tray_flag M2.5 cake_in_tray_flag
Cake_sensor_1 I0.2 Detects Cake
Cake_sensor_2 I0.3 Detects Cake

9 / 22
Hot Press New Siemens / Loader (SBR0)

Network 10

Plate_sensor_2 :I0.6 cake_in_tray_~ :M2.5 Loader_Coil_~ :Q0.0

Loader_Coil_~ :Q0.0 T42 T42


/ IN TON

200 PT 100 ms

Symbol Address Comment


cake_in_tray_flag M2.5 cake_in_tray_flag
Loader_Coil_Up Q0.0 Loader_Coil_Up
Plate_sensor_2 I0.6 For Plate direction

Network 11

Network 12

Network 13

Network 14

10 / 22
Hot Press New Siemens / Loader (SBR0)

Network 15

V0.0 M3.0

11 / 22
Hot Press New Siemens / Pusher (SBR1)

Block: Pusher
Author:
Created: 06/14/2020 04:27:04 pm
Last Modified: 06/14/2020 04:27:04 pm

Symbol Var Type Data Type Comment


EN IN BOOL
IN
IN_OUT
OUT
TEMP

SUBROUTINE COMMENTS
Network 1 Network Titl e
Network Comment

12 / 22
Hot Press New Siemens / Hot_press (SBR2)

Block: Hot_press
Author:
Created: 06/14/2020 04:27:08 pm
Last Modified: 06/24/2020 05:02:41 pm

Symbol Var Type Data Type Comment


EN IN BOOL
IN
IN_OUT
OUT
TEMP

SUBROUTINE COMMENTS
Network 1 Network Titl e
Network Comment

Delevery_lift_Up :I1.7 Hot_press_do~ :Q0.7

V0.0

Symbol Address Comment


Delevery_lift_Up I1.7 Delivery Lift Status
Hot_press_down Q0.7 Hot_press_down

Network 2

I2.0 Hot_press_up :Q0.6

V0.1

Symbol Address Comment


Hot_press_up Q0.6 Hot_press_up

13 / 22
Hot Press New Siemens / HSC_INIT (SBR3)

Block: HSC_INIT
Author: Instruction Wizard HSC
Created: 06/26/2020 12:37:19 pm
Last Modified: 06/26/2020 12:37:19 pm

Symbol Var Type Data Type Comment


EN IN BOOL
IN
IN_OUT
OUT
TEMP

14 / 22
Hot Press New Siemens / HSC_INIT (SBR3)

Network 1 Instruction Wizard HSC


To enable this configuration within the program, Use SM0.1 or an edge-triggered instruction to call this Subroutine once from the
MAIN program block.
Configure HC0 for Mode 4; CV = 0; PV = 0; count UP;
Enable interrupts and start counter.

SM0.0 MOV_B
EN ENO

16#F8 IN OUT SMB37

MOV_DW
EN ENO

+0 IN OUT SMD38

MOV_DW
EN ENO

+0 IN OUT SMD42

HDEF
EN ENO

0 HSC
4 MODE

ENI

HSC
EN ENO

0 N

15 / 22
Hot Press New Siemens / interrupt (INT0)

Block: interrupt
Author:
Created: 06/14/2020 03:41:53 pm
Last Modified: 06/14/2020 03:41:53 pm

Symbol Var Type Data Type Comment


TEMP
TEMP
TEMP
TEMP

INTERRUPT ROUTINE COMMENTS


Network 1 Network Titl e
Network Comment

16 / 22
Hot Press New Siemens / PID0_INIT (SBR4)

Block: PID0_INIT
Author:
Created: 06/27/2020 11:30:09 am
Last Modified: 06/27/2020 11:30:09 am

Symbol Var Type Data Type Comment


EN IN BOOL
LW0 PV_I IN INT Process Variable Input: Range 0 to 32000
LD2 Setpoint_R IN REAL Setpoint Input: Range 0.0 to 100.0
IN
IN_OUT
LW6 Output OUT INT PID Output: Range 0 to 32000
L8.0 HighAlarm OUT BOOL Process Variable (PV) is > High Alarm Limit (0.90)
L8.1 LowAlarm OUT BOOL Process Variable (PV) is < Low Alarm Limit (0.10)
OUT
LD9 Tmp_DI TEMP DWORD
LD13 Tmp_R TEMP REAL
TEMP

This POU was created by the PID formula of the S7-200 Instruction Wizard.
To enable this configuration within the program, use SM0.0 to call this Subroutine from the MAIN program block every scan cycle.
This code configures PID 0. See DB1 for the PID loop variable table starting at VB0. This subroutine initializes the variables
used by the PID control logic and starts the PID Interrupt "PID_EXE" routine. The PID interrupt routine is called cyclically based
on the PID sample time. For a complete description of the PID instruction see the S7-200 System Manual. Note:When the PID is
in manual mode the output should be controlled by writing a normalized value(0.00 to 1.00) to the Manual Output parameter
instead of changing the output directly. This will automatically provide a bumpless transfer when the PID is returned to automatic
mode.

17 / 22
Hot Press New Siemens / PID_EXE (INT1)

Block: PID_EXE
Author:
Created: 06/27/2020 11:30:09 am
Last Modified: 06/27/2020 11:30:09 am

Symbol Var Type Data Type Comment


TEMP
TEMP
TEMP
TEMP

This POU was created by the PID formula of the S7-200 Instruction Wizard.
This interrupt routine implements Timed Inte rrupt for PID exec uti on. This interrupt routine was attached in subroutine "PID0_INIT".

18 / 22
Hot Press New Siemens / I/O Table

Symbol Address Comment


Start_button I3.0 Auto Mode.
Stop_button I3.1 Auto Mode.
Start_Flag M0.0 Start_Flag
Stop_Flag M0.1 Stop_Flag
Pause_Flag M0.2 Pause_Flag
Start_flag_Loader M0.3 Start_flag_Loader
Stop_Flag_Loader M0.4 Stop_Flag_Loader
Ready_Flag_Loader M0.5 Ready_Flag_Loader
Start_Flag_Pusher M0.6 Start_Flag_Pusher
Stop_Flag_Pusher M0.7 Stop_Flag_Pusher
Ready_Flag_Pusher M1.0 Ready_Flag_Pusher
Start_Flag_Hot_Press M1.1 Start_Flag_Hot_Press
Stop_Flag_Hot_Press M1.2 Stop_Flag_Hot_Press
Ready_Flag_Hot_Press M1.3 Ready_Flag_Hot_Press
Start_Flag_delivery M1.4 Start_Flag_delivery
Stop_Flag_Delivery M1.5 Stop_Flag_Delivery
Ready_Flag_Delivery M1.6 Ready_Flag_Delivery
Cake_sensor_1 I0.2 Detects Cake
Cake_sensor_2 I0.3 Detects Cake
Pusher_Sensor I0.4 Detects Pusher's presence
Plate_sensor_1 I0.5 For Plate direction
Plate_sensor_2 I0.6 For Plate direction
Plate_sensor_3 I0.7 For Plate direction
Plate_sensor_4 I1.0 For Plate direction
Plate_position_up M1.7 Plate_position_up
Plate_position_Down M2.0 Plate_position_Down
Plate_up_Ready M2.1 Plate_up_Ready
Plate_down_ready M2.2 Plate_down_ready
Main_Pusher_Forward I1.1 Plate Pusher status
Main_Pusher_Reverse I1.2 Plate Pusher status
Hot_press_Up I1.3 Hot Press Position
Hot_Press_Down I1.4 Hot Press Position
Retainer_In I1.5 Retainer position
Retainer_out I1.6 Retainer position
Delevery_lift_Up I1.7 Delivery Lift Status
Delivery_Lift_Down I2.1 Delivery Lift Status
Hydraulic_Pressure_1 I2.2 Hydraulic pressure switch low
Hydraulic_Pressure_2 I2.3 Hydraulic pressure switch mid
Hydraulic_Pressure_3 I2.4 Hydraulic pressure switch high
Total_Plate_counter_fla M2.3 Total_Plate_counter
Loader_cycle_com_flag M2.4 Loader_cycle_com_flag
cake_in_tray_flag M2.5 cake_in_tray_flag
Cake_full_Flag M2.6 Cake full Flag
M2.7
M3.0
M3.1
M3.2
M3.3
M3.4
M3.5
M3.6
M3.7

19 / 22
Hot Press New Siemens / I/O Table

Symbol Address Comment


Loader_Coil_Up Q0.0 Loader_Coil_Up
Loader_Coil_Down Q0.1 Loader_Coil_Down
Pusher_Coil_forward Q0.2 Pusher_Coil_forward
Pusher_Coil_Reverse Q0.3 Pusher_Coil_Reverse
Retainer_in_coil_up Q0.4 Retainer_in_coil_up
Retainer_in_coil_down Q0.5 Retainer_in_coil_down
Hot_press_up Q0.6 Hot_press_up
Hot_press_down Q0.7 Hot_press_down
Retainer_out_coil_up Q1.0 Retainer_out_coil_up
Reatiner_out_coil_down Q1.1 Reatiner_out_coil_down
Unloader_coil_up Q1.2 Unloader_coil_up
Unloader_coil_down Q1.3 Unloader_coil_down
Cake_full_Counter C3
Total_Cake_counter C0
odd_cakke_counter C1

even_cake_counter C2

20 / 22
Hot Press New Siemens / POU Symbols

Symbol Address Comment


Loader SBR0 SUBROUTINE COMMENTS
Pusher SBR1 SUBROUTINE COMMENTS
Hot_press SBR2 SUBROUTINE COMMENTS
HSC_INIT SBR3
PID0_INIT SBR4 This POU was created by the PID formula of the
S7-200 Instruction Wizard.
interrupt INT0 INTERRUPT ROUTINE COMMENTS
PID_EXE INT1 This POU was created by the PID formula of the
S7-200 Instruction Wizard.
MAIN OB1 PROGRAM COMMENTS

21 / 22
Hot Press New Siemens / PID0_SYM

Symbol Address Comment


PID0_Low_Alarm VD116 Low Alarm Limit
PID0_High_Alarm VD112 High Alarm Limit
PID0_D_Counter VW80
PID0_D_Time VD24 Derivative Time
PID0_I_Time VD20 Integral Time
PID0_SampleTime VD16 Sample Time (To modify, rerun the PID Wizard)
PID0_Gain VD12 Loop Gain
PID0_Output VD8 Calculated, Normalized Loop Output
PID0_SP VD4 Normalized Process Setpoint
PID0_PV VD0 Normalized Process Variable
PID0_Table VB0 Loop Table Starting address for PID 0

22 / 22

You might also like