Jump to content

RS232 string to variable how to

Recommended Posts

Please tell me what am I doing wrong? Strings that are received on COM port are like this:


How to configure FB to eliminate A and receive other 3 numeric values? I tried all kind of different combinations and nothing is working 100% correctly.

Atm settings are configured as stream and number that I get is only last two characters. How should I configure it to get always 3 last characters?

Picture of configuration is attached.

Thanks in advance




Link to comment
Share on other sites

Ok, I did it. Removed 'A' character on source and now using numeric, not stream option. Everything is working fine.

Can anyone give me example or point me how to make communication JAVA - PLC? What is the easyest way to do custom things with data from PLC on computer programmatically?

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.

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...