EasyManuals Logo
Home>IDEC>Controller>OpenNet series

IDEC OpenNet series User Manual

IDEC OpenNet series
427 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #211 background imageLoading...
Page #211 background image
14: DATA CONVERSION INSTRUCTIONS
14-14 OPENNET CONTROLLER USERS MANUAL
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) Binary data to combine —————— XX ——
D1 (Destination 1) Destination to store results X XXXXX ——
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: info@clrwtr.com

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IDEC OpenNet series and is the answer not in the manual?

IDEC OpenNet series Specifications

General IconGeneral
BrandIDEC
ModelOpenNet series
CategoryController
LanguageEnglish

Related product manuals