Ch a pt er 6 Ap p l i ed I ns t ruc t i ons6 - 3 7 76.18.2 Explanation of Peripheral InstructionsAPI Instruction code Operand Function1700 D TKY S, D 1, D 2 Ten-key keypadDevice X Y M S T C HC D L SM SR E PR K 16# “$” DFS D1 D2 Pulse instruction 16-bit instruction (7 steps) 32-bit instruction (7 steps)- AH500 AH500Symbol:S : Initial device BitD 1 : Device in which the value isstored Word/Double wordD 2 : Output signal BitExplanation:1. The ten external inputs starting from the input specified by S represents 0~9 in the decimalsystem. They are connected to ten keys. Users can enter a four-digit decimal value or aneight-digit decimal value by pressing the keys in order. The decimal value is stored in D 1, andthe output signals are stored in D 2.2. The operand S occupies ten bits.3. The operand D 2 occupies eleven bits. Please do not change the states of the bits during theexecution of the instruction.4. When the conditional contact is not enabled, the eleven bits starting from the bit specified byD 2 is OFF.5. When the on-line editing is used, please reset the conditional contact to initialize theinstruction.Example:1. The ten external inputs starting from X0.0 is connected to ten keys which represent 0~9 in thedecimal system. When M0 is ON, the instruction is executed. The value that users enter isstored as a binary value in D0, and the output signals are stored in M10~M19.