Jump to content
oobretenov

Problem with analog output

Recommended Posts

Hi  everyone

I have very strange problem 

We are trying to change the analog output like that in loop: 50milisec value1 and 50milisec value2

But we have not good result

 I have use USP-07-B10 and UIS-WCB1

 

I attach the picture of the code and the scope of result I got.

Thank you for any Ideas

pic_15_2.bmp

code.bmp

Share this post


Link to post
Share on other sites

Hi everyone

 

I need urgent HELP.

Has anyone tried to write to  analog output  every 50ms values and has he received good signal from analog output?

I have tried the simple project from picture (code.bmp) and received very bad results.

 

 

 

 

 

 

Share this post


Link to post
Share on other sites

oo,

I don't have time tonight to load this into my Unistream with UIA-0006, drag the scope out, and live test this. Going from your results here is what I would try:

1- Change the frequency.frequency100mS contact in Rung one to a PTC "-[P]-" contact

2- Change the frequency.frequency100mS contact in Rung two to a NTC "-[N]-" contact

3-Tag the B side of the two STORE blocks directly to the AO register. UniL will allow it, I tried. Unless you have a reason you need to intermediate the values.

4- disable rung 3

5-Download and test

Should work as follows: ON rising edge of 50% duty cycle 100mS time base #7000 will load in the AO's register, on the falling edge #700 will load to AO reg.

You're over doing it by reloading the same value every scan for each 50 mS, It's a retentive register not a charge pump. Rung 3 seems redundant in the context of the rungs displayed. I'm not seeing your entire program. Please share the results of this simple logical alteration. IF this still gives erratic results as seen on scope THEN post and I'll try to recreate. Have you contacted Unitronics support team yet? Hopefully this post will get some more exposure and suggestions soon.

dB

 

 

Share this post


Link to post
Share on other sites
5 hours ago, oobretenov said:

Hi thank you for the replay.

By the way we have checked with UIA-0402N and it works perfect

may be the problem is hardware issue with UIS-WCB1

 

Report your findings to Unitronics support. Success with 0402N would prove it's not a coding problem.  i don't have a WBC1 to try with. 

Share this post


Link to post
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...