From 0b35613eb3825ee360df639a0f7f41febd894ee6 Mon Sep 17 00:00:00 2001 From: Forsworns <378974295@qq.com> Date: Tue, 15 Feb 2022 14:36:20 +0800 Subject: [PATCH] ok1052-c tick per second revision --- APP_Framework/Applications/control_app/s7_demo/s7_demo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();