12/30/2017 4:11 PM | |
Joined: 9/23/2005 Last visit: 4/4/2025 Posts: 4406 Rating:
|
“Simple Samples” are small projects that demonstrate simple features. The target is give a quick overview about the theme and be used as start point for related discussions. Follow there are a short description and the configuration main steps. Description: in this simple sample, one HMI screen is copied from the project library to the HMI project following the controller FB properties. A trend control on Screen is configured automatically to show the FB output as trend. Requirements: TIA V15 SiVArc Project with a minimum configuration: S7-1500 configuration, Configuration main steps: Create a FB on S7-1500 CPU: Project tree → PLC → Program Blocks → Add new block → FB: Name = Block_1 Create a interface (inputs, outputs for the created blocks): - Project tree → PLC → Program Blocks → double click on Block_1 → inputs → add new → name = On, type = Bool - Project tree → PLC → Program Blocks → double click on Block_1 → outputs → add new → name = Status, type = Uint Create a HMI: Project tree → Add new device → TP900 Comfort: in the HMI Device Wizard, PLC connection create a connection with the S7-1500 controller Create screen and trend object in project library: - Project tree → HMI → Screens → Add new screen → Type F2 → rename the screen to “MyHMIScreen” → (optional: edit the screen adding objects, etc.) - Drag and drop a Trend view to the screen. - Add a trend: Inspection Windows → Proprieties → Trend → <add new> - Configure the Trend control: Inspection Windows → Plug ins → SiVArc Properties → Colnum Trends / Trend_1 / Name x Expression for static value; Row = Block.DB.SymbolicAddress; Colnum Trends / Trend_1 / Data Source process value x column Expression for static value = Block.DB.SymbolicAddress & "_Status"; - Drag and drop the trend view objecto to the project library (right toolbar, division library) under Master copies - Delete the trend view from the screen. - Drag and drop the screen to the project library (right toolbar, division library) under Master copies - Delete the original screen from the Project tree → HMI → Screens. Set the SiVArc relevant block properties: inspection window (under) Project tree → PLC → Program Blocks → double click on Block_1 → plug-ins → screen rules → create new rule: Program block = Block_1; Master copy of a screen = “MyHMIScreen” (click on “...” select the screen from Library → Master copies); Screen Object = "Trend view_1". Call the Block_1 on OB1: Instance DB Name = Block_1_DB Compile (HW and SW with rebuild all) Create SiVArc Objects: Project tree → HMI → right mouse click → Generate the visualization (SiVArch) → Generate the visualization (SiVArch) → Generate Result: the “MyHMIScreen” is copied from the project library to HMI Screens folder. In this screen a Trend viewer is added and set to Trend1 = Block_1_DB_Status) References: TIA Portal online help: Help → Show help contends → SIMATIC Visualization Architect Project: Due a size/ format restrictions, the projects (one before and one after SiVArc generation) were first archived as zap14 format and after that attached to a zip archive (.zip).
AttachmentPorjects.zip (398 Downloads) |
Denilson Pegaia |
|
This contribution was helpful to
2 thankful Users |
Follow us on