Perfectly understood Brian. That's exactly what is happening. My comment on the signed ints being weird, is there is no reason I can see, for the two ints mapped in the AOI data structure to be signed at all. Seems unnecessary.
Anyway, I will try the suggestion on splitting the float into an array but I do know nothing else is writing to those mapped register addresses. I wrote the entire project and nothing is writing to that address. I'm no youngster and have been doing this a long time too. I have written the routine exactly as described in the Prosoft manuals. It just does not work when written as they describe by just pushing a float in to the address using the COP instruction.
Mind you, I've found a few bugs in studio 5000 before so it's not the first time.
Anyway thanks for the suggestions, I'll try it on Monday but I expect the results to be the same. Splitting the 32 bit float into a 2 int array in the PLC memory should be the same as COPing it straight to the MNETC mapped address.
I've asked Prosoft for support and they have said they'll look into the issue and get back to me. If this is a bug, I wouldn't be surprised. I'll post the outcome either way.
Anyway, I will try the suggestion on splitting the float into an array but I do know nothing else is writing to those mapped register addresses. I wrote the entire project and nothing is writing to that address. I'm no youngster and have been doing this a long time too. I have written the routine exactly as described in the Prosoft manuals. It just does not work when written as they describe by just pushing a float in to the address using the COP instruction.
Mind you, I've found a few bugs in studio 5000 before so it's not the first time.
Anyway thanks for the suggestions, I'll try it on Monday but I expect the results to be the same. Splitting the 32 bit float into a 2 int array in the PLC memory should be the same as COPing it straight to the MNETC mapped address.
I've asked Prosoft for support and they have said they'll look into the issue and get back to me. If this is a bug, I wouldn't be surprised. I'll post the outcome either way.
Last edited: