Mahde Posted August 18, 2019 Report Share Posted August 18, 2019 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 Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted August 18, 2019 MVP 2022 Report Share Posted August 18, 2019 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. Quote Link to comment Share on other sites More sharing options...
Mahde Posted August 18, 2019 Author Report Share Posted August 18, 2019 please look at the attached picture.. the command should transfer or i have to add any control char? in hyper-terminal from pc no more char needed.. only writing 1go5 and the valve start moving send_command_test.vlp Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted August 19, 2019 MVP 2022 Report Share Posted August 19, 2019 In hyperterminal an invisible carriage return is added. Try adding that to your Send message- If that doesn't work change your length to 2 and add a "LF" (0A) as well. Joe T. Quote Link to comment Share on other sites More sharing options...
Mahde Posted August 19, 2019 Author Report Share Posted August 19, 2019 it's Work!! Thank you very much Joe T. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.