Mitsubishi Electronics AJ65bt-r2 ユーザーズマニュアル
9 - 6
MELSEC-A
9 PROGRAM EXAMPLES
9.2.2 When using dedicated commands with ACPU / QCPU-A (A mode)
An example of the program for using the dedicated commands with the ACPU /
QCPU-A (A mode) when using the buffer memory automatic update function is shown
below.
QCPU-A (A mode) when using the buffer memory automatic update function is shown
below.
Master station initialization
Read remote input (RX) (X100 to X11F)
Confirm R2 data link state
Synchronization mode:
invalid
invalid
No. of connected
modules: 1 module
modules: 1 module
R2 station information
(intelligent, one station
occupied, station No. 1)
Set transmission buffer
size
(intelligent, one station
occupied, station No. 1)
Set transmission buffer
size
Set reception buffer size
Set automatic update
buffer size
buffer size
Dedicated command
(RLPA)
(RLPA)
Master station head
I/O No.
I/O No.
Parameter storage
head device
head device
Device to turn one scan
ON at completion
ON at completion
Read parameter state
when abnormal
when abnormal
Change to bank 0
Read RXn0 to RX(n+1)F
to X100 to X11F
to X100 to X11F
Read R2 data link state
(SW0080)
(SW0080)
R2 data link normal
R2 data link error
Error LED