nowayhi

MrPLC Member
  • Content count

    11
  • Joined

  • Last visited

Community Reputation

0 Neutral

About nowayhi

  • Rank
    Sparky

Profile Information

  • Country Afghanistan
  1. is this it, sir ? C200 to C255 that mean C251 will be latched if power off ?
  2. I'll do it,and I will post result as soon as posible. thanks a lost for all guy help me! Sir how can I save the current value of counter C251 (high speed counter) before the bad case as if the power off, and when the power on again the value of C251 counter don't lost.
  3. "power cycle" ? what did you mean ? sir!
  4. have a good day ! after all ! when I toke more samplings about 100 then the system worked well. Thanks for everybody help me. Sir but I still have a little problem with my project. It's speed of communication. I used NB Hmi Omron - Comport 2 (NB7W) to connect FX3U (FX232 port). But they were communication to each other oke when I set baudrate is 9600. When I want higher speed like 19200, I tried to setup a lot time following manual "NB -series communication guide - Omron" but It was fail, the error "not plc connection pop up". I did'nt find the cause of fail for it even if I set up like manual guide. This is the link of "NB series communication guide" https://www.google.com.vn/#q=nb+series+host+connection+manual+v108
  5. Q: Any reason for using polarized capacitor of 0.1uF/50V? A : Yeah, It's my misunderstanding about manual, Manual of FX2N-2AD not said you must use ceramic cap, It's just said use a DC capacitor 0.1uf/ 25 vdc so I chose 0.1uF/50vdc polarized capacitor to sooth signal from sensor/ Q: Should you use an inductor? Are you thinking of making an LC filter? I would not bother. A: As you known, the switching power have a special circuit that called filter input (expample a switching power input 220vac/ out put 24vdc /2a). It has a input filter circuit the function of one is eleminate noise from 220vac input, I have a switching power which burn power mosfets but the filter circuit was still good, So I think why I am not use this filter for signal of my sensor. Q: is that steady state or you also tested response? A: yeah, I am not sure when the pulse voltage noise appear. Q: there will always be some fluctuations but are they really significant? A:yeah, I think sometime there is a noise appear, that explain why sometime the system work well sometime it'bad. I don't think the my code wrong beacause it's always work well with battery when I replaced sensor signal by battery. => the problem here how I get the better value, And maby get more sampling is a good solution. This is the part of my programe : When (PV (peresent value of pressure >= SV ( setting value of pressure on Hmi)) the M20 bit (oke pressure) will on, M20 bit is ON ( that's the enough of condition to trickger a Piston (Y7 ouput) in my code. But if there is a pulse noise appearing that made the result was PV >= SV too. M20 bit will be still On too , so that... the system worked wrong.
  6. My sensor is pressure, suply voltage 24vdc+-5%, range input pressure (0-1000 kgf/cm2) output : (0 ---> 5vdc); I still have conected a DC capacitor (polarised) 0.1uF/50Vdc to chanel 1 of FX2n-2AD. Why did I think there were some noise from signal of sensor ? Yeah, I have used a battery and variable Resitor (to make a voltage 0 -->5vdc without noise ) oke because I use A battery. Then I replaced the sensor signal by this battery and the system work well. Should I need a inductor coil (L) to conect series signal wire of sensor ?
  7. Thanks for your help, My application does'nt need quick changing following value reading from sensor, I am only need the truth value to eliminate pulse noise that make my system misunderstand the PV (pesent value) >= SV setting value when the pulse noise maybe mix in the signal from senser. I can use the new stable value per every 1 second. So I assume all of this code about need 100uS to complete in 1 scan cycle with k=1 ("k1"). With K=10000 <=> "k10000", the time need 1 second that meant the module FX2n-2AD will has 400 sampling/1s (2.5ms/sampling) to reading to plc. so The average of 400sampling/1second is more stable ? Do you thinks so ? let me see your idea. thanks!
  8. Can I correct code example in manual fx2n-2ad like this ?
  9. oke sir ! but how many timers I should increase ? " manual said the range of 1 to 262144 ". why the higest value is 262144 ; some code in the picture I noted by red rectange maybe mistake ? Assume, Even if I chose the higest is 262144. So how many truth value can i get ? It takes too much time of cpu, should I use a ficker timer 3ms on /3ms off to read analog ; (2.5ms /a sampling of FX2N-2AD ; ~~ 400 sampling/ second). that meant we have ~ 333 samplings/ second T3ms Like this : ----| |-----(reading_analog in chanel 1) T3ms ------| |-------( DINCP counter_sample) T3ms ---------| |--------(DADDP Total_chanel1 Reading_analog Total_chanel1) T3ms -----| |----(DCMP counter_sample k333 M0) M1 ------| |----------(DDIVPP Total_chanel1 K333 stable_value) Tell me your idea please ! thanks
  10. manual of FX2N-2AD said " when you can't read stable value " you should use this code : But i am realy confuse, while processing time is 2.5ms/ sampling value. That mean it need 50ms for 20 samplings. So in this code of manual they take 20 times for adding analog values But all of this code completing too quickly (us mili second etc....). wheares Module analog fx2n-2ad need 50ms/20 sampling. So This code in this manual has a Wrong guide ? How I can read a realy 20 times (samplings) exactly for stable value ( purpose of all jobs is eliminating voltage pulse noise or ripple in the voltage that make wrong result reading values) .