DrvMouseControl Communicator Driver (Custom)
Functional Description
DrvMouseControl is a custom Communicator driver in ScadaV6CommExt for field device connectivity. Protocol details follow the source implementation.
Scope and Version
- Source:
ScadaV6CommExt/DrvMouseControl.Logic - TFM:
netstandard2.0 - Version:
6.0.0
Install and Enable
- Deploy driver binaries to Communicator folders.
- Activate driver in Administrator → Communicator → Drivers.
- Upload configuration and restart Communicator.
Line and Device Configuration
- Create a communication line with the proper channel type.
- Add device and set address/timeouts.
- Set polling options and CmdLine as required by this driver; see Functional notes and configuration (template and source) below for file names, address format, and line keys.
CustomOptions (extracted)
| Key | Default | Note |
|---|
未在源码中匹配到明显的 GetValueAs* 调用,请在 Administrator 中打开该驱动的设备/线路配置界面逐项确认。 |
Code hints
35: ConnectionRequired = false;
72: string fileName = PollingOptions.CmdLine.Trim();
Administrator UI (DrvMouseControl.View)
Configure in Administrator → Communicator. Labels below come from the View language pack.
- View source:
ScadaV6CommExt/DrvMouseControl.View - Main forms:
FrmDeviceTemplate.csFrmMouseCmdEdit.csFrmMouseControlConfig.csFrmMouseOperationEdit.csFrmMouseTaskEdit.cs
| Phrase key | Text |
|---|
| No phrases parsed; check Lang folder in View project. |
Functional notes and configuration (template and source)
Derived from Logic/Common and device template XML: driver behavior and the Administrator/Communicator fields to set (address, CmdLine, line CustomOptions, template nodes).
Logic location
ScadaV6CommExt/DrvMouseControl.Logic- Common: n/a
Overrides
InitDeviceTags(), OnCommLineStart(), SendCommand(), OnCommLineTerminate()
CmdLine / template
PollingOptions.CmdLine.Trim();
DeviceConfig properties referenced
| Property | Note |
|---|
| 未检测到 DeviceConfig.* 引用(可能使用基类封装)。 |
Line CustomOptions
| Key | Default |
|---|
| 未在 Logic 中检测到 CustomOptions.GetValueAs*(可能全部从设备模板 XML 读取)。 |
XML keys (Common)
| Node | Note |
|---|
| 未在 Common 中解析到 GetChildAs*/AppendElem 节点(或无 Common 工程)。 |
Code excerpt
49: ///
50: public override void InitDeviceTags()
51: {
52: cmdByNum = new Dictionary();
69: {
70: string fileName = PollingOptions.CmdLine.Trim();
71: if (!string.IsNullOrEmpty(fileName))
72: {
Troubleshooting
- No data: line, address, template, connectivity.
- Template load errors: check logs.
- Options ignored: verify option scope (line vs device).