FunctionMLCNVConnectEx

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 torqueClosedTorque 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-forwardClosedThis 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 PLCClosed"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

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

MLCNVConnect

MLCNVDisconnect

MLCNVInit

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

MLCNVConnectEx LD Figure

 

Function Block Diagram

MLCNVConnectEx FBD Figure

Go back to the top of the page [Top]