When a specific node is selected in the SimulatePro interface, changes requested from this interface result in the node parameters SIM_REQUEST, SIM_INIT or SIM_FACTOR being written on the selected node. If the Control Network is selected in the interface, the Simulate application will repeat the write request on all PC nodes. Thus, a single request may impact all nodes, as illustrated below.
Each application node or ProfessionalPLUS node in a multinode Simulate application supports the following node parameters (accessed as Workstation name/CONT/Parameter name) to support requests made through the SimulatePro interface or by an application.
| Code | Description |
|---|---|
| 1 | Enable SIMULATE_IN connection |
| 2 | Disable SIMULATE_IN connection |
| 3 | Force first-time initialization |
| 4 | Set target mode to Manual (note that the IO fields for the block must be entered) |
| 5 | Set target mode to Normal (note that the IO fields for the block must be entered) |
| 6 | Set target mode to Auto (note that the IO fields for the block must be entered) |
| 7 | Force appropriate blocks' L_TYPE parameter to Direct Independent |
| 8 | Enable SIMULATE_IN and force L_TYPE to Direct Independent |
| 9 | Save to a file the module and block parameters contained in all modules assigned to the node |
| 10 | Restore, from a specified .DAT file, the module and block parameters of all modules assigned to the node |
| 11 | Restore from a specified .XML file the module and block parameters of all modules assigned to the node (equivalent to SIM_REQUEST code 15, followed by code 17) |
| 12 | Do not restore operating and tuning parameters |
| 13 | Restore operating parameters |
| 14 | Restore tuning parameters |
| 15 | Restore operating and tuning parameters |
| 16 | Resume selected |
| 17 | Resume all |
Use the SIM_MODE parameter to allow the client of an OPC DA server to read a group of tags at a scanning rate faster than the default 500 milliseconds by specifying a requested update rate of 0. You must include the exact path WorkstationName/SIM_MODE.CV, accessed via OPC.
Invalid use of the SIM_MODE parameter can generate one of the following error codes:
| Error code | Description |
|---|---|
| DV_E_LICENSE_EXCEEDED | The SIM_MODE parameter is not writeable unless the workstation has a DeltaV Simulate Multinode or DeltaV Simulate Standalone license. Otherwise, using the SIM_MODE parameter generates an error message indicating that the OPC Server license limit has been exceeded. |
| OPC_E_DUPLICATE_NAME | The SIM_MODE parameter can be specified for no more than one group of tags per OPC DA server. |
This section explains how the SimulatePro application saves and restores the system state in a multinode system.
The DeltaV soft controller on each node supports saving parameter and block data in files on that node. If the save request is made through the SimulatePro application these files are collected on the ProfessionalPLUS workstation.
When SimulatePro processes the request to save or restore the system state, it stops module execution on all selected nodes. After a save request, SimulatePro copies files saved on each node to the \Simulate folder on the ProfessionalPLUS workstation.
For DeltaV v14.3 both .DAT and .XML files are saved. The .DAT is a binary file and is a similar format to that used in v13.3.1. The .XML file is an XML file which is new for v14.3.
The files are saved by SimulatePro into a directory structure on the ProfessionalPLUS workstation. The file structure is:
\DeltaV\DVData\Simulate\SIMmmddyyyyhhmmss\NODE\SIMmmddyyyyhhmmss.dat
\DeltaV\DVData\Simulate\SIMmmddyyyyhhmmss\NODE\SIMmmddyyyyhhmmss.check
\DeltaV\DVData\Simulate\SIMmmddyyyyhhmmss\NODE\SIMmmddyyyyhhmmss.xml
\DeltaV\DVData\Simulate\SIMmmddyyyyhhmmss\NODE\SIMmmddyyyyhhmmss.xmlcheck
\DeltaV\DVData\Simulate\SIMmmddyyyyhhmmss.des
Where .dat and .xml files are the data files, .check and .xmlcheck files store configuration information, and .des files state the names of the saved nodes and the description for this time point. The NODE folder indicates the actual name of the node in the simulation system.
SimulatePro in releases of DeltaV prior to v14.3 created data files only with an extension of .dat instead of .dat and .xml. Training system files created in a release of DeltaV prior to v14.3 appear on the Select Restore Time dialog. After restoring a training system that includes a \DeltaV\DVData\Simulate\SIMmmddyyyyhhmmss\NODE\SIMmmddyyyyhhmmss.dat data file, you can save it with the current version of SimulatePro to create training system files that allow you to use features compatible with this release of DeltaV.
After you click the Save button, the following happens:
SIM_REQUEST = 9
SIM_FILE = "SIMmmddyyyyhhmmss"
SIM_INIT = 1
SimulatePro then creates the DeltaV\DVData\Simulate\SIMmmddyyyyhhmmss folder on the ProfessionalPLUS workstation.
The value of SIM_INIT becomes 0 after the save finishes and module execution resumes.
Any OPC program you write to save the system state in a multinode system should work in a similar manner.
Restoring the system state from saved files occurs in a similar manner. For more information about using the Restore dialog that appears when you click the Restore button on the Setup tab, refer to the Restore dialog topic.
SIM_REQUEST = 10 (.DAT) or 11 (.XML)
SIM_FILE = "SIMmmddyyyyhhmmss"
SIM_INIT = 1
If they match, it restores the modules and block from the local file with the name indicated by SIMmmddyyyyhhmmss.xml (or .dat). The value of SIM_INIT becomes 0 after the restore finishes and module execution resumes (if this option was selected).
For XML file types only, to not resume a module specified in a saved .xml data file after it is restored, insert double slash characters (//) at the beginning of the line for the module’s entry in the associated .xmlcheck file. For example, only the PID_SIM01 and AI_SIM02 modules are resumed after being restored if the following .xmlcheck file (for a workstation named USA22-UST and containing four modules) is edited as shown:
CheckFileRevision USA22-UST 4 //DI_SIM05 //DC_SIM0104 PID_SIM01 AI_SIM02
Modules are selectively resumed when the SIM_REQUEST value equals 16. SimulatePro does not provide a way to send a value of 16 to SIM_REQUEST. You must use the OPC interface to selectively resume modules after restoring them. For more information, refer to The SimulatePro OPC Interface. Modules without // in the .xmlcheck file are resumed by writing SIM_REQUEST to 16. Modules with // can be subsequently resumed by writing SIM_REQUEST to 17.
To not restore a module specified in a saved .xml data file, use an XML editing application to delete the module from the .xml data file.
Node Name
ModuleName1 Deleted
ModuleName2 Modified
ModuleName3 New
Modules that are not restored because they exist in the current download, but not in the saved state, are noted as New. Modules not in the download but included in the saved state are noted as Deleted. Modules not restored because of configuration changes are Modified. Any modules not listed were restored as expected.

To continue the execution on the node, enable the Resume Nodes option while restoring or click the Resume Execution button after restoring.
Any OPC program you write to restore the system state in a multinode system should work in a similar manner.
The actions that a user may initiate through the SimulatePro interface may also be taken by an application through OPC. This OPC interface is available for use with third-party software packages that support OPC. This section explains the interface and how SimulatePro uses it for various purposes.
Each application node or ProfessionalPLUS node supports node parameters (accessed as Workstation name/CONT/Parameter name) to support applications that need to make the same requests as are made through the SimulatePro interface. The OPC interface to these SimulatePro features is based on applications reading and writing these node parameters:
| Error code | Description |
|---|---|
| 0 | No error |
| 1 | Failed to create file |
| 2 | Failed to find or open file |
| 3 | Internal error in context Save |
| 4 | Internal Error in context Restore |
| 5 | Configuration checksum mismatch |
| 6 | Assigned license does not permit the requested operation |
| 7 | No modules assigned |
| 8 | Error opening .check file during Save |
| 9 | Error opening .xml file during Save |
| 10 | Failed to create .xml file during Save |
| 11 | Restore file not found |
| 12 | Error opening .check file during Restore |
| 13 | Error opening Restore file |
| 14 | Error opening .xml file during Restore |
| 15 | Error parsing or opening .xml file during Restore |
| 16 | Data file version error during Restore |
| 17 | Batch Executive did not shut down |
| 18 | Batch Executive did not restart |
| 19 | Batch Executive not running |
| 20 | Requested operation not valid |
| 21 | Out of memory |
| 103 | Failed to find or open file (for .DAT files) |
It is the application's responsibility to check that SIM_INIT is zero before writing to SIM_REQUEST. Changing SIM_REQUEST while SIM_INIT is set to 1 can result in a request not being completed.
To save and restore Batch simulations, use the DvBatchSimRqstr.exe command-line program in the DeltaV\bin folder.
Syntax
DvBatchSimRqstr /BEX Batch_Executive_node /RQST simulate_request_type [/SIMF simulate_folder]
Invokes the Batch Executive simulate data save operation
Invokes the Batch Executive simulate data restore operation
Invokes the Batch Executive simulate shutdown operation
The simulate_folder parameter does not support folder names containing a space character.
Options and parameters specified for the DvBatchSimRqstr.exe program are not case-sensitive.
| Value | Description |
|---|---|
| 0 | The operation completed successfully. |
| –1 | The operation completed with an error. |
| –2 | Missing or invalid /BEX Batch_Executive_node or /SIMF simulate_folder option. |
| –3 | Missing or invalid /RQST simulate_request_type option. |
| –4 | The system is not licensed to run SimulatePro. |
| 1 | Program initialization failed. |
Preparation
In the following example, the name of the ProfessionalPLUS workstation is USA22-UST.
The following example assumes that the Batch Executive and controller modules are on the ProfessionalPLUS; if controller modules are also on Application Stations, they must also be saved and restored.
Save
DvBatchSimRqstr /BEX USA22-UST /RQST Save /SIMF SAVEBATCH
Restore
DvBatchSimRqstr /BEX USA22-UST /RQST Shutdown
DvBatchSimRqstr /BEX USA22-UST /RQST Restart /SIMF SAVEBATCH