Chapter 6 Applied Instructions 
6-387 
API    Instruction code  Operand 
Function 
1704    SEGL   
S, D, n 
Seven-segment display with latches 
Device
X  Y  M  S  T  C  HC  D  L  SM  SR  E  PR  K  16#  “$”  DF 
16-bit instruction (7 steps) 
-  AH500  - 
Symbol: 
S
1
 
:
Source device  Word 
S
2
 
:
For system use only  Word 
D 
:
Initial output device  Bit 
n 
:
Positive/Negative logic    Word 
Explanation: 
1.  The eight external outputs starting from the output specified by D are connected to a four-digit 
seven-segment display, or the twelve external outputs starting from the output specified by D 
are connected to two four-digit seven-segment displays. Every place is equipped with a driver 
which converts a binary-coded decimal value into seven-segment data, and every driver is 
equipped with a latch which can be used to store state information. 
2.  The value in S
1
 is the value which will be shown on first seven-segment display, and the value 
in S
1
+1 is the value which will be shown on second seven-segment display. 
3.  S
2
 is for system use only. Please do not alter the value in it. 
4.  The operand n should be within the range between 0 and 7. Please refer to the additional 
remark for more information. 
5.  Whether there is one four-digit seven-segment display or two four-digit seven-segment 
displays, and whether an output is a positive logic output or a negative logic output depend on 
n. 
6.  If there is one four-digit seven-segment display, eight outputs are occupied. If there are two 
four-digit seven-segment displays, twelve outputs are occupied. 
7.  When the instruction is executed, the outputs are ON cyclically. If the conditional contact is 
switched from OFF to ON during the execution of the instruction, the outputs are ON cyclically 
again. 
8.  After the execution of the instruction is complete, SM693 is ON for a scan cycle. 
Example: 
1.  When X1.0 is ON, the instruction is executed. Y0.0~Y0.4 form a circuit. The value in D10 is 
converted into the binary-coded decimal value, and the conversion result is shown on first 
seven-segment display. The value in D11 is converted into the binary-coded decimal value, 
and the conversion result is shown on second seven-segment display. If the value in D10 or 
D11 exceeds 9,999, the operation error occurs.