Posts

TIA Portal: Unified Comfort Panel: How to add Local Date and Time with Script

Image
  The simplest way to show your date and time in your Unified Comfort Panel is just writing one line of code. 1- Create “Text Box” Create two “Text Box” from the toolbox, one for the date and one for the time. 2. Add “Script” property your Text Click on the Text Box > Go to its properties > Next to “Text” select “Script” from dropdown menu. If you don´t see script page on the right side, click small arrow to the left and open the script area. 3. Write your Magic Script To show the Date just add the following code, declaring your region for example:  ´de-DE´ for Germany. For Local Date: value = new Date().toLocaleDateString('de-DE'); For Local Time: value = new Date().toLocaleTimeString('de-DE'); For your region, just check “ ISO Language Code Table”  under this link: Language Code Table (lingoes.net) If the Time or Date is Displayed Wrong What if Unified Panel does not show the right time that you expected? There could be time difference because of your settings. ...

Siemens TIA Portal: Select the right PLC! What to consider?

Image
  Siemens TIA Portal: Select the right PLC! What to consider? The beginning of everything about your project! You need to select the right PLC for your solution. When you want to add a new PLC to your project, you will encounter variety of PLC types and modules. Since it is the most important and most expensive component in your order list, you need to act wisely. TIA Portal: Add new device: Controllers I am going to examine SIMATIC S7–1500 type PLCs and their definitions. CPU:  Central Processing Unit “is the electronic circuitry that executes instructions comprising a computer program.” which is basically a controller or PLC. Fist four digit of the device CPU “1511”:  Just know that the bigger the number, more functionality it has. So in this case the most basic version is CPU 1511–1 PN. The letters “C, F, T” right after model number for example CPU 1511 C -1 or CPU 1511 F -1: C: Compact , addition to the PLC, there are IO modules integrated. F: Fail-safe , safety modul...

Siemens Tia Portal Unified Comfort Panel Simulation on Web Browser — Configuration

Image
  You can simulate your HMI Unified Comfort Panel on Web Browser such as Microsoft Edge or Google Chrome. This feature can be used with following HMI Unified Comfort Panels. MTP700 Comfort MTP1000 Comfort MTP1200 Comfort MTP1500 Comfort MTP1900 Comfort MTP2200 Comfort If you directly click “Start Simulation” within your HMI screen, the simulation will not start automatically. There are some configurations that need to be done! Start Simulation Button Create New Certificate Open “WinCC Unified Configuration” software which should have already installed in your computer. WinCC Unified Configuration Software Select “Create a new certificate” and let the name as it is if it is not necessary for you and click “Next” WinCC Unified Configuration — Certificate Let the settings as it is and “Accept” all setting and wait for installation of the certificate and “Close” the certification setup. 2. Load Preview Setting To start the simulation automatically on web browser, go to “Options > Se...