How to switch screens with mcgs button

How to automatically switch windows in MCGS?

How to automatically jump from one window to another after a period of time without setting a button. For example, the cover window of a project, how to make him jump to the main control screen after a period of time, and the main control screen is the startup window.

First of all, you can write the following two loop scripts in window 0, and you can realize that window 0 switches to window 1 after 10s.

The first one in the implementation of Sleep, window 0 can not run anything, such as buttons and so on can not be done. So I don't like to use it. The second one will not affect the things in the window. I usually use the second one, then put a button in the window 0 to switch the window, so that it can be switched in two ways, one button operation and one automatic switching. More humane.

How to switch screens with mcgs button

Switching can be switched and turned off by setting the "lift" and "press" actions in "Operation Properties". For the operating conditions, you can write conditions in the "Scripting Language", or simply by setting the "Visibility Property". Not squatting

MCGS configuration touch screen page switching

How to switch screens with mcgs button

Double-click on the blank space of the screen and edit the loop script in the property settings of the window.

The variable "time" is not 100ms plus 1, when the "time" is greater than or equal to 20, that is, after 2s, execute the script, open the window 1, close the window 2, and it is OK.

Permissions are set in "Tools" - "User Rights Management"

How to switch screens with mcgs button

How does MCGS switch screens with an external switch?

There are many ways to do this. Let's talk about two here. Suppose the button is connected to the input X0 of the PLC, and then X0 is connected to the variable X0 of the MCGS in the device window.

The first one, using the loop strategy, set the short time of the cycle time, generally 100ms, and then as shown below

How to switch screens with mcgs button

How to switch screens with mcgs button

Second, use the event strategy to create a new event policy, as shown below.

How to switch screens with mcgs button

How to switch screens with mcgs button

The window operations of these two methods can also be replaced with scripts, with functions that open and close windows.

Taxi Top Led Screen

Taxi Top Led Screen,Taxi Top Advertising Signs,Car Roof Led Display,Car Roof Top Digital Advertising

ShenZhen Megagem Tech Co.,Ltd , https://www.megleddisplay.com

Posted on