FC_SercosScanConfiguration - General Information

Overview

Type:

Function

Available as of:

SystemInterface_1.36.0.0

Task

Get a list of the devices, even not configured, which are connected to the Sercos bus on a PacDrive 3 controller.

Description

The Sercos bus is scanned by this function automatically.

If the Sercos bus is in a phase below 2, then the function switches to phase 2.

In phase 2, the Sercos bus is scanned. When the Sercos bus is scanned, it is put back to the initial phase.

If the Sercos bus is in phase 2 or greater the scanned devices are returned.

The phase of the Sercos bus is not changed by the function.

The scanned devices are returned in a Structure.

Interface

Input/Output

Data type

Description

iq_stSercosConfiguration

ST_SercosConfiguration

Structure which gets configuration on Sercos bus.

NOTE: The structure iq_stSercosConfiguration is only filled with correct values if the return value is 0.

If the function is not executed successfully, the content of the return structure is not modified.

Return Value

Data type

Description

DINT

0: OK

-1: Error detected

-2: Sercos bus cannot reach phase 2