User Tools

Site Tools


commands:rdsbyte

This is an old revision of the document!


Command:RDSBYTE (RB)

MS2000 or RM2000 syntax
Shortcut RB
Format RDSBYTE [axis] = [status_byte]…
Tiger syntax
Shortcut RB
Format RDSBYTE [axis] = [status_byte]…
Type Axis-Specific

Requests the TG-1000 and MS-2000 to respond with the Status Byte.

Status Byte Format

76543210 → bit position (0 is LSB)
00001010 → bit pattern for hex 0x0A
MSB::LSB → most significant bit - least significant bit

The number is one byte, which can be broken down into 8 bits that represent the following internal flags:

Bit 00 = No commanded move is in progress.
1 = A commanded move is in progress.
This bit is synonymous with the STATUS command. If the bit is set, then STATUS returns B, otherwise STATUS returns N.
Bit 10 = The axis is disabled.
1 = The axis is enabled.
Axes can be re-enabled using one of the following:
High Level command MC <axis>+, cycles the clutch switch for the Z-axis, Low Level Start Motor command (hex 47), or a system reset.
Bit 20 = Motor is inactive (off)
1 = Motor is active (on).
Bit 30 = Joystick/Knob disabled
1 = Joystick/Knob enabled
Bit 40 = Motor not ramping
1 = Motor ramping
Bit 50 = Ramping down
1 = Ramping up
Bit 6Upper Limit Switch:
0 = Open
1 = Closed
Bit 7Lower Limit Switch:
0 = Open
1 = Closed
Reply

:<byte as hexadecimal>

MS-2000 Example
RB X
:<0x8A>
RB X Y
:<0x8A><0x0A>
RB X Y Z
:<0x8A><0x0A><0x0A>
TG-1000 Example
1RB X Y
:<0x8A><0x0A>


The X-axis example value of 0x8A means the following:
Bit7: 1 - X Axis is at its lower limit
Bit6: 0 - X Axis upper limit switch open
Bit5: 0 - Ramping down, if ramping
Bit4: 0 - Motor not ramping
Bit3: 1 - Joystick/Knob is enabled
Bit2: 0 - Motor power is off
Bit1: 1 - X Axis is enabled
Bit0: 0 - No commanded move is in progress

Note: Motor power can be on while a commanded move is not in progress and the stage appears not to be moving. This happens when the motor is either making a final adjustment to a commanded move or when it is applying a force to maintain the stage position.

Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181
commands/rdsbyte.1718737738.txt.gz · Last modified: by brandon