MLMstAbs

Pipe Network motion icon

 Function - Performs a move to an absolute position.

Inputs

Input

Data Type

Range

Unit

Default

Description

BlockID

DINT

-2147483648 to 2147483647

N/A

No default

ID name of the Master Block.

Position

LREAL

No range

User units

No default

Sets the value of the absolute destination position.

Outputs

Output

Data Type

Range

Unit

Description

Default (.Q)

BOOL

FALSE, TRUE

N/A

Returns TRUE when the function successfully executes.

See Function - General Rules.

Remarks

See MLMstAbs for more information.


  • Perform one of these actions to prevent undesired axis movement if modulo is turned on:

    • Verify the Position value is within the modulo range.
    • If the Position value is outside of the modulo range, call MLMstAbs function only once.
      See the TIP for an example of how to do this.

  • To reduce the load on the CPU, call MLMstAbs only once for each move.
    This is achieved by adding a control variable, shown here:

              // Master: modulo is on and modulo range is 0 - 360 with rollover at 360
              
    If Not MoveStarted Then
         Position := 500;
         MLMstAbs( PipeNetwork.MASTER, Position);
         MovesStarted := TRUE;
    End_if;

Position with Modulo On

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

//Make an absolute positon move with a Master block called “MASTER” to position 1000.0
MLMstAbs( PipeNetwork.MASTER, 1000.0 );

See Also