MLSmpConPLCAxis

Pipe Network motion icon

 Function - Connects a sampler block to a specific PLCopen 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

AXIS_REF

1, 256

N/A

No default

Name of a declared instance of the AXIS_REF library function.

See click here... for more information.

Variable

UINT

N/A

Use available macros.

N/A

No default

Variable to be connected to.

Use one of these Internal Defines:

  • MC_ACTUAL_POSITION
  • MC_COMMAND_POSITION
  • MC_NORMAL_COMMAND_POSITION
  • MC_PHASE_COMMAND_POSITION
  • MC_SUPERIMPOSED_COMMAND_POSITION

Outputs

Output

Data Type

Range

Unit

Description

Default (.Q)

BOOL

 

N/A

Function block is operational.

See Function - General Rules.

Remarks

Figure 1: MLSmpConPLCAxis

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

//Connect a Sampler pipe block named “SAMPLER” to a variable named “MC_ACTUAL_POSITION” from a PLCOpen Axis named Axis1.
MLSmpConPLCAxis( PipeNetwork.SAMPLER, Axis1, MC_ACTUAL_POSITION);