Click here to Skip to main content
15,884,931 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am currently beginning a business project that involves communication between a host laptop and a automated storage machine's logic board via null RS232.

Machine: High Cube II by Lauyan's & Co. (It is a small parts inventory unit with multiple shelves inside)

Capabilities: The shelves have assigned numbers so that the user can type the desired shelf into the operator user interface (keyboard w/ display) which then lowers the shelf down. It is wired to the logic board via RS232 port labeled "user terminal".

The storage system's manufacturer sells software that will allow this host connection via "host connection" RS232 port. I would like to avoid purchasing the expensive software.

Can I create a simple windows application (text box w/ send button) to input a shelf number into the "host connection" port? What kind of data is transmitted into the logic board: standard serial communication language I can learn or is it based on the manufacturer? I've downloaded visual-studio 2013 for this project, will I need to create a program through this or is there software or code already written on this site or another that I could use to send the data through the serial ports? Is this article up my alley: Machine Controller[^]

I was also wondering if it would be easier to replace the operator interface with my host laptop and try transmitting the data through the "user terminal" as if the laptop was the operator interface.

Below is the circuit drawing and pictures of the machine itself.

http://s91.photobucket.com/user/Kyle3390707/library/High%20Cube%20Storage%20System[^]

Thanks for any suggestions.
Posted
Comments
Sergey Alexandrovich Kryukov 22-Jun-15 12:07pm    
Via null RS-232? It sounds interesting… :-)
—SA

We can't tell you - because we don't know.
You need to talk to the manufacturers, and try to get some idea of the communications protocol from them. You can't "guess" how to talk to it - there are far, far to many different ways to do it. If you had the communications software it's possible that by putting a datascope on the serial port you could examine the existing comms and work most (if not all) of it out for yourself, but without that you don't stand a chance.

Get the protocol manual or spec from the manufacturer and you have a good starting place. But with nothing? You will spend more of your valuable time getting frustrated than you would have done buying the software from them in the first place - and you will probably have to buy it anyway. You've already spent a couple of days on it: how many more before it has cost your company more than buying the software? :laugh:
 
Share this answer
 
Comments
Member 11780461 26-Jun-15 12:26pm    
Yeah you are right about the time spent versus paying for the software. Thankfully I received the command set and was able to conduct commands from a host laptop. Thanks for the help
OriginalGriff 26-Jun-15 13:58pm    
You're welcome!
I refrained from answering your previous question because really where to start. The cost of the vendor software is probably going to be insignificant compared to the time you will need to spend here.

I can give you a generic approach that I would employ in this situation.

1. Obtain a technical manual from the vendor - you will need the command set for the device. There may be an industry standard command set for these devices, if so that is what you need. If you don't have this information do not proceed.

2. Download a serial console such as PuTTY: http://en.wikipedia.org/wiki/PuTTY[^]

3. Hook up your device to your computer using the proper cable. If a laptop you will need a USB serial adaptor: http://www.instructables.com/id/The-serial-port---software-setup/[^]

4. Become comfortable with sending and receiving data from the device using PuTTY. This is where you learn the instructions for your device and confirm that everything is working.

5. Read this article or others like it to learn how to use your own software in place of PuTTY. http://csharp.simpleserial.com/[^]
This link should get you started but there is a wealth of material on the internet on this subject particularly right here on CP. I am assuming you will use C# as you have not stated you have an alternative in mind.

Return here as and when necessary with particular questions.
 
Share this answer
 
v6
Comments
Member 11780461 26-Jun-15 12:24pm    
Thanks for the steps. I received the manufacture's command set and followed your outline and was able to conduct its movement. Obviously you were right, I wouldn't have stood a chance without their command protocol
[no name] 26-Jun-15 22:30pm    
Excellent.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900