FunctionMLSmpConnectPipe Network motion icon

Description

Connect a sampler to an axis or pipe block as a value source. Returns TRUE if the function succeeded.

Related Function Blocks

MLSmpConECAT, MLSmpInit, MLSmpConPNAxis, MLSmpConPLCAxis

Arguments

Input

BlockID Description ID Name of the SMP function block in the Pipe Network
  Data type DINT
  Range [-2147483648, 2147483648]
  Unit N/A
  Default
PipeBlockID Description ID Name of the Pipe Block the sampler is connected to
  Data type DINT
  Range [-2147483648, 2147483648]
  Unit N/A
  Default

Output

Default (.Q)

Description Returns True if the Sampler is connected.

See more details here.

  Data type BOOL
  Unit N/A

Return Type

BOOL

Example

Structured Text

//Connect a Sampler pipe block named “EncoderMaster1” to a PipeNetwork Axis block named AXIS1
MLSmpConnect( PipeNetwork.EncoderMaster1, PipeNetwork.AXIS1 ) ;

Ladder Diagram

MLSmpConnect: LD example

Function Block Diagram

MLSmpConnect: FBD example

Go back to the top of the page [Top]