Broken wire, twinCAT

damjaniii

Member
Join Date
Feb 2014
Location
Maribor
Posts
14
Hey guys. I'm developing a system that will sound an alarm if the wire of the encoder is broken. I am talking about sin/cos encoder, and i haven't done it yet but i made a test sin and 90 degrees shifted cos signal so i can test my idea. I want to ask about the condition in which i should sound the alarm of broken wire. Here's my code, and my condition is SINUS = COSINUS. Is that right or i should make sinus+cosinus=sinus or sinus+cosinus=cosinus or sinus+cosinus=0 THEN break wire, and why? Thank you :)

Untitled.png
 
Im actually trying to find the situation when the wire is broken. if one wire is broken, sin or cos, depend which line do we break is turned to 0 while the cable is broken .... so at some point sin will be equal to cos, that is the point when i realise that the wire is broken or cut... Why is this wrong and how would i use pytaghoras? Thanks and sorry for bothering you.
 
Sorry for a late reply. Check first that your encoder doesn't have this functionality already. I am working with one that has a "fault" wire output for when it senses such a discrepancy between the A & B quadrature signals.
 
for one you dont know at wirebreak if input goes to 0 as the input has high impedance.
You will have to make your calcs with sin*sin+cos*cos > 0.9, whenever lower the circuit has a problem.
 

Similar Topics

Good afternoon forum members. We recently had a fuse blow on the wiring between a 1756-OF6CI analog out card and a control valve (which we have...
Replies
2
Views
2,645
See the Codesys LD program below; I would expect Rungs 2 and 3 to produce functionally identical results, but they do not. Does anyone have any...
Replies
17
Views
606
Hi All, Have got a problem which i first thought to be a network problem but now starting to think we have got a broken 1734-AENT PointIO unit...
Replies
29
Views
4,396
Hello Guys. One question. I have to restore a project from a broken OP177B mono(Version 1.0.1.0), to a different OP177B mono panel (Version...
Replies
9
Views
2,769
Have failed Red Lion DPSX000 data station is it possible to upload the configuration file to download file to new unit
Replies
0
Views
998
Back
Top Bottom