Skip to main content
Skip table of contents

Wait Until Fieldbus Digital Input

Monitor the specified digital input. When the monitoring condition is met, the wait until command will finish. See also Using Digital Input to PMC.

Fieldbus Interface

PMC_WaitUntilFBDI 

Inputs

Name

Data Type

Description

Execute

BOOL

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

cmdLB

UINT

Any 2 byte Command Label, user defined.

XbotID

USINT

ID of the XBot. Real XBot IDs [1,78]. Virtual XBot IDs [100,127]. Macro IDs [128,191]

TriggerDI

USINT

ID of the Trigger digital input

TriggerType

USINT

  • 0: Rising Edge

  • 1: Falling Edge

  • 2: High level

  • 3: Low level

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

Ack

BOOL

Command has been accepted by the PMC when Ack = TRUE.

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.

Ethernet Interface 

PMCRTN WaitUntil(ushort cmdLabel, int xbotID, TRIGGERSOURCE triggerSource, WaitUntilTriggerParams triggerParameters)

Parameters

Name

Type

Description

cmdLabel

ushort

Any 2 byte Command Label, user defined.

xbotID

int

ID of the XBot. Real XBot IDs [1,78]. Virtual XBot IDs [100,127]. Macro IDs [128,191]

triggerSource

enum

FIELDBUS_DI (2): use a fieldbus input as trigger source

triggerParameters

struct

When triggerSource is set as FIELDBUS_DI, the following parameters are required:

  • externalOrFBInputChannelID: Input channel ID

  • edgeType: enum with RISING_EDGE (0), FALLING_EDGE (1), IS_ONE (2), or IS_ZERO (3) options

Returns

Name

Type

Description

PMCRTN

PMCRTN enum

ALLOK (0): Command Accepted. Otherwise, please see Ethernet Reply Codes.

Conditions

Operating Conditions

Preconditions

XBot is in the Idle state, Obstacle Detected state, Motion state, Stopped state, Hold Position state, or Waiting state.

Postconditions

If the XBot is ready to immediately begin executing the command, then the XBot will enter the Waiting state. Otherwise, the XBot state remains unchanged, but the command will be added to the XBot's motion buffer.

Description

Wait Until commands ensure an XBot does not execute additional commands until certain configurable conditions are met, this command waits until the specified Digital Input has been received. See also Using Digital Input to PMC.

Consider the following trajectory:

XBot 2 must wait for XBot 1 to complete it’s motion before XBot 2 can move to its target destination. 

XBot 2 can execute a Wait Until command using an external Digital Input Trigger or Fieldbus Input Trigger before executing its motion command: the Wait Until command will wait for an external Digital Input or Fieldbus Input to trigger before finishing. If the external device or Controller is monitoring XBot 1’s status, they could be used to trigger the event for ending XBot 2’s Wait Until command.

 

 

JavaScript errors detected

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

If this problem persists, please contact our support.