Configuring the CameraBasler A500k Series 4-9PRELIMINARY4.2.3 Example Commands4.2.3.1 Read commandAn example of the command message used to read the camera status is:0x02, 0x43, 0x82, 0xC1, 0x030x02 - is the STX. The STX is always 0x02.0x43 - is the first byte of the descriptor. The first byte of the descriptor is the command ID.Command IDs can be found in the tables on pages 4-11 through 4-30. If you check thetable on page 4-28, you will find that the ID for the camera status read command is0x43.0x82 - is the second byte of the descriptor. The MSB in this byte represents the read/writeflag and since this is a read command, the bit should be set to a 1. The other sevenbits of this byte represent the data size (in bytes) that will be transferred using thiscommand. If you check the table on page 4-28, the data size for the camera statuscommand is 2 bytes. So the arrangement of the bits in the second byte of thedescriptor should be 1000 0010 which translates to 0x82.Note that for read commands, the data size specified in the descriptor represents thenumber of bytes of data that you expect to see in the response. No data bytes areactually included in the read command.0xC1 - is the block check character (BCC). See page 4-10 for instructions on calculating aBCC.0x03 - is the ETX. The ETX is always 0x03.4.2.3.2 Write CommandAn example of the command message used to copy the Work Set into User Set 2 is:0x02, 0x46, 0x01, 0x02, 0x45, 0x030x02 - is the STX. The STX is always 0x02.0x46 - is the first byte of the descriptor. If you check the table on page 4-26, you will find thatthe ID for the command to copy the Work Set into a User Set is 0x46.0x01 - is the second byte of the descriptor. The MSB in this byte represents the read/writeflag and since this is a write command, the bit should be set to a 0. The other sevenbits of this byte represent the data size (in bytes) that will be transferred using thiscommand. If you check the table on page 4-26, the data size for the copy Work Set toUser Set command is 1 byte. So the arrangement of the bits in the second byte of thedescriptor should be 0000 0001 which translates to 0x01.0x02 - is the data byte. If you check the table on page 4-26, you will find that to copy the WorkSet to User Set 2, the data byte must be set to 0x02.0x45 - is the block check character (BCC). See page 4-10 for instructions on calculating aBCC.0x03 - is the ETX. The ETX is always 0x03.