MLSmpConPLCAxis

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 PLCopenClosed A vendor -and product- independent worldwide association active in Industrial Control and aiming at standardizing PLC file formats based on XML. 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

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:

Outputs

Output

Data Type

Range

Unit

Description

Default (.Q)

BOOL

 

N/A

Function block is operational.

See Pipe Network - 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);