i used CP1L and one proximity sensor.
Now i want to write a programmer to define direction rotation of gear.
But i don't know how can i write.
Note:i want use one proximity sensor only not two proximity sensor.
(it is easy to write the programmer If i use two proximity to define direction rotation of gear)
Now i need you help me.
[?]: DEFINE DIRECTION ROTATION OF GEAR
-
- Posts: 18
- Joined: Sat Jun 06, 2009 7:45 am
- Location: Vietnam
-
- Site Admin
- Posts: 4000
- Joined: Thu Feb 16, 2006 3:25 pm
- Location: Russia
From Simatic Help File
Example 2: Detecting the Direction of a Conveyor Belt
The following figure shows a conveyor belt that is equipped with two photoelectric barriers (PEB1 and PEB2) that are designed to detect the direction in which a package is moving on the belt. Each photoelectric light barrier functions like a normally open contact.
Ladder Logic Program for Detecting the Direction of a Conveyor Belt
Network 1: If there is a transition in signal state from 0 to 1 (positive edge P) at input I 0.0 and,
at the same time, the signal state at input I 0.1 is 0,
then the package on the belt is moving to the left.
Network 2: If there is a transition in signal state from 0 to 1 (positive edge P) at input I 0.1 and,
at the same time, the signal state at input I 0.0 is 0,
then the package on the belt is moving to the right.
If one of the photoelectric light barriers is broken, this means that there is a package between the barriers.
Network 3: If neither photoelectric barrier is broken, then there is no package between the barriers.
The direction pointer shuts off.
-
- Posts: 8
- Joined: Fri Feb 06, 2009 12:59 am
- Location: Greenland
suggestion
Hi Macminh
I think I have a suggestion for you, but it requires a speciel detection device for your sensor, when using only a 0 / 1 output. You need a disc with 3 "tabs" on. 1 long, and 2 or 3 short, and perhaps differet distance betvens them all, then you should be able to write a program, using some timers...
Dont know how to insert a picture, but please let me know if you have any questions.
I think I have a suggestion for you, but it requires a speciel detection device for your sensor, when using only a 0 / 1 output. You need a disc with 3 "tabs" on. 1 long, and 2 or 3 short, and perhaps differet distance betvens them all, then you should be able to write a program, using some timers...
Dont know how to insert a picture, but please let me know if you have any questions.
-
- Posts: 18
- Joined: Sat Jun 06, 2009 7:45 am
- Location: Vietnam
Re: suggestion
Rune wrote:Hi Macminh
I think I have a suggestion for you, but it requires a speciel detection device for your sensor, when using only a 0 / 1 output. You need a disc with 3 "tabs" on. 1 long, and 2 or 3 short, and perhaps differet distance betvens them all, then you should be able to write a program, using some timers...
Dont know how to insert a picture, but please let me know if you have any questions.
thank you for reply, but i understand not more.you can explain more to me.
you can guide me manufacture it
-
- Posts: 8
- Joined: Fri Feb 06, 2009 12:59 am
- Location: Greenland
Hi
The solution i suggested is the same at shown in picture no. 4. From siemens eksample. One sensor, and differet detection points on a disc on the output shaft. The program, shold then be able to detect way of rotation, because you have different timers, between the detection points on the disc.
-
- Posts: 18
- Joined: Sat Jun 06, 2009 7:45 am
- Location: Vietnam
Re: Hi
i want to count the number of gear and detect way of rotation.Rune wrote:The solution i suggested is the same at shown in picture no. 4. From siemens eksample. One sensor, and differet detection points on a disc on the output shaft. The program, shold then be able to detect way of rotation, because you have different timers, between the detection points on the disc.
With your suggestion i detect the way of rotation only,count the number of gear is not enough