Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
SYPT PRO User Guide / SYPT PRO User Guide.doc
Скачиваний:
244
Добавлен:
03.03.2016
Размер:
17.32 Mб
Скачать

ApcSetFeedbackPosition

This command sets the user reference source position. This user reference position is used when reference source selector is set to 4, set by the command APCSetReferenceSource(4).

Arguments

Turns%

The number of turns.

Pos%

Coarse position in encoder counts. The lower 16-bits of the value are treated as a signed 16-bit value. Bits 16 to 31 are ignored.

Pos%

Fine position in encoder counts. The lower 16-bits of the value are treated as a signed 16-bit value. Bits 16 to 31 are ignored.

Return Values

Status%

Value

Meaning

0

The operation failed.

1

The operation succeeded.

-3

Another process is modifying the reference source.

Target/ Language Restrictions

This operation is only available on SM-Applications and SM-Applications Lite.

See Also (Reference and Feedback Encoder)

  • APCSetReferenceSource

  • APCSetFeedbackSource

  • APCSetNumOfTurnsBits

  • APCEnableRefSourceMarker

  • APCDisableRefSourceMarker

  • APCEnableFbckSourceMarker

  • APCDisableFbckSourceMarker

  • APCResetRefSourceMarkerFlag

  • APCResetFbckSourceMarkerFlag

  • APCResetRefSourceFreezeFlag

  • APCResetFbckSourceFreezeFlag

  • APCInvertRefSource

  • APCDoNotInvertRefSource

  • APCInvertFbckSource

  • APCDoNotInvertFbckSource

  • APCSetReferencePosition

  • APCGetReferenceStatus

  • APCGetFeedbackStatus

The Advanced Position Controller information given in this help file should only be used as a quick reference guide. For further information please refer to the Advanced Position Controller User Guide which is available via the DPL Editor's Help menu.

________________________________________________________________________________

ApcGetReferenceStatus

This command retrieves the current selected reference source, set by the command APCSetReferenceSource(Source%) and will put the source number into a user variable; in this case Source%.

Return Values

Source%

Value

Meaning

0

Drive

1

Slot 1

2

Slot 2

3

Slot 3

4

User Program

5

Unconfigured

Status%

Value

Meaning

1

The operation succeeded.

-3

Another process is modifying the reference source.

Target/ Language Restrictions

This operation is only available on SM-Applications and SM-Applications Lite.

See Also (Reference and Feedback Encoder)

  • APCSetReferenceSource

  • APCSetFeedbackSource

  • APCSetNumOfTurnsBits

  • APCEnableRefSourceMarker

  • APCDisableRefSourceMarker

  • APCEnableFbckSourceMarker

  • APCDisableFbckSourceMarker

  • APCResetRefSourceMarkerFlag

  • APCResetFbckSourceMarkerFlag

  • APCResetRefSourceFreezeFlag

  • APCResetFbckSourceFreezeFlag

  • APCInvertRefSource

  • APCDoNotInvertRefSource

  • APCInvertFbckSource

  • APCDoNotInvertFbckSource

  • APCSetReferencePosition

  • APCSetFeedbackPosition

  • APCGetFeedbackStatus

The Advanced Position Controller information given in this help file should only be used as a quick reference guide. For further information please refer to the Advanced Position Controller User Guide which is available via the DPL Editor's Help menu.

________________________________________________________________________________