Breadcrumbs

Auto Refresh

When using a Fieldbus interface to connect to the PMC, this function block ensures all necessary function blocks are updated; it should be called once per cycle.

autorefresh.png

Fieldbus Interface

PMC_AutoRefresh

Inputs

Name

Data Type

Description

Enable

BOOL

Set to TRUE to enable the function block. It will continuously obtain the most up-to-date value(s) until reset to FALSE.

PM_Controller

PMControllerType

Data structure that specifies which PMC to connect to. There should be only 1 instance of this variable for each connected PMC.
Outputs

Name

Data Type

Description

Valid

BOOL

TRUE: output values have been successfully read. FALSE: unable to obtain output values.

Conditions

Operating Conditions

Preconditions

None

Postconditions

Function blocks are updated

Description

When using a Fieldbus interface to connect to the PMC, this function block ensures all necessary function blocks are updated; it should be called once per cycle.

  • Some function blocks in the library require cyclic calls to be updated properly

  • Call the provided function block every cycle to ensure all necessary function blocks are updated

  • This function block returns immediately, so other function blocks can be called in the same cycle