Sign in to follow this  
Followers 0
saruans

send only hex number via rs232 serial line 1 M241

2 posts in this topic

hello,

Maybe somebody know how need send only hex numbers via rs232 in the external device? I tried to use SEND_RECV_MSG function block, but unsuccessful, because send ASCII code. Need send 16#AE number, but I don't have any idea how need do it. I am waiting your advice.

Share this post


Link to post
Share on other sites

try and just use the send function block and once done the receive....just a thought. Also you can convert dec to hex, hex to string etc just as you like in the plc. Its all binary in the end. Length of message might be an issue but unless knowing what device or model you are using I cannot be sure. 

Ps. the physical interface is the most important. if that isnt right you will not get any communication. 

Edited by cHud

Share this post


Link to post
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
Sign in to follow this  
Followers 0