Hi, can anyone explain me why s7 scl compiler doesn't allows me to add two bytes. I wrote this simple code and got error "E: L 00028 C 00024: Invalid types of addresses" in each row with adding bytes:
Code:
VAR_TEMP
b1:BYTE;
b2:BYTE;
b3:BYTE;
b4:BYTE;
END_VAR
b1:=b#16#0 + b#16#1;
b2:=b1 + b#16#1;
b3:=b1 + b2;
b4:=b1 + 1;