MLCNVConnect

 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. - Connects a converter Pipe Block to the specified axis.

Inputs

Input

Data Type

Range

Unit

Default

Description

BlockID

DINT

-2147483648 to 2147483647

N/A

No default

ID number of an initiated Converter object.

AxisID

DINT

-2147483648 to 2147483647

N/A

No default

ID number of an initiated Axis object.

Outputs

Output

Data Type

Range

Unit

Description

Default (.Q)

BOOL

 

 

Returns TRUE if the converter is connected to the Axis object.

See Pipe Network - General Rules for more information.

Remarks

  • When using the Pipe Network for coordinated motion, Pipe Blocks have to be Activated, Connected, and then Powered On before move commands work.
  • The Converter block changes the incoming flow of values to continuous position output with no periodicity.
    • If a converter block is not connected to an Axis, it does not send position output values to its assigned Axis.
    • Every pipe branch must end in a converter, whether or not it is connected to a destination Axis object.

MLCNVConnect

Figure 6-179: MLCNVConnect



  • All converters in the Pipe Network can be connected at once with the command Pipe Network(MLPN_Connect).
    This calls automatically generated code with MLCNVConnect commands for each Converter block.
    In a multi-axis program only one command can be used to connect Pipe Blocks instead of writing code for each Axis separately.


  • The converter block has the ability to control the analog output on the AKD.

FBD Language Example

MLCNVConnect: FBD example

FFLD Language Example

MLCNVConnect: LD example

IL Language Example

Not available.

ST Language Example

//Connect a converter Pipe Block named “CNV1”  to Pipe Block AXIS1
MLCNVConnect( PipeNetwork.CNV1, AXIS1 );

See Also