SlideShare una empresa de Scribd logo
1 de 18
Descargar para leer sin conexión
Cover sheet
How do you synchronize the time of
the HMI Basic Panel with a S7-1200
PLC?
S7-1200 PLC, HMI Basic Panel
FAQ  October 2009
Service & Support
Answers for industry.
Question
2
S7-1200_HMI_time_sync
Version 1.0, Entry ID: 39182145
This entry originates from the Service&Support Portal of Siemens AG, Sector
Industry, Industry Automation and Drive Technologies. The conditions of use
specified there apply (www.siemens.com/nutzungsbedingungen).
Go to the following link to download this document.
http://support.automation.siemens.com/WW/view/de/39182145
Question
How do you synchronize the time of the HMI Basic Panel with a S7-1200 PLC?
Answer
Use the system time of your S7-1200 PLC on your HMI Basic Panel by configuring
the relevant tags on your HMI Basic Panel. The necessary steps are explained
using a sample project.
Contents
S7-1200_HMI_time_sync
Version 1.0, Entry ID: 39182145 3
Contents
1 Configuring the S7-1200 PLC........................................................................... 4
1.1 Prepare project..................................................................................... 4
1.2 Configure tags and time functions........................................................ 5
1.3 Download project to PLC ..................................................................... 8
2 Configuring the HMI Basic Panel..................................................................... 9
2.1 Configure HMI Basic Panel .................................................................. 9
2.2 Configure basic screen....................................................................... 10
2.3 Assign tags......................................................................................... 11
2.4 Configure button................................................................................. 12
2.5 Time/date display of the HMI Basic Panel ......................................... 15
3 Using the time functions................................................................................. 16
3.1 Set the PG/PC interface..................................................................... 16
3.2 Display time........................................................................................ 16
3.3 Change system time UTC .................................................................. 17
3.4 Change local time............................................................................... 18
1 Configuring the S7-1200 PLC
4
S7-1200_HMI_time_sync
Version 1.0, Entry ID: 39182145
1 Configuring the S7-1200 PLC
You create time functions in a project so that you can access the system time UTC
and the local system time via the tags assigned.
1.1 Prepare project
Click on the "Project" menu in the menu bar and then on the menu command
"New...". In the "Create a new project" dialog you enter a name in the "Project
name" input field. Click on the "Create" button to complete the procedure.
Figure 1-1
Incorporate PLC
In the project tree in your project folder, you click on the "Add new device" item. In
the "Add––––– new device" dialog window, you click on the "SIMATIC PLC" button
and in the folder tree you select your PLC model by clicking on the associated
MLFB. Confirm your selection by clicking on the "OK" button.
1 Configuring the S7-1200 PLC
S7-1200_HMI_time_sync
Version 1.0, Entry ID: 39182145 5
Figure 1-1
1.2 Configure tags and time functions
Create data block
In the project tree in your PLC's folder, you navigate to the "Program blocks" folder
and double-click on the "Add new block" item to open the associated dialog
window. In the "Add new block" dialog window, you select "Data block" as block
type and in the "Name" input field you specify a name for the data block to be
created. Select "GLOBAL DB" in the "Type" drop-down list box. Click on the "OK"
button to complete the procedure.
1 Configuring the S7-1200 PLC
6
S7-1200_HMI_time_sync
Version 1.0, Entry ID: 39182145
Figure 1-2
Create tags
In the project tree in your PLC's folder, you navigate to the "Program blocks" folder
and double-click on the data block "db_time_sync [DB1]" to open the associated
dialog window.
In the "Name" column of the data block's dialog window, you click in the next free
field and specify the symbolic name "time_local_READ". Click in the same row in
the "Data type" column and select the data type "DTL" for this tag. Repeat this
procedure for the "time_system_READ" and "time_system_WRITE".
1 Configuring the S7-1200 PLC
S7-1200_HMI_time_sync
Version 1.0, Entry ID: 39182145 7
Figure 1-3
Insert and connect time functions in "Main (OB1)"
1. In the project tree, you double-click on the "Main (OB1)" program block to open
the dialog window.
2. From the task card "Instructions" > "Extended instructions" pane > "Date and
time" folder you drag and drop the three time functions "WR_SYS_T",
"RD_LOC_T" and "RD_SYS_T" to three networks of the "Main (OB1)" program
block. Connect the inputs and outputs of the function blocks with the tags
created above. Specify unique marker word addresses for the "RET_VAL"
outputs as shown in the example in Fig. 05.
3. Insert a pulse block from the "Statements" pane > "Bit logic" folder in front of
the "EN" input of the "WR_SYS_T" block. Specify special marker addresses for
the pulse block as shown in the example in Figure 1-5.
1 Configuring the S7-1200 PLC
8
S7-1200_HMI_time_sync
Version 1.0, Entry ID: 39182145
Figure 1-4
1.3 Download project to PLC
In the project tree, mark the folder of your PLC. Click on the "Download" icon in the
toolbar.
Figure 1-5
2 Configuring the HMI Basic Panel
S7-1200_HMI_time_sync
Version 1.0, Entry ID: 39182145 9
2 Configuring the HMI Basic Panel
Insert an HMI Basic Panel in your project. In the basic screen of the HMI Basic
Panel, you implement the accesses to the time functions.
2.1 Configure HMI Basic Panel
Insert HMI Basic Panel in project
In the project tree, you double-click on the "Add new device" item to open the
associated dialog window. In the "Add new device" dialog window, you double-click
on the "SIMATIC HMI" button. Mark your HMI Basic Panel in the folder tree.
Confirm your selection by clicking on the "OK" button. The operator panel wizard
for the selected display opens.
Figure 2-1
Connect HMI Basic Panel with PLC
In the operator panel wizard for the HMI Basic Panel selected, you click on the
drop-down list box to select your PLC. In the drop-down list you double-click on the
PLC to be connected with the HMI Basic Panel. Close the operator panel wizard by
clicking on the "Finish" button.
2 Configuring the HMI Basic Panel
10
S7-1200_HMI_time_sync
Version 1.0, Entry ID: 39182145
Figure 2-2
2.2 Configure basic screen
Configure a basic screen for your HMI Basic Panel in order to incorporate the time
functions.
Insert objects
In the project tree, open the HMI Basic Panel folder and in the "Screens" folder,
you click on the "Root screen" item. Reproduce the basic screen shown in Fig. 09.
For this, from the "Toolbox" task card you drag and drop the objects required - text
field, IO field and button - from the "Basic objects" and "Elements" panes to the
window of the HMI Basic Panel's root screen.
2 Configuring the HMI Basic Panel
S7-1200_HMI_time_sync
Version 1.0, Entry ID: 39182145 11
Figure 2-3
Name text fields
Double-click in the text fields and specify the identifiers from Figure 2-3. Confirm
the entries each time by pressing the "Enter" key.
Name button
Double-click on the button and specify the identifier "Set time". Confirm the entry by
pressing the "Enter" key.
2.3 Assign tags
Float the dialog window of the "db_time_sync" program block
In the project tree, you double-click on the "db_time_sync [DB1]" program block. In
the dialog window of the program block, you click on the icon to float the dialog
window.
Figure 2-4
Connect IO fields with tags
In the project tree, you double-click on the "Root screen". Drag and drop the three
time tags created previously to the three text fields. In the detail window of each IO
field, in the "Properties" tab you see that the format settings have been adopted
automatically.
2 Configuring the HMI Basic Panel
12
S7-1200_HMI_time_sync
Version 1.0, Entry ID: 39182145
Figure 2-5
2.4 Configure button
Add events to the button to give the button a function.
Add "Click" event
To add an event, you define a function for the event and assign a tag to that
function.
Define "Click" event
In the "Root screen", you click on the "Set time" button.
In the detail window of the button (here: Button_1), in the "Properties" > “General”
tab, you go to the "Events" folder in the navigation area and click on the "Click"
item.
In the table area of the "Properties" tab, you click in the "<Add function>" row and
open the drop-down list box.
2 Configuring the HMI Basic Panel
S7-1200_HMI_time_sync
Version 1.0, Entry ID: 39182145 13
Figure 2-6
Set the "SetBit" function
Double-click on the "Edit bits folder and click on the "SetBit" item.
2 Configuring the HMI Basic Panel
14
S7-1200_HMI_time_sync
Version 1.0, Entry ID: 39182145
Figure 2-7
Assign "write_time" tag
In the "Tag (Iput/output)" row of the set function, you click on the icon at the end of
the cell marked in pink.
In the window that opens, you open your PLC's folder and click on the "PLC tags"
folder. In the table area, you click on the "write_time" tag.
Figure 2-8
Add "Release" event
Proceed in the same way as in "Add "Click" event" to add the "Release" event.
Define "Release" event
Define the "Release" event as you did the "Click" event.
Set the "ResetBit" function
Set the "ResetBit" function for the "Release" event.
Assign "write_time" tag
Assign the "write_time" tag to the "ResetBit" function.
2 Configuring the HMI Basic Panel
S7-1200_HMI_time_sync
Version 1.0, Entry ID: 39182145 15
Figure 2-9
2.5 Time/date display of the HMI Basic Panel
Link the area pointer for the time display of the HMI Basic Panel with the
"time_local_READ" tag.
Create area pointer for date/time
In the project tree, open the HMI Basic Panel folder and double-click on the
"Connections ()" item. In the "Connections" dialog window, you select the "Area
pointers" tab for the connection between the HMI Basic Panel and the S7-1200
PLC. In the "Global area pointer of HMI device" area, you go to the row for the
connection to your HMI Basic Panel and from the directory window you select the
"time_local_READ" tag for the "Date/time PLC" display name.
Note
For test purposes, set 2s in the "Acquisition Cycle" column. This fast acquisition
cycle is not necessary for regular operation.
Figure 2-10
3 Using the time functions
16
S7-1200_HMI_time_sync
Version 1.0, Entry ID: 39182145
3 Using the time functions
The system time UTC is the basic time of the S7-1200 PLC. The local system time
is calculated from this by the Time Zone parameter. You can only change the
system time UTC and the time zone.
To check your configured funktions, use the RT Simulator. First set the PG/PC
interface to be able to use the RT Simulator. You can operate the RT Simulator like
an HMI Basic Panel.
3.1 Set the PG/PC interface
Open an Explorer window and enter "Control Panel" in the address bar. Confirm
the entry with the "Enter" key.
In the Control Panel folder you double-click on the "Set PG/PC Interface" item. In
the "Set PG/PC interface" dialog window, open the "Access path" tab and set the
access point "S7ONLINE" to the Ethernet card that is connected with the S7-1200
PLC. Click on the "OK" button to complete the procedure.
Figure 3-1
3.2 Display time
Click on the "Start Runtime" icon in the toolbar.
The RT Simulator opens and displays a picture of the HMI Basic Panel configured.
The system time UTC and the local system time are displayed in their respective
IO fields.
Through the connection of the area pointer the internal time/date display in the top
right corner of the HMI Basic Panel also displays the local time set in the S7-1200
PLC.
3 Using the time functions
S7-1200_HMI_time_sync
Version 1.0, Entry ID: 39182145 17
Figure 3-2
3.3 Change system time UTC
In the HMI Basic Panel, you enter the date and time in the ">dd.mm.yy hh:mm:ss<"
format in the IO field next to the "Set time" button. Transfer the values entered to
your PLC by clicking on the "Set time" button.
3 Using the time functions
18
S7-1200_HMI_time_sync
Version 1.0, Entry ID: 39182145
Figure 3-3
3.4 Change local time
The local time is based on the system time UTC and differs from this according to
the time zone and any daylight saving time change to be taken into account.
Click on "Properties.." in the pop-up menu of your S7-1200 PLC. In the dialog
window that opens you go to the "General" tab and click on the "Time of day" item.
In the "local time" drop-down list, you select your time zone in the form of
GMT+xx". By checking the relevant check box you can change the "Activate
daylight saving time" parameters.
Click on the "OK" button.
Figure 3-4

Más contenido relacionado

La actualidad más candente

La actualidad más candente (18)

Vb basics
Vb basicsVb basics
Vb basics
 
Vb unit t 1.1
Vb unit t 1.1Vb unit t 1.1
Vb unit t 1.1
 
Chapter 3 — Program Design and Coding
Chapter 3 — Program Design and Coding Chapter 3 — Program Design and Coding
Chapter 3 — Program Design and Coding
 
Zelio soft
Zelio softZelio soft
Zelio soft
 
Common dialog control
Common dialog controlCommon dialog control
Common dialog control
 
Meaning Of VB
Meaning Of VBMeaning Of VB
Meaning Of VB
 
Best practices for upgrading vb 6.0 projects to vb.net
Best practices for upgrading vb 6.0 projects to vb.netBest practices for upgrading vb 6.0 projects to vb.net
Best practices for upgrading vb 6.0 projects to vb.net
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE Introduction
 
Visual basic
Visual basicVisual basic
Visual basic
 
Visual basic
Visual basicVisual basic
Visual basic
 
visual basic for the beginner
visual basic for the beginnervisual basic for the beginner
visual basic for the beginner
 
Cookbook Oracle SOA Business Rules
Cookbook Oracle SOA Business RulesCookbook Oracle SOA Business Rules
Cookbook Oracle SOA Business Rules
 
Visual basic
Visual basicVisual basic
Visual basic
 
ERP Magazine April 2018 - The magazine for SAP ABAP Professionals
ERP Magazine April 2018 - The magazine for SAP ABAP ProfessionalsERP Magazine April 2018 - The magazine for SAP ABAP Professionals
ERP Magazine April 2018 - The magazine for SAP ABAP Professionals
 
Visual C# 2010
Visual C# 2010Visual C# 2010
Visual C# 2010
 
ERP Magazine April 2018 Issue 1
ERP Magazine April 2018 Issue 1 ERP Magazine April 2018 Issue 1
ERP Magazine April 2018 Issue 1
 
Visual Programming
Visual ProgrammingVisual Programming
Visual Programming
 
Visual Basic Tutorials
Visual Basic TutorialsVisual Basic Tutorials
Visual Basic Tutorials
 

Destacado

Control of x y table using siemens plc suria azlin bt ismail tj223.p76.s97 2007
Control of x y table using siemens plc suria azlin bt ismail tj223.p76.s97 2007Control of x y table using siemens plc suria azlin bt ismail tj223.p76.s97 2007
Control of x y table using siemens plc suria azlin bt ismail tj223.p76.s97 2007
Parag Rekhi
 
NETWORKING, COMMUNICATION SYSTEMS AND SCADA
NETWORKING, COMMUNICATION SYSTEMS AND SCADANETWORKING, COMMUNICATION SYSTEMS AND SCADA
NETWORKING, COMMUNICATION SYSTEMS AND SCADA
Pratik Aggarwal
 
Tai lieu lap trinh plc s7 200 full
Tai lieu lap trinh plc s7 200 fullTai lieu lap trinh plc s7 200 full
Tai lieu lap trinh plc s7 200 full
vo long
 
Modbus Data Communication Systems
Modbus Data Communication SystemsModbus Data Communication Systems
Modbus Data Communication Systems
Living Online
 
Industrial Networking - Profibus
Industrial Networking - ProfibusIndustrial Networking - Profibus
Industrial Networking - Profibus
Yogesh Kumar
 
PROFIBUS
PROFIBUSPROFIBUS
PROFIBUS
misatav
 
PLC and SCADA training.
PLC and SCADA training.PLC and SCADA training.
PLC and SCADA training.
Ishank Ranjan
 

Destacado (19)

Em s7 plc
Em s7 plcEm s7 plc
Em s7 plc
 
automatic welding machine
automatic welding machineautomatic welding machine
automatic welding machine
 
Tai lieu plc s7 1200
Tai lieu plc s7 1200Tai lieu plc s7 1200
Tai lieu plc s7 1200
 
Torque controlled servo stationary screwdriver
Torque controlled servo stationary screwdriverTorque controlled servo stationary screwdriver
Torque controlled servo stationary screwdriver
 
Control of x y table using siemens plc suria azlin bt ismail tj223.p76.s97 2007
Control of x y table using siemens plc suria azlin bt ismail tj223.p76.s97 2007Control of x y table using siemens plc suria azlin bt ismail tj223.p76.s97 2007
Control of x y table using siemens plc suria azlin bt ismail tj223.p76.s97 2007
 
NETWORKING, COMMUNICATION SYSTEMS AND SCADA
NETWORKING, COMMUNICATION SYSTEMS AND SCADANETWORKING, COMMUNICATION SYSTEMS AND SCADA
NETWORKING, COMMUNICATION SYSTEMS AND SCADA
 
State of the nation keynote address by brian holliday
State of the nation keynote address by brian hollidayState of the nation keynote address by brian holliday
State of the nation keynote address by brian holliday
 
Hmi vfd modbus communication
Hmi  vfd modbus communication Hmi  vfd modbus communication
Hmi vfd modbus communication
 
Tai lieu lap trinh plc s7 200 full
Tai lieu lap trinh plc s7 200 fullTai lieu lap trinh plc s7 200 full
Tai lieu lap trinh plc s7 200 full
 
Modbus Data Communication Systems
Modbus Data Communication SystemsModbus Data Communication Systems
Modbus Data Communication Systems
 
Modbus TCP/IP implementation in Siemens S7-300 PLC
Modbus TCP/IP implementation in Siemens S7-300 PLC Modbus TCP/IP implementation in Siemens S7-300 PLC
Modbus TCP/IP implementation in Siemens S7-300 PLC
 
Industrial Networking - Profibus
Industrial Networking - ProfibusIndustrial Networking - Profibus
Industrial Networking - Profibus
 
PROFIBUS
PROFIBUSPROFIBUS
PROFIBUS
 
Profibus
ProfibusProfibus
Profibus
 
SIEMENS S7-300c.ppt
SIEMENS S7-300c.pptSIEMENS S7-300c.ppt
SIEMENS S7-300c.ppt
 
Plc Siemens Training Notes
Plc Siemens Training NotesPlc Siemens Training Notes
Plc Siemens Training Notes
 
Basic of MODBUS Communication/Protocol
Basic of MODBUS Communication/ProtocolBasic of MODBUS Communication/Protocol
Basic of MODBUS Communication/Protocol
 
PLC and SCADA training.
PLC and SCADA training.PLC and SCADA training.
PLC and SCADA training.
 
Top Ten Siemens S7 Tips and Tricks
Top Ten Siemens S7 Tips and TricksTop Ten Siemens S7 Tips and Tricks
Top Ten Siemens S7 Tips and Tricks
 

Similar a hmi_time_sync_how_to_e

04 conexão logo! 0 ba7 com ihm
04 conexão logo! 0 ba7 com ihm04 conexão logo! 0 ba7 com ihm
04 conexão logo! 0 ba7 com ihm
confidencial
 

Similar a hmi_time_sync_how_to_e (20)

04 conex%c3%a3o%20 logo!%200ba7%20com%20ihm
04 conex%c3%a3o%20 logo!%200ba7%20com%20ihm04 conex%c3%a3o%20 logo!%200ba7%20com%20ihm
04 conex%c3%a3o%20 logo!%200ba7%20com%20ihm
 
04 conexão logo! 0 ba7 com ihm
04 conexão logo! 0 ba7 com ihm04 conexão logo! 0 ba7 com ihm
04 conexão logo! 0 ba7 com ihm
 
04 conexão logo! 0 ba7 com ihm
04 conexão logo! 0 ba7 com ihm04 conexão logo! 0 ba7 com ihm
04 conexão logo! 0 ba7 com ihm
 
A d swincc15e
A d swincc15eA d swincc15e
A d swincc15e
 
05 conexão logo! 0 ba7 com ihm (wincc flexible)
05 conexão logo! 0 ba7 com ihm (wincc flexible)05 conexão logo! 0 ba7 com ihm (wincc flexible)
05 conexão logo! 0 ba7 com ihm (wincc flexible)
 
05 conexão logo! 0 ba7 com ihm (wincc flexible)
05 conexão logo! 0 ba7 com ihm (wincc flexible)05 conexão logo! 0 ba7 com ihm (wincc flexible)
05 conexão logo! 0 ba7 com ihm (wincc flexible)
 
15EE51 - Microcontrollers Laboratory
15EE51 - Microcontrollers Laboratory15EE51 - Microcontrollers Laboratory
15EE51 - Microcontrollers Laboratory
 
Plc s7-1200-opc-to-pc-connection-guide
Plc s7-1200-opc-to-pc-connection-guidePlc s7-1200-opc-to-pc-connection-guide
Plc s7-1200-opc-to-pc-connection-guide
 
Software engineering modeling lab lectures
Software engineering modeling lab lecturesSoftware engineering modeling lab lectures
Software engineering modeling lab lectures
 
Phan mem plc s7 1200 opc simatic-net-e
Phan mem plc s7 1200 opc simatic-net-ePhan mem plc s7 1200 opc simatic-net-e
Phan mem plc s7 1200 opc simatic-net-e
 
Practical work 1
Practical work 1Practical work 1
Practical work 1
 
Change transport system in SAP
Change transport system in SAP Change transport system in SAP
Change transport system in SAP
 
Embedded c lab and keil c manual
Embedded  c  lab  and keil c  manualEmbedded  c  lab  and keil c  manual
Embedded c lab and keil c manual
 
Dynamics gp insights to manufacturing
Dynamics gp insights to manufacturingDynamics gp insights to manufacturing
Dynamics gp insights to manufacturing
 
Module 3.8 application testing.ppt
Module 3.8 application testing.pptModule 3.8 application testing.ppt
Module 3.8 application testing.ppt
 
Containers Lab
Containers Lab Containers Lab
Containers Lab
 
Vb%20 tutorial
Vb%20 tutorialVb%20 tutorial
Vb%20 tutorial
 
Experiment_1.pdf
Experiment_1.pdfExperiment_1.pdf
Experiment_1.pdf
 
Introduction to CATIA (KEY) - CAD/CAM
Introduction to CATIA (KEY) - CAD/CAMIntroduction to CATIA (KEY) - CAD/CAM
Introduction to CATIA (KEY) - CAD/CAM
 
Arena tutorial
Arena tutorialArena tutorial
Arena tutorial
 

Más de Ecuador (8)

01 transformadores
01 transformadores01 transformadores
01 transformadores
 
Circuitos elect toyota
 Circuitos elect toyota Circuitos elect toyota
Circuitos elect toyota
 
1.seguridad en la comercializacion y transporte de combustibles liquidos
1.seguridad en la comercializacion y transporte de combustibles liquidos1.seguridad en la comercializacion y transporte de combustibles liquidos
1.seguridad en la comercializacion y transporte de combustibles liquidos
 
gestion riesgo_iso_31000
gestion riesgo_iso_31000gestion riesgo_iso_31000
gestion riesgo_iso_31000
 
1lub000001 bls instdry
1lub000001 bls instdry1lub000001 bls instdry
1lub000001 bls instdry
 
1.memoria
1.memoria1.memoria
1.memoria
 
62132 g216 proyector
62132 g216 proyector62132 g216 proyector
62132 g216 proyector
 
Ajuste por mínimos cuadrados
Ajuste por mínimos cuadradosAjuste por mínimos cuadrados
Ajuste por mínimos cuadrados
 

Último

Rohini Sector 17 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 17 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 17 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 17 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
 
Sensual Moments: +91 9999965857 Independent Call Girls Noida Delhi {{ Monika}...
Sensual Moments: +91 9999965857 Independent Call Girls Noida Delhi {{ Monika}...Sensual Moments: +91 9999965857 Independent Call Girls Noida Delhi {{ Monika}...
Sensual Moments: +91 9999965857 Independent Call Girls Noida Delhi {{ Monika}...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
 
Corporate Presentation Probe May 2024.pdf
Corporate Presentation Probe May 2024.pdfCorporate Presentation Probe May 2024.pdf
Corporate Presentation Probe May 2024.pdf
Probe Gold
 
VIP Amritsar Call Girl 7001035870 Enjoy Call Girls With Our Escorts
VIP Amritsar Call Girl 7001035870 Enjoy Call Girls With Our EscortsVIP Amritsar Call Girl 7001035870 Enjoy Call Girls With Our Escorts
VIP Amritsar Call Girl 7001035870 Enjoy Call Girls With Our Escorts
sonatiwari757
 
Rohini Sector 15 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 15 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 15 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 15 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
 
slideshare Call girls Noida Escorts 9999965857 henakhan
slideshare Call girls Noida Escorts 9999965857 henakhanslideshare Call girls Noida Escorts 9999965857 henakhan
slideshare Call girls Noida Escorts 9999965857 henakhan
hanshkumar9870
 
Russian Call Girls Rohini Sector 22 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...
Russian Call Girls Rohini Sector 22 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...Russian Call Girls Rohini Sector 22 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...
Russian Call Girls Rohini Sector 22 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
 

Último (20)

Rohini Sector 17 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 17 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 17 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 17 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
@9999965857 🫦 Sexy Desi Call Girls Vaishali 💓 High Profile Escorts Delhi 🫶
@9999965857 🫦 Sexy Desi Call Girls Vaishali 💓 High Profile Escorts Delhi 🫶@9999965857 🫦 Sexy Desi Call Girls Vaishali 💓 High Profile Escorts Delhi 🫶
@9999965857 🫦 Sexy Desi Call Girls Vaishali 💓 High Profile Escorts Delhi 🫶
 
Sensual Moments: +91 9999965857 Independent Call Girls Noida Delhi {{ Monika}...
Sensual Moments: +91 9999965857 Independent Call Girls Noida Delhi {{ Monika}...Sensual Moments: +91 9999965857 Independent Call Girls Noida Delhi {{ Monika}...
Sensual Moments: +91 9999965857 Independent Call Girls Noida Delhi {{ Monika}...
 
Corporate Presentation Probe May 2024.pdf
Corporate Presentation Probe May 2024.pdfCorporate Presentation Probe May 2024.pdf
Corporate Presentation Probe May 2024.pdf
 
SME IPO and sme ipo listing consultants .pptx
SME IPO and sme ipo listing consultants .pptxSME IPO and sme ipo listing consultants .pptx
SME IPO and sme ipo listing consultants .pptx
 
@9999965857 🫦 Sexy Desi Call Girls Janakpuri 💓 High Profile Escorts Delhi 🫶
@9999965857 🫦 Sexy Desi Call Girls Janakpuri 💓 High Profile Escorts Delhi 🫶@9999965857 🫦 Sexy Desi Call Girls Janakpuri 💓 High Profile Escorts Delhi 🫶
@9999965857 🫦 Sexy Desi Call Girls Janakpuri 💓 High Profile Escorts Delhi 🫶
 
Teck Investor Presentation, April 24, 2024
Teck Investor Presentation, April 24, 2024Teck Investor Presentation, April 24, 2024
Teck Investor Presentation, April 24, 2024
 
VVIP Pune Call Girls Sopan Baug WhatSapp Number 8005736733 With Elite Staff A...
VVIP Pune Call Girls Sopan Baug WhatSapp Number 8005736733 With Elite Staff A...VVIP Pune Call Girls Sopan Baug WhatSapp Number 8005736733 With Elite Staff A...
VVIP Pune Call Girls Sopan Baug WhatSapp Number 8005736733 With Elite Staff A...
 
Vip Call Girls South Ex ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls South Ex ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls South Ex ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls South Ex ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Call Girls 🫤 Hauz Khas ➡️ 9999965857 ➡️ Delhi 🫦 Russian Escorts FULL ENJOY
Call Girls 🫤 Hauz Khas ➡️ 9999965857  ➡️ Delhi 🫦  Russian Escorts FULL ENJOYCall Girls 🫤 Hauz Khas ➡️ 9999965857  ➡️ Delhi 🫦  Russian Escorts FULL ENJOY
Call Girls 🫤 Hauz Khas ➡️ 9999965857 ➡️ Delhi 🫦 Russian Escorts FULL ENJOY
 
BDSM⚡Call Girls in Hari Nagar Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Hari Nagar Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Hari Nagar Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Hari Nagar Delhi >༒8448380779 Escort Service
 
VIP Amritsar Call Girl 7001035870 Enjoy Call Girls With Our Escorts
VIP Amritsar Call Girl 7001035870 Enjoy Call Girls With Our EscortsVIP Amritsar Call Girl 7001035870 Enjoy Call Girls With Our Escorts
VIP Amritsar Call Girl 7001035870 Enjoy Call Girls With Our Escorts
 
Collective Mining | Corporate Presentation - May 2024
Collective Mining | Corporate Presentation - May 2024Collective Mining | Corporate Presentation - May 2024
Collective Mining | Corporate Presentation - May 2024
 
Best investment platform in india-Falcon Invoice Discounting
Best investment platform in india-Falcon Invoice DiscountingBest investment platform in india-Falcon Invoice Discounting
Best investment platform in india-Falcon Invoice Discounting
 
Rohini Sector 15 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 15 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 15 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 15 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
slideshare Call girls Noida Escorts 9999965857 henakhan
slideshare Call girls Noida Escorts 9999965857 henakhanslideshare Call girls Noida Escorts 9999965857 henakhan
slideshare Call girls Noida Escorts 9999965857 henakhan
 
Russian Call Girls Rohini Sector 22 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...
Russian Call Girls Rohini Sector 22 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...Russian Call Girls Rohini Sector 22 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...
Russian Call Girls Rohini Sector 22 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...
 
Collective Mining | Corporate Presentation - May 2024
Collective Mining | Corporate Presentation - May 2024Collective Mining | Corporate Presentation - May 2024
Collective Mining | Corporate Presentation - May 2024
 
(👉゚9999965857 ゚)👉 VIP Call Girls Greater Noida 👉 Delhi 👈 : 9999 Cash Payment...
(👉゚9999965857 ゚)👉 VIP Call Girls Greater Noida  👉 Delhi 👈 : 9999 Cash Payment...(👉゚9999965857 ゚)👉 VIP Call Girls Greater Noida  👉 Delhi 👈 : 9999 Cash Payment...
(👉゚9999965857 ゚)👉 VIP Call Girls Greater Noida 👉 Delhi 👈 : 9999 Cash Payment...
 
VVIP Pune Call Girls Handewadi WhatSapp Number 8005736733 With Elite Staff An...
VVIP Pune Call Girls Handewadi WhatSapp Number 8005736733 With Elite Staff An...VVIP Pune Call Girls Handewadi WhatSapp Number 8005736733 With Elite Staff An...
VVIP Pune Call Girls Handewadi WhatSapp Number 8005736733 With Elite Staff An...
 

hmi_time_sync_how_to_e

  • 1. Cover sheet How do you synchronize the time of the HMI Basic Panel with a S7-1200 PLC? S7-1200 PLC, HMI Basic Panel FAQ  October 2009 Service & Support Answers for industry.
  • 2. Question 2 S7-1200_HMI_time_sync Version 1.0, Entry ID: 39182145 This entry originates from the Service&Support Portal of Siemens AG, Sector Industry, Industry Automation and Drive Technologies. The conditions of use specified there apply (www.siemens.com/nutzungsbedingungen). Go to the following link to download this document. http://support.automation.siemens.com/WW/view/de/39182145 Question How do you synchronize the time of the HMI Basic Panel with a S7-1200 PLC? Answer Use the system time of your S7-1200 PLC on your HMI Basic Panel by configuring the relevant tags on your HMI Basic Panel. The necessary steps are explained using a sample project.
  • 3. Contents S7-1200_HMI_time_sync Version 1.0, Entry ID: 39182145 3 Contents 1 Configuring the S7-1200 PLC........................................................................... 4 1.1 Prepare project..................................................................................... 4 1.2 Configure tags and time functions........................................................ 5 1.3 Download project to PLC ..................................................................... 8 2 Configuring the HMI Basic Panel..................................................................... 9 2.1 Configure HMI Basic Panel .................................................................. 9 2.2 Configure basic screen....................................................................... 10 2.3 Assign tags......................................................................................... 11 2.4 Configure button................................................................................. 12 2.5 Time/date display of the HMI Basic Panel ......................................... 15 3 Using the time functions................................................................................. 16 3.1 Set the PG/PC interface..................................................................... 16 3.2 Display time........................................................................................ 16 3.3 Change system time UTC .................................................................. 17 3.4 Change local time............................................................................... 18
  • 4. 1 Configuring the S7-1200 PLC 4 S7-1200_HMI_time_sync Version 1.0, Entry ID: 39182145 1 Configuring the S7-1200 PLC You create time functions in a project so that you can access the system time UTC and the local system time via the tags assigned. 1.1 Prepare project Click on the "Project" menu in the menu bar and then on the menu command "New...". In the "Create a new project" dialog you enter a name in the "Project name" input field. Click on the "Create" button to complete the procedure. Figure 1-1 Incorporate PLC In the project tree in your project folder, you click on the "Add new device" item. In the "Add––––– new device" dialog window, you click on the "SIMATIC PLC" button and in the folder tree you select your PLC model by clicking on the associated MLFB. Confirm your selection by clicking on the "OK" button.
  • 5. 1 Configuring the S7-1200 PLC S7-1200_HMI_time_sync Version 1.0, Entry ID: 39182145 5 Figure 1-1 1.2 Configure tags and time functions Create data block In the project tree in your PLC's folder, you navigate to the "Program blocks" folder and double-click on the "Add new block" item to open the associated dialog window. In the "Add new block" dialog window, you select "Data block" as block type and in the "Name" input field you specify a name for the data block to be created. Select "GLOBAL DB" in the "Type" drop-down list box. Click on the "OK" button to complete the procedure.
  • 6. 1 Configuring the S7-1200 PLC 6 S7-1200_HMI_time_sync Version 1.0, Entry ID: 39182145 Figure 1-2 Create tags In the project tree in your PLC's folder, you navigate to the "Program blocks" folder and double-click on the data block "db_time_sync [DB1]" to open the associated dialog window. In the "Name" column of the data block's dialog window, you click in the next free field and specify the symbolic name "time_local_READ". Click in the same row in the "Data type" column and select the data type "DTL" for this tag. Repeat this procedure for the "time_system_READ" and "time_system_WRITE".
  • 7. 1 Configuring the S7-1200 PLC S7-1200_HMI_time_sync Version 1.0, Entry ID: 39182145 7 Figure 1-3 Insert and connect time functions in "Main (OB1)" 1. In the project tree, you double-click on the "Main (OB1)" program block to open the dialog window. 2. From the task card "Instructions" > "Extended instructions" pane > "Date and time" folder you drag and drop the three time functions "WR_SYS_T", "RD_LOC_T" and "RD_SYS_T" to three networks of the "Main (OB1)" program block. Connect the inputs and outputs of the function blocks with the tags created above. Specify unique marker word addresses for the "RET_VAL" outputs as shown in the example in Fig. 05. 3. Insert a pulse block from the "Statements" pane > "Bit logic" folder in front of the "EN" input of the "WR_SYS_T" block. Specify special marker addresses for the pulse block as shown in the example in Figure 1-5.
  • 8. 1 Configuring the S7-1200 PLC 8 S7-1200_HMI_time_sync Version 1.0, Entry ID: 39182145 Figure 1-4 1.3 Download project to PLC In the project tree, mark the folder of your PLC. Click on the "Download" icon in the toolbar. Figure 1-5
  • 9. 2 Configuring the HMI Basic Panel S7-1200_HMI_time_sync Version 1.0, Entry ID: 39182145 9 2 Configuring the HMI Basic Panel Insert an HMI Basic Panel in your project. In the basic screen of the HMI Basic Panel, you implement the accesses to the time functions. 2.1 Configure HMI Basic Panel Insert HMI Basic Panel in project In the project tree, you double-click on the "Add new device" item to open the associated dialog window. In the "Add new device" dialog window, you double-click on the "SIMATIC HMI" button. Mark your HMI Basic Panel in the folder tree. Confirm your selection by clicking on the "OK" button. The operator panel wizard for the selected display opens. Figure 2-1 Connect HMI Basic Panel with PLC In the operator panel wizard for the HMI Basic Panel selected, you click on the drop-down list box to select your PLC. In the drop-down list you double-click on the PLC to be connected with the HMI Basic Panel. Close the operator panel wizard by clicking on the "Finish" button.
  • 10. 2 Configuring the HMI Basic Panel 10 S7-1200_HMI_time_sync Version 1.0, Entry ID: 39182145 Figure 2-2 2.2 Configure basic screen Configure a basic screen for your HMI Basic Panel in order to incorporate the time functions. Insert objects In the project tree, open the HMI Basic Panel folder and in the "Screens" folder, you click on the "Root screen" item. Reproduce the basic screen shown in Fig. 09. For this, from the "Toolbox" task card you drag and drop the objects required - text field, IO field and button - from the "Basic objects" and "Elements" panes to the window of the HMI Basic Panel's root screen.
  • 11. 2 Configuring the HMI Basic Panel S7-1200_HMI_time_sync Version 1.0, Entry ID: 39182145 11 Figure 2-3 Name text fields Double-click in the text fields and specify the identifiers from Figure 2-3. Confirm the entries each time by pressing the "Enter" key. Name button Double-click on the button and specify the identifier "Set time". Confirm the entry by pressing the "Enter" key. 2.3 Assign tags Float the dialog window of the "db_time_sync" program block In the project tree, you double-click on the "db_time_sync [DB1]" program block. In the dialog window of the program block, you click on the icon to float the dialog window. Figure 2-4 Connect IO fields with tags In the project tree, you double-click on the "Root screen". Drag and drop the three time tags created previously to the three text fields. In the detail window of each IO field, in the "Properties" tab you see that the format settings have been adopted automatically.
  • 12. 2 Configuring the HMI Basic Panel 12 S7-1200_HMI_time_sync Version 1.0, Entry ID: 39182145 Figure 2-5 2.4 Configure button Add events to the button to give the button a function. Add "Click" event To add an event, you define a function for the event and assign a tag to that function. Define "Click" event In the "Root screen", you click on the "Set time" button. In the detail window of the button (here: Button_1), in the "Properties" > “General” tab, you go to the "Events" folder in the navigation area and click on the "Click" item. In the table area of the "Properties" tab, you click in the "<Add function>" row and open the drop-down list box.
  • 13. 2 Configuring the HMI Basic Panel S7-1200_HMI_time_sync Version 1.0, Entry ID: 39182145 13 Figure 2-6 Set the "SetBit" function Double-click on the "Edit bits folder and click on the "SetBit" item.
  • 14. 2 Configuring the HMI Basic Panel 14 S7-1200_HMI_time_sync Version 1.0, Entry ID: 39182145 Figure 2-7 Assign "write_time" tag In the "Tag (Iput/output)" row of the set function, you click on the icon at the end of the cell marked in pink. In the window that opens, you open your PLC's folder and click on the "PLC tags" folder. In the table area, you click on the "write_time" tag. Figure 2-8 Add "Release" event Proceed in the same way as in "Add "Click" event" to add the "Release" event. Define "Release" event Define the "Release" event as you did the "Click" event. Set the "ResetBit" function Set the "ResetBit" function for the "Release" event. Assign "write_time" tag Assign the "write_time" tag to the "ResetBit" function.
  • 15. 2 Configuring the HMI Basic Panel S7-1200_HMI_time_sync Version 1.0, Entry ID: 39182145 15 Figure 2-9 2.5 Time/date display of the HMI Basic Panel Link the area pointer for the time display of the HMI Basic Panel with the "time_local_READ" tag. Create area pointer for date/time In the project tree, open the HMI Basic Panel folder and double-click on the "Connections ()" item. In the "Connections" dialog window, you select the "Area pointers" tab for the connection between the HMI Basic Panel and the S7-1200 PLC. In the "Global area pointer of HMI device" area, you go to the row for the connection to your HMI Basic Panel and from the directory window you select the "time_local_READ" tag for the "Date/time PLC" display name. Note For test purposes, set 2s in the "Acquisition Cycle" column. This fast acquisition cycle is not necessary for regular operation. Figure 2-10
  • 16. 3 Using the time functions 16 S7-1200_HMI_time_sync Version 1.0, Entry ID: 39182145 3 Using the time functions The system time UTC is the basic time of the S7-1200 PLC. The local system time is calculated from this by the Time Zone parameter. You can only change the system time UTC and the time zone. To check your configured funktions, use the RT Simulator. First set the PG/PC interface to be able to use the RT Simulator. You can operate the RT Simulator like an HMI Basic Panel. 3.1 Set the PG/PC interface Open an Explorer window and enter "Control Panel" in the address bar. Confirm the entry with the "Enter" key. In the Control Panel folder you double-click on the "Set PG/PC Interface" item. In the "Set PG/PC interface" dialog window, open the "Access path" tab and set the access point "S7ONLINE" to the Ethernet card that is connected with the S7-1200 PLC. Click on the "OK" button to complete the procedure. Figure 3-1 3.2 Display time Click on the "Start Runtime" icon in the toolbar. The RT Simulator opens and displays a picture of the HMI Basic Panel configured. The system time UTC and the local system time are displayed in their respective IO fields. Through the connection of the area pointer the internal time/date display in the top right corner of the HMI Basic Panel also displays the local time set in the S7-1200 PLC.
  • 17. 3 Using the time functions S7-1200_HMI_time_sync Version 1.0, Entry ID: 39182145 17 Figure 3-2 3.3 Change system time UTC In the HMI Basic Panel, you enter the date and time in the ">dd.mm.yy hh:mm:ss<" format in the IO field next to the "Set time" button. Transfer the values entered to your PLC by clicking on the "Set time" button.
  • 18. 3 Using the time functions 18 S7-1200_HMI_time_sync Version 1.0, Entry ID: 39182145 Figure 3-3 3.4 Change local time The local time is based on the system time UTC and differs from this according to the time zone and any daylight saving time change to be taken into account. Click on "Properties.." in the pop-up menu of your S7-1200 PLC. In the dialog window that opens you go to the "General" tab and click on the "Time of day" item. In the "local time" drop-down list, you select your time zone in the form of GMT+xx". By checking the relevant check box you can change the "Activate daylight saving time" parameters. Click on the "OK" button. Figure 3-4