7 Application Instructions API 50-99 API 74 Operands: S : Source device to be displayed in 7-segment display D : Start device for 7-segment display scan output n : Polarity setting of output signal and scan signal Explanations: 1. Range of n : 0 ~ 7. See remarks for more details. 2. For ES series MPU, the instruction can only be used once in the program. For EH series MPU, the instruction can be used twice in the program. For SA series MPU, there is no limitation on the times of using the instruction, but only one instruction can be executed at a time. 3. For ES/EX/SS/SA/SX/SC series MPU, the last digit of D should be 0 and it does not support E, F index register modification. 4. Flag:
M1029 (SEGL execution completed) 5. This instruction occupies 8 or 12 continuous external input points starting from D for displaying 1 or 2 4-digit 7-segment display data and outputs of scanned signals. Every digit carries a 7-segment display drive (to convert the BCD codes into 7-segment display signal). The drive also carries latch control signals to retain the 6. n decides there be 1 group or 2 groups of 4-digit 7-segment display and designates the polarity for the output. 7-segment display. 7. When there is 1 group of 4-digit output, 8 output points will be occupied. When there are 2 groups of 4-digit output, 12 output points will be occupied. 8.
When this instruction is being executed, the scan output terminals will circulate the scan in sequence. When the drive contact of the instruction goes from Off to On again, the scan output terminal will restart the scan again. Program Example: 1. When X10 = On, this instruction starts to be executed, Y10 ~ Y17 construct a 7-segment display scan circuit. The value in D10 will be converted into BCD codes and sent to the first group 7-segment display. The value in D11 will be converted into BCD codes as well and sent to the second group 7-segment display. If the values in D10 and D11 exceed 9,999, operational error will occur. X10 2.
When X10 = On, Y14 ~ Y17 will circulate the scan automatically. Every cycle requires 12 scan period. Whenever DVP-PLC APPLICATION MANUAL 7-82 Mnemonic Operands Function SEGL Seven Segment with Latch Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F SEGL: 7 steps S * * * * * * * * * * * D * n * * PULSE 16-bit 32-bit SA SX SC EH SV EH3 SV2 EH3 ES EX SS SA SX SC EH SV EH3 SV2 ES EX SS ES EX SS SA SX SC EH SV SV2 SEGL D10 Y10 K4