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:
A016
A117
A126
A121..

 

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

 

 

post-49968-0-02337300-1461574553_thumb.png

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.