Mb_Bittest - Siemens SIMATIC S7 Operating Instructions Manual

Prodave s7 v5.5 toolbox for windows 95/98/nt/me/2000 applications for a data link of pgs/pcs to simatic s7 via mpi interface and pc/mpi cable
Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents