Dtcb (Data Combine) - IDEC MICROSmart FC6A Series Ladder Programming Manual

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

10: D
C
ATA
ONVERSION

DTCB (Data Combine)

DTCB(W)
*****
Valid Devices
Device
S1 (Source 1)
D1 (Destination 1)
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
W (word)
X
I (integer)
D (double word)
L (long)
F (float)
Example: DTCB
DTCB(W)
SOTU
I1
10-22
I
NSTRUCTIONS
S1, S1+1 → D1
S1
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.
Function
Binary data to combine
Destination to store results
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.
S1
D1
D10
D20
FC6A S
MICROS
ERIES
MART
I
Q
M
X
Before Execution
48
Upper byte
D10
(0030h)
57
D11
Lower byte
(0039h)
L
P
M
ADDER
ROGRAMMING
ANUAL
R
T
C
D
P
Constant
X
X
X
X
X
After Execution
D20
FC9Y-B1726
Repeat
12345
(3039h)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents