MLCNVConnectEx
Description
Connect a converter Pipe Block to the specified axis. This function connects the output of a pipe to an axis data other than the control position. With this function, several converter Pipe Blocks can connect to the same axis and acts on different data.
Normally a Converter block sends position values to an Axis. However, some cases exist that require additional information such as torque Torque is the tendency of a force to rotate an object about an axis. Just as a force is a push or a pull, a torque can be thought of as a twist feed-forward This describes an element or pathway within a control system which passes a controlling signal from a source in the control system's external environment, often a command signal from an external operator, to a load elsewhere in its external environment (IDN 3056) that needs to be provided by a second converter.
-
-
This FB does not work when you choose to simulate the device. In such a case, the FB continuously generates error messages displayed in the Controller log window.
-
-
Need to add 16#8000 to desired IDN number for ValueID input. 8000 in hexadecimal signals a vendor-specific IDN value.
Arguments
Input
BlockID | Description | ID number of an initiated Converter object |
Data type | DINT | |
Range | [-2147483648, 2147483648] | |
Unit | N/A | |
Default | — | |
AxisID | Description | ID number of an initiated Axis object |
Data type | DINT | |
Range | [-2147483648, 2147483648] | |
Unit | N/A | |
Default | — | |
ValueID | Description |
Specify the following constant:
If the Analog Output is mapped to a PLC "Programmable Logic Controller" A Programmable Logic Controller, PLC, or Programmable Controller is a digital computer used for automation of industrial processes, such as control of machinery on factory assembly lines. Used to synchronize the flow of inputs from (physical) sensors and events with the flow of outputs to actuators and events variable, the connection to the analog output by EC_ANALOG_OUTPUT will not work as the output value will be overwritten by the PLC mapped variable data. In order to function properly the AOUT.MODE must be set to “User Mode (mode = 0)". See the TIP below for more information. |
Data type | DINT | |
Range | [-2147483648, 2147483648] | |
Unit | N/A | |
Default | — | |
ValueInfo | Description |
This value is ignored and must be set to zero |
Data type | DINT | |
Range | [-2147483648, 2147483648] | |
Unit | N/A | |
Default | — |
-
-
The PDO PDO is a type of protocol frame used in some fieldbuses. A PDO contains one or more object dictionary entries, which define the application data transferred between devices. values will be overwritten by Mapped PLC variables including a possible link to the mapping of variables or the section on MLParamWrite() warning indicating that the function block write of Analog output will be overwritten by the MLCnvConnectEx function.
- A PLC variable mapped to Analog Output takes precedence In arithmetic and algebra, when a number or expression is both preceded and followed by a binary operation, a rule is required for which operation should be applied first. From the earliest use of mathematical notation, multiplication took precedence over addition, whichever side of a number it appeared on. Thus 3 + 4 × 5 = 5 × 4 + 3 = 23. To change the order of operations, we use parentheses (). Thus, if we want to force addition to precede multiplication, we write (3 + 4) × 5 = 35.
- If MLCNVConnect assigns a Pipe output to Analog Output it will take precedence over a DriveParamWrite function call.
- DriveParamWrite will modify the Analog Output but get overwritten by the higher precedent options if they are present.
Output
Default (.Q) |
Description | Returns TRUE if the converter is connected to the Axis object See more details here. |
Data type | BOOL | |
Unit | N/A |
Return Type
BOOL
Related Functions
Example
Structured Text
//Connect a converter Pipe Block named “CNV1” to the pipe block named AXIS1, And send feed-forward (EC_ADDITIVE_TORQUE_VALUE) to the drive
MLCNVConnectEx( PipeNetwork.CNV1, PipeNetwork.AXIS1, EC_ADDITIVE_TORQUE_VALUE, 0 );
Ladder Diagram
Function Block Diagram