Icon of block

Multiple IIC Read Block

This block reads from Register ? of an IIC sensor connected to port ? at Address ? and ? Rx byte's numbers of bytes forward. Enter Address, Register and Rx byte's values in decimal form. All Outputs is in decimal.

You must drag at least one output data wire from this block’s data hub to another block for any information to be sent.

The individual IIC data are available within the data hubes.

Display Settings

  1. The number shows which of your NXT’s ports are connected to the IIC sensor. You can change this number in the configuration panel if you need to.
  2. The number (Left top with the 'A') shows the address this block reads from. You can change this number in the configuration panel at 'Address' field.
  3. The number (Left middel the 'R') shows the Register this block reads from. You can change this number in the configuration panel at 'Reg' field. Some IIC sensors have only one register. In this case you need to turn off writing the Reg value so Value is readed from the only register. Uncheck the WriteReg field to turn off Reg. The number (Left bottom with the 'R') will appear grayed out.
  4. The number (Left bottom) shows the number of byte's that will be read from the IIC sensor.

Multiple IIC Read block Data Hub plugs

  1. This plug wires the number for which of your NXT’s ports are connected to the IIC device. 

  2. This plug wires the address of the IIC device to read. (0 - 127)
  3. This plug wires the Register to read from the IIC device.
  4. This plug wires the WriteReg Booleen.
  5. This plug outputs the Error Booleen of the IIC bus.
  6. This plug outputs the Status 'CommLSCheckStatus' codes of the IIC bus. (0 = OK, -35 = Comm Bus Error)
  7. This plug outputs the RawValue from the IIC device.
  8. This plug outputs the RawValue1 from the IIC device.
  9. This plug outputs the RawValue2 from the IIC device.
  10. This plug outputs the RawValue3 from the IIC device.
  11. This plug outputs the RawValue4 from the IIC device.
  12. This plug outputs the RawValue5 from the IIC device.
  13. This plug outputs the RawValue6 from the IIC device.
  14. This plug outputs the RawValue7 from the IIC device.