diff --git a/silecs-communication-cpp/src/silecs-communication/interface/communication/MBConnection.cpp b/silecs-communication-cpp/src/silecs-communication/interface/communication/MBConnection.cpp index 8647d583bc39fa40bdb04111a2e284525464e62c..de9fcbc1b21dd40a253cac5e39832ced7acfa413 100644 --- a/silecs-communication-cpp/src/silecs-communication/interface/communication/MBConnection.cpp +++ b/silecs-communication-cpp/src/silecs-communication/interface/communication/MBConnection.cpp @@ -379,8 +379,6 @@ int MBConnection::writeBits(PLC *thePLC, long address, unsigned long offset, uns // connection is established then send data writeLock(); - std::cout << "Address: " << address << "\n"; - // addr is a byte address, therefore we don't need to convert to a word address // However, we need to calculate the coil address from the register address long addr = (address - thePLC->getDOBaseAddress()) + offset; @@ -391,8 +389,7 @@ int MBConnection::writeBits(PLC *thePLC, long address, unsigned long offset, uns // DATA topic makes sense with SEND one if (SEND & Log::topics_) - LOG(DATA) << "Write data, address: %MB" << addr / 8 << ", byte-size: " << size << "PLC DO base offset: " << thePLC->getDOBaseAddress(); - + LOG(DATA) << "Write data, address: %MB" << addr / 8 << ", byte-size: " << size; err = writeCoils(writeCtx_, (unsigned short)addr, (unsigned short)size, pBuffer); checkError(thePLC, err, false); // close the connection, will try again // at the next access