floka94 opened a new issue, #701:
URL: https://github.com/apache/plc4x/issues/701

   I am trying to write a single BOOL value to a Siemens S7-400 PLC with the 
OPM Feature.
   
   Here is my Entity:
   
   ```java
   @PlcEntity
   public class NewDataSetReady {
   
       @PlcField("%DB9002:5.0:BOOL")
       public boolean isDataSetReady;
   
       public NewDataSetReady() {
           // For OPC
       }
   
   }
   ```
   
   Here is my write operation:
   
   ```java
   NewDataSetReady newDataSetReady = new NewDataSetReady();
   newDataSetReady .setIsDataSetReady(false);
   NewDataSetReady newDataSetReadyResponse = 
entityManager.write(NewDataSetReady.class, connectionString, newDataSetReady);
   ```
   
   After the write operation i get the following warning and my value is not 
persisted:
   ```bash
   [org.apa.plc.jav.s7.rea.pro.S7ProtocolLogic] (nioEventLoopGroup-2-1) Got an 
error response from the PLC. This particular response code usually indicates 
that PUT/GET is not enabled on the PLC.
   ```
   
   Here is a snapshot from the ISOTCP Protocoll communication between PLC4X and 
S7-400 (from Wireshark):
   
   Write data to PLC:
   
![image](https://user-images.githubusercontent.com/29139420/208043243-7e64d1e5-d81c-4b80-a862-4d7e007a464f.png)
   
   Response from PLC:
   
![image](https://user-images.githubusercontent.com/29139420/208043490-2bbb2efb-cd5d-40cc-8955-4510542cd4c9.png)
   
   I have also tried the whole thing with a single byte, but get the same 
error. For other datatypes like INT the write process works. 
   
   I tried the BIT write operation also on a S7-1500 and it worked.
   
   ---
   PLC4X v. 0.10.0


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@plc4x.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to