Technical FAQs

Ask a Question

How to set InitVar (health check) parameters for a MODNET driver device type in PowerSCADA Expert

Issue
How to set InitVar (health check) parameters for a MODNET driver device type in PowerSCADA Expert

Product Line
Powerlogic SCADA 7.2x
PowerSCADA Expert 7.3x
PowerSCADA Expert 7.4x

PowerSCADA Expert 8.x

Cause
If a MODNET device fails to come online in PowerSCADA Expert (PSE), one likely cause is that the default InitVar parameter that the driver is using as a health check is not compatible with the device type. In this scenario, it may be necessary to add/modify the appropriate InitVar parameters.

Environment 
Computer Setup Editor

Resolution
In the Computer Setup Editor, the following parameters can be added to the Citect.ini file:

InitVar
Address of the register to read at startup to confirm connections.

Allowable Values: 0 - 65535
Default Value: 40001

The address can be provided in two ways:

1. With configuring InitVarType ini parameter 
InitVar must have the register address and InitVarType must provide the register type. InitVar will be able to support the values 0-65535.

Example:
[Modnet]
InitVar = 39000
InitVarType = 3

With this configuration during start-up and re-connection the driver will attempt to read Output Register 39000

2. Without configuring InitVarType ini parameter 
InitVar must have the complete address including the register type. InitVar should be configured as format FR.

F : Register type (range : 1-4, 1-Digital read input, 2-Digital read output, 3-Integer read output, 4-Integer read input)
R : Register address (range : 0-9999)

Example :
[Modnet]
InitVar = 12345

By default, InitVarType will be assigned value 0.

With this configuration during start-up and re-connection the driver will attempt to read Input Coil 2345.
With this parameter, you can set different values for specific I/O devices or groups of I/O devices

InitVarType
The type of register the MODNET driver tries to read on startup to allow communication to start. It is configured with the parameter InitVar.

Allowable Values: 0 to 4, or 20 (for extended registers access)
Default Value: 0

Parameter details:
1 - Digital read input
2 - Digital read output
3 - Integer read output
4 - Integer read input
20 - Extended register
0 - the value defined for the parameter InitVar will be considered a complete address, having register type.

Example:
[Modnet]
InitVar = 39000
InitVarType = 3

With this configuration during start-up and re-connection the driver will attempt to read Output Register 39000
With this parameter, you can set different values for specific I/O devices or groups of I/O devices.

 

Was this helpful?
What can we do to improve the information ?