Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. .hex file converter

.hex file converter

Scheduled Pinned Locked Moved C / C++ / MFC
7 Posts 5 Posters 27 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Muhammad Adnan 2022
    wrote on last edited by
    #1

    There is any we understand or convert or any other way we use .hex file and creat any plc language or program in plc language

    V L CPalliniC 3 Replies Last reply
    0
    • M Muhammad Adnan 2022

      There is any we understand or convert or any other way we use .hex file and creat any plc language or program in plc language

      V Offline
      V Offline
      Victor Nijegorodov
      wrote on last edited by
      #2

      And what is your question?

      1 Reply Last reply
      0
      • M Muhammad Adnan 2022

        There is any we understand or convert or any other way we use .hex file and creat any plc language or program in plc language

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Yes many ways, but you will need more information before you can start. Firstly you need to understand the format of the data in the "hex" file. Then you need to understand the instruction set (and format) of the plc language. Once you understand both those things you can start to design your converter.

        M 1 Reply Last reply
        0
        • L Lost User

          Yes many ways, but you will need more information before you can start. Firstly you need to understand the format of the data in the "hex" file. Then you need to understand the instruction set (and format) of the plc language. Once you understand both those things you can start to design your converter.

          M Offline
          M Offline
          Muhammad Adnan 2022
          wrote on last edited by
          #4

          I want the way how can we learn these ways I have some knowledge about plc languages but didn't know about the C,C++,asemly language too. Please help me the way I can understand

          L D 2 Replies Last reply
          0
          • M Muhammad Adnan 2022

            I want the way how can we learn these ways I have some knowledge about plc languages but didn't know about the C,C++,asemly language too. Please help me the way I can understand

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Like I said, you first need to understand the format of the "hex" (whatever that means) file. You also need to understand exactly what it is you want to convert it into. And without a lot more information it is impossible to make any better suggestions.

            1 Reply Last reply
            0
            • M Muhammad Adnan 2022

              I want the way how can we learn these ways I have some knowledge about plc languages but didn't know about the C,C++,asemly language too. Please help me the way I can understand

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              This is an example of what you're in for. Get any HEX editor, like HxD[^], and install it. Now go grab the Notepad.exe file from C:\Windows and open it in the hex editor. Now you're looking at a whole of bunch of bytes that make up the content of the file, and you need documentation to tell you what every one of those bytes means. You're going to start here[^] to figure that out. Oh, and when you get to actual executable code, you're going to have to understand the Intel instruction set, all the addressing modes, and the operands each instruction requires. All of that is in the bytes that make up the executable code. Notice, you're not going to get back C/C++ code. You're getting back assembly code. Once you're brain melts from trying to understand all that, now you have to do that same thing for the .hex file you're looking at for your PLC's. Oh, and you'll need all the relevant documentation similar to this example of disassembling Notepad. Do you get it now?

              Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
              Dave Kreskowiak

              1 Reply Last reply
              0
              • M Muhammad Adnan 2022

                There is any we understand or convert or any other way we use .hex file and creat any plc language or program in plc language

                CPalliniC Offline
                CPalliniC Offline
                CPallini
                wrote on last edited by
                #7

                Do you mean Intel HEX - Wikipedia[^] ? That is pretty straightforward. Using it for creating a 'plc language' or a 'program in plc language' is a bit obscure, as far as I can understand.

                "In testa che avete, Signor di Ceprano?" -- Rigoletto

                In testa che avete, signor di Ceprano?

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups