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 76 DTKEYDECIMAL- KEY INPUTFUN 76 DTKEYLadder symbolIN : Key input pointInput controlEN76D.TKEYIN :D :KL :KPRKey in actionD : register storing key-in numeralsKL: starting coil to reflect the input statusD may combine with V, Z, P0~P9 to serveindirect address applicationOperandINRangeX Y M S WY WM WS TMR CTR HR OR SR ROR DR XRX0∣X240○Y0∣Y240M0∣M1896S0∣S984WY0∣WY240WM0∣WM1896WS0∣WS984T0∣T255C0∣C255R0∣R3839R3904∣R3967R3968∣R4167R5000∣R8071D0∣D4095D ○ ○ ○ ○ ○ ○ ○ ○* ○* ○ ○KL ○ ○ ○V、ZP0~P9• This instruction has designated 10 input points IN~IN+9 (IN0~IN9) to one decimal number entry (IN->0,IN+1->1…). According to the key-in sequence (ON) of these input points, it is possible to enter 4 or 8decimal numbers into the registers specified by D.• When input control "EN" = 1, this instruction will monitor the10 input points starting from IN and put the correspondingnumber into D register while the key were depressed. It willwait until the input point has released, then monitor the next"ON" input point, and shift in the new number into D register(high digit is older than low digit ) . For the 16-bit operand, Dregister can store up to 4 digits, and for the 32-bit operand 8digits may be stored. When the key numbers full fill the Dregister, new key-in number will kick out the oldest keynumber of the D register. The key-in status of the 10 inputpoints starting from IN will be recorded on the 10corresponding coil starting from KL. These coils will set to 1while the corresponding key is depressed and remainunchanged even if the corresponding key is released. Untilother key is depressed then it will return to zero. As long asany input point is depressed (ON), then the key-in flag KPRwill set to 1. Only one of IN0~IN9 key can be depressed atthe same time. If more than one is pressed, then the firstone is the only one taken. Below is a schematic diagram ofthe function with 16-bit operand.Key-inIN0 ~ IN9Forced outD01 2BCD Code1000S 100S 10S 1SBIN(0~9999)9• When input control "EN" = 0, this instruction will not be executed. KPR output and KL coil status will be 0.However, the numerical values of D register will remain unchanged.X20EN76.TKEYIN : X 0D : R 0KL : M 0KPRY0˙The instruction at left represents the input point X0 withthe number "0", X1 is represented by 1, ... , M0 recordsthe action of X0, M1 records the action of X1 ... , and theinput numerical values are stored in the R0 register.7-56

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

Saved successfully!

Ooh no, something went wrong!