beautypg.com

Function command, A.1.6 function command – Delta RMC101 User Manual

Page 659

background image

Appendix A: Command Reference

A-7

If this bit is 0, then the source and destination registers are sign extended the same way as
the constant.

Bit 0

Constant Sign Extension. If this bit is 0, then the constant in the Speed field is signed.
Otherwise, this constant is unsigned.

Tip:

To simplify computing and entering the Mode value, use the pop-up editor. First enter

the command so that RMCWin knows which Mode dialog box to display. Then either
double-click the mode value or press ENTER when the cursor is in the Mode field. You will
then be able to select the options you want, and the Mode will be computed for you.

Acceleration:

Reserved (must be 0)

Deceleration:

Source Address. This is an address (see above) of the register to start with. The register's value can
be signed, unsigned, or a position value depending on Mode bits 0-1.

Speed:

This is a constant value that is added to the register specified by the Deceleration field. This constant
can be signed or unsigned as determined by Mode bit 0.

Command Value:

Destination Address. This is an address (see above) of the register to store the result in. Before the
result is stored, it is checked if it falls in the range selected by Mode bits 0-1 (signed, unsigned, or a
position value). If the result does not fall within this range, then an internal error bit is set, which can
be tested with the MathOK (0x12) and MathERR (0x13) link types.

Command:

+ (43 decimal, 0x2B hexadecimal)

Although this command is limited to adding a constant to an RMC register, it is possible to add
one register to another using two of these commands in a row. The first event step would use
either an Add or Subtract command with a 0 in the Speed command field to essentially move a
field from the original RMC register into the Speed command field of the next event step. The
next event step would then perform a "constant" Add command, but because this constant had
just been set to another register value, the Add command effectively adds one register to another.


See also: Subtract Command, MulDiv Command

A.1.6 Function Command

Character: ,
Decimal: 44
Hexadecimal: 0x2C
Command Value: Destination Step (0-255)

Note:

This command is supported in RMC100 CPU firmware dated 20010402 or newer.

This manual is related to the following products: