Breadcrumbs

Read Digital Output from PMC

Reads a digital output from the PMC. Digital outputs from the PMC can be configured using Configure Digital Output from PMC.

readdigsigfrompmc.png

Fieldbus Interface

PMC_ReadDigitalSignalFromPMC 

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.

DiID

USINT

Digital Output ID, valid range [1,128]

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.

Level

BOOL

TRUE: Digital Output is on. FALSE: Digital Output is off

Conditions

Operating Conditions

Preconditions

None

Postconditions

The value of the specified Digital Output is provided in the output

Description

Reads a digital output from the PMC. Digital outputs from the PMC can be configured using Configure Digital Output from PMC.