Oled Display Transparent.How to display the current real-time time of the touch screen. When it comes to time display, you must think of PLC time, in other words, the real-time clock, which shows PLC time before the touchscreen.
The first step: (choose the corresponding model of the actual touch screen, here I am the TPC1570Gi model, you can choose according to your actual touch screen model. ).
Step 2: (workbench-user window-create a new window).
Second, design picture.
The first step: (in window 0-Toolbox-text-drag out the following image window).
Step 2: (double-click to open window properties-check to display output).
Step 3: (display output-expression Click the question mark to select: $Date= year, month and day, output value type selection: string output).
Step 4: (if you want to display the year, month, day + time, express $Date+ “” + $Time on the year, month and day.
Pay attention to adding a space in the middle of “” so that the year, month, day and time can be displayed separately).
Step 5: (display week should be displayed separately, because the format is inconsistent, you need to use text to create a new window. ).
Step 6: (if you want to display the week, concatenate the variable $Week, output value type selection: numeric output).
Step 7: (if you want to look better, you can cancel the fill color, cancel the border).
Third, demonstration effect.
At this moment, how MCGS displays the current real-time time of the touch screen has been designed.