MLCNVConnectEx
Function - Connects the output of a pipe to an axis data other than the control position.
- This function:
- Connects an extra converter Pipe Block to the specified axis.
- Connects several converter Pipe Blocks to the same axis and acts on different data.
- Normally a Converter block sends position values to an Axis.
- The PDO values are overwritten by Mapped PLC variables including either:
- A possible link to the mapping of variables.
- The section on MLParamWrite() warning indicating that the function block write of Analog output is overwritten by the MLCnvConnectEx function.
-
-
- This function or function block returns cached data.
- See Program a Multi-Core Controller.
-
-
- This FB does NOT work if you have Simulated the device.
- In this instance, the FB continuously generates error messages in the Controller log window.
-
-
Add 16#8000 to the designated IDN number for ValueID input. 8000 in hexadecimal signals a vendor-specific IDN value.
Precedence Rules
- A PLC variable mapped to Analog Output takes precedence.
- If MLCNVConnect assigns a Pipe output to an Analog Output, it takes precedence over a DriveParamWrite function call.
- DriveParamWrite modifies the Analog Output but is overwritten by the higher precedent options if they are present.
Inputs
|
Input |
Data Type See Data Types. |
Range |
Unit |
Default |
Description |
|---|---|---|---|---|---|
|
BlockID |
DINT |
1 to 1024 |
N/A |
No default |
ID number of an initiated Converter object. |
|
AxisID |
DINT |
1 to 256 |
N/A |
No default |
ID number of an initiated Axis object. |
|
ValueID |
DINT |
Enumerated |
N/A |
No default |
Specify this constant:
|
|
ValueInfo |
DINT |
-2147483648 to 2147483647 |
N/A |
No default |
|
Outputs
|
Output |
Data Type See Data Types. |
Range |
Unit |
Description |
|---|---|---|---|---|
|
Default (.Q) |
BOOL |
FALSE, TRUE |
N/A |
|
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
//Connect a converter block named "CNV1" to the AXIS1 block.
//Send feed-forward (EC_ADDITIVE_TORQUE_VALUE) to the drive.
MLCNVConnectEx( PipeNetwork.CNV1, PipeNetwork.AXIS1, EC_ADDITIVE_TORQUE_VALUE, 0 );
See Also







