EasyManua.ls Logo

Siemens SIMATIC S7 - As200_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
49
as200_mb_bittest
This function checks a bit in a specified flag byte and supplies the status of this
bit via "return_wert” (= “return_value") (= boolean variable).
When bit set return_wert = true or 1
When bit not set return_wert = false or 0
If there were no errors, the function supplies a 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 as200_mb_bittest(int mbno,int bitno,char * retwert);
as200_mb_resetbit
This function 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 a 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 as200_mb_resetbit (int mbno,int bitno);
as200_mb_setbit
This function sets a flag in the PLC to 1. It is not checked whether the flag bit
exists in the used PLC.
If there were no errors, the function supplies a 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 as200_mb_setbit (int mbno,int bitno);

Table of Contents

Other manuals for Siemens SIMATIC S7

Related product manuals