Jump to content

Recommended Posts

Hey everyone,

I have a question, i need to send this to a linux system:

Decimal: STX 1;12 ETX=> ASCII(dec): 2 49  59 49 50 3

I have spoken to the programmer of the linux system and he told me that our whole comunication will go by ASCII.

I am completly new to rs 232 so i hope u guys can help me get going.

 

Link to comment
Share on other sites

Hi;

You will  need to set up the RS232 Com Port

You can use the FB Protocol  Function blocks to send the data string.

Under Help, go to Examples, and then to Communications and look at the examples under FB Protocol.

     the Example      V130_Send_number_and_string          illustrates how to do this.

In Help - search  fb s library  and then Communications Protocol

Experiment, post your code  with your questions.

 

DanT

 

 

 

 

Link to comment
Share on other sites

  • MVP 2023

The best way to solve your problem is to try to transfer the required packets first using the program on your PC.

Only after making sure that you are transmitting the correct data can you try to transmit them using the PLC Protocol function.

Here are topics with links to programs and some tips for using Protocol FB

 

 

Link to comment
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...