KEYENCE Visual KV Series User Manual
Programming, User’s manual, Visual kv series

User’s Manual
Visual KV Series
3
Programming
How this manual is organized:
The Visual KV Series User’s Manual is composed of 3 separate
manuals; 1-Installation, 2-Support Software, 3-Programming.
Please read each manual relevant to your purpose.
96M0366
Support
Software
1. Introduction
2. Editor
3. Simulator
4. Monitor
5. Appendices
Programming
1. Programming
2. Instructions
3. Interrupts
4. High-speed Counters
5. Positioning Control
6. Interrupts, High-speed
Counters, Positioning
Control
7. Serial Communication
8. Programming
Examples
INDEX
Installation
1. Configuration and
Specifications
2. System Installation
3. Access Window
4. KV-D20 Operator
Interface Panel
5. KV-10/80 Hardware
6. Handheld Program-
mer
7. KV-L2 Serial Interface
Module
8. KV-AN6 Analog I/O
Module
9. KV-AD4/DA4 Analog
I/O Unit
10. Troubleshooting
11. Appendices
1
2
3
A5WW1-MAN-0069
Copyright (c) 1999 KEYENCE CORPORATION. All rights reserved.
084024E-3 0109-5 96M0366 Printed in Japan
Specifications are subject to change without notice.
AUSTRIA
Phone: +43-2236-378266-0
BELGIUM
Phone: +32 2 716 40 63
CHINA
Phone: +86-21-68757500
CANADA
Phone: +1-905-696-9970
CZECH REPUBLIC
Phone: +420 222 191 483
FRANCE
Phone: +33 1 56 37 78 00
GERMANY
Phone: +49-6102-36 89-0
HONG KONG
Phone: +852-3104-1010
KOREA
Phone: +82-31-642-1270
HUNGARY
Phone: +36 14 748 313
ITALY
Phone: +39-2-6688220
JAPAN
Phone: +81-6-6379-2211
MEXICO
Phone: +52-81-8220-7900
NETHERLANDS
Phone: +31 40 20 66 100
POLAND
Phone: +48 71 36861 60
MALAYSIA
Phone: +60-3-2092-2211
SINGAPORE
Phone: +65-6392-1011
SLOVAKIA
Phone: +421 2 5939 6461
SWITZERLAND
Phone: +41 43 455 77 30
TAIWAN
Phone: +886-2-2718-8700
THAILAND
Phone: +66-2-369-2777
UK & IRELAND
Phone: +44-1908-696900
USA
Phone: +1-201-930-0100
KEYENCE CORPORATION
1-3-14, Higashi-Nakajima, Higashi-Yodogawa-ku, Osaka, 533-8555, Japan PHONE: +81-6-6379-2211
l
a
u
n
a
M
s’
r
e
s
U
Programming
3
Visual KV Series
Document Outline
- Safety Precautions
- Note to User
- Restriction on Acquiring the CE Marking
- Features of the Visual KV Series
- Compatibility with Conventional KV Series Peripheral Units
- Cautions when Using the Serial Port
- How this manual is organized
- Contents
- WARRANTIES AND DISCLAIMERS
- Caution
- Chapter 1 Programming
- 1.1 Before Creating Programs
- 1.2 User Memory
- 1.3 Device Configuration
- 1.4 Special Functions
- 1.5 Extended Ladder Diagrams
- Chapter 2 Instructions
- 2.1 Instruction List [Visual KV Series]
- 2.2 Instruction List [KV-300 Series, KV-10/80]
- 2.3 Convention Details
- 2.4 Instruction Details
- 2.4.1 Basic Instructions
- LD: Load LDB: Load Bar
- AND: And ANB: And Bar
- OR: Or ORB: Or Bar
- ANL: And Load
- ORL: Or Load
- OUT: Out OUB: Out Bar
- SET: Set RES: Reset
- TMR: 0.1-s Timer
- TMH: 0.01-s Timer
- TMS: 1-ms Timer
- C: Counter
- UDC: Up-Down Counter
- DIFU: Differentiate UpDIFD: Differentiate Down
- KEEP: Keep
- SFT: Shift
- HSP: High Speed
- MC: Master Control MCR: Master ControlReset
- MEMSW:Memory Switch
- NOP: No Operation
- END: EndENDH: End Hi
- 2.4.2 Application Instructions
- W-ON: Wait ONW-OFF: Wait OFF
- W-UE: Wait Up EdgeW-DE: Wait Down Edge
- CON: Connect
- MPS: Push MRD: Read MPP: Pop
- MPS/MRD/MPP applications
- STG: Stage JMP: Jump ENDS: End Stage
- STP: Step STE: Step End
- ITVL: Interval Timer
- CALL: Subroutine Call SBN: Subroutine Entry RET: Subroutine Return
- FOR: Repeat Start NEXT: Repeat End
- HKEY: 16-Key Input
- 2.4.3 Arithmetic Instructions
- Internal register
- DW: Data Memory Write
- @xxxx: Differentiation
- TMIN: Trimmer In @TMIN: Trimmer Setting
- LDA: Load A @LDA: Load A STA: Store A @STA: Store A
- CMP: Compare @CMP: Compare
- ADD: Add @ADD: Add SUB: Subtract @SUB: SubtractMUL: Multiply @MUL: Multiply DIV: Divide @DIV: Divide
- ANDA: AND A @ANDA: (Logical product)
- ORA: Or A @ORA: (Logical sum)
- EORA: .Exclusive OrA @EORA:(Exclusivelogical sum)
- SRA: Shift Right A @SRA: Shift Right A SLA: Shift Left A @SLA: Shift Left A
- RRA: Rotate Right A @RRA: Rotate Right A RLA: Rotate Left A @RLA: Rotate Left A
- COM: @COM:COMBit inversion)
- COM: Complement COM: (Bit inversion)
- INC: Increment Memory @INC: Increment Memory DEC: Decrement Memory @DEC: Decrement Memory
- MPX: Multiplexer @MPX:(4-to-16 decoder), DMX: Demultiplexer @DMX:(16-to-4 encoder)
- TBCD: Transfer BCD @TBCD: Transfer BCD TBIN: Transfer BIN @TBIN: Transfer BIN
- ASC: ASCII Convert @ASC: ASCII Convert RASC: Reverse ASCII Convert @RASC: Reverse ASCII Convert
- ROOT: Square Root @ROOT: Square Root
- 2.4.1 Basic Instructions
- 2.5 Programming Notes
- Chapter 3 Interrupts
- Chapter 4 High-speed Counters
- 4.1 High-speed Counter Instructions
- 4.2 Outline of High-speed Counters
- 4.3 Setting and Operation of High-speedCounters
- 4.3.1 Reading the Current Value of the High-speed Counter
- 4.3.2 Preset Value of the High-speed Counter Comparator
- 4.3.3 Comparator Output
- 4.3.4 Count Input Method
- 4.3.5 Resetting the High-speed Counter
- 4.3.6 Differences with the CTH Instruction between theConventional and Visual KV Series
- 4.3.7 Applications of High-speed Counters
- 4.4 Extended Functions of High-speedCounters
- 4.5 Special Functions Using High-speedCounters
- 4.6 Direct Clock Pulse Output
- 4.7 Examples of Direct Clock Pulse Output
- Chapter 5 Positioning Control
- Chapter 6 Interrupts, High-speed Counters,Positioning Control
- Chapter 7 Serial Communication
- Chapter 8 Programming Examples
- Index
- WARRANTIES AND DISCLAIMERS: