Function description

This function is used in a DFB code to know if an input parameter (pin) or an input/output parameter (pin) is connected or linked to a variable when you use an instance of this DFB.

NOTE: The function is only usable inside a DFB code. It is not pertmitted to use IS_PAR_CON outside a DFB code.

In the DFB code you must enter the name of the input or input/output parameters you want to check. It is not possible to enter the pin number. Please refer to Example.

EN and ENO can be configured as additional parameters.

Representation in FBD

Representation:

Representation in LD

Representation:

Representation in IL

Representation:

LD Pin_to_check
IS_PAR_CON
ST Result

Representation in ST

Representation:

Result := IS_PAR_CON (Pin_to_check) ;

Parameter description

Description of the input parameters:

Parameter

Data type

Meaning

INP

Any

name of the parameter (DFB pin) to be checked

Description of the output parameter:

Parameter

Data type

Meaning

OUTP

BOOL

1: Parameter (DFB pin) is connected

0: Parameter (DFB pin) is not connected