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