Automatiker
Member
Hi,
As an attachement I placed a cource of my program(Siemens S7). The idea is simply. I will read and write 32bytes from KUKA DP Slave(->HW Config). In FC1 you can see 3 Functions. The first one reads 32Bytes from DP Slave. The third one writes 32Bytes to DP Slave. Siemens and KUKA’s WORDs are different. High and Low bytes must be swap to be able to read right values from this words. The function in the middle of FC1 does.. nothing. Its empty. Funny thing is that it changes the values in its outputs, but only when as output is a “Word” or “INT” from DB5. Tf as outputs there are MWs outputs are 0. I have no idea how can be something in variables from DB5 different from 0. What I also noticed was that if there is no FC20 the values in "Daten_KUKA_1".IN.S_305_320 differs.
Many thanks in advance for your help!
As an attachement I placed a cource of my program(Siemens S7). The idea is simply. I will read and write 32bytes from KUKA DP Slave(->HW Config). In FC1 you can see 3 Functions. The first one reads 32Bytes from DP Slave. The third one writes 32Bytes to DP Slave. Siemens and KUKA’s WORDs are different. High and Low bytes must be swap to be able to read right values from this words. The function in the middle of FC1 does.. nothing. Its empty. Funny thing is that it changes the values in its outputs, but only when as output is a “Word” or “INT” from DB5. Tf as outputs there are MWs outputs are 0. I have no idea how can be something in variables from DB5 different from 0. What I also noticed was that if there is no FC20 the values in "Daten_KUKA_1".IN.S_305_320 differs.
Many thanks in advance for your help!
Last edited: