Posted 9 Jun 2014 (edited) Hi, there. I have one question about FLL instruction. Could you explain about that such as attached file? (For instance, 16#80 -> 16#FFFF FF80 /16#1234 5678 -> 16#78) Edited 9 Jun 2014 by Tom749 Share this post Link to post Share on other sites
Posted 9 Jun 2014 The FLL instruction will make the elements in "dest_1" have the same value as "value_1". "length" is how many elements you want to write to. For example, if "value_1" is 5, "dest_1" is #N7:0 and "length" is 3, N7:0, N7:1, N7:2 will be equal to 5. Share this post Link to post Share on other sites
Posted 9 Jun 2014 In the case of the first 4 examples the VALUE in the SOURCE is being transferred to the DESTINATION ( to the extent that the destination can hold the value) SINT to DINT - the minus value (-128) is replicated in the DINT by extending the sign bit to the left DINT to SINT - the SINT can only hold the last 8 bits of the value in the DINT. The rest is lost SINT to REAL - the value is translated to the form that the REAL uses REAL to INT - the value is translated into the INT pattern (if there had been a decimal value in the REAL I'm not sure if it would have been truncated or rounded. In the last three the destination (Timer) does not hold a VALUE in all of its locations. Therefore the bit pattern is transferred directly into the 3 words which make up a Timer. Share this post Link to post Share on other sites