Dtdv (Data Divide) - IDEC MICROSmart FC6A Series Ladder Programming Manual

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

Advertisement

DTDV (Data Divide)

DTDV(W)
*****
Valid Devices
Device
S1 (Source 1)
D1 (Destination 1)
For valid device address ranges, see "Device Addresses" on page 2-1.
When T (timer) or C (counter) is used as S1, the timer/counter current value (TC or CC) is displayed.
Destination device D1 uses 2 data registers starting with the device assigned by D1.
Since the DTDV 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: DTDV
DTDV(W)
SOTU
I1
S1 → D1, D1+1
S1
D1
When input is on, the 16-bit binary data assigned by S1 is divided into upper and lower bytes. The
*****
upper byte data is stored to the destination assigned by device D1. The lower byte data is stored to
the device next to D1.
Function
Binary data to divide
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 source,
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
X
X
Before Execution
12345
D10
(3039h)
L
P
M
ADDER
ROGRAMMING
ANUAL
10: D
C
ATA
ONVERSION
R
T
C
D
P
Constant
X
X
X
X
X
After Execution
48
D20
(30h)
57
D21
(39h)
FC9Y-B1726
I
NSTRUCTIONS
Repeat
X
Upper byte
Lower byte
10-21

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents