SET
Construction of a list of commands and set-points.
WebVue support - Yes.
This instruction, used in conjunction with the instruction SENDLIST, is designed to optimize the use of control services according to the data acquisition driver capabilities (OPC, Modbus...) as a recipe does.
The instruction SET allows adding an I/O variable and its command value (value to send) to a list hold in memory. Once the list of commands to perform is complete, you can execute it using the instruction SENDLIST.
The list of commands hold in memory is protected at the user session level, e.g. each user session benefits from its own list, and calls to SET or SENDLIST in one given user session do not affect the lists associated to other sessions.
See the topic Message exchange mechanisms in PcVue for more information.
Syntax
IntVal = SET(Variable, Value);
Return type: INTEGER.
Argument |
Meaning |
Variable |
The name of the variable to be controlled. Any variable type. Type STR. |
Value |
The value that is to be controlled. Need to match the variable type. |
Execution
The command or set-point is added to a list in memory. This instruction can be used several times and then values can be sent to the field device using SENDLIST.
Return: 1 if successful, else 0.
To be set, variables must have the Command attribute enabled.
Conflict processing does not work with recipes.
Examples
Please refer to the examples for SENDLIST.