B-2 application instructions – KEYENCE KV Series User Manual
Page 188

Appendices
2-164
Appendices
B-2
Application instructions
Instruction name
Mnemonic
Outline of process
Wait ON
W-ON
Turns ON output operand relay when input operand
relay/timer/counter turns ON.
Wait OFF
W-OFF
Turns ON output operand relay when input operand
relay/timer/counter turns OFF.
Wait Up Edge
W-UE
Turns ON output operand relay at rising edge of input
operand relay/timer/counter.
Wait Down Edge
W-DE
Turns ON output operand relay at falling edge of input
operand relay/timer/counter.
Stage
STG
Executes instructions in STG block when operand relay
is ON.
Connect
CON
Represents series connection after output status.
Push
MPS
Stores input status and arithmetic flag status.
Read
MRD
Reads input status and arithmetic flag status stored
with Push (MPS).
Pop
MPP
Reads input status and arithmetic flag status stored
with Push (MPS), and clears memory.
Jump
JMP
Turns current stage OFF, and then transfers execution
to another stage.
End Stage
ENDS
Turns OFF relay of current stage.
Step
STP
Executes instructions between STP and STE when
operand relay is ON.
Step End
STE
Used with STP as a pair to make a program step.
Interval Timer
ITVL
Measures pulse-to-pulse interval or pulse width in
specified mode.
8-bit (16-bit) High
CTH
Functions as a general-purpose high-speed counter
Speed Counter
with a response frequency of 10 kHz.
8-bit (16-bit) High
CTC
Comparator: Compares preset value with current value
Speed Counter
of CTH0, and turns ON when they become equivalent.
It is also used as an interrupt source.
Subroutine Call
CALL
Executes subroutine with the specified number.
Subroutine Entry
SBN
Represents beginning of subroutine.
Subroutine Return
RET
Represents end of subroutine.
Repeat Start
FOR
Executes program range between FOR and NEXT by
the number of times specified by operands.
Repeat End
NEXT
Represents end of repetition.
16-Key Input
HKEY
Reads hexadecimal key data on time-sharing basis,
and outputs these data to special utility relays 2900 to
2915.
KVSKA Appendix.P65
08.3.11, 11:26 AM
164