ok thank you again!
Thank you! Now I have another problem, I have to read data of type String(25). How should I read this type of data? Because he is not a native type.
hi, I have a problem reading the Real values from the s7 plc. reading the value with the function Client.ReadArea(Area, DBNumber, Start, Amount, WLen, @Buffer); this returns me this string 6556144. I don't understand how to convert it to a real number. if I try to read Int value it works fine.
Ciao a tutti, sto provando ad utilizzare Snap7 con Delphi per sviluppare un semplice software che possa leggere e scrivere dati (BOOL, DEC, WORD) dal DB1 del mio Siemens S7-1200. Sono riuscito a fare la connessione e la disconnessione del PLC, a leggere lo stato e, credo, a utilizzare la funzione DBRead() visto che utilizzandola mi ritorna come risultato 0. Il problema è che non riesco a capire come leggere i dati letti da DBRead() perchè, su un esempio per C# che ho trovato online, utilizzavano...