EasyManua.ls Logo

Siemens SIMATIC S7 - Mb_Bittest

Siemens SIMATIC S7
82 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SIEMENS AG PRODAVE S7
Toolbox for Data Link PGs/PCs to SIMATIC S7
32
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 return_wert = true or 1
When bit is not set return_wert = false or 0
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);

Table of Contents

Other manuals for Siemens SIMATIC S7

Related product manuals