Jump to content

S7 Byte Swap


Guest Guest_Rod

Recommended Posts

Guest Guest_Rod
Posted
Hi all, I currently have an S7315-DP/PN setup as a profibus slave to a Kuka Robot. I have all the comms working OK but when i set an INT value in the PLC the wrong bits are set in the robot. So basically i need to swap the most significant byte with the least significant byte to get the right value in the robot. The integer value is defined in a data-block and BLKMOVE instruction to QW##. Being "not so experienced" with siemens step7, whats the easiest way to swap bytes for an integer value to write to the master profibus node??

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.   Restore formatting

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