MLSmpInit

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. - Initializes a sampler object.

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.

SamplingPeriod

LREAL

0.25 to ?

Millisecond

1.0

PeriodClosed Motor systems having a reciprocating or oscillating motor that operates synchronously with the periodicity of the source which supplies the electrical energy. The period of execution of a pipe is the time spent between two successive computations of set values for the same pipe. The period of execution of a pipe is specified by the PERIOD parameter of the input pipe block. that the device is sampled.

Mode

DINT

1, 2

PositionClosed Position means a point in space which is described by different coordinates. Depending on the used system and transformation it can consist of a maximum of six dimensions (coordinates).This means three Cartesian coordinates in space and coordinates for the orientation. In ACS there can be even more than six coordinates. If the same position is described in different coordinate systems the values of the coordinates are different. or SpeedClosed Speed is the absolute value of the velocity without direction.

N/A

Position

Sampled output can be either Position or VelocityClosed For a group of axes this means: In ACS the velocities of the different axes. In MCS and PCS it provides the velocity of the TCP.

InputModuloPosition

LREAL

No range

User units

360.0

Period of the input signal.

The value set depends upon the device used.

OutputModuloPosition

LREAL

No range

User units

360.0

Period of the output signal.

Outputs

Output

Data Type

Range

Unit

Description

Default (.Q)

BOOL

 

N/A

SMP Block successfully initiated.

See Pipe Network - General Rules.

Remarks

Use AKD Secondary Feedback

Use AKD2G Additional Feedback

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

//Initialize  a Sampler Pipe Block named “EncoderMaster1” to a Sample Period of 1 millisec, Mode of Operation to 2(Velocity), Input Modulo of 4294967296, and Output Modulo of 720
MLSmpInit( PipeNetwork.EncoderMaster1, 1.0,2,4294967296,720);

See Also