RTES - DNP3 MASTER/REMOTE EMULATOR
The following parameters are defined specifically for the configuration file of the DNP3 driver:
|
H=0 H=1 |
operate as a REMOTE unit (default) operate as a MASTER device Note: If this parameter is included in PORTn.CNF, it must appear before the I/o clusters are defined |
|
F=t |
t is the number of milliseconds of silence on the communication line to establish an end of transmission.(default is 3 character time) |
|
R=id |
if this parameter is used, id is the index of the RTES R register that operates as a run switch. The driver communicates only when this register is ON. |
OPERATING AS a REMOTE (H=0)
|
X=n |
number of seconds before expiration of a output block select command |
|
U=0 U=1 |
do not send unsolicited 'responses' send unsolicited 'responses' (default) Note: This parameter is overridden by the DNP3 commands to unable/disable unsolicited responses. |
I/O CLUSTER FORMATS IN 'REMOTE' MODE (H=0 or default)
Define binaries to send to the master on change of state
O=n ;n is number of clusters (max 16)
Each cluster is defined by 6 parameters:
Register,Quantity,ObjectID,MasterReg,AlarmReporting,Unused
Define analogs to send to the master when change exceeds deadband
S=n ;n is number of clusters (max 16)
Each cluster is defined by 6 parameters:
Register,Quantity,ObjectID,MasterReg,AlarmReporting,DeadBand
In the above clusters:
|
Register |
the id of first RTES variable to be used |
|
|
Quantity |
the number of consecutive registers (max 16) |
|
|
ObjectID |
The Variation and Group the variables will assume |
|
|
MasterReg |
the starting position of these points in the array at the MASTER | |
|
AlarmReporting |
the index of a RTES R register to indicate a communication failure |
|
|
DeadBand |
the index of the first of a set of RTES R registers to contain the deadband values for each corresponding analog point. |
|
|
Unused |
a reserved position (use 0) |
Define control outputs
p=n ;n is number of clusters (max 16) *** note lower case p ***
Each cluster is defined by 3 parameters:
Register,Quantity,OutputBlockIndex
In the above cluster
|
Register |
is the id of a RTES variable that will represent the TRIP/CLOSE outputs |
|
Quantity |
is the number of TRIP/CLOSE pairs |
|
OutputBlockIndex |
is the starting output block index used at the master station to reference these outputs. |
OPERATING AS a MASTER
|
W=t |
number of milliseconds between commands |
|
X=s |
number of seconds between class 0 data polls. |
|
s=n |
number of remote stations. (Max 16) |
Each station is defined by 15 parameters in the following order:
|
Station id |
decimal value of the remote station number |
|
Command register |
RTES R register to control the polling If C=0 polling occurs when this register is on. If C=1 a poll takes place when this register is on and the driver turns it off after completion. The register immediately below will report the decimal representation of the IIN word received from this remote. |
|
First binary input |
id of the first RTES variable that will receive the status of the binary inputs from this remote |
|
Quantity of binary inputs |
|
|
First analog input |
id of the first RTES variable that will receive the values of the analog inputs from this remote |
|
Quantity of analog inputs |
|
|
First control output |
id of the first RTES variable that will control the TRIP/CLOSE operation at this remote |
|
Quantity of control outputs |
number of pairs of TRIP/CLOSE controls |
|
Pulse duration |
in milliseconds |
|
First analog output |
id of the first RTES variable that will send their values to the analog outputs of this remote |
|
Quantity of analog outputs |
|
|
First counter |
id of the first RTES variable that will receive the values of the counters from this remote |
|
Quantity of counters |
|
|
Communication alert register |
Turns true when master station does not respond |
|
Unsolicited mode register |
When you set this register to 1, this driver sends to the remote the command to turn the unsolicited mode on for classes 1, 2 and 3 data. When you set this register to 2, this driver sends to the remote the command to turn the unsolicited mode off. This driver returns the register to 0 after command acknowledgement. |
I/O CLUSTER FORMATS IN 'MASTER' MODE (H=1)
Define variables to send to the remotes on command:
S=n ;n is number of clusters (max 16)
Define variables to read from the remotes on command
G=n ;n is number of clusters (max 16)
Each cluster is defined by 6 parameters:
Var/Grp,Quantity,RemoteID,RemotePos,AlarmReporting,CommandReg
Var/Grp is (Variation)*256+Data_Object for the variable (object) used.
ie : for Data object 01, Variation 2 ("binary input with status"), use 513
RTES variables:
The parameter used as RTES register index to exchange variables over DNP3 is coded as follows to indicate which type of variable is used:
0-9999 R registers 10000-19999 I registers 20000-20000 O registers 30000-39999 A registers (converted value) 40000-49999 Y registers (converted value) 50000-59999 A registers (raw value) 60000-69999 Y registers (raw value)TCP/IP
The default tcp port is 502. This may be changed by adding in the configuration file : V=port#
When operating in MASTER mode, the IP's of the remote stations must be defined in the configuration file.
Each remote IP is defined by a "P" cluster of 5 numbers : [station id], [IP]
For example, the following defines a remote station ID=45 at 192.168.0.12 and a remote station ID=78 at 192.168.0.14. Note that the 5 numbers must be separated by a comma or a space (not a dot).
P=2 45,192,168,0,12 78,192,168,0,14