IR led signal distance,Omron PLC reset

Click For Summary

Discussion Overview

The discussion revolves around two main questions: improving the signal distance of infrared (IR) LEDs and addressing issues with an Omron PLC program that crashes under certain input conditions. The scope includes technical exploration of LED parameters and PLC programming challenges.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant inquires about parameters in the datasheet that affect the signal distance of IR LEDs, noting that increasing current has limited effect and questioning if the 950 nm wavelength is a limiting factor.
  • Another participant suggests using reflective optics to enhance the IR signal distance and recommends modulating the drive current to improve signal-to-noise ratio (SNR) for better reception.
  • A different participant asks about the possibility of using stronger IR LEDs and what specific parameters to look for in the datasheet to achieve longer distances.
  • Concerns are raised about the PLC crashing due to certain input sequences, with one participant noting that the program becomes unresponsive and requires a reset, but they are unsure how to effectively reset it.
  • Another participant emphasizes the importance of ensuring no illegal states exist in the PLC program that could lead to crashes.
  • One participant expresses a desire to share their state machine design for further debugging assistance, while another participant mentions the need to print out the PLC ladder diagram for analysis.

Areas of Agreement / Disagreement

Participants express various viewpoints on both the IR LED signal distance and the PLC programming issues, with no consensus reached on the best solutions or approaches. The discussion remains unresolved regarding the optimal methods for both improving IR LED performance and effectively resetting the PLC.

Contextual Notes

Participants mention limitations in their current setups, such as the lack of software for PLC programming and time constraints affecting their ability to address issues comprehensively.

Who May Find This Useful

Individuals interested in electronics, particularly those working with IR communication systems and PLC programming challenges, may find this discussion relevant.

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.
 

Similar threads

  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 2 ·
Replies
2
Views
10K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
6K
Replies
37
Views
7K
  • · Replies 21 ·
Replies
21
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K