MLCNVConnectEx
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. - Connects the output of a pipe to an axis data other than the control position 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..
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. |
ValueID |
DINT |
-2147483648 to 2147483647 |
N/A |
No default |
Specify this constant:
|
ValueInfo |
DINT |
-2147483648 to 2147483647 |
N/A |
No default |
This value is ignored. It must be set to 0 (zero). |
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
Default (.Q) |
BOOL |
FALSE, TRUE |
N/A |
Returns TRUE if the converter is connected to the Axis object. |
Remarks
-
-
This function or function block A function block groups an algorithm and a set of private data. It has inputs and outputs. returns cached data.
See Program a Multi-Core Controller.
- 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.
-
-
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.
- The PDO Process Data Opjects - 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 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.
Precedence Rules
- 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. Example: 3 + 4 × 5 = 5 × 4 + 3 = 23. To change the order of operations, we use parentheses (). Example: To force addition to precede multiplication, we write (3 + 4) × 5 = 35..
- 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.
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
//Connect a converter Pipe Block named “CNV1” to the pipe block named AXIS1, And send feed-forward (EC_ADDITIVE_TORQUE_VALUE) to the drive In electrical engineering, a drive is an electronic device to provide power to a motor or servo. Control device for regulating the speed, torque and position of a motor. A unit controlling a motor using the current and timing in its coils.
MLCNVConnectEx( PipeNetwork.CNV1, PipeNetwork.AXIS1, EC_ADDITIVE_TORQUE_VALUE, 0 );
See Also