Dantty Posted January 5, 2012 Report Posted January 5, 2012 Hi Everybody<br style="color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 16px; background-color: rgb(245, 245, 245); "> Please can you help me with the following.<br style="color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 16px; background-color: rgb(245, 245, 245); "> I have a vision 570 OPLC which must command an adjustable voltage Power Supply (PS) through the serial port on RS232.<br style="color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 16px; background-color: rgb(245, 245, 245); "> The PS has its own proprietary protocol, so I'm using FB protocol, to send through the block, to assemble the frame.<br style="color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 16px; background-color: rgb(245, 245, 245); "> Exactly the story I need to send is F1 00 36 10 10 01 47. Before check PS-PLC communication I have verified PLC-PC communication and PC get exactly what the PLC send ... F1 00 36 10 10 01 47<br style="color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 16px; background-color: rgb(245, 245, 245); ">However when PLC-PS, it is not responding (I'm sending the command that the PS put in remote mode).<br style="color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 16px; background-color: rgb(245, 245, 245); "><br style="color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 16px; background-color: rgb(245, 245, 245); "> I consulted the provider of the source and I responded as follows: "The PLC or a PC can send data over COM port either binary or as ASCII. I think you are sending ASCII. It means, F1 00 36 10 10 01 47 is sent as a string of ASCII bytes, not binary bytes. In ASCII, the value 00 for example is sent as two binary bytes 30 30, so the number of bytes in the message actually doubles"<br style="color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 16px; background-color: rgb(245, 245, 245); "> Anyone know how to do that in UNITRONICS.? how to send data in binary form in UNITRONICS.?<br style="color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 16px; background-color: rgb(245, 245, 245); "><br style="color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 16px; background-color: rgb(245, 245, 245); "> thank you very much<br style="color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 16px; background-color: rgb(245, 245, 245); "> DAntty
Ofir Posted January 5, 2012 Report Posted January 5, 2012 Hi, If you wish to send the string as binary then you can use either the control characters or using the variable stream. When using the stream variable you will need to link a vector which holds the values required. See attached picture for protocol send using the control characters.
Dantty Posted January 5, 2012 Author Report Posted January 5, 2012 Hi, If you wish to send the string as binary then you can use either the control characters or using the variable stream. When using the stream variable you will need to link a vector which holds the values required. See attached picture for protocol send using the control characters. Thanks for you awswer.. I have doing that You show on the picture. But i do not have any response of the power supply. Because IT is send by ASCCI way. I need to send to binary way...i that possible.?
Ofir Posted January 8, 2012 Report Posted January 8, 2012 Hi, The ways I described in my previous post will send the string in binary way. You can send the string from the PLC to Terminal application and check that you send the right sting. If you still unable to get a response then attach the ducmentation of the protocol.
Dantty Posted January 9, 2012 Author Report Posted January 9, 2012 Hi, The ways I described in my previous post will send the string in binary way. You can send the string from the PLC to Terminal application and check that you send the right sting. If you still unable to get a response then attach the ducmentation of the protocol. Dear Mr. Thanks for trying to help Me. I have done the following to send the frame F1 00 36 10 10 01 47 I put MI50 = F1; MI51 = 00 , MI52 = 36, MI 53 = 10, MI 54 =10 , MI55 = 01 MI56 = 47.On the PC, I'm seeing that the right data send by the PLC. F1 00 36 10 10 01 47 But when connecting PLC - Power Supply , it is not responding. I have reviewed the communication parameters of PC, PLC and source and are the same (38400 bps, odd, 8, 1). To send Parametres PC - Power Supply, I do it through Docklight program. I attach the following: 1 .-Images of Visilogic program. 2.-Image of Physical Connection PLC / Power Supply. 3 .- Protocol of the Power Supply. Serial Card. Please see the page 4 or 24 . The card that I am using is IF-R2. (DB9 port) 4.- Dockligth command file.(basic.txt). Please to open change basic.txt by basic.ptp The dockligth http://www.docklight.de/ can be downloadedthanks for all.regards.Dantty <br class="Apple-interchange-newline"> Basic.txt unitronics_problem.doc manual.pdf
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now