# Values

Value block refers to the value of a specified variable or property. You can read or overwrite values that are stored using a value block.

Note:

- To specify a property in a value block, use a period (.). For example, to specify the text color in NumericDisplay1, set "NumericDisplay1.TextColor".
- For information on the naming convention and script keywords, refer to the following.
  Naming Conventions

Hide Show

1. Variable
2. Local Variable
3. Screen Object
4. Constant
5. Target
6. Alarm
7. Alarm Group
8. Data Logging
9. Recipe
10. Recipe Control
11. Operation Log
12. Equipment
13. Language Text ID

## Variable

This block defines a variable. Set the desired variable.

##### Block

##### Text

'Var1' or '$Global.Var1'

## Local Variable

This block defines a local variable. Set the desired local variable.

##### Block

##### Text

'$Local.Var1'

## Screen Object

This block defines a screen or object. Set the desired screen or object.

##### Block

##### Text

'$GraphicObject.NumericDisplay1'

## Constant

This block defines a constant value. Select the data type and set the desired value. To define Int, Bool, String or Float data type when [Script Mode] is [Text], type the value.

##### Block

##### Text

Int, Bool, String or Float

'2', 'true', 'ABC', '1.23'

Time

'time(0)'

Date

'date(YYYY, MM, DD)'

Time of Day

'timeOfDay(H, M, S)'

Date and Time

'datetime(YYYY, MM, DD, H, M, S)'

Address

'address(123.123.123.123)'

Type | Range
Int | -2147483648...4294967295
Bool | True or False
String | Stores up to 1024 characters.
Float | -1.7E308...1.7E308 Note: The precision of float data is limited to 15 digits.
Time(ms) | -2147483648...2147483647
Date | 1/1/1970...2/7/2106
TimeOfDay | 00:00:00...23:59:59
DateAndTime | 1/1/1970 00:00:00...2/7/2106 6:28:15
Address | 000.000.000.000...255.255.255.255

## Target

This block defines the display unit property, either '$Target' for the display unit or '$FTP' for the FTP server.

Target property

##### Block

##### Text

'$Target.Target01'

FTP server property

##### Block

##### Text

'$FTP'

## Alarm

This block defines an Alarm property except Alarm Group. Set the desired Alarm property.

##### Block

##### Text

'$AllAlarm'

## Alarm Group

This block defines an Alarm Group property. Set the desired Alarm Group property.

##### Block

##### Text

'$AlarmGroup.AlarmGroup1'

## Data Logging

This block defines a Data Logging property. Set the desired Data Logging property.

##### Block

##### Text

'$DataLogging.LoggingGroup1'

## Recipe

This block defines a Recipe property (except Recipe Control properties). Set the desired Recipe property.

##### Block

##### Text

'$Ingredient.RecipeFamily1'

## Recipe Control

This block defines a Recipe Control property. Set the desired Recipe Control property.

##### Block

##### Text

'$RecipeControl.RecipeControl1'

Note: After specifying the Recipe Control properties ([Recipe Family ID], [Recipe Group ID] and [Recipe ID]), execute the [Recipe] operation. [Recipe Control] alone cannot perform operations on the recipe data.
Recipe
(Example)
When reading recipe data with FamilyID=1, GroupID=1 and RecipeID=1

##### Block

##### Text

'$RecipeControl.RecipeControl1.FamilyID = 1;
$RecipeControl.RecipeControl1.GroupID = 1;
$RecipeControl.RecipeControl1.RecipeID = 1;
loadRecipe();'

## Operation Log

This block defines an Operation Log property. Set the desired Operation Log property.

##### Block

##### Text

'$OperationLog'

## Equipment

This block defines the equipment property. Set the desired Equipment property.

##### Block

##### Text

'$Device.ModbusTCPDriver1.SchneiderModbusTCPIPEquipment1.ScanOffStatus'

## Language Text ID

This block specifies the table ID using a value block such as a variable block or constant block.

If the table ID value is out of range or the variable quality is "bad", the trigger or operation that uses this block will not execute and the script will execute the next trigger or operation.

Which table string is output is specified by the [User Language ID].

[Target01] property window ➞ Function] tab ➞ [Options] tab ➞ [Preferences]

##### Block

##### Text

'getLanguageText(EXPRESSION)'

(Example)

In the following, if the [User Language ID] is 1 and table ID is 1, output is "blue".

##### Block

##### Text

'getLanguageText(1)'

Note: This block outputs text with the font type set in the language table. If the font type of the output text does not match the font type of the object, such as a switch that uses the text, the text may not display properly.

To match font types, associate the object's font type to the source property 'Target01.Preference.LanguageID' of [User Language ID]. Note that when associating source properties, create and select a range converter that converts the language ID to the font type value (Dec) set in the language table.