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.
This block defines a variable. Set the desired variable.
'Var1' or '$Global.Var1'
This block defines a local variable. Set the desired local variable.
'$Local.Var1'
This block defines a screen or object. Set the desired screen or object.
'$GraphicObject.NumericDisplay1'
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
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 |
This block defines the display unit property, either '$Target' for the display unit or '$FTP' for the FTP server.
Target property
'$Target.Target01'
FTP server property
'$FTP'
This block defines an Alarm property except Alarm Group. Set the desired Alarm property.
'$AllAlarm'
This block defines an Alarm Group property. Set the desired Alarm Group property.
'$AlarmGroup.AlarmGroup1'
This block defines a Data Logging property. Set the desired Data Logging property.
'$DataLogging.LoggingGroup1'
This block defines a Recipe property (except Recipe Control properties). Set the desired Recipe property.
'$Ingredient.RecipeFamily1'
This block defines a Recipe Control property. Set the desired Recipe Control property.
'$RecipeControl.RecipeControl1'
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
'$RecipeControl.RecipeControl1.FamilyID
= 1;
$RecipeControl.RecipeControl1.GroupID = 1;
$RecipeControl.RecipeControl1.RecipeID = 1;
loadRecipe();'
This block defines an Operation Log property. Set the desired Operation Log property.
'$OperationLog'
'$Device.ModbusTCPDriver1.SchneiderModbusTCPIPEquipment1.ScanOffStatus'
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]'getLanguageText(EXPRESSION)'
(Example)
In the following, if the [User Language ID] is 1 and table ID is 1, output is "blue".
'getLanguageText(1)'
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.