Jump to content
OMRON Forums

Reading a Negative Capture Number over Macro


Recommended Posts

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?

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...