Jump to content

Vision 570 FB PROTOCOL by binary way


Recommended Posts

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

Link to comment
Share on other sites

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.

post-11-093956600 1325755386_thumb.jpg

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

post-2942-072609400 1326071231_thumb.jpg

Basic.txt

unitronics_problem.doc

manual.pdf

Link to comment
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...