[?]: DEFINE DIRECTION ROTATION OF GEAR

CX-One, CX programmer, NTST, Syswin ....
Post Reply
macminh
Posts: 18
Joined: Sat Jun 06, 2009 7:45 am
Location: Vietnam

[?]: DEFINE DIRECTION ROTATION OF GEAR

Post by macminh » Mon Jul 27, 2009 9:50 am

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.

Rune
Posts: 8
Joined: Fri Feb 06, 2009 12:59 am
Location: Greenland

Post by Rune » Tue Jul 28, 2009 1:36 am

Is this even possible ? If i should make a safe detektion, I would spent 2 sensors, but please let me know if you solve the problem !

CoMod
Site Admin
Posts: 3969
Joined: Thu Feb 16, 2006 3:25 pm
Location: Russia
Contact:

Post by CoMod » Tue Jul 28, 2009 4:32 am

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.
Image


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.

Image

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.

Image

Network 3: If neither photoelectric barrier is broken, then there is no package between the barriers.
The direction pointer shuts off.

Image

macminh
Posts: 18
Joined: Sat Jun 06, 2009 7:45 am
Location: Vietnam

Post by macminh » Tue Jul 28, 2009 7:02 am

CoMod wrote:From Simatic Help File
...

i want to use one proximity sensor to define the direction rotation of gear

Rune
Posts: 8
Joined: Fri Feb 06, 2009 12:59 am
Location: Greenland

suggestion

Post by Rune » Tue Jul 28, 2009 7:21 pm

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.
Image

macminh
Posts: 18
Joined: Sat Jun 06, 2009 7:45 am
Location: Vietnam

Re: suggestion

Post by macminh » Wed Jul 29, 2009 1:12 am

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.
Image


thank you for reply, but i understand not more.you can explain more to me.
you can guide me manufacture it

Rune
Posts: 8
Joined: Fri Feb 06, 2009 12:59 am
Location: Greenland

Hi

Post by Rune » Wed Jul 29, 2009 10:33 am

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.

macminh
Posts: 18
Joined: Sat Jun 06, 2009 7:45 am
Location: Vietnam

Re: Hi

Post by macminh » Thu Jul 30, 2009 1:17 am

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.
i want to count the number of gear and detect way of rotation.
With your suggestion i detect the way of rotation only,count the number of gear is not enough

macminh
Posts: 18
Joined: Sat Jun 06, 2009 7:45 am
Location: Vietnam

Re: Hi

Post by macminh » Thu Jul 30, 2009 7:05 am

macminh wrote:i want to count the number of gear and detect way of rotation.
Which the rotational speed and diameter?
i don't know the rotation speed, but it is slow
the diameter is 40 centimetre

Post Reply