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

SetConverterDenominator

This function sets the denominator value for use in the user-defined unit converter blocks

Arguments

Denominator%

Converter denominator

See Also

  • ConvertBackwards

  • ConvertForwards

  • SetConverterNumerator

________________________________________________________________________________

SetConverterNumerator

This function sets the numerator value for use in the user-defined unit converter blocks

Arguments

Numerator%

Converter numerator

See Also

  • ConvertBackwards

  • ConvertForwards

  • SetConverterDenominator

________________________________________________________________________________

SetCtnSync

This function allows dynamic altering of the CTNet sync telegram generation on the fly, WITHOUT having to reset the option module.

This function is most useful in redundant master systems. With CTNet there is one node that is made the network master. This node generates a sync telegram message, on a fixed time-base, that is used to schedule the transmission of cyclic data. If this master node should go off-line for some reason, all cyclic data is stopped - this can be quite undesirable. Therefore it is common practice in critical systems to have redundant masters that can take over the roll of network master should the exiting master fail for some reason.

This command makes it easier to implement redundant masters. The default sync. rate is configured in parameter #20.03 (Unidrive), #11.02 (Mentor) or #81.25 (SM-Applications). However these parameters are only read on power-up and reset. This function block gives the ability to change the sync rate immediately, without having to perform a reset.

Note: Only ONE node should ever be configured as master on the network. The special register NOFDUPSYNCS or the CTNetDiagnostics function block can be used in a DPL program to determine if there is more than one master.

Arguments

Rate%

The new rates to set. The format is SSSFF. FF (0-99) is the fast data rate in milliseconds. SSS (0-250) is the slow data rate as a multiple of the fast data rate, e.g. 5 means that the slow rate is a fifth of the fast rate.

Return Values

Q%

The actual rate set. The only time this will differ to the requested rate is if an illegal rate was asked for (e.g. a value of 1 for slow is illegal and will be changed to 0).

Example

Target/ Language Restrictions

This function is only available on CTNet-capable node SM-Applications, UD75 and MD29AN.

See Also

  • EDITFASTLINK/EDITSLOWLINK - CTNet Cyclic Link Editing

  • CTNETDiagnostics

________________________________________________________________________________

SetRamLength

This allows the user to set the length of the data in the RAM file. The length input is the length in longwords (DPL INT size). The length will be clipped to the maximum possible for the associated array.

Arguments

FNum% - 4 to 15

The RAM file for which the length is to be set. If a non RAM file ID is specified, i.e. a value not in the range 4 to 15, the drive will be tripped (trip 67).

Len%

The length of data in the RAM file in longwords.

Target/ Language Restrictions

Only available on SM-Applications and SM-Applications Lite.

See Also

  • AssRAM

  • UnAssRAM

  • RAMLength

________________________________________________________________________________

SetUPR

This command assigns the number of user Units Per Revolution, for use in all conversion to and from user units with the embedded APC converter.

Arguments

UPR%

The number of user units per revolution.

Return Values

Status%

Value

Meaning

0

The operation failed.

1

The operation succeeded.

Target/ Language Restrictions

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

See Also (APC Converstion Functions)

  • GetUPR

  • UserToAPCPosition

  • APCToUserPosition

  • UserToAPCVelocity

  • APCToUserVelocity

  • UserToAPCAcceleration

  • APCToUserAcceleration

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.