Show/Hide Toolbars

Irinos Measurement System

Navigation: MscDll Reference Guide > Opcodes and parameters > Opcodes: Measurement

opcBIORO: Read current state of digital in-/outputs

Scroll Prev Top Next More

This opcode is available from firmware version 1.4.x.x.

 

Via this opcode the current state of the digital in-/outputs can be retrieved.

It uses the same data format as the opcode opcBIO, except that the new output states are not applied (-> read only). It is typically used after (re-)starting the measurement software in order to get the current in-/output state without changing the outputs.

 

Overview


Opcode:              0x43

Name:                opcBIORO

Function:            Bit I/O

Parameter type:        Binary

 

DLL-Funktion


MSC_WriteCommand

 

Request data to the Irinos-System


Byte 0        Digital outputs 1..8

Byte 1        Digital outputs 9..16

Byte 2        Digital outputs 17..24

etc.

In order to have the same data format as the opcode opcBIO, output data must be written here. However, the state of the outputs will not be changed (-> read only).

 

Response data from the Irinos-System


Byte 0        State of the digital outputs 1..8

Byte 1        State of the digital outputs 9..16

Byte 2        State of the digital outputs 17..24

etc.

Byte x+0        State of the digital inputs 1..8

Byte x+1        State of the digital inputs 9..16

Byte x+2        State of the digital inputs 17..24

etc.

 

Comments


The response data first contains "mirrored" output bytes. The data length of the digital outputs is always identical to the data length of the digital inputs. Examples:

oIf 8 output bytes are written to the request data, the response contains 8 (mirrored) bytes for the output bytes plus 8 additional bytes for the input data.

oIf 16 output bytes are written to the request data, the response contains 16 (mirrored) bytes for the output bytes plus 16 additional bytes for the input data.

 

The number of in-/output data bytes is independent of the real number of digital in- and outputs available:

oIf less input bits are read than digital inputs are available, the status of the additional inputs is not transferred to the PC.

oIf more input bits are read than digital inputs are available, all additional input bits read as 0.