Jump to content
Uri

PCOM with Hyperterminal

Recommended Posts

Hi

I try to communicate with Samba 35j (with configured Ethernet card in ladder) by the  Hyperterminal program

I copied massege from Java example in this forum

       tcpHeader[0] = 1; //???
       tcpHeader[1] = 0; //???
       tcpHeader[2] = 101; //Ascii comm type
       tcpHeader[3] = 0;
       tcpHeader[4] = 14; ///01RE0020051F + CRC = 14
       tcpHeader[5] = 0;

       String message = "/01RE0020051F\r";

Finaly i have a massege   '101010140/01RE0020051F\r'

Hyperterminal conected to PLC in 192.168.1.20  20256

I send the massege and northig heppend.  WHY.

The same result with another programs like Hercules.

Regards

Uri

 

 

Share this post


Link to post
Share on other sites

Well. you say that your message is  '101010140/01RE0020051F\r'

the 101010140 at the start looks like a string, while it should be a binary.

 

You can look at the Monitor (inside the Info of the PLC), and see the received message. If you see the TCP Header as string, then it is incorrect.

The same thing probably for the \r. I Assume that you send it as 2 characters: '\' and 'r', while it means \r (Cartage return).

 

 

Hyperterminal send strings, so if you write 101010140, then it will send it as string.

 

Read:

https://www.seetron.com/archive/html/ht_tip1.htm

You can use (at least from what it says) to send special characters using ALT + numbers, for sending the TCP Header.

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...