gregaxisne.com Posted June 4 Share Posted June 4 Is there a way to read a negative capture number via Mi921 into a variable in Power? If I query Mi921 = $0000fffdc66c. As a signed 32-bit, it's -145812. MacroSlaveRead 48, Mi921, M1 returns M1=2147483647, truncating the left most bit. I have tried M1 as M1->Sys.Idata[1] M1->s.user:$f8b4.0.32 M1->sys.fdata[1] M1->sys.Udata[1] M1->sys.ddata[1] as well as copying to a signed integer register or p-variable. In Turbo, this comes across fine as a negative number. Any ideas? Quote Link to comment Share on other sites More sharing options...
leandro.martins Posted June 4 Share Posted June 4 Hi @gregaxisne.com Are you looking for something like this? M1->Sys.Uhex[1000] M1= $0000fffdc66c Sys.Idata[1000] Sys.Idata[1000]=-145812 Quote Link to comment Share on other sites More sharing options...
gregaxisne.com Posted June 4 Author Share Posted June 4 Yes, exactly. Thank you! I was unaware of the uhex. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.