Sign in to follow this  
Followers 0
Guest Guest_Rod

S7 Byte Swap

2 posts in this topic

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0