Master.BinaryCommand (METH)ΒΆ

METHOD BinaryCommand : Error

Issue a binary command

NOTE: If you are doing a SELECT/OPERATE but choose not to use the autoMode mask to do this, but instead are going to call this brm function to send the SELECT and then call this function again to send the OPERATE, you will need to increase the pReqDesc->priority of the OPERATE to 255 to guarantee it gets sent before any automatic processing of events is performed. (Automatic processing of events is enabled by default when the mdnp session was opened). For example, if in the response to the SELECT the restart IIN bit is set and the session was set up to automatically send a clear restart command, you will want to make sure the OPERATE gets sent before the clear restart, otherwise the operate will fail.

InOut:

Scope

Name

Type

Comment

Return

BinaryCommand

Error

Input

funcCode

FunctionCode

function code, must be DNPDEFS_FC_SELECT, DNPDEFS_FC_OPERATE,

DNPDEFS_FC_DIRECT_OP, or DNPDEFS_FC_DIRECT_OP_NOACK

autoMode

USINT

bit mask to specify which actions to perform. Combine AUTO_MODE_OPERATE and AUTO_MODE_FEEDBACK as needed.

opFeedbackDelay

TIME

specify a delay, in milliseconds, after receiving

the response to an operate or direct operate request before issueing an operate feedback poll using the autoMode parameter.

qualifier

AddressQualifier

address qualifier, must be 8 or 16 bit indexed

QUAL_8BIT_INDEX or QUAL_16BIT_INDEX

numCROBs

USINT

number of Control Relay Output Blocks in this request

pCROBInfo

POINTER TO CROB_Info

data for each Control Relay Output Block