IR led signal distance,Omron PLC reset

AI Thread Summary
To improve the signal distance of IR LEDs, users should focus on parameters such as output power and modulation techniques, as increasing the current alone yields limited results. Reflective optics can enhance the effective range by concentrating IR energy, and understanding the LED's wavelength is crucial since it can impact distance capabilities. For the Omron PLC, crashes often occur due to illegal states in the program, particularly when multiple inputs are activated simultaneously, leading to unresponsive behavior. Users are advised to implement a robust state machine design to prevent these crashes and ensure reliable operation. The immediate concern is learning how to effectively reset the PLC after a crash, as this is critical for maintaining project functionality.
StealthRay
Messages
51
Reaction score
0
Hi,

I have 2 questions here and hope some experts can answer them.

Question 1:

How to improve the signal distance of the IR led?What parameters in the datasheet that we should look into?

I have purchased few IR leds but all of them can't shoot more than 3 metres. I noticed increasing the current to the leds does increase the distance but not by much.The absolute max rating for IF is 100mA and I even pushed the current to this limit but didnt see any significant improvement.

Could it be because of the 950 nm wavelength of the led which limits the distance?

My project does not need signal to go above 1 metre but it would be better if I can get to know on the signal distance a little bit more.

LEDpara1.jpg

LEDpara2.jpg


Question 2:

I am using Omron PLC CPM-2 version to control my project.Although I have successfully produce a working program for the project,there are certain sequences of inputs which can crash the program.Of course I tried my best to physically avoid having multiple inputs all at once but sometimes the IR signal accidentally hit few receivers and crash the programs.

Once the program crash,there is no way to have it work normally and it usually stuck at certain output.

Methods which I tried to reset the PLC but to no avail;

1)Clearing all memory which usually ended with PLC error.
2)Transfer the program to PLC again.
3)Switch to program mode,monitor mode and run mode.
4)Switch off and on the PLC.

Sometimes,the PLC get back to running after I click here and there but I am not sure the way to reset the PLC.Today,after numerous unsuccessful reset,I had to change to another PLC.

Although I managed to produce the program which work in the sequence I want,I find it rather hard to fix the crash.

For example,Input 1 produces the output sequence 1.Next input 2 produces the output sequence 2 and so on.If I play with the inputs such as on and off input 1,2,3,4,5 randomly,the program could crash.

So the best way I can do now is to reset the PLC everytime it crashes and try to avoid having random inputs all at once.

Thank you.

P/S:Sorry for the lengthy questions :redface:
 
Engineering news on Phys.org
On the IR LED distance question,

1) Use reflective optics to concentrate more of the IR energy at the receive diode. Use a parabolic reflector at the TX IR LED, and a similar reflector at the RX diode.

2) Are you modulating the drive current to the TX LED? You should be doing that, so that you can bandpass the RX energy, to help reject stray IR and optical noise. The better your SNR, the more gain you can use at the RX circuit, and hence the farther your effective range.

On your second question, it seems like the main problem is the crashes, not the difficulty recovering from them. You need to look more into your design, to understand what is causing the crashes.

I'm not all that familiar with programming PLCs, but you need to be sure that you have no illegal states that your state machine can get to (like from some particular series of events happening), and no unused states that have no return back to the reset state.
 
Hi,

So,my only option is to use reflective optics?But what about getting better and stronger IR led?What parameter that I should be looking for at the datasheet that say this LED can shoot,say above 10 metre.

Regarding the PLC program,I don't think I have the time to fix it. The problem lies with the a timer in the program which stalled under certain sequence of inputs.When it crashes,the PLC won't respond to new inputs.

So the best way I need to do now is to reset the PLC quickly if the program crashes.But I don't know how to reset it.Usually I reset the PLC by luck after playing around on the software.
 
I sure hope this is for a school project, and not a real-world project. This is not how you need to approach real-world work and projects.
 
This is a school project.
Of course,I would like to get everything nice and tidy.However,I need to put off some of the work due to time and cost contraints.I still have 2 other very tough subjects - Electrical power and electronic system design to focus on.
 
Could you maybe post the state machine design here for us to look at? Maybe we can help you debug your PLC state machine program.
 
I did not apply the state to state analysis.I only have the .cxp and .opt file right now.I will need to request to have the PLC ladder diagram to be printed out since I don't have the software installed at home.

I have done state diagram in my electronic system design but I am not sure how this can be applied to the PLC since we are not designing the flip-flop circuit.

My only concern right now is to learn how to reset the PLC when it crashes.The rest can be tackled on when time permits.
 
Back
Top