MC_WriteDigitalOutput

 

MC_WriteDigitalOutput - General Information

Overview

Type:

Function Block

Available as of:

1.0.5.0

Versions:

current version

Task

A digital output is to be written.

Description

The parameter Value of the digital output applied at the Output input is written.

Interface

Input

Data type

Description

Output

SystemConfiguration.GD_OUT

The digital output that is to be read out

Execute

BOOL

TRUE: The value of the digital output is written.

Value

BOOL

The value with which the output is to be written

Output

Data type

Description

Done

BOOL

Writing the value of the output signal has been completed.

Busy

BOOL

The function block is not finished and new outputs are still pending.

Error

BOOL

Signalizes a detected error within the function block

ErrorId

DWORD

Error identification

q_etDiag

GD.ET_Diag

General, library-independent statement on the diagnostic.

A value unequal to GD.ET_Diag.Ok corresponds to a diagnostic message.

q_etDiagExt

ET_DiagExt

POU-specific output on the diagnostic.

q_etDiag = GD.ET_Diag.Ok -> status message

q_etDiag <> GD.ET_Diag.Ok -> diagnostic message

q_sMsg

STRING[80]

Event-triggered message which gives more detailed information on the diagnostic state.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Busy

1

The order is executed.

OK

Done

8

The order is completed.

OK

Ok

0

Ok

InputParameterInvalid

OutputInvalid

36

Output is not valid.

Busy

Enumeration name:

Busy

Enumeration value:

1

Description:

The order is executed.

The digital output is written.

Done

Enumeration name:

Done

Enumeration value:

8

Description:

The order is completed.

The digital output was written.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The POU is waiting for jobs.

OutputInvalid

Enumeration name:

OutputInvalid

Enumeration value:

36

Description:

Output is not valid.

Issue

Cause

Solution

-

No digital output has been applied at the input Output.

A valid digital output must be transferred to the input Output.