Logical DQFs return either 1.0 (true) or 0.0 (false). In those cases where logical values are required on input the C convention is followed i.e. 0. is taken as false and all other values as true.
Table 6.3 lists all available Logical DQFs. Some additional details are given in the following notes:-
' pmt_sel in_list PMT+$KPMT_PIN, USER.1; 'where no offset to the titles bank should be given. You are free to invent any new titles bank to contain a list. You just need to create a titles file containing the bank (including database header) and load it in with the titles command. The length of the list is inferred from the bank size. The value
The usage with three parameters is more general. The second parameter now points to the first word in the list (which need not be in a titles bank), and the third gives the list length (in floating point). For example:-
' ev_sel in_list EV+$KEV_GTR_ID, USER.2+1, 10.0; '
mask number = 0 => DAMN mask 0 mask number = i > 0 => DARN mask i mask number = j < 0 => DAMN mask -jOne two or three parameters can be used:-
Return 1.0 if any bit in mask is on. For example:-
'test dmm 2; 'Return 1.0 if any bit on the DARN bank 2 mask is set.
Return 1.0 if any of bits set in is set for the mask
.
For example:-
'test dmm 0,7; 'Return 1.0 if any of bits 0, 1 or 2 of the DAMN bank 0 is set.
Perform the operation defined by on mask
using the bits selected
in
operation = action*100 + value action = 0 OR test of selected bits against value = 1 AND test of selected bits against value = 2 SET selected bits to value value = 0 0 (false) = 1 1 (true) = 2 (undefined) = 10 not 0 (not allowed for SET) = 11 not 1 ( " " " " ) = 12 not 2 ( " " " " ) Examples:- 'test dmm 0,12,111; ' Return 1. if bits 2 and 3 of DAMN bank 0 are both not 1 (either 0 or undefined). 'test dmm 3,5,201; ' Set bits 0 and 2 of DARN 3 mask to 1. Return 1.
When DMM is used to set bits it always returns 1.