When the range of the array is exceeded (when the execution result exceeds the range), an instruction will not be executed.
When an error occurs, #L_Error turns ON.
The result in D1 maintains the value from the previous successfully run instruction.
When checking the result using system variables, make sure the check takes place after the instruction has been executed. When checking the state after multiple instructions have been executed, system variables will store the result only of the last processed instruction.
Program Example
FLMV
Copies the data in data 1 to elements 0 through 4 in data 2.
When the positive transition instruction turns ON, the FLMV instruction will be executed. When the FLMV instruction is executed, data 1, stored in D1, is copied to elements 0 through 4 in data 2.
When using a normally open instruction, as long as the instruction variable is ON, the FLMV instruction is always executed.
Array Variable Name |
Data 1 |
5 Executed Instructions |
Data 2 |
---|---|---|---|
Element |
Data 1 |
→ |
Data_2[0] |
→ |
Data_2[1] |
||
→ |
Data_2[2] |
||
→ |
Data_2[3] |
||
→ |
Data_2[4] |
||
|
Data_2[5] |
||
|
Data_2[6] |
||
|
Data_2[7] |
||
|
Data_2[8] |
||
|
Data_2[9] |
||
|
Data_2[10] |
FLMVP
When the normally open instruction turns ON, the FLMVP instruction will be executed. When the FLMVP instruction is executed, data 1, stored in D1, is copied to elements 0 through 4 in data 2.
Even when using a normally open instruction, the FLMVP instruction executes only when it detects the upward transition.
As a result, even if the instruction is always on, the FLMVP instruction is executed only for one scan.