FunctionMLSmpConPNAxisPipe Network motion icon

Description

This function connects a sampler block to a specific variable from a PipeNetwork Axis.

Figure 7-108: MLSmpConPNAxis function

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
AxisID Description ID Name of the Axis the sampler is connected to
  Data Type DINT
  Range [-2147483648, 2147483648]
  Unit N/A
  Default
Variable Description

Variable to be connected to. You need to use one of the following Internal Defines :

  • ML_PIPE_POSITION
  • ML_REFERENCE_POSITION
  • ML_GENERATOR_POSITION
  • ML_ACTUAL_POSITION
  • ML_FEEDBACK_POSITION
  • ML_ACTUAL_VELOCITY
  • ML_ACTUAL_TORQUE
  • ML_FOLLOWING_ERROR
  • ML_CURRENT_POSITION
  Data Type UINT
  Range

N/A (use available macros)

  Unit N/A
  Default

Output

Default (.Q)

Description

FunctionClosedA 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. block is operational

See more details here.

  Data type BOOL
  Unit N/A

Return Type

BOOL

Example

Structured Text

//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 );

Ladder Diagram

Function Block Diagram

Go back to the top of the page [Top]