Hello guys. So the problem is this. Basically I want to pass a variable number of bits from one byte to another. For example to pass the first 3 bits of mw0 to the last 3 bits of mw4 but in a dynamic form.
In the siemens s7-1200 I was using peek and pock
Someone as any idea how to do it ?
Regards
In the siemens s7-1200 I was using peek and pock
Code:
#temp_varW:=PEEK_WORD(area:=#IN_TYPE_OF_MEM, dbNumber:=#IN_NUM_READ_DB, byteOffset:=#temp_start);
POKE(area:=16#84,dbNumber:=#IN_NUM_SEND_DB,byteOffset:=(#temp_db_pos_byte),value:=#temp_varW);
#temp_i:=#temp_i+1;
#temp_start:=#temp_start+2;
#temp_db_pos_byte:=#temp_db_pos_byte+2;
Someone as any idea how to do it ?
Regards