OPC
Communication control for the OPC client driver.
WebVue support - Yes.
Mode |
Mnemonic |
Syntax |
1 | READ | 1 |
5 | SETTRACE | 2 |
6 | RESETTRACE | 2 |
7 | PUTMASKTRACE | 2 |
8 | SAVEMASKTRACE | 2 |
9 | STARTGROUP | 3 |
10 | STOPGROUP | 3 |
11 | STARTSERVER | 3 |
12 | STOPSERVER | 3 |
The mode READ replaces the previous modes READ_SYNC and READ_ASYNC.
The mode ACTIVATE_ITEMS is no longer supported.
Modes 5 to 8 are for managing traces. With them, you can initiate all actions of the OPC Server dialog's Traces tab. The actions (check to set or uncheck to reset) modify the trace mask as displayed at the foot of the dialog.Show picture
Common arguments
Argument |
Meaning |
CommObj |
The name of a configuration item corresponding to an OPC server or an OPC group, as defined in the OPC client configuration. Type STR.
|
The slash (/) character may have been used as separator for the CommObj argument with some of the modes described below. This support is for compatibility only, we recommend using the dot (.) instead.
Syntax 1
OPC (Mode, CommObj [, ModeFlag]);
There is no return type.
Argument |
Meaning |
ModeFlag |
Where to read from. Type STR. "CACHE" - Read from the OPC server's cache. |
Execution
Mode |
Mnemonic |
Action |
1 | READ | Read all data of the group corresponding to CommObj. CommObj must designate a valid OPC group. The read parameters are provided by the configuration of the group (synchronous or asynchronous). |
Syntax 2
OPC (Mode, CommObj [, HexValue] );
There is no return type.
Argument |
Meaning |
HexValue | A string containing the hexadecimal value of the mask. Type STR. |
Execution
Mode |
Mnemonic |
Action |
5 | SETTRACE | To set the trace mask on an OPC server or an OPC group specified by CommObj. |
6 | RESETTRACE | To reset the trace mask on an OPC server or an OPC group specified by CommObj. |
7 | PUTMASKTRACE | To set the full trace mask on an OPC server or an OPC group specified by CommObj. |
8 | SAVEMASKTRACE | To save the full trace mask on an OPC server or an OPC group specified by CommObj. At the next startup, the trace mask will be the saved mask. |
Syntax 3
OPC (Mode, CommObj);
There is no return type.
Execution
Mode |
Mnemonic |
Action |
9 |
STARTGROUP | To start the group specified by CommObj. |
10 |
STOPGROUP | To stop the group specified by CommObj. |
11 |
STARTSERVER | To start the server specified by CommObj. |
12 |
STOPSERVER | To stop the server specified by CommObj. |
The application can detect when server starting-up or stopping has completed by checking the variable:
SYSTEM.OPC.ServerAlias.ON
The application can detect when group start-up or stopping has completed by checking the variable:
SYSTEM.OPC.ServerAlias.GroupName.ON