Greetings!
I made ordinary DB (data block) and inserted data. Every data have own Adress (+0.0, +4.0, +8.0,...), structure (bool, integer,...) and initial value.... Of course that DB have its own number (DB23)...
Now in must do a "put" from that DB to DB on other CPU (by profibus)... The problem is when I specify source (and target) data areas.
They must be in format "P# DB23.DBXyy.0 BYTE zz" (thanx JesperMP)....... so if i nead just data from +4.0 adress can I wrote in "yy" "4" (P# DB23.DBX4.0 BYTE zz) ??
"zz" in syntax means " number of bytes to transfer.....
Can i wrote 1 instead of "zz" when i nead to transfer just bool from 4.0 and "2" if i nead to transfer bool-s form 4.0 and 8.0 ??
What if i nead to transfer bool form 4.0, real from 8.0 and int from 12.0 ?
Please can you describe me principe of that data areas.
btw. plc is siemens
s300
simatic step 7
Thanx a lot!
I made ordinary DB (data block) and inserted data. Every data have own Adress (+0.0, +4.0, +8.0,...), structure (bool, integer,...) and initial value.... Of course that DB have its own number (DB23)...
Now in must do a "put" from that DB to DB on other CPU (by profibus)... The problem is when I specify source (and target) data areas.
They must be in format "P# DB23.DBXyy.0 BYTE zz" (thanx JesperMP)....... so if i nead just data from +4.0 adress can I wrote in "yy" "4" (P# DB23.DBX4.0 BYTE zz) ??
"zz" in syntax means " number of bytes to transfer.....
Can i wrote 1 instead of "zz" when i nead to transfer just bool from 4.0 and "2" if i nead to transfer bool-s form 4.0 and 8.0 ??
What if i nead to transfer bool form 4.0, real from 8.0 and int from 12.0 ?
Please can you describe me principe of that data areas.
btw. plc is siemens
s300
simatic step 7
Thanx a lot!