2 enabling service requests, 3 resetting the status byte – LumaSense Technologies INNOVA 1309 User Manual

Page 30

Advertising
background image

Chapter 3
________________________________________________________________________

________________________________________________________________________

BE1285-15

1309 Multipoint Sampler

LumaSense Technologies A/S

Page 30 of 42

3.7.2

Enabling Service Requests

The specified bits in the status byte are enabled using the interface job

Service_Request_Enable. The required bits are specified by using the
decimal equivalent of their binary value, as shown in Table 3.3. See al-

so the job examples below for further clarification.

Note that the relevant bits are always set whenever the corresponding
condition occurs; this job only enables or disables the generation of a

service request by that condition.

Examples:

S_R_E 32<LF>

Service request is generated by the
setting of bit 6 (bit pattern
00100000 = 2

5

= 32 decimal) in

Table 3.3.

S_R_E 160<LF>

Service request is generated by the
setting of bit 6 and bit 8 (bit pattern

10100000 = 2

5

+ 2

7

= 32 + 128 =

160 decimal).

S_R_E 0<LF>

All bits are disabled (except bit 7).

The bits which are enabled in the status byte can be read-out using the

Service_Request_Enable? interface job:

S_R_E?<LF>

Outputs the sum of the decimal val-
ues of the bits which are enabled.

For example, if the decimal read-
out is 48, the enabled bits are bit 5

and bit 6 (bit pattern 00110000 =
2

5

+ 2

6

= 16 + 32 = 48 decimal).

3.7.3

Resetting the Status Byte

The job Reset_Status_Byte is used for this task.

Example:

R_S_B<LF>

Resets the bits in the status byte to

zero.

Advertising