Initialize and Start a Pipe Network

To start a Pipe Network in an IEC 61131-3 application program, these steps must be performed with their respective functions:

Step

ML function blocks

Description

1. Motion Init

MLMotionInit

  1. Initialization of the Motion is done with this dedicated function.
  2. Set the Motion engine update rate.
  3. Wait for acknowledgment:
    MLMotionStatus() = MLSTATUS_INITIALISED to continue program operation.

2. Create Cam Profiles

Profiles(MLPR_CREATE_PROFILES);

Create Cam Profiles from cam files.

3. Create Pipe Network

PipeNetwork(MLPN_CREATE_OBJECTS);

 

4. Motion Start

MLMotionStart

  1. Starts the motion engine, motion bus driver, and initializes EtherCATClosed ***EtherCAT is an open, high-performance Ethernet-based fieldbus system. The development goal of EtherCAT was to apply Ethernet to automation applications which require short data update times (also called cycle times) with low communication jitter (for synchronization purposes) and low hardware costs network to operational mode.
  2. Waits for acknowledgment:
    MLMotionStatus() = MLSTATUS_RUNNING to continue program operation.

5. Power on all axes

PipeNetwork(MLPN_POWER_ON);

 

6. Activate the pipes

PipeNetwork(MLPN_ACTIVATE);

 

7. Connect the axes to the pipes

PipeNetwork(MLPN_CONNECT);

For example: in the following Pipe Network this function connects the Converter blocks (CNV1, CNV2 and CNV3) to the Axis blocks

See Motion Library for more information about all ML function blocks related to motion