7 APPLICATION INSTRUCTIONS
7.6 Reading/Writing Data Instructions
597
7
Processing details
• These instructions retrieves the specified number of points of data specified by (n) from the device specified by (s2) and
write it to the write offset in the device specified by (s1) in the device data storage file in data memory. (s1) indicates the
offset from the start of the device data storage file and can be specified by word offsets (incremented by 1 every 16 bits).
• The completion device specified by (d) automatically turns on upon execution of the END instruction following the detection
of processing completion of the SP.DEVST instruction and turns off upon execution of the END instruction in the next scan,
so it is used as the execution complete flag of the SP.DEVST instruction.
• If the SP.DEVST instruction completes with an error, the error completion device specified by (d)+1 turns on or off at the
same time as the completion device specified by (d). Therefore, the device is used as the error completion flag of the
SP.DEVST instruction.
• SM753 (File being accessed) turns on while the SP.DEVST instruction is executed. If SM753 has already been on, the
SP.DEVST instruction cannot be executed. (If executed, no processing is performed.)
• If an error is detected during execution of the SP.DEVST instruction, the completion device (d), error completion device
(d)+1, and SM753 do not turn on.
• When the S(P).DEVST instruction is used, a device data storage file must be set up in advance. (
• Use the S(P).DEVLD instruction to read device data from the device data storage file to any specified device. (
Precautions
• The value written to data memory is the one at execution of the SP.DEVST instruction.
• Execution of the SP.DEVST instruction increases SD634 and SD635. The number of writes to the data memory of the CPU
module is limited. If the data memory write count index exceeds 100,000, an error occurs with error code 1080H.
• To prevent the data memory write count from being increased by careless instruction execution, SD771 can be set to limit
the write count per day. The maximum number of writes is 36 by default. Change the maximum number of writes by using
SD771 as needed. If the specified write count is exceeded, an error occurs with error code 3421H. The number of
executions of the instruction to write to data memory per day is initialized to 0 at the following timing.
• Data is written to the device data storage file when the END instruction is executed. Data is written to the device data
storage file when the END instruction is executed immediately after the SP.DEVST instruction is executed. Thus,
depending on the number of write points, writing to the device data storage file may involve multiple scans. Check the
completion device to see whether the writing is completed.
• When power off
on, or when reset
reset canceled
• The date (year, month, day) in clock data is changed by time advancement.
• CPU module internal clock data (year, month, day) is changed by the clock data change function.
(n)
+0
+1
+2
(s1)
(s2)
Data memory
Device data storage file
Write offset of the device data
storage file
Write offset
16 bits
Содержание MELSEC iQ-R Series
Страница 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Страница 2: ......
Страница 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Страница 34: ...32 MEMO ...
Страница 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Страница 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Страница 204: ...202 5 SEQUENCE INSTRUCTIONS 5 3 Output Instructions Operation error There is no operation error ...
Страница 470: ...468 6 BASIC INSTRUCTIONS 6 6 Data Conversion Instructions Operation error There is no operation error ...
Страница 472: ...470 6 BASIC INSTRUCTIONS 6 6 Data Conversion Instructions Operation error There is no operation error ...
Страница 479: ...6 BASIC INSTRUCTIONS 6 6 Data Conversion Instructions 477 6 Operation error There is no operation error ...
Страница 504: ...502 6 BASIC INSTRUCTIONS 6 7 Data Transfer Instructions Operation error There is no operation error ...
Страница 518: ...516 6 BASIC INSTRUCTIONS 6 7 Data Transfer Instructions Operation error There is no operation error ...
Страница 520: ...518 6 BASIC INSTRUCTIONS 6 7 Data Transfer Instructions Operation error There is no operation error ...
Страница 754: ...752 7 APPLICATION INSTRUCTIONS 7 9 Real Number Instructions Operation error There is no operation error ...
Страница 756: ...754 7 APPLICATION INSTRUCTIONS 7 9 Real Number Instructions Operation error There is no operation error ...
Страница 758: ...756 7 APPLICATION INSTRUCTIONS 7 9 Real Number Instructions Operation error There is no operation error ...
Страница 760: ...758 7 APPLICATION INSTRUCTIONS 7 9 Real Number Instructions Operation error There is no operation error ...
Страница 895: ...7 APPLICATION INSTRUCTIONS 7 16 Ramp Signal Instruction 893 7 Operation error There is no operation error ...
Страница 917: ...7 APPLICATION INSTRUCTIONS 7 20 Data Processing Instructions 915 7 Operation error There is no operation error ...
Страница 919: ...7 APPLICATION INSTRUCTIONS 7 20 Data Processing Instructions 917 7 Operation error There is no operation error ...
Страница 1415: ...13 SFC PROGRAM INSTRUCTIONS 13 1 SFC Control Instructions 1413 13 Operation error There is no operation error ...
Страница 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Страница 1795: ...25 TYPE CONVERSION FUNCTIONS 25 1 Converting BOOL to WORD 1793 25 Operation error There is no operation error ...
Страница 1805: ...25 TYPE CONVERSION FUNCTIONS 25 10 Converting WORD to DINT 1803 25 Operation error There is no operation error ...
Страница 1819: ...25 TYPE CONVERSION FUNCTIONS 25 21 Converting INT to DWORD 1817 25 Operation error There is no operation error ...
Страница 1950: ...1948 32 STRING FUNCTIONS 32 2 Extracting String Data From the Left Right Operation error There is no operation error ...
Страница 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Страница 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Страница 2082: ...2080 APPX Appendix 6 Process Control Program Examples 129 Set the default value of the loop tag ...
Страница 2093: ...APPX Appendix 7 List of Loop Tag Memory Areas Used by Process Control Instructions 2091 A MEMO ...
Страница 2109: ......