Jump to content
OMRON Forums

Recommended Posts

Posted

I'm developing an application in C# where I look for information about a gauge that measures length and concavity,

the memory in the clp used itself is of the REAL type, when I read this same memory from the clp in the program, it returns a different value.

the memory read is a D2440 type REAL, it occupies two memories A D2440 and D2441 where the value would be 76.04, but it returns a very different value I tried using conversion and without success, could anyone give me some light?

I am using tcpFins connection

                if (txtMinima.Text == "2440") return;
                ushort dmval = 0;

                try
                {

                //mostra os dados de produção
                if (!plc.ReadDM((ushort)float.Parse("2440"), ref dmval))
                      {
                       throw new Exception(plc.LastError);
                   }
                   txtMaximo.Text = dmval.ToString();

 

  • 3 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

This Omron Forum currently only includes Barcode/Machine Vision (previously Microscan). For other Omron products please contact Omron’s main Technical Support by email at “ia.techsupport@omron.com”.

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...