9/8/2023 5:21 AM | |
Joined: 7/26/2008 Last visit: 9/6/2024 Posts: 97 Rating: (19) |
Hi sriniiter, you have an interesting problem. Can you publish some source files to re-create the issue? |
9/20/2023 9:26 AM | |
Joined: 10/8/2021 Last visit: 6/7/2024 Posts: 8 Rating: (0) |
Hello, I had to internally confirm before to share the source files. I am sharing one source file for DEV_ONOFA object which uses KRUN variable. It could be used to implement a motor field object. The logic of the block is also attached as an image file. Let me know if you are able to recreate the issue on your side. As i said if it was a resolution issue the value being added was always same upto 6th digit or so. It should have been visible much earlier as an example 225.000345 etc. I would wait for your check to discuss further on this topic. I am attaching the source as .txt file which you could change as .scl to import in the source folder; Symbol table has to be suitably made to recreate the DBs used. Best Regards Srinivas AttachmentICL_DEV_ONOFA.txt (545 Downloads) |
Last edited by: sriniiter at: 09/20/2023 09:36:07 |
|
9/20/2023 9:27 AM | |
Joined: 10/8/2021 Last visit: 6/7/2024 Posts: 8 Rating: (0) |
The corresponding logic diagram for DEV_ONOFA object is attached as a seperate attachment for your reference. |
9/28/2023 9:19 AM | |
Joined: 7/26/2008 Last visit: 9/6/2024 Posts: 97 Rating: (19) |
Hi sriniiter, attached please find a test project where I used the relevant code from your source files to create the situation. The example saturates at 512.0009. The heart of the matter is that you are trying to add the fraction of an hour that the scan time is, say 90 ms (90 / 3 600 000 = 0.000025) to the value say 512.00009. The result is that the fraction becomes part of the 512 rounding error. AttachmentForum_20230928.zip (540 Downloads) |
Follow us on