Appendix 9.2 When Accessing Buffer Memory Using Sequence Program - Mitsubishi QJ71C24/-R2 User Manual

Melsec system q programmable logic controllers, serial communication modules gx configurator-sc
Hide thumbs Also See for QJ71C24/-R2:
Table of Contents

Advertisement

APPENDIX

Appendix 9.2 When accessing buffer memory using sequence program

<Read command>
<Write command>
<Write command>
App. - 34
In the following program example, data are read from or written to the buffer memory of
the Q series C24 using the REMFR/REMTO instruction.
POINT
Use GX Configurator-SC to change the default value of the buffer memory. Using
GX Configurator-SC, save the new setting value to the flash ROM of the Q series
C24. (Refer to Chapter 8.)
(1) Program conditions
The following program reads data from or writes data to the QJ71C24N buffer
memory (CH1 side word/byte units designation area) when the read/write
command (X1020, X1021) turns ON.
(a) Devices used
• Read/write command.............................................................. X1020, X1021
• Read/write command pulse signal ......................................... M10, M11
• Completion device for REMFR/REMTO instruction .............. M100 to 103
• Normal/abnormal completion flag for REMFR/REMTO
instruction................................................................................ M200 to 203
• Read from word/byte units designation area ......................... D0
• Write to word/byte units designation area.............................. D1
(2) Program examples
(a) Read from buffer memory
(b) Write to buffer memory
:
MELSEC-Q
Changes the read command
into pulses.
Reads the word/byte units
designation area data of the
buffer memory to D0.
Normal completion of
REMFR instruction
Abnormal completion of
REMFR instruction
Changes the write command
into pulses.
Sets the word/byte units
designation to byte.
Transfers the setting value to
the word/byte units designation
area of the buffer memory.
Normal completion of
REMTO instruction
Abnormal completion of
REMTO instruction
App. - 34

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qj71c24nSh-080007Qj71c24n-r2Qj71c24n-r4Qj71c24Qj71c24-r2 ... Show all

Table of Contents