writing data in plc s7 through arduino
32/64 bit multi-platform Ethernet S7 PLC communication suite
Brought to you by:
davenardella
Hello Sir,
I'm trying to write data into plc through arduino mega using your library, but while tring to write int data the data written in plc is differs from the actual data that i was writing.
Here is my code:
int dataToWrite=100;
void *target1;
target1= &dataToWrite;
Client.WriteArea(S7AreaDB, // We are requesting DB access
DBNum, // DB Number
10, // Start from byte N.0
2, // We need "Size" bytes
target1);
The data writing in plc is 25600 instead of 100.
Thank you in advance.
http://snap7.sourceforge.net/siemens_dataformat.html
Thank you sir.
On Sat, Aug 12, 2017 at 4:05 PM, Davide Nardella davenardella@users.sf.net
wrote: