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]