13.07.2015 Views

[Instruction] Contents

[Instruction] Contents

[Instruction] Contents

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Advanced Function <strong>Instruction</strong>FUN 79 D7SGDL7-SEGMENT OUTPUT WITH LATCHFUN 79 D7SGDLS : Register storing the data (BCD) to bedisplayedOT : Starting number of scanning outputN : Specify signal output and polarity of latchWR : Working register, it can't repeat in useS may combine with V、Z、P0~P9 to serveindirect addressing applicationRange Y WX WY WM WS TMR CTR HR IR OR SR ROR DR K XRY0 WX0 WY0 WM0 WS0 T0 C0 R0 R3840 R3904 R3968 R5000 D0V、Z16-bitOpe- ∣ ∣ ∣ ∣ ∣ ∣ ∣ ∣ ∣ ∣ ∣ ∣ ∣numberrand Y240 WX240 WY240 WM1896 WS984 T255 C255 R3839 R3903 R3967 R4167 R8071 D4095P0~P9S ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○OT ○N0~3• When input control "EN" = 1, the 4 nibbles of the S register, from digit 0 to digit 3, are sequentially sent out tothe 4 output points, OT0~OT3. While output the digit data, the latch signal of that digit (OT4 corresponds todigit 0, OT5 corresponds to digit 1, etc...) at the same time is also sent out so that the digital value will beloaded and latched into the 7-segment display respectively.• When in D (32-bit) instruction, nibbles 0~3 from the S register, and nibbles 0~3 from the S+1 register aretransferred separately to OT0~OT3 and OT8~OT11. Because they are transferred at the same time, they canuse the same latch signal. 16-bit instructions do not use OT8~OT11.• As long as "EN" remains 1, PLC will execute the transfer cyclically. After each transfer of a complete group ofnumerical values (nibbles 0~3 or 0~7), the output completed flag "DN" will set to 1. However, it will only be keptfor 1 scan.X0EN79D.7SGDLS : R0OT : Y0N : 2WR : D0DNM10• In this example, when X0=1, the 4 nibbles of R0will be transferred to the first group 7-segmentdisplay in the diagram below. The 4 nibbles of R1will be transferred to the second group 7-segmentdisplay.first group8 84VCC42COM211second group10 1 10 0 10 10 10 10 03VCCCOM10 3 10 2 PLC transistor output0 11 2 4 8 10 10 10 2 10 31 2 4 8C Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7 Y8 Y9 Y10 Y11NPN7-60

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!