Jump to content

JZ20-R16, level transducer and lcd problem


Recommended Posts

Hello,

I have a JZ20-R16 plc and a Aplisens 4-20 mA level transducer.  I do linearization in ladder to get the correct level value in meters.  Depending on the level the plc starts and stops a pump, and it all works greate. Start and stop levels are input by the user from keypad, also the max value of the transducer.

Everything works ok, the problem is with displaying current level on lcd. Right after linearization i copy the value to MI3 that is set to be shown on the "main" screen. It is displayed but the readout is jumping around/changing very quickly (level is constant), numbers get blurry and they are unreadable. Tried this on 2 plcs and 2 transducers with the same result. I've seen this working but can't find any reason for this behavior. Maybe it's reading the value to often?

 

Please help me. Any advice will be appreciated.

Link to comment
Share on other sites

You should filter the value a little bit before displaying it, analog input jumps a little bit up and down, it's normal, I guess if you display it immediately lcd will look blurry. Maybe take a couple of readings in short time and display the average, or update register that shows value every 2-3 seconds. I reckon value doesn't change drastically in time since it's level.

Link to comment
Share on other sites

  • MVP 2023

Agree with Isak.  Have you set the filtering at the raw input in Hardware configuration?

U90Filters.jpg.c8432da124accc79d1f5490603ec9d8b.jpg

Screenshot not really!  U90 loses the dropdown during screenshots, so taken with a camera!

 

Have you looked at the raw input when in online mode?  If the number is jumping around a lot there, then you need to find the reason.  A correctly located level sensor should be pretty stable.  There are numerous factors that can affect this, though.

Also, you might like to think about using the linearisation available to you in the Variable, rather than doing it through the ladder.  Look at the bottom right of your Variable 1 screenshot.

cheers, Aus

Link to comment
Share on other sites

Didn't know about the filter setting, gonna try as soon as i can.

Tried delaying the screen update by counting the 100 ms pulses, and copying the value when the counter reaches a certain value, but it didn't change a thing.

In online mode the value also jumps.

I worked with many other plcs and this is the first time i encounter such a behavior. The same transducer connected to another plc, just thrown into water shows a stable readout. That's the reason why i am sure that i'm missing some probably basic thing.

Don't think i can use the Variable linearisation because the max value of the sensor is input from the keypad and screen and i don't think i can do that in the Variable linearisation.

 

Here is the whole program.

 

2 pompy kolko delfin analog 204 delay.U90

Link to comment
Share on other sites

  • MVP 2023
On 11/20/2018 at 4:29 PM, Bart000 said:

numbers get blurry and they are unreadable.

 

3 hours ago, Bart000 said:

Tried delaying the screen update by counting the 100 ms pulses, and copying the value when the counter reaches a certain value, but it didn't change a thing.

You're saying the numbers are blurry and unreadable when updating the HMI only once per second?

Link to comment
Share on other sites

  • MVP 2023

In response to Isak's post, I dug out an old U90 program that has linearisation that I know worked perfectly.  Paste attached.  It was a 4-20ma temp sensor, set for 12 bit and giving the temp from 0-50.00°C.

U90 is quirky in the way you have to do all the linearise in one hit.  I'd give it a go along my lines and see how it goes. It might look odd but it works ok. Don't do any delays except the hardware maximum filtering. 

Also, ensure that you have nothing that can accidentally overlap areas of the screen usage.  I've heard of minor overlaps creating this sort of issue.

13 hours ago, Bart000 said:

In online mode the value also jumps.

Is this the raw value, or the linz result? 

cheers, Aus

U90Linz.gif.75dd65186b76f5e5a1fb5801bf5e15a3.gif

Link to comment
Share on other sites

program version is 6.6.36

 

I had it at first just like in you're example above, everything in one line. When the problem occured i started experimenting. Didn't know about the hardware filtering, and i think this could be the source of the problem (no filtering set). Should be able to try it on the plc within the next few days, gonna let you know about the results as soon as i can.

Link to comment
Share on other sites

In online mode both values are changing very quickly. The "raw value" and after linearization.

Tried to set the filter and it didn't change anything on any of the 3 settings.

At the end i followed Flex727 advice and put a positive transition of SB3 in front of the value copying and everything is working perfectly. So i think the problem is solved.

Thank you everybody form your help.

Link to comment
Share on other sites

  • MVP 2023

How much was the raw value changing?  If it was a few percent of total span, something is wrong with the setup, be it mechanical or electrical interference. 

I'm only saying this because an intermittent read of a pulsing source does not necessarily give you an accurate reading of the true average.

cheers, Aus

Link to comment
Share on other sites

It was changing by +/-  5-10, and it's 10 bit resolution. But this are two completly different applications. Except for the plc model, transducer model and program nothing else is similar. Before the end of next week i'm gonna be doing another pumping station in a completly different place. So i'll check how it behaves and let you know. The problem is omitted, but it would be good to know what caused it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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