Search the Community

Showing results for tags 'counter interrupt'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 47 results

  1. Hi.. I found very hard to make Unlimited counter for application that i trying to make.. My application it's empty pack system.. On packaging machine.. This counter is supposed to count finger at machine... When it reach its value.. It will reject.. Coz theres sometimes many empty product thats entere the package.. I make more than 5 counter..i try to make loop...the problem is.. When 5 counter already workw.. Sometimes when its start.. It doesn't want to count again.. I have to wait for 1 cycle.. Than it work again.. Does anyone knows how to solve this... Thank you   
  2. LADDER DIAGRAM UNDERSTANDING

    Hye, I new in this plc understanding. For now I have this one ladder diagram that created in mitsubishi GX Developer that I use in winding machine as its plant. But, I have to make the FUNCTION BLOCK DIAGRAM for this part in CX Programmer. Can anyone help me how to construct the FBD in CX Programmer from this ladder diagram understanding . And did it is actually the counter function ? *the picture showed the ladder diagram*
  3. Hey guys, I am working on an application that tracks irregularly spaced PET bottles on a conveyor line and then blows them into boxes waiting on the side of the conveyor. I believe I have working logic, but I am having issues with the encoder at operating conveyor speeds. I believe the best logic for my project is to use a photoeye to detect the presence of a bottle (a one-shot makes sure it is only detected once), and then "store" the "presence" of the bottle in a binary file using an encoder pulse to trigger a BSL function. Using this logic, the bits in the file are analogous to a real, physical location on the conveyor, and I can just monitor specific addresses in the file where my real-world air nozzles are located. My current problem is that as my conveyor speeds increase, the PLC begins to miss pulses from the encoder. During my initial set-up, I took data at very slow speeds to experimentally determine how many pulses were between the photoeye and each air valve, but when I run at full speed, I only detect about 70% of the pulses detected at slow speeds. Not good. Althought the "skipped pulses" seem to be proportional to the detected pulses at slow speeds. I am using an encoder that only runs at 60ppr, so I would think that my PLC (MicroLogix 1200) can handle this...I did the math before I purchased the encoder and thought I found the pulses to be infrequent enough that the PLC wouldn't miss any. My 2 trains of thought: 1) I need to use an interrupt for each encoder pulse since they occur so quickly (utilizing an EII), which I am not fluent in. I can find instructions to intitially configure the EII file, but I am unsure of how you are supposed to correctly set up the ladder logic to utilize the interrupt. 2) There is an electrical issue. The encoder I bought uses pull-up resistors. The resistor value I selected only drops the detected voltage to 14V from 24V. Is it possible that the encoder does not spend enough time in the "off" state at high speeds because of this high voltage value? OR does the usage of a resistor introduce a time-lag into the system which further complicates the issue? Any help would be appreciated, Thanks!
  4. Cycle Timer

    Hi all, I try to realize a cycle timer. A counter is triggered by a movement ( clamp close ) Then the machine does it things, piston here, and there and when the clamp closes again it should show me the real cycle time. Is there a timer/counter that is independent from the PLC cycle? I am using a CJ1M CPU11 Ver. 3.0
  5. hi every one! i'm new with PLC mitsubishi, i have a Fx3u board and using Gx developer i can config input interrupt pointer in GX developer  but i don't know how to config timer interrupt with GX developer. i have read a lot of manual but i don't understand... someone can help me?????  
  6. Time Based Interrupt

    Hello guys!!! My system constist of: CPU: Q03UDE Some I/O modules Some Intelligent Modules (Q68ADI,QJ71PB92V...) A High Speed Digital Input card QX80H (setting responce time 0.1msec) 1 digital input from QX80H occupied to count the pulse that a flow meter sends. The pulse corresponds to the totalizer of the Flow meter (FCI ST100 series Thermal Mass) and it has fixed width 0.5msec. The flow meter sends 4 pulses / minutes approximately according to current flow rate. My Main Program has scan time 2.4msec. I think that PLC ignores some pulses because of the pulse width is lower than scan time of my program. Is it right? So, the PlC program calculates wrong total flow.... What can I do to avoid this issue? Attached you can find a sketch what I mean... I though to program a time based interrupt every 0.3msec. Is it right and possible in Q03UDE CPU.....? If yes, how can to do it? Thanks a lot in advance for your any help!!!
  7. Beckhoff PLC Counter

    Hi everyone, I need some help with my PLC programming. I am currently using a twincat 2 software and a Beckhoff CX 8090. Basically, the gist of my program is to send and receive data and datalog the input data received from the sensors and timestamp the received data for every 1 second. I want to create a boot up counter where it will count the number of times my data logging program has restarted(if it did). This boot up counter serves as a health monitoring check to ensure that my program is running perfectly and thus, not restarting randomly when it shouldn't. I am more familiar with structured text so if you have a solution, kindly post it in structured text form. Your help would be greatly appreciated. Best regards, DeadPool
  8. PLC omron CP1E

    Hi guy ! I have a problem with plc omron cp1e.Please every body help me. I was used high speed counter to count clock of encoder. And I want to count up/down pulse input case.But it not excuted.also if i use pulse + direction them it ok I used CX programmer. Thanks all
  9. S7-200 PLC Timer interrupt function program

    LD     I0.0 EU ATCH   INT_0, 21 ENI LDN    M0.0 A      I0.0 TON    T32, +1000 LD     T32 =      M0.0 LD     I0.0 ED DTCH   21 DISI         INT0   LDN    Q0.0 =       Q0.0  
  10. project or PLC mode

    Hi, I keep getting an error that project is in binary mode and plc is in BCD mode.  Wont let me change either. I must be trying in the wrong place...please point me to where i can change this in the PLC.   I am getting an error in my RXDU with a Honeywell barcode reader, on one machine, I am thinking it is related.   thanks for any help. 
  11. FX3U 80m Counter Interrupt

    Hi:        I urgently need a simple sample Counter Interrupt Program to study and implement with my machine. I am using GX Work 2 My Problem is inconsistent start stop of roller conveyor after pulse count (OUT_C_32, with cc235, using CC235 to stop a conveyor.) I have to try interrupt, but the manual sample is suck!   Please help   Tks  
  12. I'm using TM221CE40T PLC with TM3DI16 DI extension. I'm programming it using SoMachine Basic. In the program I implemented a counter (%C0). I've read in the documentation that %Ci.V stores the current count value. I want that to display this value on a Magelis HMIS5T. How could I store the current count value (%Ci.V)? Thanks in advance!
  13. hi:     in Omron that is a command to count how many bit that are in ON state, any similar  instruction in GX Work 2?   Thanks
  14. FC3 Counter Demo

    Version 1.0.0

    208 downloads

    This logic demonstrates the construction and cascading of counters that count from 0 to 9. This logic also illustrates the construction of counters that count from 1 to 10 (not useful for cascading). The difference is mainly in the comparators used to reset the counters. There is one small additional detail. Can you find it?
  15. View File FC3 Counter Demo This logic demonstrates the construction and cascading of counters that count from 0 to 9. This logic also illustrates the construction of counters that count from 1 to 10 (not useful for cascading). The difference is mainly in the comparators used to reset the counters. There is one small additional detail. Can you find it? Submitter pop29684 Submitted 03/24/16 Category PLC Sample Code
  16. S7-1500 HW Interrupt

    Hi Guys, I'm still here asking your help because i need to reproduce a previous work that i did on omron series. Now i'm using a Siemens 1510SP-1PN CPU, with a DI 24VDC module assigned in the first slot. I would like to know how to call an interrupt task every time that a rising edge on E0.0 and E0.1 occurs. I  have configured the I/O settings of the module, to call the OB40 hardware interrupt block, but unfortunately i don't know how to assign the addresses to a specified OB, otherwise i noticed that if this option is enabled, instead of the default settings, the CPU can't see the input addresses rise up or turn on; If i configure back the default settings i can see again in a variable table the address E0.0 turn on, why this happens? Is this meaning that i can't use this address for other tasks or other functions? Can i call a hardware interrupt or something like that with an internal variable like a merker? What instructions i must use to enable and activate the OB40? Thank you! Best Regards.
  17. Hello, I hope you are all having a great Wednesday.  So I was wondering if this is possible, and if so, how to do it.  What I'm trying to do is get a real time speed of my hydraulic cylinder using a transducer, a 1769-HSC high speed counter module, and a 1769-L36ERM processor.  Kind of like a speedometer in my car.  I would like the number in inches/ second.   We use a hydraulic proportional valve to control a cylinder that we use to pump molten lead into our die cast machines.  Back in the day they used to use limit switched that rest on a tail rod attached to the cylinder shaft to get an approximate stroke length.  It was very crude, but it worked for what it was.  I'll explain  a little more, in case I'm not explaining it very clearly.   So on most of our machines the maximum stroke length of a normal shot is about 11".  We have different "stages" to the shot.  Stage one is typically from 0" (when the shot is all the way returned) until about 1.5", at 1.5" the valve stops and there is a shot delay for 1 second (vacuum draws some lead into the goose neck and into the beginning of the mold), after the delay second stage starts, second stage is from 1.5" to 4", third stage is from 4" to 8" and fourth stage is from 8" to 11.5" or until the shot timer finishes timing, and then another valve switches, and the shot starts it's return.  We have the different stages because we typically shoot the cylinder slower at first, and then delay and then almost maximum velocity.  We control the velocity with an analog output to a solenoid on a hydraulic valve.  For example, for the first stage we may open it up 20%, then 0% during the delay and then 85% during second, third and fourth.  Sometimes we play around with different shot delay times, different shot velocities, sometimes 3rd may be faster than 4th, ect, to get the best die casted parts.   Anyways, so in the past they would use limit switches.  One was a button head style that when the shot cylinder shaft was all the way returned, it made the switch, and we knew the shot was fully returned.  One was set at 1.5", 4", 8" etc.  They all, except for the shot return switch, were roller style limit switches.  They were all made, and once the shot reached that stroke length, they would come off the rod and we would know we were in that next stage.  So it was very crude.  If you wanted to adjust the stages you would have to climb up on top of the very hot molten lead pot, mark where the limit switch currently was (in case you needed to put it back) loosen the bracket, try to make a measurement and guess how far you moved it.  It was crude to say the least.  Some of our older style machines that don't need much tweaking still use the limit switch style positioning system.   Most of our new machines all use a VisiTrak transducer.  The shot cylinder rod that is attached to the cylinder shaft is actually threaded and then has a very thing layer of chrome plating.  The transducer sits against the shaft and counts the threads.  It transfers those counts to a Very High Speed Counter module in our PLC I/O rack.  We have a CompactLogix L36ERM processor and we use a 1769-HSC as the VHS Counter.  Then we just do some math in the PLC program and we are able to get shot stroke in inches.  We set different compare instructions, for example when: Shot_Stroke is greater than or equal to 0 AND Shot_Stroke is less than or equal to 1.5 then 1st_Stage_Bit is active.  We set up different numbers for all the different stages and still use the button head limit switch as a second method to confirm that the stroke is fully returned.   The counter is very fast.  We are able to know what the shaft stroke is at any given point.  We currently do some math using the distance of each stage and using timers to calculate inches per second of each stage.  That way we can have a nice Speed number in inches/second that we can use to make different adjustments to the shot.  Typically the first stage is about 7"/second second is: 24"/second third is: 42"/second and fourth is 2"/second.  But I want a real-time, current speed, not just the speed that it traveled through each of the stages.     Ok, after all of that explaining, I'm finally getting to my question.  How would I logically write a set of instructions that could give me current speed in inches per second.  Like i said, I am able to calculate the speed of each stage, after the shot has completed the stage, I just divide the distance of the stage (in inches) by the time it took to travel through that stage (in seconds).  But I would like to have a real time speed, kind of like a speedometer on a car.  Is this possible?  I know that the scan time on this processor is very fast and the high speed counter module counts very fast as well.  How do I do the math to get a real time speed in inches/ second?   Sorry for the very long post.  I just thought i would give you a background on what we are doing/ would like to do.     Thank you very much.
  18. If I understand the STI is just an Interrupt that will run every 32756 ms or 32.75 seconds. Is there any way this can be increase to around 10 minutes? I don't want to use a timer because the rest of the program will not be running while the timer is counting. Thanks
  19. Hi Good Day, I need a suggestion, I have an omron encoder, encoder counter meter (K3NC-NB1A) and communication card RS-232C 25pins (K31-FLK1). My question is, what is the best omron software to read and manipulate the data from the encoder (I have CX-one software but I only use CX-programmer). I want to capture the encoder pulse and convert to velocity, acceleration, deceleration and also energy absorbtion. I have to use mathematical formula such as two times differentiation. I also need to show grapf and display final result that is energy absorbtion reading. Or is it much simple if I use VB / labview / java software? Thank you in advance
  20. Hi I need to program my fatek fab Plc with the following : . I need to detect between a single long input or a repeated second pulse. The idea is to control a window blind with two outputs of the Plc and two inputs (one for up, from a up switch and another for down from the down switch). the blind should go up until I maintain the key pressed. But when I make a repeated two pulse on the key it should go up automatically during a certainly define time (enough to completely open the blind). The same for the down direction. I need help on that.
  21. C programmer counter

    i am using CP1E cpu . i wants to use increment counter . if i use CNT instruction it was counteing decrement count . anybody can share the instruction for same satheeshkumar
  22. Hello I want to simulate my interrupt program but i coudn't. I'm using CJ2M-CPU32, in the I/O table, i have created an interrupt unit CJ1W-INT0 in the principle rack (starting adress 0000) and an input unit ID262 and an output one OD262. I have configured in MSKS instruction in a cyclic task of startup to enabe interrupt input 0.00. then, i have used cx-designer to crate an on/off buttom which adress is CIO 0.00 in order to simulate the interrupt input in the unit. in cx-programmer, the task 100 related to the interrupt input 0 is not running. I also think to create a contact which adress is 0.00 and force it to on in order to call the interrupt task but it does not resolve my problem. I have searched in the web a demonstration for simulating an interrupt task from an input basic unit. I find a program in this link http://support-omron.fr/pdf/FT034%20Carte%20Interruptive%20CS%20et%20CJ1W-INT01.pdf I have runned the simulation but always the same problem. how could I simulate the interrupt task. Can any one help me, i would be thankeful.