MLSmpConPNAxis

Pipe Network motion icon

 Function - 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 block 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:

  • ML_ACTUAL_POSITION
  • ML_ACTUAL_TORQUE
  • ML_ACTUAL_VELOCITY
  • ML_CURRENT_POSITION
  • ML_FEEDBACK_POSITION
  • ML_FOLLOWING_ERROR
  • ML_GENERATOR_POSITION
  • ML_PIPE_POSITION
  • ML_REFERENCE_POSITION

Outputs

Output

Data Type

Range

Unit

Description

Default (.Q)

BOOL

 

N/A

Function block is operational.

See Function - 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 );