The PUT/GET is a very convenient method for data exchange between two Siemens controllers. Here are some comments on how to set it up:
- Even if we often heard "PUT and GET" the more correct way to say should be "PUT or GET", because the communication blocks PUT or GET should be configured only in one of the CPUs, not on both.
- Enable PUT/GET on both CPUs.
- Ensure there is communication between both CPUs.
- Here's an example for a GET configuration: The trigger is set in the REQ pin, the connection ID is configured through the block configuration by specifyng the partner's IP, the address is a pointer to a non-optimised data block or a memory address in the partner's CPU (e.g., P#DB2.DBX0.0 REAL 1 (1 is the length), P#M0.0 REAL 1 (1 is the length)), RD pin is the data variable where the received data will be written.
Note the error handling when the GET block has an error.
- Here's an example for a PUT configuration:
- Notes: In case the connection gets corrupted, for example if these CPUs were initially configured in GET and then changed to PUT, or vice-versa, it is advisable to format the CPU memory card from the "Online and Diagnostics".


No comments:
Post a Comment