Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - EdmontonControls

Pages: [1]
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?

2
Technical support / RemoteIO-M series
« on: November 05, 2008, 12:53:07 PM »
 ???
Hello, I am currently using two T100MD888 with comms using RS 485 to send info back and forth between each other.  The Master is sending out requests for values in the slave DM[] locations, this works fine, but when I get the values back in the Master they are out of range, ie they are jumping around from +1800 to -320000.  
From reading the info on the demo program in Trilogi I understood that the DM[] value was send to the master in HEX but was then converted into Decimal, am I wrong in thinking this?  If so, how do I convert the DM[]value in the master back into Decimal so that I can use it.

Thanks for the info


Pages: [1]