The NETR/NETW instruction can read and write the M and V variables of the partner (communication partner). Since the M area has limited space (maximum 32 bytes MB0 to 31), the V variable area (10240 bytes) is commonly used as the buffer for communication. Two buffers are identified in each PLC, one for reception and one for transmission.
Programming only needs to call the subroutine created by NETR/NETW in the master station. Then (the main and slave have to do) is to sort the I and AI input data into the send buffer in the v variable area, and then read the receive buffer. The data in the receive buffer of the partner are the same as the data in the send buffer here. Similarly, the data in the receive buffer can be interpreted by reading the data in the receive buffer.
Setting cpu224xp as a slave does not affect the touch screen plugged into PORT1. The two serial ports are separate from each other and can be used separately as master and slave respectively because they have different interrupt numbers. .