EasyManuals Logo

Siemens SIMATIC IOT2050 User Manual

Siemens SIMATIC IOT2050
133 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
Page #83 background imageLoading...
Page #83 background image
Maintaining and repairing the device
6.6 Configure IOT2050 SM
SIMATIC IOT2050
Operating Instructions, 03/2024, A5E39456816-AF
83
return 0;
}
ssize_t ret = 0;
for (int i = 0; i < 3; i++) {
int dq_value = i & 0x01;
/* Convert dq value to string */
snprintf(tmp, TMP_SIZE, "%d", dq_value);
/* Output value in string format to dq0 */
ret = write(dq0, tmp, strlen(tmp));
if (ret < 0) {
printf("Write failed, %d\r\n", ret);
break;
}
printf("Set dq0 to %s\r\n", dq_value);
/* Note that when reading a file node multiple times,
the offset must be set to 0 before the next read */
lseek(di0, 0, SEEK_SET);
memset(tmp, 0, TMP_SIZE);
/* Read value from di0 */
ret = read(di0, tmp, TMP_SIZE);
if (ret < 0) {
printf("Read di0 value failed, %d\r\n", ret);
break;
}
printf("Get di0 value: %s\r\n", tmp);
/* Convert di0 string value to integer */
int di_value = strtol(tmp, NULL, 10);
if (di_value != dq_value) {

Table of Contents

Other manuals for Siemens SIMATIC IOT2050

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SIMATIC IOT2050 and is the answer not in the manual?

Siemens SIMATIC IOT2050 Specifications

General IconGeneral
Storage8 GB eMMC
Real-time clockYes, with battery backup
RAM1 GB DDR3L
Interfaces2 x Ethernet, 2 x USB
Operating SystemLinux-based
Power Supply24V DC
CertificationsCE, UL, FCC
Operating Temperature0°C to 50°C

Related product manuals