# Overview

WARNING
unintended equipment operation Manage the system performance by following the guidelines in Runtime Specifications. Failure to follow these instructions can result in death, serious injury, or equipment damage.

You can use Scripts to create simple programs. Use scripts to run operations on the display unit or communicate with external devices.

You can set up the following two types of scripts.

- Script

- Global Script

There are two script authoring formats, Block mode and Text mode.

- Steps to Design (Block mode)

- Steps to Design (Text mode)

## Script

While the screen where the script is set up is displayed, and the script trigger condition is satisfied, the defined operation is run.
From the Screen/Content settings, click [Script] to set up script.

Note: The screen will not change during a script process. If you change screens during a script process, the screen changes only after the script process is complete.

### Script set up for Content

If a Content Display or Slide Content Display object is hidden ([Visibility] property set to either [Hidden] or [Collapsed]), script set up for that content will stop running.

When the Content Display or Slide Content Display object is drawn on top of a Layout Object, the operation is as follows.

#### When a Content Display or Slide Content Display object is drawn on top of a Layout Object:

[1]: Content Display or Slide Content Display

[2]: Content Display or Slide Content Display

[Visibility] Property for [1] | [Visibility] Property for [2] | Script for content display in [2]
[Visible] | [Visible] | Run
[Visible] | [Hidden] or [Collapsed] | Stop
[Hidden] or [Collapsed] | [Visible] | Stop
[Hidden] or [Collapsed] | [Hidden] or [Collapsed] | Stop

#### When drawn on top of Layout Objects other than those above:

[1]: Layout Object other than those above

[2]: Content Display or Slide Content Display

[Visibility] Property for [1] | [Visibility] Property for [2] | Script for content display in [2]
[Visible] | [Visible] | Run
[Visible] | [Hidden] or [Collapsed] | Stop
[Hidden] or [Collapsed] | [Visible] | Run
[Hidden] or [Collapsed] | [Hidden] or [Collapsed] | Stop

## Global Script

Regardless of the screen that is displayed, while the display unit is in operation and the script trigger condition is satisfied, the defined operation is run.
Set up script on the [GlobalScripts].

## Script Editor

Use the Script editor to create your scripts, with triggers, operations, and conditions.

- There are two different script modes, [Block] and [Text]. To change the script mode, go to [Project] ➞ [Settings], then in the [Properties] window ➞ [Basic] ➞ [Script] ➞ [Script Mode], and select either [Block] or [Text].
- Supported triggers, operations, logic, and expressions are the same between [Block] mode and [Text] mode.

### Script Operation