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

Modexfer

This function block enables the mode to be changed on Unidrive or Unidrive SP.

Note:

If the mode change is successful, the drive and option modules will be reset causing the DPL program to restart. Also, the drive parameters will be restored to defaults when the mode change occurs.

Arguments

Mode%.

Value

Meaning

0

Open Loop

1

Closed Loop Vector

2

Servo

3

Regen

Return Values

Q%.

Value

Meaning

0

Mode change failed.

1

Mode already selected.

Target/ Language Restrictions

Not supported on Mentor.

See Also

  • CMODEXFER

________________________________________________________________________________

MOVE

This block assigns its input to its output.

Example

The above example will set parameter #18.11 to 100 when parameter #18.31 is set to 1.

Target/ Language Restrictions

This block is only available for use in the QLD and LD/ FB editors.

________________________________________________________________________________

Mpot - Motorised Pot

MPOT is a ramp generator used to decrement or increment a value within a limited area.

Arguments

PSet% - 32-bit signed

The Preset value to be applied to the output when PEn% is set.

PEn%

If set to 1, Q% is set to the value of PSet%. If cleared to 0, the output ramps (depending on the values of Dec% and Inc%).

Dec%

If set to 1 and both PEn% and Inc% are clear, Q% decrements.

Inc%

If set to 1 and both PEn% and Dec% are clear, Q% increments.

Rate%

The required ramp rate in units per second. this value is scaled by 3 decimal places, i.e. 1000 = 1.000.

Max%

The high limit for the ramp output.

Min%

The low limit for the ramp output.

Return Values

Q%

The ramp output.

See Also

  • RAMP

  • SRAMP

  • SSRAMP

  • SLEW

________________________________________________________________________________

MULDIV

This is a mathematical function which multiples two 32-bit values to get a 64-bit intermediate result and then divides the intermediate by a 32-bit value to get a final result.

Arguments

M1%, M2%

The values to be multiplied.

DIV%

The value by which (M1% * M2%) is to be divided.

Return Values

Q%

The result.

Example

Target/ Language Restrictions

None.

See Also

  • MULDIVRM

________________________________________________________________________________

Muldivrm

This is a mathematical function which multiples two 32-bit values to get a 64-bit intermediate result and then divides the intermediate by a 32-bit value to get a final result and remainder.

Arguments

M1%, M2%

The values to be multiplied.

DIV%

The value by which (M1% * M2%) is to be divided.

Return Values

Quot%

The result of (M1% * M2%) / DIV%.

Rem%

The remainder of (M1% * M2%) / DIV%.

Example

Target/ Language Restrictions

None.

See Also

  • MULDIV

________________________________________________________________________________

IMux / fMux / iMux2 / fMux2 / iMux8 - Multiplexers

This is a family of function blocks which multiplex one of a set of inputs into a single output. A number of multiplexer blocks are supplied which accept different numbers of inputs and integer or floating-point inputs.

Arguments

IN0% to IN7%, IN0 to IN7

The values to be multiplexed.

Select%

The input selected to be set in the output - 0 selects input 0, 1 input 1 etc. If the Select% value is out of range, the output is cleared to 0.

Return Values

Q/ Q%

The value of the selected input OR 0 if the Select% input value is out of range (< 0 or > number of inputs - 1).

Example

Target/ Language Restrictions

None.

See Also

  • iDMUX / fMUX / iDMUX8

________________________________________________________________________________