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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...