MLCNVConECAT

 FunctionClosed 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 convertor block to an EtherCATClosed Ethernet ofr Control Automation Technology. EtherCAT® is an open, high-performance Ethernet-based fieldbus system. The development goal of EtherCAT is 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. Output (Rx) PDOClosed 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. object.

Inputs

Input

Data Type

Range

Unit

Default

Description

BlockID

DINT

No range

N/A

No default

The convertor block whose output value is written to the PDO object.

Example: PipeNetwork:CNV1.

DeviceAddr

INT

No range

N/A

No default

The device address of the PDO object to be written.

  • EtherCAT devices are numbered in order.
  • The first device is 1001, the second 1002, etc.

IndexClosed Zero pulse (zero signal) of a hardware pin such as digital input or feedback pin.

UINT

No range

N/A

No default

The index of the PDO object to be written.

  • The index can be determined from the table located in the PDO Selection/Mapping tab of the EtherCAT device page.
    • In Project Explorer, under EtherCAT, select the device, then select the PDO Selection/Mapping tab.

SubIndex

USINT

No range

N/A

No default

The sub-index of the PDO object to be written.

  • The sub-index can be determined from the table located in the PDO Selection/Mapping tab of the EtherCAT device page.
    • In Project Explorer, under EtherCAT, select the device, then select the PDO Selection/Mapping tab.

Outputs

Output

Data Type

Range

Unit

Description

Default (.Q)

BOOL

FALSE, TRUE

N/A

Returns TRUE if this function has successfully connected the output of the pipe convertor block to the EtherCAT Output (Rx) PDO Object.

See Pipe Network - General Rules.

Remarks

  • The output value of the convertor block is written to the PDO object every update of the convertor block.
  • The pipe block is specified by the BlockID input.
  • The PDO object is specified by the DeviceAddr, Index, and SubIndex inputs.

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

//Connect a converter Pipe Block named “CNV2”  to PDO 16#60B2 (Accel FF) on ECAT address 1002.
MLCNVConECAT( PipeNetwork.CNV2, 1002, 16#60B2, 0 );

See Also