MLSmpConPNAxis

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. - Connects a sampler block to a specific Pipe Network axis variable.

Inputs

Input

Data Type

Range

Unit

Default

Description

BlockID

DINT

-2147483648 to 2147483647

N/A

No default

ID Name of the SMP function blockClosed A function block groups an algorithm and a set of private data. It has inputs and outputs. in the Pipe Network.

AxisID

DINT

-2147483648 to 2147483647

N/A

No default

ID Name of the axis the sampler is connected to.

Variable

UINT

N/A

Use available macros.

N/A

No default

Variable to be connected to.

Use one of these Internal Defines:

Outputs

Output

Data Type

Range

Unit

Description

Default (.Q)

BOOL

 

N/A

Function block is operational.

See Pipe Network - General Rules.

Remarks

Figure 1: MLSmpConPNAxis

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

//Connect a sampler block named “SAMPLER” to a variable named ML_PIPE_POSITION  from a Pipe Network Axis named PipeNetwork.AXIS1
MLSmpConPNAxis( PipeNetwork.SAMPLER , PipeNetwork.AXIS1, ML_PIPE_POSITION );