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
BLMV
Copies 1 through 5 from Data_1 to Data_2.
When the positive transition instruction turns ON, the BLMV instruction will be executed. When the BLMV instruction is executed, numbers 0 through 4 in data 1, stored in D1, are copied to numbers 0 through 4 in data 2.
When the start is a normally open instruction, as long as the start is ON, the BLMV instruction is always executed.
Array Variable Name |
Data 1 |
5 Executed Instructions |
Data 2 |
---|---|---|---|
Element |
Data_1[0] |
→ |
Data_2[0] |
Data_1[1] |
→ |
Data_2[1] |
|
Data_1[2] |
→ |
Data_2[2] |
|
Data_1[3] |
→ |
Data_2[3] |
|
Data_1[4] |
→ |
Data_2[4] |
|
Data_1[5] |
|
Data_2[5] |
|
Data_1[6] |
|
Data_2[6] |
|
Data_1[7] |
|
Data_2[7] |
|
Data_1[8] |
|
Data_2[8] |
|
Data_1[9] |
|
Data_2[9] |
|
Data_1[10] |
|
Data_2[10] |
BLMVP
When the normally open instruction turns ON, the BLMVP instruction will be executed. When the BLMVP instruction is executed, numbers 0 through 4 in data 1, stored in D1, are copied to numbers 0 through 4 in data 2.
Even when using a normally open instruction, when the upward transition is detected the BLMVP instruction is executed.
Therefore, even when the variable of the NO instruction is always ON, the BLMVP instruction is executed only for one scan.