Subtract command, A.1.7 subtract command – Delta RMC101 User Manual
Page 661
Appendix A: Command Reference
A-9
The binary value 00110011must be converted to hexadecimal or decimal so it can be put into the
speed parameter. This binary value converts to the hexadecimal value 0x0033 or the decimal
value 51.
Tip:
The Windows calculator is an easy way to convert from binary to decimal or hexadecimal. To
open, click the Start button, point to Programs, then Accessories, and click Caculator. On the
View menu click Scientific. Click Bin, enter the binary value, then click Hex or Dec to show the
converted value.
A.1.7 Subtract Command
Character: -
Decimal: 45
Hexadecimal: 0x2D
Command Value: Destination Address (80-2303)
Note:
This command is supported in RMC100 CPU firmware dated 20010402 or newer.
Note:
This command should only be used in the Event Step table. It is usually not useful to issue
this command directly from the PLC.
This command allows the user to subtract a constant value from a memory location in the RMC
and store the result in another memory location in the RMC. The memory locations available for
the source of this operation include any Status, Command, Parameter, or Event Step register.
The memory locations available for the destination of this operation include any Command,
Parameter, or Event Step register.
The addresses of the source and destination registers match the addresses shown in the RMC
Register Map (PROFIBUS-DP Message Mode) topic, except that only addresses 0-2303 are
usable by this command.
Tip:
Use the Address Tool to greatly simplify entering addresses for this and other commands that use
addresses. See Address Tool for details.
This command uses the command fields as follows:
Mode
: The Mode field controls how the 16-bit source, destination, and constant values are sign-
extended. Its bits are defined as follows:
Bits 7-15
Reserved. Must be 0.
Bits 4-6
Position Range Axis. These bits are used only if bit 1 (Register Sign Extension) is set. They
then determine which axis's position range is used for the source and destination registers.
Bits 2-3
Reserved. Must be 0.
Bit 1
Register Sign Extension. If this bit is 1, then the source and destination registers are sign
extended to fit the position range for the axis selected by Mode bits 4-6.