panic mode

MrPLC Admin
  • Content count

    2397
  • Joined

  • Last visited

Community Reputation

59 Excellent

About panic mode

  • Rank
    Mitsubishi Moderator
  • Birthday 12/15/69

Contact Methods

  • Website URL http://www.google.com
  • ICQ 0

Profile Information

  • Gender Male
  • Location Mississauga, ON
  • Country Canada
  • Interests many...

Recent Profile Visitors

8569 profile views
  1. An absolute beginner needs help with a PLC!

    Please make sure your posts are in correct forum section and - this is the right one for Mitsubishi and co. FX series is a compact line of Mitsubishi PLCs. Internet is swarming with offers for open frame clones like this. Originals are packaged in a box. Either way you should be able to pick this from the menu by changing family from Q to FX. Q-series CPUs are "big brothers" and this product does not belong to that family...  
  2. no worries,  i would recommend to CLEARLY state problem, system configuration and define goals.  based on what i glanced over, you have: 1. single PLC output controlling the pump. it is unclear if pump has any other controls that will affect the flow rate or if there is any flow control valve etc. this is not very good if you plan on dispensing small quantities reliably. 2. it is unclear what is the accuracy you expect. normally one would want feedback that is several times more accurate than what you are aiming to do. if your goal is to measure quantities that are +/- 1L, your flow meter should give maybe 10 pulses per Liter (or 50, or more...). it is also unclear what to tolerance can be.... is it +/- some value within preset OR at least preset value.  3. program seem to make use of push button that is a start for pump. but i am unsure what you are really doing here or what the process is. i assume you want to present quantity to be dispensed from HMI. every time button is pressed, pump will start and dispense amount that is reasonably close to that quantity. This will be monitored by HSC.      This is just what i assumed and not necessarily what you really need. But the point is that clear description is needed before one can start understanding... or offering help. If above is correct, then setup of Preset value would be simple and independent of what HSC or CTU or push button or output controlling pump do. Signal to start dispensing should NOT be tied directly to output. pressing pump start button should latch a bit. this bit should be used to run pump until process is complete and then this bit should be reset. start PB should be conditioned to use only rising edge or if someone leans on the button for too long or when button fails, you will be dispensing endlessly. probably not a good idea. HMI should show dispensed quantity (progress and finished value) by monitoring HSC. There is not need to have both HSC and CTU.     
  3. few things come to mind: 1. why do you want two separate counters to keep track of same thing? if one of them has correct value, just use that one.  2. this program needs some serious comments 3. this program needs some structure. there are way too many circular references. 
  4. Oh my god... if there ever was a plc program that screamed "please kill me", this is it    You stated that while HSC counts 5, CTU counts 3. this program shows that CPU counts pulses from L30.0, which is LSB of L30 and L30 is a copy of HSC accumulator. let's see what HSC accumulator and L30 look like while counting from 0 to 5: 0000  0001 0010 0011 0100 0101 CTU counts 3 because that is exactly number of times LSB changes from 0 to 1 by the time HSC reached 5  
  5. 100ms pulse is long if input filter and PLC scan time are short enough. also pulse of 100ms duration does not tell anything about duty cycle of your signal.
  6. yes... make sure that pulses are slow enough and have clean edges
  7. Failing Interposing Relays, and Varistors

    Yes, you need to get more information about loads but .... I think you are looking at fixing the symptoms rather than trying to determine root cause (and likely that would be the valve). All inductive loads (including solenoids) have very low impedance when "air core" (no ferrous core pulled in). If the hydraulic valve is sticky and fails to shift, solenoids that operate valve will stay energized but they will draw huge current. What kind of overcurrent protection you have for your loads? Individual melting fuse (not a circuit breaker) in series with each solenoid? How are you monitoring valve for correct operation? Next, are you monitoring solenoid current? If valve is stuck and solenoid(s) draw abnormal current, generate alarm and shut down the pump. Btw. if your hydraulic connections can lead to pump failure, something is not right...   
  8. Mitsubishi 8P mini Din pin out

    google SC-09 and switch to images
  9. Speed in meter/mint

    sensors don't calculate, they sense.... controller (your PLC) calculates...  bases on values received from sensors.  as mentioned, linear speed of paper roll depends both on RPMs and radius (or diameter) of the roll.  circumference of a circle is L=2*pi*R but if encoder is monitoring position of the shaft where the product is rolled/unrolled, radius R will keep on changing and this complicates things. so you need to know the R value and this is why you need a distance sensor of some sort. if the rotational sensor is mounted on roller that is just following/guiding product (maybe mounted on a tension roller or a capstan wheel), radius is fixed and you do not need distance sensor to measure radius.  Next, you are measuring speed or rate. You can get meter/minute by measuring distance product traveled in one minute (use timer). But i would not want to stare at display for a minute to see value chang, specially if the printing speeds are anywhere near printing machines i am familiar with. I would want to see readout change at least every second for example. But that output could look crude with low resolution encoder.  
  10. I need some help in data storing

    you only presented 3-bit value for color where are the tables with patterns for route, workmanship etc?
  11. Random Number Generator

    here is modified PSNG using XOR. I artificially limited it to 16-bit. graphed data is from B column. nice thing is that values in A2,A3,A4 have far less impact on non-repeated sequence length. Value A in cell A2 need to be some "Swiss cheese" bit pattern, B need to be greater than 1 but you can choose values pretty much at will...  
  12. Random Number Generator

    thank you for reporting broken link. btw. I do not see much of a problem since formula is posted so one can implement it in any programming language. I just did it in excel: 1. put some value in A1 cell as N. this is upper limit for random value. if result is expected to be in range 0-100, set N value to 100 2. put some seed value in A2 cell. pseudo random means values are not really random (eventually repeat themselves). in this case any value in range will do. if unsure leave it at zero or N or anywhere in between 3. in cell  A3 enter formula =MOD(1909*A2+221571,$A$1) 4. click on cell A3, then click on black dot in lower right corner and drag it down some 100 cells or so  5. check for repetitions. random function is only as good as absence of patterns in it's outputs. I notice that factors A and B have a major influence on repetitions and proposed values work but result in very short non-repeating sequence. here are some examples:
  13. Epson RC+ 4.2.2 Fieldbus I/O Question

    no problem... 
  14. Epson RC+ 4.2.2 Fieldbus I/O Question

    are you familiar with byte swapping? (little endian vs. big endian)
  15. Centerline Smart Electrode (VeriFast)

    do you mean this one? https://www.cntrline.com/products/verifast-laser