Skip navigation

Sci Fi Your Pi

12 Posts authored by: frellwan
frellwan

Thanks

Posted by frellwan Aug 26, 2015
I just wanted to take a moment and thank Element14 for the opportunity to participate in this design challenge. I had a great time completing a project that is meaningful to my everyday work. I appreciate the comments and suggestions from fellow Element14 members and 'ScyFy your Pi' participants. I really enjoyed reading the posts from other competitors and took a couple ideas for future projects.   Good luck to all and again Thank You Element14!!! ...
This project mainly deals with data communication, so it is difficult to show a lot of video about the project. Below I have attempted to show some of the pieces working   Here is a video showing if the bit B3:0/0 in the PLC is a 1 that an email will be sent alerting someone (in this case me) that an alarm condition is present:   Here is the recipe being loaded into the PLC   Here is a video of the usb/RS232 communication to PLC in action. The red and green lights indicate ...
This past week I have been completing the code to finalize the project The MTrim RS-422 serial interface needed to be available from within the DF1  RS-232 interface object since the bits in the PLC that are being read by the DF1 object actually trigger the sending of information across the RS-422 serial interface to the MTrim   The final code for the serial communications can be found at: https://github.com/frellwan/SciFy-Pi.git  in the serial/DF1 folder.   Code to make t ...
This week I was able to make progress on being able to read the recipe files and load the data to the PLC. I also made some modifications to the OEE data collection to add a header line to the log  file.   PLC Recipe Files: In order to load recipes, the operator will interact through the PanelView display. The operator chooses to load a new recipe by first selecting a recipe 'Family', then selecting the actual product. As can be seen below N10:23 and N10:24 hold the current screen th ...
This week I was able to make progress on a couple of remaining items. First, I was able to get email notifications working and secondly, I was able to get recipes downloaded. I still need to get the recipe data into the PLC, but I should finish that up shortly. All code for this project is available at https://github.com/frellwan/SciFy-Pi.git under the Serial/df1 folder.   Email Notification The typical protocol for sending mail on the Internet is the Simple Mail Transfer Protocol (SMTP).& ...
This week I was able to get the DF1 protocol operational. It is not a compete implementation of the protocol, but it implements read and write operations for data transfer to/from a SLC 500 processor. RS-232 communication As mentioned in a previous post I am using a USB to RS232(Product Link) cable to be able to communicate to a SLC 500 PLC. The data sheet can be found here http://www.farnell.com/datasheets/814051.pdf. I had to make up a 9 pin (DB9) Female connector to connect to the PLC.  ...
As mentioned in a previous post I will be using python Twisted architecture for the asynchronous communications that are required I chose to use twisted partly because I was interested in learning more about it but also because it supports all the functionality that I needed serial communication(for  RS-232 and RS-422 protocols FTP and SMTP all in one package Twisted certainly is capable of much more but these are the communication channels I need to support   All of the popular Linux ...
Here is video of the PiFace LCD menu program in action   ...
I thought this week I would share my adventure into USB enumeration. As I have mentioned in a previous post I am using the following USB/Serial converters USB to RS232 Cable (Product Link) USB to RS422 cable (Product Link) When these cables are plugged in, the system generates a ttyUSBx device in the /dev directory. Serial USB devices are added in the order in which they are recognized, so the first device will be ttyUSB0, the second will be ttyUSB1 and so on. If the cables are plugged in befor ...
I am using the PiFace CAD to display the contents of a configuration file used for the Serial Master program so the user can see and change the parameters that are being used. A snippet of a config file is shown below:   [RS-232] device = /dev/ttyUSB0 baudrate = 19200 [RS-422] Device = /dev/ttyUSB1 Baudrate = 9600     I will use ConfigParser to read the configuration file.   I believe that a State Machine is the best way to handle the coding for the navigation and display o ...
frellwan

FTP Code Working

Posted by frellwan May 11, 2015
I have ordered a USB to RS232 cable (USB-RS232 WE) to be able to communicate to the AB SLC PLC I have ordered a USB to RS422 cable (USB-RS422 WE) to be able to communicate to the Fenner M-Trim controller   FTP Communication While waiting for the above cables to arrive, I have been working to get the FTP communications working        OEE data      Data will be read from the PLC every minute and stored to a local file. The local file will be s ...
frellwan

Ready to start!!

Posted by frellwan May 4, 2015
Received most of the kit parts - really all of the parts that I need for my project.   I need to order the following cables to communicate to peripherals:   USB to RS232 (9 pin Din connector) USB to RS422 with wire end exposed.     So to recap my project:   Today’s manufacturers are looking to continuously improve their processes to be able to increase quality and reduce waste and cost. Part of the continuous improvement initiatives includes Overall Equipmen ...