Skip to main content
Skip table of contents

Configure Digital Output for Displacement

Configure a digital output from the PMC to turn on/off based on XBot Displacement. See Read Digital Output from PMC

  • State based – On when monitor displacement value exceeds threshold, off when monitored displacement value is less than the threshold

  • Event based – On when monitored position exceeding threshold, or on when monitored position falling below threshold. It can be turned off using a Digital Input, see Configure Digital Input To Reset DO

Fieldbus Interface

PMC_ConfigDO2Disp

Inputs

Name

Data Type

Description

Execute

BOOL

Execution of the function block begins on a rising edge of this input.

nDO

USINT

Number of digital inputs to configure, up to 5

DoID

USINT[0..4]

Digital Output ID, valid range [1,128]

XbotID

USINT[0..4]

Real XBot IDs [1,78]. Virtual XBot IDs [100,127]

Type_

USINT[0..4]

  • Event based: 0: Rising above threshold; 1: Falling below threshold

  • State based:  2: On when above threshold, off when equal or below threshold

Mode

USINT[0..4]

How to define boundary location. 0: using X only; 1: using Y only; 2: a straight line of arbitrary orientation (AX + BY = Threshold)

Threshold

REAL[0..4]

Used to Specify boundary location. Boundary defined as: in Mode = 0: X=threshold; Mode = 1: Y=threshold; Mode = 2: AX+BY=threshold

XFactor

REAL[0..4]

In Mode = 2, the A value of AX+BY=threshold

YFactor

REAL[0..4]

In Mode = 2, the B value of AX+BY=threshold

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

Done

BOOL

Execution successful. Function block is finished. (Note: Done will not become TRUE if Execute is already FALSE) 

Busy

BOOL

Function block is active and must continue to be called.

Aborted

BOOL

Command aborted by another command.

Error

BOOL

If there is an error in processing the command, then Error = TRUE, otherwise, FALSE.

ErrorID

UINT

0x0: All OK. Otherwise, please see PMC Reply Codes.

Conditions

Operating Conditions

Preconditions

None

Postconditions

Specified Digital Output from PMC is set to monitor the displacement of the specified XBots

Description

Configure a digital output from the PMC to turn on/off based on XBot Displacement. See Read Digital Output from PMC

  • State based – On when monitor displacement value exceeds threshold, off when monitored displacement value is less than the threshold

  • Event based – On when monitored position exceeding threshold, or on when monitored position falling below threshold. It can be turned off using a Digital Input, see Configure Digital Input To Reset DO

 

 

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.