![IDEC OpenNet series Скачать руководство пользователя страница 211](http://html.mh-extra.com/html/idec/opennet-series/opennet-series_user-manual_617384211.webp)
14: D
ATA
C
ONVERSION
I
NSTRUCTIONS
14-14
O
PEN
N
ET
C
ONTROLLER
U
SER
’
S
M
ANUAL
DTCB (Data Combine)
Valid Operands
For the valid operand number range, see page 6-2.
▲
Internal relays M0 through M2557 can be designated as D1. 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 which can be 0 through 65535.
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 as required.
Valid Data Types
When a bit operand such as Q (output), M (internal relay), or R (shift register) is designated as the destination, 16 points
(word data type) are used.
When a word operand such as T (timer), C (counter), D (data register), or L (link register) is designated as the source or
destination, 1 point (word data type) is used.
Example: DTCB
• Source Operand: Data Register
• Source Operand: Link Register
Operand
Function
I
Q
M
R
T
C
D
L
Constant
Repeat
S1 (Source 1)
Binar y data to combine
—
—
—
—
—
—
X
X
—
—
D1 (Destination 1)
Destination to store results
—
X
▲
X
X
X
X
X
—
—
W (word)
I (integer)
D (double word)
L (long)
X
—
—
—
S1, S1+1
→
D1
When input is on, the lower-byte data is read out from 2 consecutive sources
starting with operand designated by S1 and combined to make 16-bit data.
When a data register is selected as source operand, the lower byte data from the
first source operand is moved to the upper byte of the destination designated by
operand D1, and the lower byte data from the next source operand is moved to
the lower byte of the destination.
When a link register is selected as source operand, the lower byte data from the
first source operand is moved to the lower byte of the destination designated by
operand D1, and the lower byte data from the next source operand is moved to
the upper byte of the destination.
DTCB(W)
S1
*****
D1
*****
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
D1
D20
S1
L1316
I2
DTCB(W)
SOTU
57
L1316
(0039h)
After execution
12345
D20
(3039h)
Before execution
48
L1317
(0030h)
Lower byte
Upper byte
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]