4. Configuration
91
Parameter
Type
Description
diValue
DINT
Operation point value.
Table 4-40. sIntegerStatus Parameters
Parameter
Type
Description
dwValue
DWORD
Operation point value.
Table 4-41. sEnumeratedStatus Parameters
Parameter
Type
Description
eType
ENUM
Informs the data type of the received analog value:
INTEGER (0)
FLOAT (1)
diValue
DINT
Operation point value (integer format).
fValue
REAL
Operation point value (float format).
Table 4-42. sAnalogueValue Parameters
Parameter
Type
Description
bPulseCommand
BOOL
When true indicates a pulsed command.
dwOnDuration
DWORD
Period of time (ms) that the digital output must be on.
dwOffDuration
DWORD
Period of time (ms) that the digital output must be off.
dwPulseCount
DWORD
Number of times that the command should be performed.
Table 4-43. sPulseConfig Parameters
Parameter
Type
Description
dwReserved
DWORD
Reserved.
Table 4-44. sCancelParameters Parameters
In order to intercept commands for a given point, first load the address of the variable corresponding
to the point that you desire to intercept the command, in the
dwVariableAddr
parameter. Then
perform a pulse in the
bExec
parameter. The
bCommandAvailable
informs the application that the
command was intercepted. The information related to the intercepted command will be filled on the
sCommand
and
eStatus
output parameters according to the type of command that was received. This
operation depends only on the type of the received command, whatever is the data type of the
variable which is being used to intercept the command. Then, the interception is finished and the
function block is released to intercept a new command when it is indicated on the parameter
bDone
.
Also, the result of the command processing will be indicated on
eCommandResult
.
Below is an application sample of the command interceptor using the ST language, which sends a
command received by the IEC 60870-5-104 Server through the "dbpDoublePointIEC104" variable to
a double point of a digital output, where the variable "dbpDoublePointIO" is mapped.
For this example we used the command "C_DC_NA" in "Run Only" mode and the qualifier "Short
pulse" of the IEC 60870-5-104 protocol.
VAR
CRReceive: CommandReceiver; // Instance of the Interceptor
CComamnd: COMMAND_T; // Structure with the data of the command
intercepted
CRResult: COMMAND_RESULT; // Result of command intercepted
byResult: BYTE; // Result of the TripClose function.
byPulseTimeON: BYTE; // Pulse time on
byPulseTimeOFF: BYTE; // Pulse time off