MLCNVConECAT

 Function - Connects the output of a pipe convertor block to an EtherCAT Output (Rx) PDO 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.

Index

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 Function - 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