03-03-2008 06:35 PM
03-04-2008 07:03 PM
03-05-2008 10:21 AM
03-20-2008 10:22 AM
03-18-2014 11:00 AM
Hello every one,
I wrote this program
UserPage ()
CLS ()
sport=" Text "
sString= sport1
putLn ( sString )
and i have enterd some text in Hterm(Interface) which is connected to the serial ports and I am getting my output but after pressing 128 characters in my input.
I would like to see my output immediately, what i will enter in my interface Hterm. For example If i press 100 it should print on my teach pendent. With above program also its printing but after pressing 128 more characters in my interface.
Anyone of you could give some solution for this problem.
thanks in advance.
shiva.
03-18-2014 04:26 PM
Shiva,
You have posted in a National Instruments forum, do you have access to LabView rather than HpyerTerminal? We use ethernet rather than serial, but the approach should be similar. What End Of Line (EOL) character have you specified for the Staubli serial socket? I usually choose something non standard like [ ; ] rather than CR, LF or CRLF. Please make sure both HyperTerminal and Staubli are both using the same EOL character. Next, it sounds like it might be a HyperTerminal problem and it is not sending the string until its buffer becomes full.
We do what you are talking about all the time via ethernet and LabView (send text to the teach pendant screen). Let me know if you have access to LabView, otherwise I will try some HTerm serial communication tonight after work for you.
03-19-2014 06:33 AM
03-19-2014 03:04 PM
Hi Shiva,
1. I hit a small setback on HTerm testing, it looks like I am going to have to make or find a RS-232 gender changer to connect our computer directly to the Staubli via the serial communication port.
2. I did notice on all our computers with an ethernet card that on initially configuring an HTerm connection you can choose, COM1, COM2, etc, and TCP/IP (Winsock). Please check if you have the TCP/IP (winsock) option, it will allow you to use any networked computer to HTerm to the Stuabli via the ethernet port.
3. In your serial HTerm connection, please go to File>>Properties>>Settings>>ASCII Setup. There are a few configurations you can change that might fix the problem. I would start with selecting 'Send Line Ends With Line Feeds' if it is not selected. This might help...
-Sprayer
03-19-2014 03:28 PM
Almost forgot, when you configure the HTerm connection you can select from 3 types of flow control, XON/XOFF, Hardware, and None. Make 3 connections using the three different flow control methods. I suspect 'None' may solve the problem. If HTerm is waiting for the Staubli to send a Clear To Send signal then this could be causing the problem.
03-19-2014 08:07 PM
Shiva, it is simpler for me to show you how we do it via ethernet. See the attached PDF with pictures, please follow these steps.
1. CS8 has 2 ethernet ports, 1 for VAL3 program upload and 1 for user. You will need to connect the second port J205 to a hub, switch or router.
2. On the teach pendant go to control panel
3. Go to controller configuration to configure the J205 ethernet port
4. Go down to network
5. Edit J205 as shown
6. Go back to I/O
7. Go down to socket
8. You have to create a new ehternet socket
9. Choose client
10. Edit it as shown - you may want to increase the time out greater than 5 seconds
11. Create a new VAL3 program as shown
12. You will need to create an sio variable (sioASCII), a string variable (sTEXT), and a number (nIteration)
13. Open HTerm and create test
14. Select TCP/IP (Winsock) communication
15. Edit it as shown
16. It will say unable to connect because the staubli program is not running yet.
17. Run the staubli program
18. Connect with HTerm and type 'Check' & ENTER, 'This' & ENTER, 'Out' & ENTER
19. That should do it. If you don't send any text for too long it just gives you the timeout error
Let me know how it goes!
-Sprayer