1
Technical support / Re:RemoteIO-M series
« on: November 05, 2008, 05:31:58 PM »
I did use the program RemoteIO-Mseries.pc6 from the trilogi files, infact, I copied the custom functions to my program and modified it enough to extract the DM data from the slave instead of just the I/O data.
I store this data from the slave directly into the same DM location in the master to make it easier to understand later. I am still getting the mixed up sign and number from the slave.
I have used online monitoring to view what is happening and it appears to have the same mixed up sign and out of range data as what is appearing in the Master DM location.
What code would I use to correctly convert the number from 16 bit to 32 bit with the sign in the master? Can you give me an example or is it covered in the example program?
I store this data from the slave directly into the same DM location in the master to make it easier to understand later. I am still getting the mixed up sign and number from the slave.
I have used online monitoring to view what is happening and it appears to have the same mixed up sign and out of range data as what is appearing in the Master DM location.
What code would I use to correctly convert the number from 16 bit to 32 bit with the sign in the master? Can you give me an example or is it covered in the example program?