Mitsubishi Electronics AJ65bt-r2 ユーザーズマニュアル

ページ / 264
5 - 6
MELSEC-A
5   PRELIMINARY INFORMATION
5.3 Program basic format
The basic format for creating a program is shown below.
The program is created with the following arrangement.
Refer to section 5.1 for details on the program conditions.
(1) Master station initialization (Refer to section 5.4.)
     (Parameter settings, start of data link)
(2) Reading of remote input (RX)
(3) Confirmation of R2 data link state
(4) R2 initialization (Refer to section 5.5)
(5) Transmission of data to external device 
      (Refer to sections 6.3.1 and 6.4.1.)
(6) Reception of data from external device 
      (Refer to sections 6.3.2 and 6.4.2)
(7) R2 error processing
(8) Writing of remote output (RY)
(1)
Create a program that instructs CC-Link refreshing and then starts the data link
after the parameters are set. (Refer to section 5.4.)
(2)
Create the following program, and read RXn0 to RX(n+1)F into X100 to X11F.
Module error (master station)
Module ready (master station)
Local station data link state (master station)
Changeover to bank 0
Read 'RXn0 to RX(n+1)F' 
to 'X100 to X11F'
POINT
When using QCPU (Q mode) or QnACPU, setting automatic refresh parameters
refreshes the contents of the remote input (RX) and remote output (RY)
automatically. Thus, the above program is not required.