Hello,
I'm using KRC2 with Siemens CPU317 connected via Profibus. Robot is a slave. Profibus is working correctly, I/Os are mapped:
Signal is declared in config as 16bit variable:
I'm sending word (QW100) form Siemens PLC, but there is some kind of conversion going on. When I send 1, I get 256 in variable on KRC. When I send 2, I get 512 and so on. But when I enter number above 258 I get 513, so I can't just devide every variable with 256. There seems to be some kind of byte swap between S7 and KRC. How can I set the byte swap?
The idea is that I would use a 16bit variable so I could enter values from -32768 to 32768 and get the exact same number on KRC.