FunctionMLCNVConECAT

Description

This function will connect the output of a pipe convertor block to an EtherCATClosedEtherCAT 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 Output (Rx) PDO object. The output value of the convertor block will then be written to the PDO object every update of the convertor block. The pipe block is specified by the BlockID input and the PDO object is specified by the DeviceAddr, Index, and SubIndex inputs.

Arguments

Input

BlockID Description The convertor block whose output value will be written to the PDO object. For example: PipeNetwork:CNV1
  Data type DINT
  Range N/A
  Unit N/A
  Default
DeviceAddr Description The device address of the PDO object to be written. EtherCAT devices are numbered in order with the first device being 1001, the second 1002, etc.
  Data type INT
  Range N/A
  Unit N/A
  Default
Index Description 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.)
  Data type UINT
  Range N/A
  Unit N/A
  Default
SubIndex Description 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.)
  Data type USINT
  Range N/A
  Unit N/A
  Default

Output

Default (.Q)

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

See more details here.

  Data type BOOL
  Unit N/A

Related Functions

MLCNVDisconnect

MLCNVInit

Example

Structured Text

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

Ladder Diagram

Function Block Diagram

Go back to the top of the page [Top]