Hi,
I am working on a micrologix 1100 series A Plc.I was trying to transfer a float value to two integer values so i can get decimal points to a seperate integer file.I need to transfer some floating point values to a modbus master device.I think ML 1100 is supporting only integer values for mobbus communication.I went through some of the threads in this forum,but i could't get a clear view about how to do it.I read we can use CPW instruction to copy floating points to integer files with field length "2".I tried to move F8:0 to N7:0 with length 2.There was a floating point value of 10.55 in F8:0.When I used CPW instruction I got 16680 on N7:1 and -13107 on N7:0.Instead of this can I get 10 on N7:0 and decimal value 55 on N7:1.I am not aware of modbus communication with ML1100.How we can transfer float values to a master through modbus communication.Anybody please advice me..
I am working on a micrologix 1100 series A Plc.I was trying to transfer a float value to two integer values so i can get decimal points to a seperate integer file.I need to transfer some floating point values to a modbus master device.I think ML 1100 is supporting only integer values for mobbus communication.I went through some of the threads in this forum,but i could't get a clear view about how to do it.I read we can use CPW instruction to copy floating points to integer files with field length "2".I tried to move F8:0 to N7:0 with length 2.There was a floating point value of 10.55 in F8:0.When I used CPW instruction I got 16680 on N7:1 and -13107 on N7:0.Instead of this can I get 10 on N7:0 and decimal value 55 on N7:1.I am not aware of modbus communication with ML1100.How we can transfer float values to a master through modbus communication.Anybody please advice me..