diff --git a/APP_Framework/Applications/control_app/s7_demo/s7_demo.c b/APP_Framework/Applications/control_app/s7_demo/s7_demo.c index f2013d0ae..5afd6ecaf 100644 --- a/APP_Framework/Applications/control_app/s7_demo/s7_demo.c +++ b/APP_Framework/Applications/control_app/s7_demo/s7_demo.c @@ -9,7 +9,7 @@ static char* Address="192.168.250.252"; // plc 250.8, pc 250.252 static int Rack = 0, Slot = 1; // Default Rack and Slot static int Area = S7AreaDB, DBNumber = 13, Start = 0, Amount = 4, WordLen = S7WLByte; // Default Rack and Slot static int bRead = 1; // By default read -static int bWrite = 0; // By default not write +static int bWrite = 1; // By default not write static int CliConnect() { @@ -63,7 +63,7 @@ void s7_demo(int argc, char *argv[]) { Address = argv[1]; } - printf(" Connected to : %s", Address); + printf(" Connected to : %s\n", Address); // Client Creation Client = Cli_Create();