Utco said:
Now there is no Error of Bus Fualt and SF by adding ob82. But I dont know which bytes to move from controller to controller. There are bytes configured in Master Slave i.e. Inputs and Output Bytes. Can I move my flags e.g. M and V in communication?
Can anybody tell me how to move M, V through profibus?
Once the system is up and running its easy. If I remember right you had in the master, QB2 and IB2, and in the slave QB3 and IB3. In the master's program anything written to QB2 will "show up" at the slave as IB3. In the slave's program, anything written to QB3 will show up at the slave as IB2. If all you are doing is a couple of bytes you can just use MOVE commands to move the data into and out of the Profibus bytes. If you want to move three or more than 4 bytes at the same time you have use SFCs
For example, in the master's program, say you want to send MB10 to the slave. Put MB10 on the left side of the MOVE command and QB2 on the right side. In the slave's program this will show up as IB3. In the slave's program you can just use the individual bits, or move them to a memory byte like MB10 in the slave's program.
Master ------------------------ Slave
M10.0 - Q2.0 ------ Profibus -- I3.0--M10.0
m10.1 - Q2.1 ------------------I3.1 -M10.1
m10.2 - Q2.2 ------------------I3.2--M10.2
m10.3 - Q2.3 ------------------I3.3--M10.3
m10.4 - Q2.4 ------------------I3.4--M10.4
m10.5 - Q2.5 ------------------I3.5--M10.5
m10.6 - Q2.6 ------------------I3.6--M10.6
m10.7 - Q2.7 -------------------I3.7--M10.7
MOVE command -----------------MOVE command
I tried to put a picture in but can't seem to get that to work. Does that make sense?