MLMstAbs

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. - Performs a move to an absolute 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..

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

 

 

Returns TRUE when the function successfully executes.

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