Jump to content

Recommended Posts

Posted

I have 3 identical programs I wrote years ago, and my knowledge is limited with Omron PLCs, mostly work with AB or Siemens. These 3 programs have been working for about 7 years, and my customer reached out with a snip showing me the MV on their PIDAT was displaying "NaN"? This confuses me because this tag (REAL) is only written to by the PIDAT block. Same logic in all 3 programs and only have this issue in one of them? Further, its worked fine for 7 years until now? I don't know if the customer did something to the program, but I have inquired.  I cannot find anything in any documentation pertaining to this and since we don't work with Omron like at all other than this job, I don't have any vendor support to lean on. Has anyone in this group seen this or know how to troubleshoot this issue?

PIDAT NaN.JPG


Posted

I guess I am just confused how the PIDAT would all of a sudden write something that is not a number to that REAL tag. There doesn't seem to be any documentation explaining how that could happen or what could cause that. 

Posted

As far as I understand the structure, the PIDAT writes to the MV (Manipulated Variable) tag and it is required by the software to be a REAL according to the help menu. If you are familiar with PID blocks in AB logic for example, this I believe is like the Control Variable in those PIDs. see attachments

CV.JPG

MV.JPG

Posted

Is this tag being written to outside of the PIDAT instruction? Possibly for manual control? It can be accessed by "PIDAT_instruction_name.MV" or by it's assigned tag name.

Posted

@Engineerforlife42

Just throwing it out, but I would start by checking the values that are in OprSetParams

MV can be assigned values from some of the parameters depending on state (ManResetVal, MVTrackVal, StopMV, ErrorMV)

IF any of those values are set as NULL or possibly outside their valid range, then it is possible the assigned value in MV could show up as NaN

 

Screenshot2025-03-04134459.thumb.jpg.16f0c352248c6c788544af68cbd54976.jpg

 

 

Screenshot2025-03-04134331.thumb.jpg.bceed16b16e9983b0e7a99238bf468f4.jpg

Posted

Ok thank you all. I also got some instruction from Omron to do a controller Clear All Memory and see if that clears it up. They think maybe the PIDAT after 7 years is corrupted. Will update if these things don't resolve and I am still stuck. I believe the settings on those tags are good, but I am confirming.

Settings.JPG

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...