ok1052-c tick per second revision

This commit is contained in:
Forsworns 2022-02-15 14:36:20 +08:00
parent 72a90da815
commit 0b35613eb3
1 changed files with 2 additions and 2 deletions

View File

@ -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 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 Area = S7AreaDB, DBNumber = 13, Start = 0, Amount = 4, WordLen = S7WLByte; // Default Rack and Slot
static int bRead = 1; // By default read 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() static int CliConnect()
{ {
@ -63,7 +63,7 @@ void s7_demo(int argc, char *argv[])
{ {
Address = argv[1]; Address = argv[1];
} }
printf(" Connected to : %s", Address); printf(" Connected to : %s\n", Address);
// Client Creation // Client Creation
Client = Cli_Create(); Client = Cli_Create();