Monitor Tape Drives With PLC And IR
We have tape rotation services for many customers here at the datacenter. One of them does tape rotation of a specific job that only two people can verify. These jobs happen to run over night which means these guys can’t verify when we need to swap the tapes. If you don’t change the tape out quick enough the job fails, which means we have to check the tape roughly every 30 minutes all night long. That’s just madness!
This is where my newly acquired NANO-10 PLC comes in (Thanks John ;))
Nano features:
I plan on taking at length about the Nano at some point, so I don’t know that I will spend too much time on it here.
I matched this with a few products:
I mounted the LED, momentary switch, RJ45 Jack, and the PLC inside the project box:
Inside the box I: wired input one to the switch, output two to the LED, and broke out the power that was injected into the Ethernet cable and connected it to the PLC.
I then reused the aluminum bracket that was included with the project box to make a bracket for the IR sensor:
The sensor has 3 wires: 5V+, ground, and data. When the sensor detects an object the data pin syncs to ground so your input will go high. When it doesn’t detect it puts the data high. I wired this guy to input four.
Since we are using this to monitor tapes, I mounted it inline with the tapes so I can detect when either tape is ejected:
An amazing feature of the Nano is the ability to send email directly from the PLC!!!! What happens is when the sensor detects an object it sends input four high. This starts a timer. If the input stays high for 1.5 minutes then an email is generated and sent. After this an internal output is latched. This latched output prevents the email from sending any more…otherwise an email would be sent several times a second until the sensor is cleared.
I have another timer that resets the email output after 15 minutes, which means that every 15 minutes an email will be generated until the sensor is cleared.
You will also remember the momentary switch that is installed in the enclosure. This enables a 15 minute sleep mode so you can change tapes without setting the email alert off.
I also adjusted the ladder logic so that it updates a webpage on the internal web server so that you can login and see the status of the tape.
These little PLCs are amazing and the IR sensor works a treat. Any questions or comments, please drop me a comment below.
Now all you need is to rig one up in the privy, to alert you that the toilet paper roll needs replacing. 🙂 🙂 🙂
Hahah that’s a mad and awesome hack 🙂
@Tim
You could probably use a light sensor. The white of the toilet paper would reflect quite nicely. When the roll hit the brown center it would drop the light return and should be pretty easy to sense. 😛
@Andrew
Today, all you hear is Arduino this and Arduino that. PLCs have been controlling the world before I was born! They have so much power and functionality already built in…just waiting for you to take advantage of it. If you want an Arduino to be networked and have the modbus functionality you would pay more than you would for this humble Nano-10!
Where is the photo inside the box? ;D Nice work! I Like it!
@JJ
Ha…I virtually put this all together in one night, so by the time I had my camera it was already in production. I didn’t want to go futzing with it…that or I’m too lazy to unscrew the cover…you decide which…hehehe
What’s wrong with notification when the job is done and the command to pop out the tape is executed?
The box is amazingly cool, for sure =)
@8up
We don’t have access to the server. We just change tapes when we are told. From what I understand the “systems aren’t capable of notifying us.” hehehe
Why not just hire Lance?
If we hire lance, then what do they need me for?
What about a webcam like air vision. Motion detect the tape poping out and send an email. You could also just watch from the computer. NOT AS COOL THO.
Cam would work, though we would most likely have to remove the rack door and mount it across the aisle…plus we would get false positives from foot traffic. We also turn the lights off at night in some areas…
Very clever. Actually thinking of adopting the PLC to email me of temperature alerts. A complete (quality) solution looks to be about $300 US. The PLC is $120 so I will have to look at the trade off. Thanks
Cool VERY Cool, glad to see the Nano worked…. Also may I add, add a little CT the inline power so if the tape gets jammed or stuck you can monitor the amperage on the drive….. see the little CTs at http://www.2lynx.com
the webstore will be up soon….
@John
I approve this shameless self promotion…hehe
Hi Greg,
Allen from Triangle Research here. Love what you have done with our Nano-10. Keep up the good work!
@Allen
Thanks 🙂 I love the little guys. I just did another install and it is monitoring an HVAC system in a 70 year old building. I have 3 CTs and two temp probes. It sends emails when things aren’t running correctly. It actually caught a failure within a week of being deployed and paid for itself in that one incident!
If you guys wanted to send me some “review” samples I would be happy to do a few more write ups…hehe