MLDerWriteInModPos

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. - Sets the Input ModuloPosition of the Derivator block.

Inputs

Input

Data Type

Range

Unit

Default

Description

ID

DINT

-2147483648 to 2147483647

N/A

No default

ID number of an initiated Derivator object.

ModuloPosition

LREAL

No range

User units

No default

Designated new value of Input ModuloPosition of the selected Derivator object.

Outputs

Output

Data Type

Range

Unit

Description

Default (.Q)

BOOL

 

 

Returns TRUE if the Input ModuloPosition value is changed.

See Pipe Network - General Rules.

Remarks

Input ModuloPosition is defined to manage the periodicityClosed 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. (modulo) of the input values.

Example

If the input value increases each millisecond by one degree then the output value is 1000 degrees per second.

Suddenly, the input value skips from 359 to 0 (zero).

  • Input ModuloPosition = 360, the output continues to indicate 1000 degrees per second.
    • This indicates that rollover into the next period has been properly handled
  • Input ModuloPosition = 1000, the output then indicates 359,000 degrees per second.
    • This indicates that the input has incorrectly interpreted roll-over as a 359 degree move in one millisecond.

Figure 1: MLDerWriteInModPos


  • The first calculation of a Derivator Pipe Block just after the pipe installation indicates 0 (zero) regardless of the initial input value.

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

//change the input MODULO_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. of a Derivator object to 720 
MLDerWriteInModPos ( PipeNetwork.MyDerivator, 720 );

See Also