[go: up one dir, main page]

Menu

#11 writing data in plc s7 through arduino

1.0
open
2017-08-12
2017-08-08
No

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.

Discussion


Log in to post a comment.