MLSmpConnect

Pipe Network motion icon

 FunctionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - Connect a sampler to an axis or pipe block as a value source.

Returns TRUE if the function succeeded.

See Also

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 Function - General Rules for more information.
  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]