DL205 User Manual, 4th Edition, Rev. B
5–239
Chapter 5: Intelligent Box (IBox) Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Analog Scale 12-Bit Binary to Binary (ANSCLB) (IB-403)
Analog Scale 12-Bit Binary to Binary scales a 12-bit binary analog value (0 to 4095 decimal)
into binary (decimal) engineering units. You specify the engineering unit high value (when
raw is 4095), and the engineering low
value (when raw is 0), and the output V-
memory address where you want to place
the scaled engineering unit value. The
engineering units are generated as binary
and can be the full range of 0 to 65535
(see ANSCL - Analog Scale 12-Bit BCD
to BCD if your raw units are in BCD
format).
Note that this IBox only works with
unipolar unsigned raw values. It does
NOT work with bipolar, sign plus
magnitude, or signed 2's complement raw values.
ANSCLB Parameters
• Raw (12-bit binary): specifies the V-memory location of the unipolar unsigned raw decimal
unscaled value (12-bit binary = 0 to 4095 decimal)
• High Engineering: specifies the high engineering value when the raw input is 4095 decimal
• Low Engineering: specifies the low engineering value when the raw input is 0 decimal
• Engineering (binary): specifies the V-memory location where the scaled engineering decimal value
will be placed
ANSCLB Example
In the following example, the ANSCLB instruction is used to scale a raw value (0 to 4095
binary) that is in V2000. The engineering scaling range is set 0 to 1000 (low engineering
value - high engineering value). The scaled value will be placed in V2100 in binary format.
DS5
Used
HPP
N/A
SP1
Parameter
DL205 Range
Raw (12-bit binary) . . . . . . . . . . . . . . . . . . . . V,P
See DL205 V-memory map - Data Words
High Engineering . . . . . . . . . . . . . . . . . . . . . . . . K
K0-65535
Low Engineering . . . . . . . . . . . . . . . . . . . . . . . . K
K0-65535
Engineering (binary) . . . . . . . . . . . . . . . . . . . . V,P
See DL205 V-memory map - Data Words
ý
ý
þ
þ
230
240
2
5
0
-1
2
6
0