QUOTE
I am having some dificulty with trying to communicate 32 bit floats to and from the device (IEEE756) I was wondering if you have a conversion program that will take two 16 bit registers and combine them into a IEEE Float and a program that would take a IEEE Float and place them into two 16 bit registers.
My hardware is 5/04 processor communicating to a SST profibus card. I can take care of the Endian issues but this float (sign/Exponent/Mantisa) is driving me bonkers.
Sincerly
Ron I am having some dificulty with trying to communicate 32 bit floats to and from the device (IEEE756) I was wondering if you have a conversion program that will take two 16 bit registers and combine them into a IEEE Float and a program that would take a IEEE Float and place them into two 16 bit registers.
My hardware is 5/04 processor communicating to a SST profibus card. I can take care of the Endian issues but this float (sign/Exponent/Mantisa) is driving me bonkers.
Sincerly
Ron
My hardware is 5/04 processor communicating to a SST profibus card. I can take care of the Endian issues but this float (sign/Exponent/Mantisa) is driving me bonkers.
Sincerly
Ron I am having some dificulty with trying to communicate 32 bit floats to and from the device (IEEE756) I was wondering if you have a conversion program that will take two 16 bit registers and combine them into a IEEE Float and a program that would take a IEEE Float and place them into two 16 bit registers.
My hardware is 5/04 processor communicating to a SST profibus card. I can take care of the Endian issues but this float (sign/Exponent/Mantisa) is driving me bonkers.
Sincerly
Ron
Greetings Ron,
I've placed this reply in the open forum so that others can see it and benifit as well as making it visible to forum searches. Open forum post generally get better answers as well as faster answers.
No special program is required. The COP instruction is all that you need.
Copy F8:0 into N7:0 and N7:1: COP #F8:0 #N7:0 2
To copy N7:0 and N7:1 into F8:0 COP #N7:0 #F8:0 1