-> Hier kostenlos registrieren
Hi there,
I have to develop simple application which will connect to Simatic 300 and recieve the data from it (Format data block from screen shot in configuration panel is -> DB29 and lenght = 32)
Im using for it library libnodave but Im new in this area of knowlege so I have few questions.
1. I made connection to PLC VIA TCP (.opensocket (102.IP))
2. I recieve simple data using dc.readybytes(daveDB,29,0,32,buffer) but the resoults are like some numbers ( I believe there are bytes). What I need to do with it know ? Im trying to encode it using System.Text.Encoding.ASII.getString(buffe) but there is nothing in there...
3. My application has to work all the time, and in each x minutes has to check if the data are from the PLC, which is the best way to do it ? Using thread and loop while() is good one ?
4. If I want to recieve data from PLC what I need to know ? Do I need to send any information to PLC for start recieve data ??
Please help.
Regards
Emil
I have to develop simple application which will connect to Simatic 300 and recieve the data from it (Format data block from screen shot in configuration panel is -> DB29 and lenght = 32)
Im using for it library libnodave but Im new in this area of knowlege so I have few questions.
1. I made connection to PLC VIA TCP (.opensocket (102.IP))
2. I recieve simple data using dc.readybytes(daveDB,29,0,32,buffer) but the resoults are like some numbers ( I believe there are bytes). What I need to do with it know ? Im trying to encode it using System.Text.Encoding.ASII.getString(buffe) but there is nothing in there...
3. My application has to work all the time, and in each x minutes has to check if the data are from the PLC, which is the best way to do it ? Using thread and loop while() is good one ?
4. If I want to recieve data from PLC what I need to know ? Do I need to send any information to PLC for start recieve data ??
Please help.
Regards
Emil