Jump to content
Mahde

RS232 Serial connection + command to multi-valve

Recommended Posts

Hi 

I have a multi-valve that can communicate with rs232 by hyper terminal in normal pc.

Iam trying to connect the valve by v570 visio plcs.

I understand from the unitronics examples that i can use send protocol

One comand i can send is : 1go5

This command for example move the valve to port 5.

In hyper terminal after i connect i simply type 1go5 and the valve start moving.

What i shoud write in send protocol FB?

I have to translate the 1go5 to ASCI code before?

Can anybody direct me for this?

Thank you

Share this post


Link to post
Share on other sites

You do not have translate your command to ASCII codes.  The Protocol Send block does that for you.

Try writing the PLC program yourself and post your program here.  Then we will look at what you've done and help.

Joe T.

Share this post


Link to post
Share on other sites

In hyperterminal an invisible carriage return is added.  Try adding that to your Send message-

image.png.372f100e29861dd763e39b563cbeca68.png

If that doesn't work change your length to 2 and add a "LF" (0A) as well.

Joe T.

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