AH500 Programming Manual 
6-378 
0 1 32 4 5 6 7 8 9
X0.3
X0.2
X0.1
X0.0
S/S
X0.6
X0.5
X0.4
X0.8
X0.7 X0.9
24VDC
Note: The digital input module AH16AM10N-5A is used in this example.
 
0
1
2
3
4
5
6
7
8
9
Binary-coded 
decimal value
Binary 
value
Binary-coded 
decimal value
One-digit binary-coded
decimal code
D0
10
3
10
2
10
1
10
0
Numeric keys
Overflowing
 
2.  If the keys connected to X0.5, X0.3, X0.0, and X0.1 are pressed in the order shown in the 
timing chart, the result 5,301 is stored in D0. The maximum value which can be stored in D0 is 
9,999. If the value exceeds four digits, the first digit from the left overflows. 
3.  After the key connected to the X0.2 is pressed and before other keys are pressed, M12 is ON. 
The same applies to other keys. 
4.  When a key connected to the input within the range between X0.0 and X0.9 is pressed, the 
corresponding output within the range between M10 and M19 is ON. 
5.  When one of the keys is pressed, M20 is ON. 
6.  When the conditional contact M0 is switched OFF, the value which was stored in D0 is 
unchanged. However, M10~M20 are switched OFF.