Establish communication for data exchange of variables between a SIMATIC PLC and a Beckhoff TwinCAT3 PLC by using the SIMATIC ADS communication blocks “READ_ADS” and “WRITE_ADS”.
READ_ADS and WRITE_ADS communication blocks use the ADS protocol to read or write variables from the process image of the TwinCAT3 PLC. Internally, these blocks use the standard SIMATIC “Open User Communication” blocks to establish a connection to TwinCAT PLC using the ADS protocol.
READ_ADS: Establishes a connection to a Beckhoff PLC and reads a symbolically addressed variable using ADS protocol from TwinCAT3 project. After the communication has been setup and established, it is automatically get maintained by the PLC.
WRITE_ADS: Establishes a connection to a Beckhoff CPU and writes a symbolically addressed variable using the ADS protocol to TwinCAT project. After the connection has been set up and established, it is automatically maintained by the CPU.
The connection data specified in the “connectionInfo” parameter are used to set up the communication connection.
