MLCNVInit
Function 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 converter Pipe Block.
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
BlockID |
DINT |
-2147483648 to 2147483647 |
N/A |
No default |
ID number of a created Pipe Block. |
Mode |
DINT |
1, 2 |
N/A |
No default |
Determines the type of input to the Converter Object.
|
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
Default (.Q) |
BOOL |
FALSE, TRUE |
N/A |
Returns TRUE if the Convertor Pipe Block is initialized. |
Remarks
- MLCNVInit is automatically called if a Convertor Block is added to the Pipe Network, with the input mode (position or speed) entered in the Pipe Blocks Properties screen.
- The Converter block changes the incoming flow of speed or position values to continuous position output with no periodicity 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..
-
-
Converter objects are normally created in the Pipe Network using the graphical engine.
You do not have to add MLCNVInit function blocks A function block groups an algorithm and a set of private data. It has inputs and outputs. to their programs The act of performing a sequence of instructions or commands..
Parameters are entered directly The orientation components of a vector in space. in pop-up windows and the code is then automatically added to the current project.
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
// Initiate a created convertor block named “CNV1”
CNV1 := MLBlkCreate( 'CNV1', 'CONVERTOR' );
MLCNVInit( CNV1, 1 );
See Also