DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-238
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Analog Scale 12 Bit BCD to BCD (ANSCL) (IB-423)
NOTE: This IBox only works with unipolar unsigned raw values. It does NOT work with bipolar or sign
plus magnitude raw values.
ANSCL Parameters
• Raw (0-4095 BCD): specifies the V-memory location of the unipolar unsigned raw 0-4095 unscaled
value
• 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
• Engineering (BCD): specifies the V-memory location where the scaled engineering BCD value will
be placed
ANSCL Example
In the following example, the ANSCL instruction is used to scale a raw value (0-4095 BCD)
that is in V2000. The engineering scaling range is set 0-100 (low engineering value - high
engineering value). The scaled value will be placed in V2100 in BCD format.
DS
Used
HPP
N/A
Parameter
DL06 Range
Raw (0-4095 BCD)
V,P
See DL06 V-memory map - Data Words
High Engineering
K
K0-9999
Low Engineering
K
K0-9999
Engineering (BCD)
V,P
See DL06 V-memory map - Data Words
1
Analog Scale 12 Bit BCD to BCD scales a 12
bit BCD analog value (0-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 0), and
the output V-Memory address you want the
to place the scaled engineering unit value. The
engineering units are generated as BCD and can
be the full range of 0 to 9999 (see ANSCLB -
Analog Scale 12 Bit Binary to Binary if your raw
units are in Binary format).