Icon of NXTMMX block

NXTMMX Block


This block interfaces with NXTMMX from mindsensors.com

Display Settings

NXTMMX Block
  1. This shows the chosen I2C address for NXTMMX, and the chosen Port to which this device should be connected.
  2. This shows primary operation or direction of motor rotation.
  3. Shows amount of power supplied to motors.
  4. This shows the Duration setting being Unlimited, Degrees, Rotations, Seconds, or to Encoder Position.

Configuring the NXTMMX Block

Panel1
  1. The NXT’s port to connect Device.
  2. The I2C address of the Device.  The factory default address is 0x06. Choose appropriate value if you have specifically changed the address.
  3. Select the operation to perform on your NXTMMX.
  4. Select the motor(s) to perform the operation on.
  5. Select the direction of your motors rotation (or stop).
  6. Enabling Power Ramping will result in gradually increasing power to your motors (or gradually decreasing power while stopping).
  7. Select the amount of power applied to your motor.
  8. Select the duration property of your motor's rotation.
  9. based on the selected duration property, specify the numeric value for duration.
  10. When 'Wait for Completion' is selected, this block will wait until specified operation is finished, before moving on to next block.
    If you de-select 'Wait for Completion', other blocks after this block can proceed execution while this block continues it's operation.
  11. Select to Brake the motors or Coast the motors at the end of the operation. 
    'Brake the Motors' applies brakes while stopping, thereby hold the position where it stops.
    Where as 'Coast the Motors' will permit the motors to turn freely upon stopping.

NXTMMX Block's Data Hub Plugs

Hub
  1. The motors to operate on. Supply values as follows:
    • 0: for Motor M1
    • 1: for Motor M2
    • 2: To operate on Both Motors at once.
  2. Amount of power applied to your motors, value ranging from 0 to 100.
  3. Direction of rotation of your motors. Supply values as follows:
    • 0: Forward
    • 1: Reverse
    • 2: Stop.
  4. For the Duration property chosen on the Block Panel, you can specify numeric value here. (Does not apply for Unlimited).
  5. Next Action upon completionof current operation, supply values as follows:
    • 0: Coast the Motors
    • 1: Brake the Motors.
  6. Wait for Completion - True indicates the block should wait, where as False will not wait.
  7. Power Ramp. Specifi values as follows:
    • 0: Disable Power Ramping
    • 1: Enable Power Ramping.
  8. Encoder Value of Motor 1, this output plug has value only when selected operation on Block Panel is 'Read Encoders'.
  9. Encoder Value of Motor 2, this output plug has value only when selected operation on Block Panel is 'Read Encoders'.
  10. Supply voltage of the NXTMMX, this output plug has value only when selected operation on Block Panel is 'Read Voltage'.

For further information, please refer to User Guide.