4. Configuration
134
Parameter
Type
Description
eExecStatus
ENUM (BYTE)
Status of execution, indicates if a new command can be sent.
The values are as follows:
DNP3_COMMAND_EXEC_STATUS_DONE (0)
DNP3_COMMAND_EXEC_STATUS_RUNNING (1)
eErrorStatus
ENUM (BYTE)
Indicates whether the last command was successful.
DNP3_COMMAND_ERROR_STATUS_NO_ERROR (0)
DNP3_COMMAND_ERROR_STATUS_TIMEOUT (1)
DNP3_COMMAND_ERROR_STATUS_NO_SELECT (2)
DNP3_COMMAND_ERROR_STATUS_FORMAT_ERROR (3)
DNP3_COMMAND_ERROR_STATUS_NOT_SUPPORTED (4)
DNP3_COMMAND_ERROR_STATUS_ALREADY_ACTIVE (5)
DNP3_COMMAND_ERROR_STATUS_HARDWARE_ERROR (6)
DNP3_COMMAND_ERROR_STATUS_UNDEFINED (7)
DNP3_COMMAND_ERROR_STATUS_INVALID_ADDRESS (8)
DNP3_COMMAND_ERROR_STATUS_WRONG_TIMEOUT (9)
DNP3_COMMAND_ERROR_STATUS_INVALID_VALUE (10)
DNP3_COMMAND_ERROR_STATUS_UNINITIALIZED (11)
Table 4-84. DNP3_BinaryCommand Block Output Parameters
Notes:
eTripClose:
The trip/close commands are an unique feature for digital output modules (HX2320
Hadron Xtorm Series Module, for example). The modules have to support this functionality, though.
If you use a bus expansion of Hadron Xtorm Series mixed to Nexto Series, but the digital output
module does not support this functionality, the CPU returns the following error code:
DNP3_COMMAND_ERROR_STATUS_NOT_SUPPORTED.
Command for o Analog Outputs
The commands for analog outputs are defined in the following two functions:
DNP3_AnalogCommandInt
and
DNP3_AnalogCommandReal.
Table 4-85 shows the
input/output parameters for each one of the function blocks for analog outputs.
Function block name:
DNP3_AnalogCommandInt
, used for numbers of integer type (16 or 32 bits).
Used for the G41V1 and G41V2 groups.
Parameter
Type
Description
bRequest
BOOL
When TRUE, executes the command
dwVariableAddr
DWORD
Command variable address to send
eCommand
ENUM (BYTE)
Command sent:
DNP3_COMMAND_TYPE_SELECT (0)
DNP3_COMMAND_TYPE_OPERATE (1)
DNP3_COMMAND_TYPE_DIRECT_OPERATE (2)
DNP3_COMMAND_TYPE_ DIRECT_OPERATE_NO_ACK (3)
dValue
DOUBLE INT
Analog value to be written: INT or DINT
udiCommandTimeOut
UNSIGNED
DOUBLE INT
Time for timeout of this command
Table 4-85. DNP3_AnalogCommandInt Block Input Parameters