FC_BuildIDN

Overview

Type:

Function

Available as of:

V1.0.0.0

Functional Description

The function FC_BuildIDN builds the structured IDN with the input values from the symbolic addressing (<S/P>-<PS>-<DBN>.<SI>.<SE>). The function verifies the input values. If an input is determined to be invalid, a result code is given. In this case, the return value FC_BuildIDN is set to FALSE.

Interface

Input

Data type

Description

i_udiSI

UDINT

Structure instance of the IDN

i_udiSE

UDINT

Structure element of the IDN

i_xP

BOOL

S/P parameter:

0 (FALSE) = S

1 (TRUE) = P

i_udiPS

UDINT

Parameter set of the IDN

i_udiIDN

UDINT

Data block number of the IDN

Output

Data type

Data type

q_etResult

ET_Result

Result of the function

q_sResultMsg

STRING[80]

Description of the result

Return Value

Data type

Data type

DWORD

The return value of the function FC_BuildIDN is the structured IDN as a DWORD or FALSE if any input is determined to be invalid. This return value can be used as the input i_dwParamterIDN for the function blocks FB_ReadParameter and FB_WriteParamter.