AcsiPhyComAddr

Initializes the data elements of the structure: ST_AcsiPhyComAddr.

Namespace: Tc3_Acsi
Library: Tc3_Acsi (Tc3_Acsi.compiled-library)

FUNCTION AcsiPhyComAddr : ST_AcsiPhyComAddr
VAR_INPUT
    Addr     : T_OCTET6;
    PRIORITY : BYTE;
    VID      : WORD;
    APPID    : WORD;
END_VAR

AcsiPhyComAddr 1: Inputs

Name

Type

Description

Addr

T_OCTET6

Data element "Addr" to be set.

PRIORITY

BYTE

Data element "PRIORITY" to be set.

VID

WORD

Data element "VID" to be set.

APPID

WORD

Data element "APPID" to be set.

AcsiPhyComAddr 2: Return value

Name

Type

Description

AcsiPhyComAddr

ST_AcsiPhyComAddr

Structure with initialized data elements.

Example

METHOD FINAL Sample_AcsiPhyComAddr : BOOL
VAR
    addr: ST_AcsiPhyComAddr;
END_VAR
addr:=AcsiPhyComAddr(Addr:=LWORD_TO_OCTET6(16#AC3040506001), PRIORITY:=4, VID:=16#0001, APPID:=16#0001);
Sample_AcsiPhyComAddr:=TRUE;