10: D
ATA
C
ONVERSION
I
NSTRUCTIONS
10-22
FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
DTCB (Data Combine)
Valid Devices
For valid device address ranges, see "Device Addresses" on page 2-1.
Special internal relays cannot be designated as D1.
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 65,535.
Source device S1 uses 2 data registers starting with the device assigned by S1.
Since the DTCB instruction is executed in each scan while input is on, a pulse input from a SOTU or SOTD instruction should be used.
Valid Data Types
Example: DTCB
S1, S1+1
→
D1
When input is on, the lower-byte data is displayed from 2 consecutive sources starting with device
assigned by S1 and combined to make 16-bit data. The lower byte data from the first source device
is moved to the upper byte of the destination assigned by device D1, and the lower byte data from
the next source device is moved to the lower byte of the destination.
DTCB(W)
S1
*****
D1
*****
Device
Function
I
Q
M
R
T
C
D
P
Constant
Repeat
S1 (Source 1)
Binary data to combine
—
—
—
—
—
—
X
—
—
—
D1 (Destination 1)
Destination to store results
—
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
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 or destination,
1 point (word data) is used.
I (integer)
—
D (double word)
—
L (long)
—
F (float)
—
D1
D20
S1
D10
I1
DTCB(W)
SOTU
48
D10
(0030h)
After Execution
12345
D20
(3039h)
Before Execution
57
D11
(0039h)
Upper byte
Lower byte
Summary of Contents for MICROSmart FC6A Series
Page 1: ...B 1726 7 FC6A SERIES Ladder Programming Manual ...
Page 8: ...Preface 7 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 32: ...1 OPERATION BASICS 1 20 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 96: ...3 INSTRUCTIONS REFERENCE 3 18 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 130: ...4 BASIC INSTRUCTIONS 4 34 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 192: ...9 SHIFT ROTATE INSTRUCTIONS 9 12 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 272: ...12 DISPLAY INSTRUCTIONS 12 24 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 284: ...14 REFRESH INSTRUCTIONS 14 6 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 502: ...25 DATA LOG INSTRUCTIONS 25 22 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 546: ...26 SCRIPT 26 44 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 598: ...APPENDIX A 14 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...