hi, i try to convert 16bit to 32bit on fanuc m1ia robot. i have the value in register (R101, R102) and i try to convert that two in to one 32bit (R105). i try different way but it not work? anyone have experience on that? thanks for reading
question about convert two 16 bit register into one 32bit register on M1ia robot
-
lunknowl -
January 27, 2017 at 6:51 PM -
Thread is marked as Resolved.
-
-
R105=65536*R102+R101
assuming the R102 and R101 are the most- and the least-significant natural binary words. -
it doesnt work, the r101 and r102 is value data not a binary word
-
Well, definitions 16-bit and 32-bit usually apply to binaries.
If no, why have not you specified the data format? -
if i ry 0 and 1 i get 65536 which is correct but if i try different number like -172, -10 it doesnt work9 support to be -59000
-
well i try to send data to hmi using hmi option, some how the value in r101 is bigger but when send out it only 32767 so the r101 can hold bigger value but it only transfer 16bit data out. so i need to read data back from hmi also
-
The format of data in the registers is still unclear.
Give few examples of the R102,R101 content and the expected result in R105. -
so i try 1 for low and -32768 for high i get -247483647 which is right, but when i try -1 for low and -32768 for high, i get overflow.is there like a or statement/ calculation for negative value?
-
Clarify your goal.
Do you want to restore a 32-bit value, which was split in two 16-bit words?
Or the 16-bit values are created independently? -
well i figureout, the fanuc need () in equation = (65536*high) +low thank for all