FC_DigitalOutputs

 

FC_DigitalOutputs - General Information

Overview

Type:

Function

Available as of:

V1.0.0.0

Versions:

Current version

This chapter provides information on:

oTask

oDescription

oInterface

oReturn Value

oDiagnostic Messages

Task

Convert a value of the digital outputs.

Description

The function FC_DigitalOutputs() takes the Boolean values transferred at the inputs i_xValue0...i_xValue7 and packs them into a USINT value. This USINT value is returned as return value of the function.

Interface

Input

Data type

Description

i_xValue0

BOOL

First bit to be converted.

i_xValue1

BOOL

Second bit to be converted.

i_xValue2

BOOL

Third bit to be converted.

i_xValue3

BOOL

Fourth bit to be converted.

i_xValue4

BOOL

Fifth bit to be converted.

i_xValue5

BOOL

Sixth bit to be converted.

i_xValue6

BOOL

Seventh bit to be converted.

i_xValue7

BOOL

Eighth bit to be converted.

Output

Data type

Description

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

Return Value

Data type

Description

USINT

Result of the conversion.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The conversion was successful.