Announcement

Collapse
No announcement yet.

P2000 Serial Hex + ASCII

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • P2000 Serial Hex + ASCII

    Hi to all.
    I am trying to send through RS-232 the following:
    <80>G<CR>
    hex 80, ASCII G, hex CR
    I tried with ASCII OUT and I can't format it correctly it seems. CR can be hex 20
    Any pointers please.
    Thank you much!
    Best Regards,
    Sylvain.

  • #2
    Have you tried using Pack String (PKS) instruction? Can you provide screen shot of your code?

    Comment


    • #3
      Thank you for reply. I have to switch to RS-482 instead of 232, and make a new cable.
      Yes I used PKS.
      I should be able to try again tomorrow and post my advancement.
      Best Regards,
      Sylvain.

      Comment


      • #4
        Originally posted by SylvainP View Post
        Hi to all.
        I am trying to send through RS-232 the following:
        <80>G<CR>
        hex 80, ASCII G, hex CR
        I tried with ASCII OUT and I can't format it correctly it seems. CR can be hex 20
        Any pointers please.
        Thank you much!
        Best Regards,
        Sylvain.
        Please tell us what is the receiving device and is there a document available that describes its receive data requirements?

        Comment


        • #5
          Thank you for your reply. Issue is now solved.

          The communication issues I had were due to the following:
          -The second RS-232 cannot be used at the same time as the first one (used on with Demo cable in my case).
          -Motor was a bare bone OEM version, from back in the days. RS-485 hardware is not installed.

          PLC is now connected to RS232 ports via Demo Cable. Working good.
          Thank you for the help,
          Best Regards,
          Sylvain.

          Comment

          Working...
          X