Delta Electronics — 6.18.2 Explanation of Peripheral Instructions

Chapter 6 Applied Instructions Example 1. The ten external inputs starting from X0.0 are connected to ten keys that represent 0–9 in the decimal system. When M0 is ON, the instruction stores the value that you enter as a binary value in D0, and stores the output signals in M10–M19. 0 1 3 2 4 5 6 7 8 9 24VDC Note: The digital input module AH16AM10N-5A is used in this example. 6_ 0 1 2 3 4 5 6 7 8 9 Numeric keys Binary-coded decimal value One-digit binary-coded decimal code Overflowing 10 3 10 2 10 1 10 0 Binary-coded decimal value Binary value D0 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 instruction stores the result 5,301 in D0. The maximum value that 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 the other keys. 6-525 2 X0.0 X0.1 X0.2 X0.3 X0.4 X0.5 X0.6 X0.7 X0.8 X0.9 S/S