Reinaldo Teixeira de Paula Posted November 20 Posted November 20 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(); Quote
Troy Shaw Posted Monday at 06:10 PM Posted Monday at 06:10 PM 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”. Quote
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.