Set
Writes a value to a tag.
Use this command to set a percentage for a tag can only be done with HMI tags. Percentage calculations require maximum and minimum values, so you cannot set a percentage value for controller tags because they do not have minimum and maximum properties.
Syntax
Set [&] Set [/V] <
tag_name
> <
value
|tag
>
where
[&]
forces the command to be evaluated asynchronously, which can dramatically improve the performance of tag writes.[/V]
performs read-back verify on the write. It provides an extra level of security by performing a read immediately after the write to verify that the value was actually altered in the programmable controller or OPC server. This option is useful if the communications network is in poor condition, or susceptible to noise interference. If the verification fails, the error message is sent to the Factory Diagnostics system.<tag_name>
is a relative or absolute reference to the tag whose value will be set.<value
|tag>
is a value and tag to set.Value | Description |
---|---|
For analog tags |
|
For digital tags |
|
For string tags |
|
Remarks
This command is run locally on the HMI server,
FactoryTalk View SE
Client, or FactoryTalk View Studio
that issued it.Enclose tag names that contain dashes or begin with a number, in curly brackets
{ }
when you use them in an expression. This distinguishes the characters in the tag name from the characters in an expression.Provide Feedback