SIEMENS AG PRODAVE S7
Toolbox for Data Link PGs/PCs to SIMATIC S7
39
mix_write
This function enables the user to write mixed data.
The following data can be read and / or written:
E = Input bytes
A = Output bytes
M = Flag bytes
T = Timer words
Z = Counter words
D = Data in DB
The function mix_write overwrites the data in the PLC parameterised by “data“
with the values transferred in “buffer“..
A maximum of 20 data may be written. In the event of parameter assignment of
typ = A,E,M, size may be set = ”b” or ”w”, in the event of parameter assignment
of type = T,Z,D , size may be set = ”w”.
size = ”w” read word and save
size = ”b” read byte and save
The values to be written must be entered in sequence. For the structure of
"data" see function mix_read.
C-Adapter
int mix_write (char* data, void* buffer);