100 TIA portal v11 exercises HMI rela0 en

73 808 0
100 TIA portal v11 exercises HMI rela0 en

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

TIA Portal V11 – Exercises HMI For internal use only / © Siemens AG 2010 All Rights Reserved SIMATIC Systems Support I IA AS CS FA TIA Portal V11 Seite / page TIA Portal V11 – Exercises ƒ Basics: PLC exercise ƒ Basicis: HMI exercise ƒ Panel: Devices&Screens ƒ Panel: Tags ƒ SCADA: Device&Screens ƒ Panel: Scripting ƒ SCADA: Scripting ƒ Panel: User Administration For internal use only / © Siemens AG 2010 All Rights Reserved SIMATIC Systems Support I IA AS CS FA TIA Portal V11 Seite / page Exercise: First program with TIA Portal Hands-on Basics: PLC exercise Basicis: HMI exercise Panel: Devices&Screens Panel: Tags SCADA: Device&Screens Panel: Scripting SCADA: Scripting Panel: User Administration Page Task: Exercises for TIA Portal V11 (HMI) For internal use only / © Siemens AG 2010 All Rights Reserved I IA AS CS2 FA Start TIA Portal and create a new project What to do: Select the option “Create new project” and name it “my_first_project” Create the project with the button “Create” SIMATIC Systems Support I IA AS CS FA TIA Portal V11 Seite / page Exercise: First program with TIA Portal Hands-on Basics: PLC exercise Basicis: HMI exercise Panel: Devices&Screens Panel: Tags SCADA: Device&Screens Panel: Scripting SCADA: Scripting Panel: User Administration Page Task: Exercises for TIA Portal V11 (HMI) For internal use only / © Siemens AG 2010 All Rights Reserved I IA AS CS2 FA Create a new program What to do: Under “First steps” choose the option “Write a PLC program” -> You now have to specify a PLC Select a S7-317PN/DP (E.g.: 6ES7317-2EK13-0AB0) The block “Main” is the shown With double-click on the program block “Main”, the program block editor on the project view is opened The program block “Main” is directly opened SIMATIC Systems Support I IA AS CS FA TIA Portal V11 Seite / page Exercise: First program with TIA Portal Hands-on Basics: PLC exercise Basicis: HMI exercise Panel: Devices&Screens Panel: Tags SCADA: Device&Screens Panel: Scripting SCADA: Scripting Panel: User Administration Page Exercises for TIA Portal V11 (HMI) Task: For internal use only / © Siemens AG 2010 All Rights Reserved I IA AS CS2 FA Programming in the program block “Main” What to do: Create a program in network 1, like the one shown above The instructions from the favorite list, like contacts for example, can be used in the program via Drag & Drop or double click Provide the symbolic names to the instructions: “START_1“, “STOP“ and “Drive_1“ Save your project Select the network Using the “Define Option” on the context menu an address to each variable in the network can be defined Change the zoom in your network to 120% using the zoom function SIMATIC Systems Support I IA AS CS FA TIA Portal V11 Seite / page Exercise: First program with TIA Portal Hands-on Basics: PLC exercise Basicis: HMI exercise Panel: Devices&Screens Panel: Tags SCADA: Device&Screens Panel: Scripting SCADA: Scripting Panel: User Administration Page Task: Exercises for TIA Portal V11 (HMI) For internal use only / © Siemens AG 2010 All Rights Reserved I IA AS CS2 FA Defining a variable in the variable table What to do: On the project tree, open the “Default tag table” from the “PLC_tags” Using the auto fill function, add the variables “START_2” to “START_8.” The tags should be added, not overwritten SIMATIC Systems Support I IA AS CS FA TIA Portal V11 Seite / page Exercise: First program with TIA Portal Hands-on Basics: PLC exercise Basicis: HMI exercise Panel: Devices&Screens Panel: Tags SCADA: Device&Screens Panel: Scripting 13 SCADA: Scripting Panel: User Administration Page Task: 12 Exercises for TIA Portal V11 (HMI) For internal use only / © Siemens AG 2010 All Rights Reserved I IA AS CS2 FA Copy network to network using Drag & Drop What to do: Select the code in network using the lasso-function 10 Copy the code using the context menu 11 Select the circuit ( the horizontal line) in network and paste the copied network 12 In network 2, rename “START_1” to “START_2” 13 In network 2, rename “Drive_1” to “Drive_2” 14 Save your project SIMATIC Systems Support I IA AS CS FA TIA Portal V11 Seite / page Exercise: First program with TIA Portal Hands-on Basics: PLC exercise 17 Basicis: HMI exercise Panel: Devices&Screens 16 Panel: Tags 15 SCADA: Device&Screens Panel: Scripting SCADA: Scripting Panel: User Administration Page Task: Exercises for TIA Portal V11 (HMI) For internal use only / © Siemens AG 2010 All Rights Reserved I IA AS CS2 FA Add elements to favorite list in TIA Portal What to do: 15 Select the Block title and change the programming language from LAD to FBD in the properties of the inspector window 16 Using Drag & Drop, add an “On-Delay Timer” from the task card “Simple instructions” to the favorite list 17 Close the task menu “Instructions” using the button “Collapse automatically” Note: the task cards is then normally minimized and is shown when the user clicks on it 18 Add an On-Delay timer in network 2, so that Drive_2 is activated seconds after the request 19 Confirm the menu pressing “OK” An Instance DB is automatically created SIMATIC Systems Support I IA AS CS FA TIA Portal V11 Seite / page Exercise: First program with TIA Portal Hands-on 23 Basics: PLC exercise 22 25 Basicis: HMI exercise 21 Panel: Devices&Screens Panel: Tags 20 SCADA: Device&Screens Panel: Scripting SCADA: Scripting 24 Panel: User Administration Page Task: Exercises for TIA Portal V11 (HMI) For internal use only / © Siemens AG 2010 All Rights Reserved I IA AS CS2 FA Assign an absolute address to „Drive_2“ using Drag & Drop What to do: 20 Open the “Device view” with a double click in “Device configuration” 21 Add an DI8/DO8 module from the hardware catalogue e.g.: 6ES7 323-1BH01-0AA0 22 Change the zoom to 300% 23 Divide the working area, as seen in the figure 24 Assign the absolute output address Q 0.2 to “Drive_2” via Drag & Drop 25 Close the block “Main” SIMATIC Systems Support I IA AS CS FA TIA Portal V11 Seite / page Exercise: First program with TIA Portal Hands-on Basics: PLC exercise Basicis: HMI exercise 26 Panel: Devices&Screens Panel: Tags 27 SCADA: Device&Screens Panel: Scripting SCADA: Scripting 28 Panel: User Administration Page 10 Task: Exercises for TIA Portal V11 (HMI) For internal use only / © Siemens AG 2010 All Rights Reserved I IA AS CS2 FA Configure a PROFINET network What to do: 26 Change the view to “Network view” 27 From the hardware catalog, add an ET200S-Profinet station e.g.: 6ES7 151-3BA230AB0 It can be found on “Distributed I/O” Æ ”ET200S” Æ ”Headmodule” Æ”PROFINET” 28 Link the ET200S station with the PLC Result: The PROFINET connection and the related PN protocol are configured with a single mouse click SIMATIC Systems Support I IA AS CS FA TIA Portal V11 Seite / page 10 Exercise: SCADA Device & Screens Basics: PLC exercise Basicis: HMI exercise 40 Panel: Devices&Screens Panel: Tags SCADA: Device&Screens Panel: Scripting SCADA: Scripting Panel: User Administration Page 59 Task: Exercises for TIA Portal V11 (HMI) For internal use only / © Siemens AG 2010 All Rights Reserved I IA AS CS2 FA add alarm control Workflow: 40 Place alarm control 41 Start the runtime for a test SIMATIC Systems Support I IA AS CS FA TIA Portal V11 Seite / page 59 TIA Portal V11 – Exercises ƒ Basics: PLC exercise ƒ Basicis: HMI exercise ƒ Panel: Devices&Screens ƒ Panel: Tags ƒ SCADA: Device&Screens ƒ Panel: Scripting ƒ SCADA: Scripting ƒ Panel: User Administration For internal use only / © Siemens AG 2010 All Rights Reserved SIMATIC Systems Support I IA AS CS FA TIA Portal V11 Seite / page 60 Exercise: Scripting Panel Page 61 Task: Exercises for TIA Portal V11 (HMI) For internal use only / © Siemens AG 2010 All Rights Reserved I IA AS CS2 FA Scripts and System functions Workflow: Open the screen „Exercise1“ of your panel Place a button and set the text „IncreaseTag“ Place another button and set the text „DecreaseTag“ Place a third button with text „Script Increase “ SIMATIC Systems Support I IA AS CS FA TIA Portal V11 Seite / page 61 Exercise: Scripting Panel Basics: PLC exercise Basicis: HMI exercise Panel: Devices&Screens Panel: Tags SCADA: Device&Screens Panel: Scripting SCADA: Scripting Panel: User Administration Page 62 Task: Exercises for TIA Portal V11 (HMI) For internal use only / © Siemens AG 2010 All Rights Reserved I IA AS CS2 FA Scripts and System functions Workflow: Configure the function „IncreaseTag“ as seen in the screenshot Configure the function „DecreaseTag“ as seen in the screenshot SIMATIC Systems Support I IA AS CS FA TIA Portal V11 Seite / page 62 Exercise: Scripting Panel Basics: PLC exercise Basicis: HMI exercise Panel: Devices&Screens Panel: Tags SCADA: Device&Screens Panel: Scripting SCADA: Scripting 10 Panel: User Administration Page 63 Task: Exercises for TIA Portal V11 (HMI) For internal use only / © Siemens AG 2010 All Rights Reserved I IA AS CS2 FA Scripts and System functions Workflow: Create a new script Rename the script in inspector window to „IncreaseScript“ Write the script as seen in the screenshot (use the tools of the script editor) 10 Check the script syntax SIMATIC Systems Support I IA AS CS FA TIA Portal V11 Seite / page 63 Exercise: Scripting Panel Basics: PLC exercise Basicis: HMI exercise 11 Panel: Devices&Screens Panel: Tags SCADA: Device&Screens Panel: Scripting SCADA: Scripting Panel: User Administration Page 64 Task: 12 Exercises for TIA Portal V11 (HMI) For internal use only / © Siemens AG 2010 All Rights Reserved I IA AS CS2 FA Scripts and System functions Workflow: 11 Switch back to the screen „Exercise1“ and trigger your script at the button „Script Increase“ 12 Start the runtime for a test SIMATIC Systems Support I IA AS CS FA TIA Portal V11 Seite / page 64 TIA Portal V11 – Exercises ƒ Basics: PLC exercise ƒ Basicis: HMI exercise ƒ Panel: Devices&Screens ƒ Panel: Tags ƒ SCADA: Device&Screens ƒ Panel: Scripting ƒ SCADA: Scripting ƒ Panel: User Administration For internal use only / © Siemens AG 2010 All Rights Reserved SIMATIC Systems Support I IA AS CS FA TIA Portal V11 Seite / page 65 Exercise: Scripting SCADA Basics: PLC exercise Basicis: HMI exercise Panel: Devices&Screens Panel: Tags SCADA: Device&Screens Panel: Scripting SCADA: Scripting Panel: User Administration Page 66 Task: Exercises for TIA Portal V11 (HMI) For internal use only / © Siemens AG 2010 All Rights Reserved I IA AS CS2 FA Scripts and System functions Workflow: Place a Tube – object from the toolbox Set the start angle to value 180 SIMATIC Systems Support I IA AS CS FA TIA Portal V11 Seite / page 66 Exercise: Scripting SCADA Basics: PLC exercise Basicis: HMI exercise Panel: Devices&Screens Panel: Tags SCADA: Device&Screens Panel: Scripting SCADA: Scripting Panel: User Administration Page 67 Task: Exercises for TIA Portal V11 (HMI) For internal use only / © Siemens AG 2010 All Rights Reserved I IA AS CS2 FA Scripts and System functions Workflow: Add a horizontal movement via Drag&Drop from task card “Animations” to the tube object Drag the end position for the movement animation Connect a new internal tag called „TubeAnimation“ as process tag (datatype: Int) SIMATIC Systems Support I IA AS CS FA TIA Portal V11 Seite / page 67 Exercise: Scripting SCADA Basics: PLC exercise Basicis: HMI exercise Panel: Devices&Screens Panel: Tags SCADA: Device&Screens Panel: Scripting SCADA: Scripting Panel: User Administration Page 68 Task: Exercises for TIA Portal V11 (HMI) For internal use only / © Siemens AG 2010 All Rights Reserved I IA AS CS2 FA Scripts and System functions Workflow: Place a slider from the toolbox to the screen Add the system function as seen in the screenshot SIMATIC Systems Support I IA AS CS FA TIA Portal V11 Seite / page 68 Exercise: Scripting SCADA Basics: PLC exercise Basicis: HMI exercise Panel: Devices&Screens Panel: Tags SCADA: Device&Screens Panel: Scripting SCADA: Scripting 10 Panel: User Administration Page 69 Task: Exercises for TIA Portal V11 (HMI) For internal use only / © Siemens AG 2010 All Rights Reserved I IA AS CS2 FA Scripts and System functions Workflow: Open the editor „Scheduled tasks“ and create a new task „GlobalAnimation“ as seen in the screenshot Convert the function list into a VB-Script 10 Write the script as seen in the screenshot 11 Start the runtime for a test SIMATIC Systems Support I IA AS CS FA TIA Portal V11 Seite / page 69 TIA Portal V11 – Exercises ƒ Basics: PLC exercise ƒ Basicis: HMI exercise ƒ Panel: Devices&Screens ƒ Panel: Tags ƒ SCADA: Device&Screens ƒ Panel: Scripting ƒ SCADA: Scripting ƒ Panel: User Administration For internal use only / © Siemens AG 2010 All Rights Reserved SIMATIC Systems Support I IA AS CS FA TIA Portal V11 Seite / page 70 Exercise: User administration Panel Page 71 Task: Exercises for TIA Portal V11 (HMI) For internal use only / © Siemens AG 2010 All Rights Reserved I IA AS CS2 FA configure user administration Workflow: Open the editor „User administration“ and add a new user „Promotor“ Select a password for the user Assign the user to the group „Users“ Switch to the tab „User groups“ Select the group „Users“ Add a new authorization „StopRT“ and activate the authorization for the group „Users“ SIMATIC Systems Support I IA AS CS FA TIA Portal V11 Seite / page 71 Exercise: User administration Panel Page 72 Task: Exercises for TIA Portal V11 (HMI) For internal use only / © Siemens AG 2010 All Rights Reserved I IA AS CS2 FA configure user administration Workflow: Open the templates „Template_OtherScreens“ and „Template_StartScreen“ Select the editor „User administration“ in the project tree Drag the authorization “StopRT” from the details view to the „Stop Runtime“ – button 10 Start the simulation and test the functionality SIMATIC Systems Support I IA AS CS FA TIA Portal V11 Seite / page 72 Thank you for your attention! I IA AS CS FA Gleiwitzerstr.555 90475 Nürnberg Phone: +49 (911) 895 - 4646 E-Mail: sss.simatic@siemens.com For internal use only / © Siemens AG 2010 All Rights Reserved SIMATIC Systems Support I IA AS CS FA TIA Portal V11 Seite / page 73

Ngày đăng: 18/03/2017, 02:00

Tài liệu cùng người dùng

Tài liệu liên quan