Setting receive buffer for CPU

For program controlled communication, a receive buffer must be specified in the DT memory area. The maximum area is up to 16384 words.Specify the following items:

  1. Starting address

  2. The capacity of the receive buffer (number of words)

Receive buffer layout

  1.  (1) Starting address
  2.  (2) Storage area for the number of bytes received
  3.  (3) Storage area for the data received
  4.  (4) Capacity

Bold numbers indicate the order of reception.Incoming data is stored in the receive buffer. Start and end codes are not stored in the receive buffer. The storage area for the data received starts with the second word of the receive buffer (offset 1). Offset 0 contains the number of bytes received. The initial value of offset 0 is 0.

  1. Double-click “PLC” in the navigator.
  2. Double-click “System registers”
  3. Double-click “Serial ports”

    The communication ports occupy different bit positions of the same system register, so individual settings for each communication port are possible.To make settings for the TOOL port, select “System registers” > “Serial ports” > “TOOL”.The number of the system register for the respective settings may vary according to the PLC type used.
NOTE

In order to use the data in the receive buffer, define a global variable having the same starting address and capacity. However FP7 and MCU expansion units do not have such a corresponding DT register address. To transfer data from the receive buffer into the PLC data register use ReceiveData

Related topics:

Modified on: 2022-03-02Feedback on this pagePanasonic hotline