148
6: MOVE INSTRUCTIONS
6-8
SMARTAXIS LADDER PROGRAMMING MANUAL FT9Y-B1382
IMOVN (Indirect Move Not)
Applicable SmartAXIS
Valid Devices
For valid device address ranges, see "Device Addresses" on page 3-1.
Internal relays M0 through M1277 can be designated as D1. Special internal relays cannot be designated as D1.
When T (timer) or C (counter) is used as S1, S2, or D2, the device data is the timer/counter current value (TC or CC). When T (timer) or C (counter)
is used as D1, the device data is the timer/counter preset value (TP or CP), 0 through 65535.
Source device S2 or destination device D2 does not have to be assigned. If S2 or D2 is not assigned, the source or destination device is determined
by S1 or D1 without offset.
Make sure that the source data determined by S1 + S2 and the destination data determined by D1 + D2 are within the valid device range. If the
derived source or destination device exceeds the valid device range, a user program execution error will result, turning on special internal relay
M8004 and the ERR LED on the SmartAXIS. For user program execution errors, see "User Program Execution Errors" on page 4-13.
Valid Data Types
Example: IMOVN
S1 + S2 NOT D1 + D2
When input is on, the values contained in devices assigned by S1 and
S2 are added together to determine the data source. The 16- or 32-
bit data is then inverted and moved to the destination, which is
determined by the sum of values contained in devices assigned by
D1 and D2.
REP
**
S1(R)
*****
D1(R)
*****
IMOVN(*)
S2
*****
D2
*****
FT1A-12
FT1A-24
FT1A-40
FT1A-48
FT1A-Touch
X
X
X
X
X
Device
Function
I
Q
M
R
T
C
D
Constant
Repeat
S1 (Source 1)
Base address to move from
X
X
X
X
X
X
X
—
1-99
S2 (Source 2)
Offset for S1
X
X
X
X
X
X
X
—
—
D1 (Destination 1)
Base address to move to
—
X
X
X
X
X
—
1-99
D2 (Destination 2)
Offset for D1
X
X
X
X
X
X
X
—
—
W (word)
X
When a bit device such as I (input), Q (output), M (internal relay), or R (shift register) is assigned as the source
or destination, 16 points (word data) or 32 points (double-word data) are used. When repeat is set for a bit
device, the quantity of device bits increases in 16- or 32-point increments.
When a word device such as T (timer), C (counter), or D (data register) is assigned as the source or destination,
1 point (word data) or 2 points (double-word data) are used. When repeat is assigned for a word device, the
quantity of device words increases in 1- or 2-point increments.
I (integer)
—
D (double word)
X
L (long)
—
F (float)
—
C10 D10 NOT D30 + D20
Source device S1 and destination device D1 determine the type of device. Source device S2 and destination device D2
are the offset values used to determine the source and destination devices.
If the data of data register D10 assigned by source device S2 is 4, then the source data is determined by adding the
offset value to counter C10 assigned by source device S1:
C(10 + 4) = C14
If data register D20 assigned by destination device D2 contains a value of 15, then the destination is determined by
adding the offset value to data register D30 assigned by destination device D1:
D(30 + 15) = D45
As a result, when input I0 is on, the current value of counter C14 is inverted and moved to data register D45.
I0
REP
S1 –
C10
D1 –
D30
IMOVN(W)
S2
D10
D2
D20
15
D20
D19
D21
59085
D45
4
D10
C15
C13
D46
6450
C14
Online Remove password from protected PDF fileOnline Remove Password from Protected PDF file. Download Free Trial. Remove password from protected PDF file. Find your password-protected PDF and upload it.
convert protected pdf to word online; create password protected pdf
147
SMARTAXIS LADDER PROGRAMMING MANUAL FT9Y-B1382
6-9
6: MOVE INSTRUCTIONS
BMOV (Block Move)
Applicable SmartAXIS
Valid Devices
For valid device address ranges, see "Device Addresses" on page 3-1.
Internal relays M0 through M1277 can be designated as D1. Special internal relays cannot be designated as D1.
When T (timer) or C (counter) is used as S1 or N-W, the timer/counter current value (TC or CC) is displayed. When T (timer) or C (counter) is used
as D1, the data is written in as a preset value (TP or CP) which can be 0 through 65535.
Make sure that the last source data determined by S1+N–1 and the last destination data determined by D1+N–1 are within the valid device range.
If the derived source or destination device exceeds the valid device range, a user program execution error will result, turning on special internal
relay M8004 and the ERR LED on the SmartAXIS. For user program execution errors, see "User Program Execution Errors" on page 4-13.
Valid Data Types
Special Internal Relay M8024: BMOV/WSFT Executing Flag
While the BMOV or WSFT is executed, M8024 turns on. When completed, M8024 turns off. If the CPU is powered down while
executing BMOV or WSFT, M8024 remains on when the CPU is powered up again.
Example: BMOV
S1, S1+1, S1+2, ... , S1+N–1 D1, D1+1, D1+2, ... , D1+N–1
When input is on, N blocks of 16-bit word data starting with device assigned by S1 are
moved to N blocks of destinations, starting with device assigned by D1. N-W specifies
the quantity of blocks to move.
BMOV(W)
S1
*****
D1
*****
N-W
*****
First 16-bit data
S1
Second 16-bit data
S1+1
Third 16-bit data
S1+2
Nth 16-bit data
S1+N–1
N blocks of 16-bit data
First 16-bit data
D1
Second 16-bit data
D1+1
Third 16-bit data
D1+2
Nth 16-bit data
D1+N–1
N blocks of 16-bit data
Block Move
FT1A-12
FT1A-24
FT1A-40
FT1A-48
FT1A-Touch
X
X
X
X
X
Device
Function
I
Q
M
R
T
C
D
Constant
Repeat
S1 (Source 1)
First device address to move
X
X
X
X
X
X
X
—
—
N-W (N words)
Quantity of blocks to move
X
X
X
X
X
X
X
X
—
D1 (Destination 1)
First device address to move to
—
X
X
X
X
X
—
—
W (word)
X
When a bit device such as I (input), Q (output), M (internal relay), or R (shift register) is assigned as the source,
N-W, or destination, 16 points (word data) are used.
When a word device such as T (timer), C (counter), or D (data register) is assigned as the source, N-W, or
destination, 1 point (word data) is used.
I (integer)
—
D (double word)
—
L (long)
—
F (float)
—
D10 through D14 D20 through D24
When input I0 is turned on, data of 5 data registers, starting with D10 assigned by source device
S1, is moved to 5 data registers starting with D20 assigned by destination device D1.
D1
D20
S1
D10
N-W
5
I0
BMOV(W)
SOTU
12
D11
2005
D10
25
D12
12
D13
30
D14
12
D21
2005
D20
25
D22
12
D23
30
D24
129
6: MOVE INSTRUCTIONS
6-10
SMARTAXIS LADDER PROGRAMMING MANUAL FT9Y-B1382
IBMV (Indirect Bit Move)
Applicable SmartAXIS
Valid Devices
For valid device address ranges, see "Device Addresses" on page 3-1.
Internal relays M0 through M1277 can be designated as D1. Special internal relays cannot be designated as D1.
When T (timer) or C (counter) is used as S2 or D2, the timer/counter current value (TC or CC) is displayed.
Make sure that the last source data determined by S1+S2 and the last destination data determined by D1+D2 are within the valid device range. If
the derived source or destination device exceeds the valid device range, a user program execution error will result, turning on special internal relay
M8004 and ERR LED on the SmartAXIS. For user program execution errors, see "User Program Execution Errors" on page 4-13.
Source device S2 or destination device D2 does not have to be assigned. If S2 or D2 is not assigned, the source or destination device is determined
by S1 or D1 without offset.
Examples: IBMV
Source device S1 and destination device D1 determine the type of device. Source device S2 and destination device D2 are the offset values to
determine the source and destination devices.
As a result, when input I0 is on, the ON/OFF status of internal relay M15 is moved to output Q14.
S1 + S2 D1 + D2
When input is on, the values contained in devices assigned by S1
and S2 are added together to determine the source of data. The 1-
bit data is then moved to the destination, which is determined by
the sum of values contained in devices assigned by D1 and D2.
IBMV
S1(R)
*****
S2
*****
D1(R)
*****
D2
*****
REP
**
FT1A-12
FT1A-24
FT1A-40
FT1A-48
FT1A-Touch
X
X
X
X
X
Device
Function
I
Q
M
R
T
C
D
Constant
Repeat
S1 (Source 1)
Base address to move from
X
X
X
X
—
—
X
0 or 1
1-99
S2 (Source 2)
Offset for S1
X
X
X
X
X
X
X
0-65535
—
D1 (Destination 1)
Base address to move to
—
X
X
—
—
X
—
1-99
D2 (Destination 2)
Offset for D1
X
X
X
X
X
X
X
0-65535
—
M10 D10 Q0 + C5
S1 –
M10
I0
IBMV
S2
D10
D1 –
Q0
SOTU
REP
D2
C5
If the value of data register D10 assigned by source device S2 is 5, the
source data is determined by adding the offset value to internal relay M10
assigned by source device S1.
If the current value of counter C5 assigned by destination device D2 is 12,
the destination is determined by adding the offset value to output Q0
assigned by destination device D1.
M27
M10
M17
M20
M15
5th from M10
Q17
Q0
Q7
Q10
12th from Q0
Q14
142
SMARTAXIS LADDER PROGRAMMING MANUAL FT9Y-B1382
6-11
6: MOVE INSTRUCTIONS
Repeat Operation in the Indirect Bit Move Instructions
Repeat Bit Devices (Source and Destination)
If a repeat operation is set for bit devices such as input, output, internal relay, or shift register, as many bit devices as the repeat
cycles are moved.
Repeat Word Devices (Source and Destination)
If a repeat operation is for word devices such as data register, as many bit devices as the repeat cycles in the designated data
register are moved.
D10 5 D20 + 12
Since source device S1 is a data register and the value of source device
S2 is 5, the source data is bit 5 of data register D10 assigned by source
device S1.
Since destination device D1 is a data register and the value of source
device D2 is 12, the destination is bit 12 of data register D20 assigned by
destination device D1.
As a result, when input I0 is on, the ON/OFF status of data register D10
bit 5 is moved to data register D20 bit 12.
S1 –
D10
I0
IBMV
S2
5
D1 –
D20
SOTU
REP
D2
12
Bit 15
Bit 5
Bit 12
14 13 12
11 10 9
8
7
6
5
4
3
2
1
0
D10
Bit 15 14 13 12
11 10 9
8
7
6
5
4
3
2
1
0
D20
M10 5 Q0 + 9
Repeat = 3
Since source device S1 is internal relay M10 and the value of source
device S2 is 5, the source data is 3 internal relays starting with M15.
Since destination device D1 is output Q0 and the value of destination
device D2 is 9, the destination is 3 outputs starting with Q11.
As a result, when input I1 is on, the ON/OFF statuses of internal relays
M15 through M17 are moved to outputs Q11 through Q13.
S1 R
M10
I1
IBMV
S2
5
D1 R
Q0
SOTU
REP
3
D2
9
M27
M10
M17
M20
M15
5th from M10
Q17
Q0
Q7
Q11
9th from Q0
Q14
Q13
D10 5 D20 + 12
Repeat = 3
Since source device S1 is data register D10 and the value of source
device S2 is 5, the source data is 3 bits starting with bit 5 of data register
D10.
Since destination device D1 is data register D20 and the value of
destination device D2 is 12, the destination is 3 bits starting with bit 12 of
data register D20.
As a result, when input I2 is on, the ON/OFF statuses of data register D10
bits 5 through 7 are moved to data register D20 bits 12 through 14.
S1 R
D10
I2
IBMV
S2
5
D1 R
D20
SOTU
REP
3
D2
12
Bit 15
Bit 5
Bit 12
14 13 12
11 10 9
8
7
6
5
4
3
2
1
0
D10
Bit 15 14 13 12
11 10 9
8
7
6
5
4
3
2
1
0
D20
130
6: MOVE INSTRUCTIONS
6-12
SMARTAXIS LADDER PROGRAMMING MANUAL FT9Y-B1382
IBMVN (Indirect Bit Move Not)
Applicable SmartAXIS
Valid Devices
For valid device address ranges, see "Device Addresses" on page 3-1.
Internal relays M0 through M1277 can be designated as D1. Special internal relays cannot be designated as D1.
When T (timer) or C (counter) is used as S2 or D2, the timer/counter current (TC or CC) value is displayed.
Make sure that the last source data determined by S1+S2 and the last destination data determined by D1+D2 are within the valid device range. If
the derived source or destination device exceeds the valid device range, a user program execution error will result, turning on special internal relay
M8004 and ERR LED on the SmartAXIS. For user program execution errors, see "User Program Execution Errors" on page 4-13.
Source device S2 or destination device D2 does not have to be used. If S2 or D2 are not used, the source or destination device is determined by S1
or D1 without offset.
Examples: IBMVN
Source device S1 and destination device D1 determine the type of device. Source device S2 and destination device D2 are the offset values used to
determine the source and destination devices.
As a result, when input I0 is on, the ON/OFF status of internal relay M30 is inverted and moved to output Q12.
S1 + S2 NOT D1 + D2
When input is on, the values contained in devices assigned by S1
and S2 are together added to determine the data source. The 1-bit
data is then inverted and moved to the destination, which is
determined by the sum of values contained in devices assigned by
D1 and D2.
IBMVN
S1(R)
*****
S2
*****
D1(R)
*****
REP
**
D2
*****
FT1A-12
FT1A-24
FT1A-40
FT1A-48
FT1A-Touch
X
X
X
X
X
Device
Function
I
Q
M
R
T
C
D
Constant
Repeat
S1 (Source 1)
Base address to move from
X
X
X
X
—
—
X
0 or 1
1-99
S2 (Source 2)
Offset for S1
X
X
X
X
X
X
X
0-65535
—
D1 (Destination 1)
Base address to move to
—
X
X
—
—
X
—
1-99
D2 (Destination 2)
Offset for D1
X
X
X
X
X
X
X
0-65535
—
S1 –
M20
I0
IBMVN
S2
D10
SOTU
D1 –
Q0
REP
D2
C5
M20 + D10 NOT Q0 + C5
If the value of data register D10 assigned by source device S2 is 8, the source
data is determined by adding the offset value to internal relay M20 assigned
by source device S1.
If the current value of counter C5 assigned by destination device D2 is 10, the
destination is determined by adding the offset value to output Q0 assigned by
destination device D1.
M37
M20
M27
M30
8th from M20
Q17
Q0
Q7
Q10
10th from Q0
Q12
NOT
140
SMARTAXIS LADDER PROGRAMMING MANUAL FT9Y-B1382
6-13
6: MOVE INSTRUCTIONS
NSET (N Data Set)
Applicable SmartAXIS
Valid Devices
For valid device address ranges, see "Device Addresses" on page 3-1.
Special internal relays cannot be designated as D1.
When T (timer) or C (counter) is used as S1, the timer/counter current value (TC or CC) is displayed. When T (timer) or C (counter) is used as D1,
the data is written in as a preset value (TP or CP).
When F (float) data is selected, only data register and constant can be designated as S1, and only data register can be designated as D1.
When F (float) data is selected and S1 does not comply with the normal floating-point format, a user program execution error will result, turning on
special internal relay M8004 and ERR LED on the SmartAXIS.
Make sure that the last destination data determined by D1+N-1 (word or integer data) or D1+2N-2 (double-word, long, or float data) is within the
valid device range. If the derived destination device exceeds the valid device range, a user program execution error will result, turning on special
internal relay M8004 and ERROR LED on the SmartAXIS. For user program execution errors, see "User Program Execution Errors" on page 4-13.
Valid Data Types
Example: NSET(F)
S1, S2, S3, ... , Sn D1, D2, D3, ... , Dn
When input is on, N blocks of 16- or 32-bit data in devices assigned by S1, S2,
S3, ... , Sn are moved to N blocks of destinations, starting with device
assigned by D1.
NSET(*)
S1
*****
S2
*****
Sn
*****
.....
D1
*****
First 16-/32-bit data
S1
Second 16-/32-bit data
S2
Third 16-/32-bit data
S3
Nth 16-/32-bit data
Sn
N blocks of 16-/32-bit data
First 16-/32-bit data
D1
Second 16-/32-bit data
D1+1 or D1+2
Third 16-/32-bit data
D1+2 or D1+4
Nth 16-/32-bit data
D1+N–1 or D1+2N–2
N blocks of 16-/32-bit data
N Data Set
FT1A-12
FT1A-24
FT1A-40
FT1A-48
FT1A-Touch
X
X
X
X
X
Device
Function
I
Q
M
R
T
C
D
Constant
Repeat
S1 (Source 1)
First device address to move
X
X
X
X
X
X
X
X
—
D1 (Destination 1)
First device address to move to
—
X
X
X
X
X
—
—
W (word)
X
When a bit device such as I (input), Q (output), M (internal relay), or R (shift register) is assigned as the source
or destination, 16 points (word or integer data) or 32 points (double-word or long data) are used.
When a word device such as T (timer), C (counter), or D (data register) is assigned as the source or destination,
1 point (word or integer data) or 2 points (double-word, long, or float data) are used.
I (integer)
X
D (double word)
X
L (long)
X
F (float)
X
Five constants 0.51, 2.34, 7.89, 3.33, and 10.0 D20 through D29
When input I0 is turned on, 5 constants assigned by source devices S1 through S5 are moved to 10
data registers starting with D20 assigned by destination device D1.
D1
D20
S1
0.51
S4
3.33
I0
NSET(F)
S2
2.34
S3
7.89
S5
10.0
SOTU
2.34
0.51
7.89
3.33
10.0
2.34
D22·D23
0.51
D20·D21
7.89
D24·D25
3.33
D26·D27
10.0
D28·D29
133
6: MOVE INSTRUCTIONS
6-14
SMARTAXIS LADDER PROGRAMMING MANUAL FT9Y-B1382
NRS (N Data Repeat Set)
Applicable SmartAXIS
Valid Devices
For valid device address ranges, see "Device Addresses" on page 3-1.
For the N-W, 1 word (16 bits) is always used without regard to the data type.
Special internal relays cannot be designated as D1.
When T (timer) or C (counter) is used as N-W or S1, the timer/counter current value (TC or CC) is displayed. When T (timer) or C (counter) is used
as D1, the data is written in as a preset value (TP or CP).
When F (float) data is selected, only data register and constant can be designated as S1, and only data register can be designated as D1.
When F (float) data is selected and S1 does not comply with the normal floating-point format, a user program execution error will result, turning on
special internal relay M8004 and ERR LED on the SmartAXIS.
Make sure that the last destination data determined by D1+N-1 (word or integer data) or D1+2N-2 (double-word, long, or float data) is within the
valid device range. If the derived destination device exceeds the valid device range, a user program execution error will result, turning on special
internal relay M8004 and ERROR LED on the SmartAXIS. For user program execution errors, see "User Program Execution Errors" on page 4-13.
Valid Data Types
Example: NRS(F)
S1 D1, D2, D3, ... , Dn–1
When input is on, 16- or 32-bit data assigned by S1 is set to N blocks of destinations,
starting with device assigned by D1.
NRS(*)
N-W
*****
S1
*****
D1
*****
16-/32-bit data
S1
Source data for repeat set
First 16-/32-bit data
D1
Second 16-/32-bit data
D1+1 or D1+2
Third 16-/32-bit data
D1+2 or D1+4
Nth 16-/32-bit data
D1+N–1 or D1+2N–2
N blocks of 16-/32-bit data
N Data Repeat Set
FT1A-12
FT1A-24
FT1A-40
FT1A-48
FT1A-Touch
X
X
X
X
X
Device
Function
I
Q
M
R
T
C
D
Constant
Repeat
N-W (N blocks)
Quantity of blocks to move
X
X
X
X
X
X
X
X
—
S1 (Source 1)
First device address to move
X
X
X
X
X
X
X
X
—
D1 (Destination 1)
First device address to move to
—
X
X
X
X
X
—
—
W (word)
X
When a bit device such as I (input), Q (output), M (internal relay), or R (shift register) is assigned as the source
or destination, 16 points (word or integer data) or 32 points (double-word or long data) are used.
When a word device such as T (timer), C (counter), or D (data register) is assigned as the source or destination,
1 point (word or integer data) or 2 points (double-word, long, or float data) are used.
I (integer)
X
D (double word)
X
L (long)
X
F (float)
X
D25·D26 D30 through D39
When input I0 is turned on, data of data registers D25·D26 assigned by source device S1 is moved to 10
data registers starting with D30 assigned by destination device D1.
D1
D30
N-W
5
I0
NRS(F)
S1
D25
SOTU
123.4
D25·D26
123.4
D32·D33
123.4
D30·D31
123.4
D34·D35
123.4
D36·D37
123.4
D38·D39
Documents you may be interested
Documents you may be interested