Good afternoon! Thanks for the SwapWord function code! Very useful. But what if 4 bytes of the REAL type are read from the PLC(C++ language ). How to convert them?
Good afternoon! Thanks for the SwapWord function code! Very useful. But what if 4 bytes of the REAL type are read from the PLC. How to convert them?
In the 'clientdemo' program the same error. :-(
Fredrik Gustavsson Fredrik Gustavsson - 5 minutes ago Try; int readResult = client.DBRead(1, 0, 4, buffer); did hot help
My modified code static void Main() { Console.WriteLine("Begin"); var client = new S7Client(); //client.SetConnectionType(S7Client.CONNTYPE_BASIC); int connectionResult = client.ConnectTo("192.168.0.106", 0, 2); if (connectionResult == 0) { Console.WriteLine("Connection OK"); S7Client.S7Protection levelProtect = new S7Client.S7Protection(); int errorProtected = client.GetProtection(ref levelProtect); Console.WriteLine(); Console.WriteLine("GetErrorProtection : " + errorProtected); Console.WriteLine("Protection...
I adjusted the size of the array, but it didn't help.
My code: Console.WriteLine("Begin"); var client = new S7Client(); //client.SetConnectionType(S7Client.CONNTYPE_BASIC); int connectionResult = client.ConnectTo("192.168.0.106", 0, 2); if (connectionResult == 0) { Console.WriteLine("Connection OK"); S7Client.S7Protection levelProtect = new S7Client.S7Protection(); int errorProtected = client.GetProtection(ref levelProtect); Console.WriteLine("ErrorProtection : " + errorProtected); Console.WriteLine("Protection level"); Console.WriteLine("sch_schal...
Hi! I have such problems when connecting to a PLC with s7-300. Connection OK. A DBread error: CPU: Item not available. How to fix it? I use STEP 7.