Chapter 6 Applied Instructions 
6-385 
API    Instruction code  Operand 
Function 
1703    ARWS   
S, D
1
, D
2
, n 
Arrow keys 
Device
X  Y  M  S  T  C  HC  D  L  SM  SR  E  PR  K  16#
“$”  DF 
Pulse instruction
16-bit instruction (9 steps)
32-bit instruction
-  AH500  - 
Symbol: 
 
S
1
 
:
Initial input device  Bit 
S
2
 
:
For system use only  Word 
D
1
 
:
Device in which the setting value is stored  Word   
D
2
 
:
Initial output device  Bit 
n 
:
Positive/Negative logic  Word 
Explanation: 
1.  If the instruction is executed, S
1
 is defined as the down arrow, S
1
+1 is defined as the up arrow, 
S
1
+2 is defined as the right arrow, and S
1
+3 is defined as the left arrow. The setting value is 
stored in D
1
, and it should be within the range between 0 and 9,999. 
2.  The operand S
1
 occupies four consecutive bit devices. 
3.  S
2
 is for system use only. Please do not alter the value in it. 
4.  The operand D
2
 occupies eight consecutive bit devices. 
5.  When the conditional contact is not enabled, the eight bit devices starting from the bit device 
specified by D
2
 keep OFF. 
6.  The operand n should be within the range between 0 and 3. Please refer to the additional 
remark on the instruction SEGL for more information. 
7.  When the on-line editing is used, please reset the conditional contact to initialize the 
instruction. 
Example: 
1.  If the instruction is executed, X0.0 is defined as the down arrow, X0.1 is defined as the up 
arrow, X0.2 is defined as the right arrow, and X0.3 is defined as the left arrow. The setting 
value is stored in D20, and it should be within the range between 0 and 9,999. 
2.  When X1.0 is ON, the digit in the place 10
3
 is selected. If the left arrow is pressed, the places 
are selected in sequence (10
3
→10
0
→10
1
→10
2
→10
3
→10
0
). 
3.  If the right arrow is pressed, the places are selected in sequence 
(10
3
→10
2
→10
1
→10
0
→10
3
→10
2
). The LED indicators with the corresponding places are 
connected to Y0.4~Y0.7. When the digits in the places are selected in sequence, the LED 
indicators are ON in sequence. 
4.  If the up arrow is pressed, the digit in the place selected changes (0→1→2→…8→9→0→1). If 
the down arrow is pressed, the digit in the place selected changes (0→9→8→…1→0→9). The 
new digit is shown on seven-segment display.