SIEMENS AG
mb_bittest
This function checks a bit in a specified flag byte and supplies the status of the
specified bit via "return_wert" (return value) (= boolean variable).
When bit it set
When bit is not set
If there were no errors, the function supplies 0 as the return value otherwise an
error message which can be evaluated in accordance with the error table (see
error_message).
C-Adapter
int
mb_bittest(int mbno,int bitno,char * retwert);
mb_resetbit
The function mb_resetbit sets a flag in the PLC to 0. It is not checked whether
the flag bit exists in the used PLC.
If there were no errors, the function supplies 0 as the return value otherwise an
error message which can be evaluated in accordance with the error table (see
error_message).
See also mb_setbit, mb_bittest
C-Adapter
int
mb_resetbit (int mbno,int bitno);
Toolbox for Data Link PGs/PCs to SIMATIC S7
return_wert = true or 1
return_wert = false or 0
32
PRODAVE S7