Chapter 6: Instructions
141
Instruction
Mnemonic
Copy Bit, Copy the Same Bit
Range
■
Bit
Word
BMOV
BFMV
BMOV: Copy a block of bits
BFMV: Fill a block of bits with the
same bit value
Double words
Ladder
BMOV: Copy Ns bits from bit address Sb into bit address D.
BFMV: Copy the V bit (0 or 1) into bit address D, Ns times.
Description
1. BMOV: Copy a block of Ns bits starting at bit address Sb to bit address D. This instruction is
useful for moving large blocks of bits at one time, or for copying sections of bits within a
word without copying the entire word.
2. BFMV: Fill a block of Ns bits starting at bit address D with the value of V (0 or 1). This
instruction is useful for initializing a set of bits to 0 or 1 at the start of a program or process.
3. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
Program Expression
Operation Results
BMOV
Db =
Sb =
Ns =
BFMV
Db =
Ns =
V =
R
R
Sb ...... 0 1 1 1 0 1 0 0
If Ns=4
Db ...... 0 1 0 1 0 1 0 0
If Ns=5
Db ...... 0 1 1 1 1 1 0 0
If V=1
BMOV
BFMV
BMOV
Db = R2.3
Sr = R2.1
Ns = 4
BFMV
Db = R3.2
Ns = 5
V = 1
R0.0
R
0 0 1 1 1 1 0 0 0 1 1 1 0 1 0 0
0 0 1 1 1 1 0 0 0 1 0 1 0 1 0 0
0 0 1 1 1 1 0 0 0 1 0 1 0 1 0 0
0 0 1 1 1 1 0 0 0 1 1 1 1 1 0 0
R2 before
operation
R2 after
operation
R3 before
operation
R3 after
operation
Содержание D320 PLC
Страница 1: ...D320 PLC User s Manual...
Страница 18: ...6 D320 PLC User s Manual...
Страница 28: ...16 D320 PLC User s Manual...
Страница 34: ...22 D320 PLC User s Manual...
Страница 78: ...66 D320 PLC User s Manual...
Страница 176: ...164 D320 PLC User s Manual...
Страница 210: ...198 D320 PLC User s Manual...
Страница 258: ...246 D320 PLC User s Manual...