PTOGetParam Function Block

Function Description

This function block returns the value of a specific parameter for a specified PTO channel.

Graphical Representation

G-RU-0010481.2.gif-high.gif

 

 

IL and ST Representation

To see the general representation in IL or ST language, refer to the chapter Function and Function Block Representation.

I/O Variables Description

This table describes the input variables:

Inputs

Type

Comment

PTO_REF_IN

PTO_REF

Reference to the PTO channel.

To be connected to the PTO_REF of the PTOSimple or the PTO_REF_OUT of the PTO function blocks.

Execute

BOOL

On a rising edge, starts the function block execution.

When FALSE, does not reset the outputs of the function block. The output pins of this function block always show the last status until next rising edge of the Execution input.

Param

PTO_PARAMETER_TYPE

Parameter to read.

This table describes the output variables:

Outputs

Type

Comment

PTO_REF_OUT

PTO_REF

Reference to the PTO channel.

To be connected with the PTO_REF_IN input pin of the PTO function blocks.

Done

BOOL

TRUE = indicates that the ParamValue is valid.

Function block execution is finished.

Busy

BOOL

TRUE = indicates that the function block execution is in progress.

Error

BOOL

TRUE = indicates that an error was detected.

Function block execution is finished.

ErrID

PTOPWM_ERR_TYPE

When Error is TRUE: type of detected error.

ParamValue

DWORD

When Done is TRUE: Parameter value is valid.

NOTE: For more information about Done, Busy, CommandAborted and Execution pins, refer to General Information on Function Block Management.