10: D
ATA
C
ONVERSION
I
NSTRUCTIONS
10-20 FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
Examples: CVDT
• Data Type: Either S1 or D1 is not F (float)
Unless F (float) data is selected for both source and destination, only the integral number is moved, omitting the fraction.
• Data Type: S1 has a larger data range than D1
When the source data exceeds the range of destination data type, the destination stores a value closest to the source data within the destination
data type.
.
Device Data Type Value
Source F 3.141593
Destination W 3
When input I0 is turned on, 3 is stored to data register D2.
I0
REPD1 –
D2
SOTU
S1 –
D0
CVDT
FTOW
Device Data Type Value
Source D 4,294,967,295
Destination W 65,535
When input I0 is turned on, 65,535 is stored to data register D2.
I0
REPD1 –
D2
SOTU
S1 –
D0
CVDT
DTOW