EasyManua.ls Logo

Siemens SIMATIC S7 - Enhanced Functions for Data Handling in PG;PC

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
53
4.2 Enhanced Functions for Data Handling in PG/PC
boolean_byte
The function boolean_byte converts eight logical values (PC-display) to a byte.
The transferred pointer should point to a char field with the following structure:
char buff[8] buff[0] buff[1] buff[2] buff[3] buff[4] buff[5] buff[6] buff[7]
return value bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7
C-Adapter
char boolean_byte(char * buff);
byte_boolean
The function byte_boolean converts a byte to eight logical values (PC-display).
The transferred pointer should point to a char field with the following structure:
char buff[8] buff[0] buff[1] buff[2] buff[3] buff[4] buff[5] buff[6] buff[7]
Value bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7
C-Adapter
void byte_boolean(char wert, char * buff);

Table of Contents

Other manuals for Siemens SIMATIC S7

Related product manuals