User’s ManualVisual KV Series3ProgrammingHow this manual is organized:The Visual KV Series User’s Manual is composed of 3 separatemanuals; 1-Installat
(9)Contents 3ProgrammingChapter 1 Programming1.1 Before Creating Programs ...
2.4 Instruction Details3-762Chapter 2 InstructionsExampleCodingTiming diagram• When UP input relay (0001) turns ON, the current value of the counter
2.4 Instruction Details123-77Chapter 2 InstructionsApplication of UDC instruction Multi-level UP/DOWN counterUP/DOWN counter which allows a count s
2.4 Instruction Details3-782Chapter 2 InstructionsExampleCodingTiming diagram (0000, 1000, and 1001 in the above example)• The DIFU instruction turn
2.4 Instruction Details123-79Chapter 2 InstructionsApplication of DIFU, DIFD instructions One-shot circuit using the differentiate instructionWhen
2.4 Instruction Details3-802Chapter 2 InstructionsANL2ANL2FUNOperand(Relay No.)ENTR-SRCHENTR-SRCHExampleCodingDescription• When SET input relay No.
2.4 Instruction Details123-81Chapter 2 InstructionsApplication of KEEP instruction Detection of chewing gum packsDetects chewing gum packs over the
2.4 Instruction Details3-822Chapter 2 InstructionsSFT: ShiftSets a shift register.ExampleCodingTiming diagramDescription• First relay No. 1000 turns
2.4 Instruction Details123-83Chapter 2 InstructionsOperands* Note that of I/O Nos. 7000 to 9915, those that are not assigned to expansion or remote
2.4 Instruction Details3-842Chapter 2 InstructionsLine No. Instruction Operand0000 LD 20080001 SET 10000002 LDB T0010003 T001 #000100004 LD 20030005
2.4 Instruction Details123-85Chapter 2 Instructions Asynchronous shift registerTurns ON input relay 0002 to reset the shift register (1000 to 1010)
(10)Chapter 2 Instructions2.1 Instruction List [Visual KV Series] ...3-342.1.1 Basic Instr
2.4 Instruction Details3-862Chapter 2 InstructionsHSP: High SpeedShortens time constant of specified inputrelay to 10 µs to increase input response.
2.4 Instruction Details123-87Chapter 2 InstructionsNote 3: The HSP instruction must be specified when the INT instruction or high-speed counter is u
2.4 Instruction Details3-882Chapter 2 InstructionsLine No. Instruction Operand Line No. Instruction Operand0000 LD 2008 0007 END0001 EI 0008 INT 000
2.4 Instruction Details123-89Chapter 2 InstructionsMC: Master ControlMCR: Master ControlResetSelects ON/OFF status of relay coils, timers,or counter
2.4 Instruction Details3-902Chapter 2 InstructionsDetails of MC-MCR Instructions Position of MC-MCR instructionsMC-MCR instructions can be used in
2.4 Instruction Details123-91Chapter 2 InstructionsApplication of MC-MCR Instruction Emergency stop circuitWhen input relay 0000 is ON, 0500 turns
2.4 Instruction Details3-922Chapter 2 InstructionsFUNANL2ORB6OperandENTR-SRCHENTR-SRCHKey operationOperands$0000 to $FFFFExampleCoding• Specify 3 of
2.4 Instruction Details123-93Chapter 2 Instructions(8)230000000011111111(4)220000111100001111(2)210011001100110011(1)2001010101010101010123456789ABC
2.4 Instruction Details3-942Chapter 2 InstructionsNOP: No OperationPerforms no operation.END: EndENDH: End HiIndicates end of each routine of progra
2.4 Instruction Details123-95Chapter 2 InstructionsInstruction Mnemonic Reference pageW-ON: Wait ON W-ON 3-96W-OFF: Wait OFF W-OFF 3-96W-UE: Wait Up
(11)4.5.1 Specified Frequency Pulse Output Function ...3-2284.5.2 Applications of the Specified Frequen
2.4 Instruction Details3-962Chapter 2 InstructionsExampleCodingTiming chart• W-ONWhen input relay 0000 is ON, output relay 0500 turns ON as soon as
2.4 Instruction Details123-97Chapter 2 InstructionsDescriptionW-ON• When input relay 0000 is ON, output operand 1000 turns ON as soon as thecontact
2.4 Instruction Details3-982Chapter 2 InstructionsExampleCodingTiming chart● W-UE• When input relay 0000 is ON, output relay 0500 turns ON at rising
2.4 Instruction Details123-99Chapter 2 InstructionsDescriptionW-UE• When input relay 0000 is ON, the output operand turns ON at the rising edge ofth
2.4 Instruction Details3-1002Chapter 2 InstructionsDetails of W-ON and W-UE InstructionsA combination of W-ON, W-OFF, W-UE, and W-DE instructions is
2.4 Instruction Details123-101Chapter 2 InstructionsApplication of W-UE Instruction Input sequence checkOutput relay 0500 turns ON when input relay
2.4 Instruction Details3-1022Chapter 2 InstructionsExampleCodingDescription• When input relay 0000 turns ON, 0500, 0501, 0502, and 0503 turn ON.• Wh
2.4 Instruction Details123-103Chapter 2 InstructionsExampleCodingDescription• When input relay 0000 is ON:0500 turns ON as soon as 0001 turns ON.050
2.4 Instruction Details3-1042Chapter 2 InstructionsMPS/MRD/MPP applicationsMPS, MRD, and MPP instructions are used as follows:CodingCodingStart of b
2.4 Instruction Details123-105Chapter 2 InstructionsCoding0000 0001 0002 0003 000405000501050205030504MPS MPS MPS MPSMPPMPPMPPMPPLine No. Instructio
(12)7.2.2 Format of Commands/Responses ...3-3097.2.3 Communication Command/Response Lis
2.4 Instruction Details3-1062Chapter 2 InstructionsExample1) When transition condition relay 0000 is ON, transfers execution to STG1001.2) 0500 turn
2.4 Instruction Details123-107Chapter 2 InstructionsNote 1: The following table shows the status of each instruction between STG andJMP/ENDS when ST
2.4 Instruction Details3-1082Chapter 2 InstructionsDetails of STG instruction STG instructionThe STG instruction is suitable for sequential step-by
2.4 Instruction Details123-109Chapter 2 Instructions Sequence programAssign the relays to execute the five processes on the previous page as follow
2.4 Instruction Details3-1102Chapter 2 Instructions Process progression with Wait instructionDescriptionWhen using the W-UE instruction in a progra
2.4 Instruction Details123-111Chapter 2 InstructionsCautions for using STG instructionInterlockWhen an STG instruction moves to another stage, the p
2.4 Instruction Details3-1122Chapter 2 InstructionsJMP operandUnlike the STG operand relay, the JMP operand relay No. can be duplicated in aprogram.
2.4 Instruction Details123-113Chapter 2 InstructionsNote: The double coils in different STG instruction blocks operate properly. How-ever, when seve
2.4 Instruction Details3-1142Chapter 2 InstructionsWhen 1000 is OFF,steps 1) through 3) arenot executed.1000STPSTP1001STESTE1)2)3)4)ExampleCodingDes
2.4 Instruction Details123-115Chapter 2 InstructionsTips Operation when STP turns OFFUsing a timer in an STP blockWhen a timer is used in a program
(13)1.7.1 Part Names and Functions ... 1-311.7.2 Terminal Layout Drawings
2.4 Instruction Details3-1162Chapter 2 Instructions0000 1000T0001001SETT0001001T0001001RES050005011002RESSTESTEENDENDHSTP1002STP10011002SET1000DIFU#
2.4 Instruction Details123-117Chapter 2 InstructionsExampleCodingOperation in the above exampleMeasures pulse-to-pulse interval or pulse width for i
2.4 Instruction Details3-1182Chapter 2 InstructionsSetting procedureThe ITVL instruction reserves 16 data memories: 1 specified data memory and 15su
2.4 Instruction Details123-119Chapter 2 Instructions Mode settingWrite the desired mode No. into the first data memory.Mode for pulse measurementMo
2.4 Instruction Details3-1202Chapter 2 InstructionsON050010000000500ms400ms 600ms1001ONOFFONON ON1 scan3 sec. 3 sec.1 scanApplication of ITVL instru
2.4 Instruction Details123-121Chapter 2 InstructionsITVL A/D data measurementTurns ON output relay 0500 when the analog input from the KL-4AD to DM
2.4 Instruction Details3-1222Chapter 2 InstructionsExampleCodingDescription• When input relay 0000 turns ON, the subroutine specified by SBN00 and R
2.4 Instruction Details123-123Chapter 2 InstructionsApplication of subroutineWhen CALL00 is encountered during normal scan execution, the subroutine
2.4 Instruction Details3-1242Chapter 2 Instructions Calling a subroutine from an interrupt program• Subroutines can be called from interrupt progra
2.4 Instruction Details123-125Chapter 2 InstructionsExampleCodingDescriptionUse FOR-NEXT instructions in a subroutine program (between SBN and RET)
(14)Clearing the input value when disconnecting ... 1-762.2.4 Transferring I/O Information between Expansion
2.4 Instruction Details3-1262Chapter 2 InstructionsTipsNote 1: The FOR-NEXT instruction pair repeats the program for a specified timeperiod at each
2.4 Instruction Details123-127Chapter 2 InstructionsIndirect addressing Indirect addressingIndirect addressing is used to so you don't have to
2.4 Instruction Details3-1282Chapter 2 Instructions Data memory block transfer• Comparison between a program with normal addressing and one with in
2.4 Instruction Details123-129Chapter 2 InstructionsDescription• On line 1), "TM02" is assigned to the first No. of the source 0000 and &q
2.4 Instruction Details3-1302Chapter 2 InstructionsApplication of SBN-RET and FOR-NEXT instructions Data memory shiftShifts the contents of the cur
2.4 Instruction Details123-131Chapter 2 InstructionsHKEY: 16-Key InputReads hexadecimal key data on time-sharing basis and outputs these data tospec
2.4 Instruction Details3-1322Chapter 2 Instructions2002 0001 C00028150005#09999C0000000HKEY01040512ENDHEND2900LDATBINC000STA0600HKEYFUNSET1LD7Output
2.4 Instruction Details123-133Chapter 2 InstructionsCOM24VDC+-0104 0105KV0106 0107110010110210324 8COM 0512 0513 0514 0515BCD Digital switchDiode281
2.4 Instruction Details3-1342Chapter 2 Instructions2.4.3 Arithmetic InstructionsArithmetic instructions handle data as integers to perform arithmeti
2.4 Instruction Details123-135Chapter 2 InstructionsInternal registerKV executes all arithmetic instructions (i.e. data exchange) by using an intern
(15)4.2.2 Connection with the KV Series ... 1-108Connection ...
2.4 Instruction Details3-1362Chapter 2 InstructionsExampleCoding• When starting operation, $0018 is written into DM0000 and #00050 into DM0001.Descr
2.4 Instruction Details123-137Chapter 2 InstructionsExampleDescription• Arithmetic instructions have two instruction types: differentiation type and
2.4 Instruction Details3-1382Chapter 2 InstructionsT000 preset value can be changed with trimmer as follows (#00000 to #65535):CodingDescriptionThe
2.4 Instruction Details123-139Chapter 2 InstructionsApplications of TMIN (Analog timer) instruction Changing the timer setting valueUses the digita
2.4 Instruction Details3-1402Chapter 2 InstructionsThe LDA instruction inputs each data item to the internal register.The STA instruction transfers
2.4 Instruction Details123-141Chapter 2 InstructionsArithmetic flag2009 No change2010 Turns ON when the contents of the internal register is "0
2.4 Instruction Details3-1422Chapter 2 Instructions Transferring the current counter value to data memory (DM)CodingDescriptionIn step a), the C010
2.4 Instruction Details123-143Chapter 2 Instructions Outputting the input (ON/OFF status) of a basic unit directly to an expan-sion output unitThe
2.4 Instruction Details3-1442Chapter 2 Instructions When a BCD (2-digit) digital switch is connected to inputs 0000 through0007 and a toggle switch
2.4 Instruction Details123-145Chapter 2 InstructionsNote 3: When an STA instruction is executed while the setting value of a counter ora timer is sm
(16)5.3.6Connecting the AC Power Supply Module and DC Power Distribution Module ...1-182KV-U4 AC Power Supply Module ...
2.4 Instruction Details3-1462Chapter 2 InstructionsCMP instruction compares the contents of the internal register with the value speci-fied by the o
2.4 Instruction Details123-147Chapter 2 InstructionsOperandsKey operationArithmetic flag2009 Turns ON when the result of the CMP operation is negati
2.4 Instruction Details3-1482Chapter 2 Instructions2009201020112002050205010500DM0000<#01000DM0000=#01000DM0000>#01000DM0000LDA#01000CMPLine N
2.4 Instruction Details123-149Chapter 2 Instructions Setting the upper/lower limitTurns ON 0500 when the C001 value is 1000 or less.Turns ON 0501 w
2.4 Instruction Details3-1502Chapter 2 InstructionsADD, SUB, MUL, and DIV allow arithmetic instructions between the contents ofinternal register and
2.4 Instruction Details123-151Chapter 2 InstructionsADD (Addition)CodingDescription• The ADD instruction adds the operand value to the contents of t
2.4 Instruction Details3-1522Chapter 2 InstructionsApplication of ADD instruction Total countWrites the total count of counters C001 to C003 into D
2.4 Instruction Details123-153Chapter 2 InstructionsSUB (Subtraction)CodingDescription• The SUB instruction subtracts the operand value from the con
2.4 Instruction Details3-1542Chapter 2 InstructionsApplication of SUB instruction Comparing absolute valuesCompares the DM0000 value to the DM0001
2.4 Instruction Details123-155Chapter 2 InstructionsMUL (Multiplication)CodingDescription• The MUL instruction multiplies the contents of the intern
(17)7.3.4 Connecting to External Units ... 1-249Connecting to An External Displ
2.4 Instruction Details3-1562Chapter 2 Instructions2002DM0001LDATM00STADM0000LDA#00100DIVDM0002STATM00LDADM0003STATM01LDADM0004STALine No. Instructi
2.4 Instruction Details123-157Chapter 2 InstructionsArithmetic flag2009 No change2010 Turns ON when all 32 bits are "0" after a DIV operat
2.4 Instruction Details3-1582Chapter 2 InstructionsApplication of DIV instruction Total count averageOutputs the average of 3 counter values in 4-d
2.4 Instruction Details123-159Chapter 2 InstructionsExampleCodingDescription• The contents of DM0000 are transferred to the internal register when i
2.4 Instruction Details3-1602Chapter 2 InstructionsArithmetic flag2009 No change2010 Turns ON when the internal register is "0" after an A
2.4 Instruction Details123-161Chapter 2 InstructionsExampleCodingDescription• The contents of DM0000 are transferred to the internal register when i
2.4 Instruction Details3-1622Chapter 2 Instructions0000TBCDC000LDA0500STADM0000ORA$00FFANDA$FF00ANDA0500LDADM0000STA200220022002#00099C0000001Sets C
2.4 Instruction Details123-163Chapter 2 Instructions0000ANDA0100LDADM0000ORATBINC001STA#04SLA$000F$000FANDA0000LDADM0000STA200220022002#00099C000000
2.4 Instruction Details3-1642Chapter 2 InstructionsExampleCodingDescription• The contents of DM0000 is transferred to the internal register when inp
2.4 Instruction Details123-165Chapter 2 InstructionsArithmetic flag2009 No change2010 Turns ON when the internal register is "0" after an
(18)8.3.2 Removing the Terminal Block ...1-3168.3.3 Example of Voltage I/O Wirin
2.4 Instruction Details3-1662Chapter 2 InstructionsExampleCodingOperands#01 to #16Key operationArithmetic flag2009 Turns ON when "1" enter
2.4 Instruction Details123-167Chapter 2 InstructionsDescription• Operations using the SRA instructionWhen input relay 0000 is ON, the contents of DM
2.4 Instruction Details3-1682Chapter 2 InstructionsApplication of SRA/SLA instructions Fetching four-digit data of the BCD digital switch (inputs 0
2.4 Instruction Details123-169Chapter 2 InstructionsExampleCodingOperands#01 to #16Key operationArithmetic flag2009 Turns ON when "1" ente
2.4 Instruction Details3-1702Chapter 2 InstructionsWrites the TM10 data into DM0000, and then writes#00000 to TM10.#01RRA20022002 2009TM10STA#00000D
2.4 Instruction Details123-171Chapter 2 InstructionsExampleCodingDescription• Each time input relay 0000 turns from OFF to ON, the contents of DM000
2.4 Instruction Details3-1722Chapter 2 InstructionsExampleCodingDescriptionOperation using the @INC instructionEvery time input relay 0000 turns ON,
2.4 Instruction Details123-173Chapter 2 InstructionsKey operationArithmetic flag2009 Turns ON when the result is "0" after an INC operatio
2.4 Instruction Details3-1742Chapter 2 Instructions Total count 1Writes the total count of 4 lines (0000 to 0003) into DM0000.Reset input relay is
2.4 Instruction Details123-175Chapter 2 InstructionsCoding Programming techniqueTwo kinds of instructions can be used for the counting operation: a
Safety PrecautionsThis instruction manual describes the operation and function of the KV Series PLC.Read this manual carefully to ensure safe use and
(19)Chapter 10 Troubleshooting10.1 Error List ...1
2.4 Instruction Details3-1762Chapter 2 InstructionsExampleCodingOperands#0 to #3Key operationArithmetic flag2009, 2010, 2011 No change2012 Turns ON
2.4 Instruction Details123-177Chapter 2 InstructionsDescriptionOperation with the MPX instructionWhen input relay 0000 is ON, the ON/OFF status of i
2.4 Instruction Details3-1782Chapter 2 Instructionsadgfba : 0600 b : 0601 c : 0607d : 0603 c : 0604 f : 0605g : 0606ec DMX instructionConnect senso
2.4 Instruction Details123-179Chapter 2 InstructionsC000LDA#0MPXC000#00009C00000001000STA$003FLDA0600STA10000$0006LDA0600STA10011$005BLDA0600STA1002
2.4 Instruction Details3-1802Chapter 2 InstructionsExampleCodingOperandsKey operationArithmetic flag2009, 2010, 2011 No change2012 Turns ON when the
2.4 Instruction Details123-181Chapter 2 InstructionsDescriptionOperation using the TBCD instructionWhen input relay 0000 turns ON, the contents of D
2.4 Instruction Details3-1822Chapter 2 Instructions0400LDAC001STA20020001TBIN#09999C0010000Line No. Instruction Operand0000 LD 20020001 LDA 04000002
2.4 Instruction Details123-183Chapter 2 InstructionsExampleCodingOperandsKey operationArithmetic flag2009, 2010, 2011 No change2012 Turns ON when th
2.4 Instruction Details3-1842Chapter 2 InstructionsHex number Bit configuration Code Bit configuration0 0000 $30 0 0 1100001 0001 $31 0 0 1100012 00
2.4 Instruction Details123-185Chapter 2 InstructionsExampleCodingDescription• The ROOT instruction takes the square root of 32-bit data (binary numb
(20)1.4.1 Preparation for installation ...2-91.4.2 Installation Procedu
2.4 Instruction Details3-1862Chapter 2 InstructionsChange in status of special utility relays (arithmetic flags) by arithmeticinstructions (1/3)Inst
2.4 Instruction Details123-187Chapter 2 InstructionsChange in status of special utility relays (arithmetic flags) by arithmeticinstructions (2/3)Ins
2.4 Instruction Details3-1882Chapter 2 InstructionsChange in status of special utility relays (arithmetic flags) by arithmeticinstructions (3/3)1 Wh
2.5 Programming Notes123-189Chapter 2 Instructions2.5 Programming NotesThis section describes important points and precautions for creating ladder p
2.5 Programming Notes3-1902Chapter 2 Instructions05002002#0010T0000500#0010T000A B D E E0500CA B0500CDB C05000501AB C0500AA B D0500D0501Programming
Chapter 3InterruptsThe interrupt processing function executes an interrupt program when an externalinput or request from the high-speed counter compar
3.1 Interrupt Instructions3-192Visual KVSeries3Chapter 3 InterruptsFUNFUNLDB4RES0ENTOperandR-SRCHENTR-SRCHENTR-SRCHENTR-SRCHANL2ORL33.1 Interrupt In
3.1 Interrupt Instructions3-193Visual KVSeries13Chapter 3 InterruptsDI: Interrupt DisabledEI: Interrupt EnabledDisables execution of interrupt.Enabl
3.2 Interrupt Processing3-194Visual KVSeries3Chapter 3 Interrupts2008SET or2813EI#00000DWDM194020022002EIHSP0000(0000 to 0015)(0500 to 0503)3.2 Inte
3.2 Interrupt Processing3-195Visual KVSeries13Chapter 3 Interrupts3.2.2 Types of InterruptsInterrupts can be divided into two types: an interrupt by
2.13.1 Printing ...2-772.13.2 Preview displ
3.2 Interrupt Processing3-196Visual KVSeries3Chapter 3 Interrupts• Use SET-RES instructions to turn the special utility relays ON/OFF.• The input ca
3.3 Direct Input/Output3-197Visual KVSeries13Chapter 3 Interrupts20022008ENDINT000010000005RETIENDH0500HSP0000HSP0005EI1000SET20022008EIENDINT0000HS
3.4 Applications of Interrupt Programs3-198Visual KVSeries3Chapter 3 Interrupts000100020003000400050006000700082008EI20022002T00000500HSP0000ENDINT
3.4 Applications of Interrupt Programs3-199Visual KVSeries13Chapter 3 Interrupts00010002000300040005000600070008000900102008EI2002HSP00042002CTH000
3.4 Applications of Interrupt Programs3-200Visual KVSeries3Chapter 3 Interrupts0001000200030004000500060007000800092008EI2002HSP00002002CTH02100240
3.4 Applications of Interrupt Programs3-201Visual KVSeries13Chapter 3 Interrupts3.4.4Measuring the Period in which a Target Passes betweenTwo Point
3.4 Applications of Interrupt Programs3-202Visual KVSeries3Chapter 3 InterruptsKVNKA Chap 03.p65 08.3.11, 0:05 PM202
Chapter 4High-speed CountersThis chapter describes high-speed counters and high-speed counter comparators,which allow high-speed pulse measurement and
4.1 High-speed Counter Instructions3-204Visual KVSeries4Chapter 4 High-speed CountersCTH0: 16-Bit High-speed counterCTH1: 16-Bit High-speed counterC
4.1 High-speed Counter Instructions3-205Visual KVSeries14Chapter 4 High-speed CountersOperandsCTH0: 00042100 to 2102CTH1: 000505002200 to 2202CTC0 t
AppendicesAppendix A Error Message List ... 2-156A-1 System errors ...
4.2 Outline of High-speed Counters3-206Visual KVSeries4Chapter 4 High-speed Counters4.2 Outline of High-speed CountersThis section describes the out
4.2 Outline of High-speed Counters3-207Visual KVSeries14Chapter 4 High-speed Counters List of special utility relays for high-speed counter CTH0* R
4.2 Outline of High-speed Counters3-208Visual KVSeries4Chapter 4 High-speed Counters Other special utility relays Data memoryNote 1: As with the i
4.2 Outline of High-speed Counters3-209Visual KVSeries14Chapter 4 High-speed CountersNote 1: CTH instructions cannot be duplicated in a program. A m
4.2 Outline of High-speed Counters3-210Visual KVSeries4Chapter 4 High-speed Counters4.2.2 Internal Clock for High-speed Counters• Each high-speed co
4.3 Setting and Operation of High-speed Counters3-211Visual KVSeries14Chapter 4 High-speed Countersr e t nuocdeeps - hg i Heu l a v t n e r r uC0HTC
4.3 Setting and Operation of High-speed Counters3-212Visual KVSeries4Chapter 4 High-speed Counters4.3.4 Count Input MethodSelect the input source fo
4.3 Setting and Operation of High-speed Counters3-213Visual KVSeries14Chapter 4 High-speed CountersDouble (x2) mode: Counts up/down based on the pha
4.3 Setting and Operation of High-speed Counters3-214Visual KVSeries4Chapter 4 High-speed Counters4.3.5 Resetting the High-speed CounterReset is an
4.3 Setting and Operation of High-speed Counters3-215Visual KVSeries14Chapter 4 High-speed CountersReset with external inputResets the counter at th
WARRANTIES AND DISCLAIMERSSee 3-367.Caution• No part of this manual may be reprinted or reproduced in any form or by anymeans without the prior writte
4.3 Setting and Operation of High-speed Counters3-216Visual KVSeries4Chapter 4 High-speed Counters4.3.6 Differences with the CTH Instruction between
4.3 Setting and Operation of High-speed Counters3-217Visual KVSeries14Chapter 4 High-speed Counters2008200200002214RES2213SET2114RES2113SETEI#60000
4.3 Setting and Operation of High-speed Counters3-218Visual KVSeries4Chapter 4 High-speed Counters2203SETCTH1RESCTC2RESCTC2 T00120082002#60000 CTC2C
4.3 Setting and Operation of High-speed Counters3-219Visual KVSeries14Chapter 4 High-speed CountersPhase differential input• Inputs phase differenti
4.3 Setting and Operation of High-speed Counters3-220Visual KVSeries4Chapter 4 High-speed CountersFetching counts from encoderUses the double (x2) m
4.4 Expanded Functions of High-speed Counters3-221Visual KVSeries14Chapter 4 High-speed Counters4.4 Extended Functions of High-speedCountersThis sec
4.4 Expanded Functions of High-speed Counters3-222Visual KVSeries4Chapter 4 High-speed CountersThe high-speed counter and high-speed counter compara
4.4 Expanded Functions of High-speed Counters3-223Visual KVSeries14Chapter 4 High-speed Counters4.4.2 Changing the Current Value of a 24-bit High-sp
4.4 Expanded Functions of High-speed Counters3-224Visual KVSeries4Chapter 4 High-speed Counters4.4.3 Application Example of 24-bit High-speed Counte
4.4 Expanded Functions of High-speed Counters3-225Visual KVSeries14Chapter 4 High-speed Counters4.4.4 Ring Counter FunctionNormally, the counter rea
Chapter 1ProgrammingThis chapter describes basic knowledge including program creation procedures,device configuration, relay assignments, special func
4.4 Expanded Functions of High-speed Counters3-226Visual KVSeries4Chapter 4 High-speed Counters0 9999 200800030005CTH0RES0007EI2406SET2112SET2114RES
4.4 Expanded Functions of High-speed Counters3-227Visual KVSeries14Chapter 4 High-speed Counters0 99999 0013200800040006CTH0RES0008EI2406SET2114RES2
4.5 Special Functions Using High-speed Counters3-228Visual KVSeries4Chapter 4 High-speed CountersOFFON4.5 Special Functions Using High-speedCounter
4.5 Special Functions Using High-speed Counters3-229Visual KVSeries14Chapter 4 High-speed Counters Setting method• Set the desired output frequenc
4.5 Special Functions Using High-speed Counters3-230Visual KVSeries4Chapter 4 High-speed Counters Program for speed controlThe following ladder pr
4.5 Special Functions Using High-speed Counters3-231Visual KVSeries14Chapter 4 High-speed Counters4.5.3 Frequency Counter FunctionHigh-speed counte
4.5 Special Functions Using High-speed Counters3-232Visual KVSeries4Chapter 4 High-speed Counters4.5.4 Applications of Frequency CountersProgram fo
4.5 Special Functions Using High-speed Counters3-233Visual KVSeries14Chapter 4 High-speed Counters4.5.5 Cam Switch FunctionThe cam switch function
4.5 Special Functions Using High-speed Counters3-234Visual KVSeries4Chapter 4 High-speed CountersMulti-step comparator modeEven a single phase inco
4.5 Special Functions Using High-speed Counters3-235Visual KVSeries14Chapter 4 High-speed Counters5. Specify the preset value at which the second r
1.1 Before Creating Programs3-21Chapter 1 Programming1.1 Before Creating ProgramsThis section describes what you should know before creating program
4.5 Special Functions Using High-speed Counters3-236Visual KVSeries4Chapter 4 High-speed Counters4.5.6 Application of the Cam Switch (Cam Switch Mo
4.6 Direct Clock Pulse Output3-237Visual KVSeries14Chapter 4 High-speed Counters4.6 Direct Clock Pulse OutputThis section describes the outline and
4.6 Direct Clock Pulse Output3-238Visual KVSeries4Chapter 4 High-speed Counters4.6.2 Pulse Output Setting with the High-speed CounterComparatorChan
4.6 Direct Clock Pulse Output3-239Visual KVSeries14Chapter 4 High-speed CountersCalculating the pulse period and comparator preset valueThe Visual
4.6 Direct Clock Pulse Output3-240Visual KVSeries4Chapter 4 High-speed CountersCTC0ONONCTC1CTC0ON ON ON ONsgni t tesyaleryt i l i tulaicepSNO3012FF
4.6 Direct Clock Pulse Output3-241Visual KVSeries14Chapter 4 High-speed Counters Operation with special utility relays for high-speed counter CTH1
4.7 Examples of Direct Clock Pulse Output3-242Visual KVSeries4Chapter 4 High-speed CountersCTC0ONON4.7 Examples of Direct Clock Pulse OutputThis se
4.7 Examples of Direct Clock Pulse Output3-243Visual KVSeries14Chapter 4 High-speed Counters000000002105RES2105SET00000000RESKEEP2105SETCordingNote
4.7 Examples of Direct Clock Pulse Output3-244Visual KVSeries4Chapter 4 High-speed Counters ExampleCount value• Sets the pulse output from output
4.7 Examples of Direct Clock Pulse Output3-245Visual KVSeries14Chapter 4 High-speed Counters2103SET2104RES2105RES2106SET2107RES2108RES2109SET2110RE
1.1 Before Creating Programs3-311Chapter 1 Programming1.1.2 Scan TimeScan timeThe Visual KV Series repeatedly executes a ladder based on the sequenc
4.7 Examples of Direct Clock Pulse Output3-246Visual KVSeries4Chapter 4 High-speed Counters000000002105RES2105SET00000000RESKEEP2105SETCodingNote 1
4.7 Examples of Direct Clock Pulse Output3-247Visual KVSeries14Chapter 4 High-speed Counters2203SET2204RES2206SET2207RES2208RES2209SET2210RES2211RE
4.7 Examples of Direct Clock Pulse Output3-248Visual KVSeries4Chapter 4 High-speed Counters000000002205RES2205SET00000000RESKEEP2205SETCodingNote :
4.7 Examples of Direct Clock Pulse Output3-249Visual KVSeries14Chapter 4 High-speed Counters2109SET2110RES2111RESCTH0RES2105RES2105SET2203SET2813SE
4.7 Examples of Direct Clock Pulse Output3-250Visual KVSeries4Chapter 4 High-speed Counters• The input enable relay for CTH0 must be ON all the tim
4.7 Examples of Direct Clock Pulse Output3-251Visual KVSeries14Chapter 4 High-speed Counters4.7.4 Application of Direct Clock Pulse Output(Ramp-up/
4.7 Examples of Direct Clock Pulse Output3-252Visual KVSeries4Chapter 4 High-speed CountersInterrupt routine foracceleration/decelerationAccelerati
Chapter 5Positioning ControlThis chapter describes ramp-up/down control of stepping motors and servo motors.➮ For KV-10/80 Series, see Chapter 6.5.1 O
5.1 Outline of Positioning Control3-254Visual KVSeries5Chapter 5 Positioning Control5.1 Outline of Positioning ControlThis section describes the out
5.2 Parameter Setting and Operating Procedures3-255Visual KVSeries15Chapter 5 Positioning Control5.2 Parameter Setting and OperatingProceduresThis s
1.2 User Memory3-41Chapter 1 Programming1.2 User MemoryThis section describes the allowable size (capacity) of a program which can becreated in the
5.2 Parameter Setting and Operating Procedures3-256Visual KVSeries5Chapter 5 Positioning ControlOperating frequency (Hz) (DM1481)Set the frequency (
5.2 Parameter Setting and Operating Procedures3-257Visual KVSeries15Chapter 5 Positioning Control5.2.2 Operating ProcedureIn positioning control, op
5.3 Examples of Using the Positioning Control FunctionVisual KVSeries5Chapter 5 Positioning Control3-2585.3 Examples of Using the PositioningControl
5.3 Examples of Using the Positioning Control FunctionVisual KVSeries15Chapter 5 Positioning Control3-2595.3.3 Application Examples of the Positioni
5.3 Examples of Using the Positioning Control FunctionVisual KVSeries5Chapter 5 Positioning Control3-260Ladder example of the jog operationThe jog o
5.3 Examples of Using the Positioning Control FunctionVisual KVSeries15Chapter 5 Positioning Control3-261Ladder example of automatic operation (pall
5.3 Examples of Using the Positioning Control FunctionVisual KVSeries5Chapter 5 Positioning Control3-262Ladder example of a return to the zero point
5.3 Examples of Using the Positioning Control FunctionVisual KVSeries15Chapter 5 Positioning Control3-263Ladder example of an automatic operation (c
5.3 Examples of Using the Positioning Control FunctionVisual KVSeries5Chapter 5 Positioning Control3-2642008EI00010002000300040005000600070008000900
5.3 Examples of Using the Positioning Control FunctionVisual KVSeries15Chapter 5 Positioning Control3-265230914052310230820081400SET1205DIFU0007#035
1.3 Device Configuration3-511Chapter 1 Programming1.3 Device Configuration"Device" is a general name for relays, registers, etc. processed
5.3 Examples of Using the Positioning Control FunctionVisual KVSeries5Chapter 5 Positioning Control3-2662309RES#17500DW#00000DW#00250DW#15000DW#0030
Chapter 6Interrupts, High-speed Counters,Positioning ControlThis chapter describes ramp-up/down control of stepping motors and servo motors.6.1 Interr
6.1 Interrupt InstructionsKV-300KV-10/803-2686Chapter 6 Interrupts, High-speed Counters, Positioning Control6.1 Interrupt Instructions6.1.1 Descrip
6.1 Interrupt InstructionsKV-300KV-10/803-26916Chapter 6 Interrupts, High-speed Counters, Positioning ControlInterrupt priorityIf two or more inter
6.1 Interrupt InstructionsKV-300KV-10/803-2706Chapter 6 Interrupts, High-speed Counters, Positioning ControlDirect outputDirect output is enabled o
6.1 Interrupt InstructionsKV-300KV-10/803-27116Chapter 6 Interrupts, High-speed Counters, Positioning Control6.1.2 Interrupt InstructionsDI: Interr
6.1 Interrupt InstructionsKV-300KV-10/803-2726Chapter 6 Interrupts, High-speed Counters, Positioning ControlINT: InterruptRETI: Return InterruptKey
6.1 Interrupt InstructionsKV-300KV-10/803-27316Chapter 6 Interrupts, High-speed Counters, Positioning ControlInterrupt routine codingExample 2Featu
6.1 Interrupt InstructionsKV-300KV-10/803-2746Chapter 6 Interrupts, High-speed Counters, Positioning ControlINT / RETI20081EI220320022002CTH10005EN
6.1 Interrupt InstructionsKV-300KV-10/803-27516Chapter 6 Interrupts, High-speed Counters, Positioning ControlINT / RETI Initial setting• When the
Note to UserWhen using the Visual KV Series in the following conditions or environments, besure to use the Visual KV Series with sufficient margin reg
1.3 Device Configuration3-61Chapter 1 ProgrammingList of relays in expansion units Input units Output units I/O units* Relay Nos. of expansion un
6.2 High-speed CountersKV-300KV-10/803-2766Chapter 6 Interrupts, High-speed Counters, Positioning ControlInternal clocks2200(1.0 µs)2201(10.0 µs)22
6.2 High-speed CountersKV-300KV-10/803-27716Chapter 6 Interrupts, High-speed Counters, Positioning ControlUtility relays for high-speed counter CTH
6.2 High-speed CountersKV-300KV-10/803-2786Chapter 6 Interrupts, High-speed Counters, Positioning Control High-speed counter and counter comparato
6.2 High-speed CountersKV-300KV-10/803-27916Chapter 6 Interrupts, High-speed Counters, Positioning Control• You cannot change operands of the high-
6.2 High-speed CountersKV-300KV-10/803-2806Chapter 6 Interrupts, High-speed Counters, Positioning ControlPulse period and widthPeriod and width of
6.2 High-speed CountersKV-300KV-10/803-28116Chapter 6 Interrupts, High-speed Counters, Positioning ControlCTH0 valueONOFFCTC0CTH0 valueONOFFCTC0CTC
6.2 High-speed CountersKV-300KV-10/803-2826Chapter 6 Interrupts, High-speed Counters, Positioning Control 16-bit high-speed counter (CTH1) and spe
6.2 High-speed CountersKV-300KV-10/803-28316Chapter 6 Interrupts, High-speed Counters, Positioning ControlCalculating the pulse cycle and comparato
6.2 High-speed CountersKV-300KV-10/803-2846Chapter 6 Interrupts, High-speed Counters, Positioning ControlExamples of Pulse OutputThe following samp
6.2 High-speed CountersKV-300KV-10/803-28516Chapter 6 Interrupts, High-speed Counters, Positioning Control0000 21050000SET2105RES000021050000SETRES
1.3 Device Configuration3-711Chapter 1 Programming1.3.2 Relay No.The relay No. configuration is shown below.Address No.Address Nos. are assigned to
6.2 High-speed CountersKV-300KV-10/803-2866Chapter 6 Interrupts, High-speed Counters, Positioning ControlValues set to the internal clock and CTC2A
6.2 High-speed CountersKV-300KV-10/803-28716Chapter 6 Interrupts, High-speed Counters, Positioning Control0000 22040000SET2204RES000022040000SETRES
6.2 High-speed CountersKV-300KV-10/803-2886Chapter 6 Interrupts, High-speed Counters, Positioning ControlWhen start/stop of clock pulse is controll
6.2 High-speed CountersKV-300KV-10/803-28916Chapter 6 Interrupts, High-speed Counters, Positioning Control When outputting clock pulse with cycle
6.2 High-speed CountersKV-300KV-10/803-2906Chapter 6 Interrupts, High-speed Counters, Positioning Control0000 22040000SET2204RES000022040000SETRESK
6.2 High-speed CountersKV-300KV-10/803-29116Chapter 6 Interrupts, High-speed Counters, Positioning ControlProgramming example2008SET2103 2104 2105
6.2 High-speed CountersKV-300KV-10/803-2926Chapter 6 Interrupts, High-speed Counters, Positioning Control2008SET2103 2104 2105 2106RES SET SET RESR
6.2 High-speed CountersKV-300KV-10/803-29316Chapter 6 Interrupts, High-speed Counters, Positioning ControlCOM000000010500050105020503111278910COM20
6.2 High-speed CountersKV-300KV-10/803-2946Chapter 6 Interrupts, High-speed Counters, Positioning Control2002INITIAL SETUP FOR HIGH-SPEED COUNTER/C
6.2 High-speed CountersKV-300KV-10/803-29516Chapter 6 Interrupts, High-speed Counters, Positioning ControlRET0025INTERRUPT ROUTINE FOR SPEED-UP/SLO
1.3 Device Configuration3-81Chapter 1 ProgrammingContact No.• Contact Nos. are input/output terminal Nos. of basic units, input expansion units,outp
6.3 Positioning ControlKV-300KV-10/803-2966Chapter 6 Interrupts, High-speed Counters, Positioning Control6.3 Positioning Control6.3.1 Positioning C
6.3 Positioning ControlKV-300KV-10/803-29716Chapter 6 Interrupts, High-speed Counters, Positioning ControlRunStartAcceleration/ deceleration time∆t
6.3 Positioning ControlKV-300KV-10/803-2986Chapter 6 Interrupts, High-speed Counters, Positioning Control Set value error codeAutomatically writes
6.3 Positioning ControlKV-300KV-10/803-29916Chapter 6 Interrupts, High-speed Counters, Positioning Control Acceleration/deceleration time (ms)Sets
6.3 Positioning ControlKV-300KV-10/803-3006Chapter 6 Interrupts, High-speed Counters, Positioning ControlDM9409DM94080DM9411DM9412DM9410DM94102310(
6.3 Positioning ControlKV-300KV-10/803-30116Chapter 6 Interrupts, High-speed Counters, Positioning Control150001750080002000300015000Ramp-up/down c
6.3 Positioning ControlKV-300KV-10/803-3026Chapter 6 Interrupts, High-speed Counters, Positioning Control000100020003000400050006000700080009001000
6.3 Positioning ControlKV-300KV-10/803-30316Chapter 6 Interrupts, High-speed Counters, Positioning Control00250026002700280029003000310032003300340
6.3 Positioning ControlKV-300KV-10/803-3046Chapter 6 Interrupts, High-speed Counters, Positioning ControlKVNKA Chap 06.p65 08.3.11, 0:10 PM304
Chapter 7Serial CommunicationThe KV Series can be connected to an external device with an RS-232C interfaceto establish communication.This chapter des
1.3 Device Configuration3-911Chapter 1 Programming1.3.4 Input RelaysInput relays receive ON/OFF signals sent from external input equipment.Note 1: I
7.1 Communications Specifications3-3067Chapter 7 Serial Communication7.1 Communications SpecificationsThis section describes the specifications for
7.1 Communications Specifications3-30717Chapter 7 Serial Communication7.1.3 Connecting the KV-300 CPU to a Personal ComputerConnect the KV-300 CPU
7.2 Serial Communication3-3087Chapter 7 Serial Communication7.2 Serial CommunicationWhen the KV is connected to a personal computer, the current va
7.2 Serial Communication3-30917Chapter 7 Serial Communication Command/response format"Command" and "response" in communication
7.2 Serial Communication3-3107Chapter 7 Serial Communication7.2.3 Communication Command/Response ListThe following list shows the commands and resp
7.2 Serial Communication3-31117Chapter 7 Serial Communication7.2.4 Setting Communication Commands and Responses toCommandsThis section describes th
7.2 Serial Communication3-3127Chapter 7 Serial Communication Reading counterReads the contact ON/OFF status, or the current and preset values of t
7.2 Serial Communication3-31317Chapter 7 Serial Communication Reading DMReads the contents of the specified data memory.Command: RD_DMnnnnData mem
7.2 Serial Communication3-3147Chapter 7 Serial Communication Writing preset value of high-speed counter comparator CTCChanges the preset value of
7.2 Serial Communication3-31517Chapter 7 Serial Communication Forcing CTC contact OFFForces the contact of the specified high-speed counter compar
1.3 Device Configuration3-101Chapter 1 ProgrammingExpansion unit Input relay time constantBy setting special utility relays 2609 to 2612 to ON, the
7.2 Serial Communication3-3167Chapter 7 Serial CommunicationSubroutines are nested to four levelsor more.FOR/NEXT instructions are nested toeight l
7.2 Serial Communication3-31717Chapter 7 Serial Communication7.2.7 Example ProgramTypical program for communications between the KV and a personal
7.3 Loading Text Data3-3187Chapter 7 Serial Communication7.3 Loading Text DataThe KV can be connected to equipment having an RS-232C port to load c
7.3 Loading Text Data3-31917Chapter 7 Serial CommunicationNote 1: Be sure to transmit a break signal for the first serial communication with aperso
7.3 Loading Text Data3-3207Chapter 7 Serial CommunicationT000T001280305002801280000002008100128000500DM1007LDADM1006LDADM1005LDADM1004LDADM1003LDAD
7.4 ASCII Code List3-32117Chapter 7 Serial Communication00123456789ABCDEF123456789High-order 4 bitsLow-order 4 bits7.4 ASCII Code ListThe following
7.4 ASCII Code List3-3227Chapter 7 Serial CommunicationKVNKA Chap 07.p65 08.3.11, 0:11 PM322
Chapter 8Programming ExamplesThis chapter describes the typical programming examples for KV-300, KV-10/80Series. These programs can be used for Visual
8.1 List3-3248Chapter 8 Programming Examples8.1 ListInstruction Program titleReferencePageTMR, TMH, TMS [Timers] One-shot circuit 3-326Off-delay cir
8.1 List3-32518Chapter 8 Programming ExamplesInstruction Program title ReferencePageEORA Judgement of matcing data 3-352SRA/SLA Separate input of BC
1.3 Device Configuration3-1111Chapter 1 Programming1.3.6 Internal Utility RelaysIn a relay circuit, when one relay contact is used twice or more ins
8.2 Details3-3268Chapter 8 Programming Examples8.2 Details8.2.1 Reference Program ExamplesBasic InstructionsApplications of TMR, TMH, and TMS Instru
8.2 Details3-32718Chapter 8 Programming Examples On-delay circuitOutput relay 0500 turns ON in a specified time after input relay 0000 turns ON.Whe
8.2 Details3-3288Chapter 8 Programming Examples0001#09999C00020020500#0099900000 to00999LDAC000CMP050105122011#01999CMP20110500#02999CMP20110500 050
8.2 Details3-32918Chapter 8 Programming ExamplesCodingApplication of DIFU, DIFD Instructions One-shot circuit using differentiate instructionWhen i
8.2 Details3-3308Chapter 8 Programming ExamplesTiming diagramLadder diagramExecutes SET when all input relays 0000 to 0003 are ON.Detects presence/a
8.2 Details3-33118Chapter 8 Programming Examples Repeat shift circuitTurns ON every output for a second sequentially. Sets 1000 to 2008 (ON for 1st
8.2 Details3-3328Chapter 8 Programming Examples2008Turn ON for 1st scan only at startup.2813SETEI0500#00010T000T000RES00002002SET05000500Interrupt e
8.2 Details3-33318Chapter 8 Programming ExamplesCoding➮ Refer to p. 3-86.Application of MC-MCR instruction Emergency stop circuitWhen input relay 0
8.2 Details3-3348Chapter 8 Programming Examples00000001050005010000000100020003050000001000000210010003000110020500100010011002Application Instructi
8.2 Details3-33518Chapter 8 Programming ExamplesApplication of STG-JMP instruction Enabling double coilWhen start SW 0000 is pressed, output relay
1.3 Device Configuration3-121Chapter 1 Programming1.3.7 Special Utility RelaysEach special utility relay has a unique function. By using special uti
8.2 Details3-3368Chapter 8 Programming ExamplesApplication of STP-STE instruction Process progressionWhen input relay 0000 turns ON, output relay 0
8.2 Details3-33718Chapter 8 Programming ExamplesONOFF500msMeasure the pulse intervalReset input relay 0002Output relay 0500 turns ONwhen the pulse
8.2 Details3-3388Chapter 8 Programming Examples2008200300010002DM0000PLSITVLPAUSERES1000STADM0000LDA#090002008STADM0001LDA#020002008STADM0002LDA#009
8.2 Details3-33918Chapter 8 Programming Examples20082002CTH10005RESCTH1SET2203SET2813#60000CTC2CTC2RES0502RESCTC2T0010502#00030T001 High-speed coun
8.2 Details3-3408Chapter 8 Programming Examples0000STATM03LDA#00030STATM02LDA#00010END00CALL2002NEXTRETENDHSBN002002STATM05SUBTM02STATM04ADD#00001LD
8.2 Details3-34118Chapter 8 Programming ExamplesCoding➮ Refer to p. 3-122.Application of FOR-NEXT Transfer of a block of DM dataUses the indirect a
8.2 Details3-3428Chapter 8 Programming Examples2008SET28142815ENDENDHHKEY0000STADM0000ORATM06SLA#04LDADM0000DW#000002815DMXSTATM05CMPTM05ANDA$03FF20
8.2 Details3-34318Chapter 8 Programming Examples200200000500#00010T0000500 T000STAT000TMIN0200200000500#00010T0000500 T000STAT002STAT001STAT000TMIN0
8.2 Details3-3448Chapter 8 Programming ExamplesLine No. Instruction Operand Line No. Instruction Operand0000 LD 0000 0035 STA DM00030001 DIFU 1000 0
8.2 Details3-34518Chapter 8 Programming Examples20020005#9999C000STAC000LDADM00000001 Changing the counter setting valueSets the setting value of c
1.3 Device Configuration3-1311Chapter 1 ProgrammingRelay 2008: Remains ON during only one scan when operation is started.This relay can be used for
8.2 Details3-3468Chapter 8 Programming Examples200205012009CMPDM0000LDAC000050020092002DIV#00010MUL#00004ADD#00001TMIN00001#09999C00000000STADM0000S
8.2 Details3-34718Chapter 8 Programming Examples0001#09999C00020020500#00999C000≤00999LDAC000CMP050105022011#01999CMP20110500#02999CMP20110500 05010
8.2 Details3-3488Chapter 8 Programming ExamplesLine No. Instruction Operand Line No. Instruction Operand0000 LD 2002 0012 LDA DM00010001 LDA DM0000
8.2 Details3-34918Chapter 8 Programming Examples2002LDATM00STADM0100MULDM0000LDAC0010001#09999C0010000STADM0101#0999900001C0010000STADM0001LDAC00120
8.2 Details3-3508Chapter 8 Programming Examples➮ Refer to p. 3-159.Line No. Instruction Operand Line No. Instruction Operand0000 LD 2002 0011 ANDA $
8.2 Details3-35118Chapter 8 Programming ExamplesApplication of ORA instruction Output of BCD 2-digit dataConverts the current value of counter C000
8.2 Details3-3528Chapter 8 Programming Examples1 011101110111011D15D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D00 0000000111111110 0000000101110
8.2 Details3-35318Chapter 8 Programming ExamplesCoding➮ Refer to p. 3-166.Application of RRA/RLA instructions Error input countWrites the number of
8.2 Details3-3548Chapter 8 Programming Examples2008STADM0000LDA#000000000INCDM00000005DW#000000001DECDM0000DM0000Sets #00000 to DM0000 at startup.In
8.2 Details3-35518Chapter 8 Programming Examplesafbecgda. 7500b. 7501c. 7502d. 7503e. 7504f. 7505g. 7506Application of MPX instruction Display of 7
1.3 Device Configuration3-141Chapter 1 Programming1.3.8 Special Utility Relay ListSpecial relays and arithmetic operation flags➮"1.3.7 Special
8.2 Details3-3568Chapter 8 Programming Examples2002DMXLDA070002002ANDATBCD$00FFSTA8000STA7500TBCDLDA0001#09999C0012002 C0010000Converts the most sig
8.2 Details3-35718Chapter 8 Programming ExamplesMULLDA2002LDASTADIVTBCDSTADM0000 DM0001 #10000 DM0101 TM01 7500LDATBCDSTADM0101 8500Line No. Instruc
8.2 Details3-3588Chapter 8 Programming ExamplesKVNKA Chap 08.p65 08.3.11, 0:12 PM358
IndexKVNKA Index_Pro.p65 08.3.11, 0:14 PM359
IndexIndex3-360Index — For Visual KV User’s OnlyThe following is the index with some descriptions for your reference.Index — For Visual KV User’s Only
IndexIndex3-361esopruPeltiTegaP" 0 "o teu l aveh tgn i t t ese r , r e t nuocdeeps - hg i H retnuocdeeps-hgihehtgni t teseR412-3r o fe c r u
IndexIndex3-362AA/D converter ... 1-312 [AN6], 1-334 [AD4]A/D conversion table ... 1-408 [AN6], 1-357 [AD4]ADD/@A
IndexIndex3-363MPX/@MPX: Multiplexer ... 3-176MRD: Read ...
IndexIndex3-364AACCS ... 1-234ALL CLEAR [FNC60] [P3E]...
IndexIndex3-365KVNKA Index_Pro.p65 08.3.11, 0:14 PM365
1.3 Device Configuration3-1511Chapter 1 ProgrammingSpecial utility relays for high-speed counter(1)➮"Chapter 4. High-Speed Counters" (p.3-
IndexIndex3-366KVNKA Index_Pro.p65 08.3.11, 0:14 PM366
Safety PrecautionsThis instruction manual describes the operation and function of the KV Series PLC.Read this manual carefully to ensure safe use and
User’s ManualVisual KV Series3ProgrammingHow this manual is organized:The Visual KV Series User’s Manual is composed of 3 separatemanuals; 1-Installat
Features of the Visual KV Series● Extremely smallThe Visual KV Series is the smallest in the world among AC type PLCs equippedwith screw terminal bloc
1.3 Device Configuration3-161Chapter 1 Programming.oNyaleRno i t cnuF0042langislanretxe0HTCfognimiTFFOteserplanret xEFFOegdegn i l l a f t ANOegdegn
1.3 Device Configuration3-1711Chapter 1 ProgrammingNote: Never use special utility relays that are not shown above..oNyaleRno i t cnuF9062ya l e rh
1.3 Device Configuration3-181Chapter 1 Programming1.3.9 Timers and CountersTimers and counters can be set in a program, and their outputs can be use
1.3 Device Configuration3-1911Chapter 1 Programming1.3.10 Data MemoriesData memories store various types of data.Data memories are not usually used
1.3 Device Configuration3-201Chapter 1 Programming* Read-only relay.Note 1: 16-bit binary data is stored in each of the data memories as for interna
1.3 Device Configuration3-2111Chapter 1 Programming1.3.11 Temporary Data MemoryThese data memories are used for temporary storage. When arithmetic i
1.3 Device Configuration3-221Chapter 1 Programming1.3.12 Relay Nos. and FunctionsAssignment of Relay Nos.The components of a relay no. are shown bel
1.4 Special Functions3-2311Chapter 1 Programming1.4 Special FunctionsThis section describes special functions to set and confirm operations on the V
1.4 Special Functions3-241Chapter 1 Programming1.4.2 Modifying the Input Relay Time Constant Modifying with External SwitchesKV-C32X/C16X KV-R16X
1.4 Special Functions3-2511Chapter 1 Programming1.4.3 Constant Scan Time ModeThis function executes a program while keeping the scan time at a const
● Interrupt functionThe Visual KV Series is equipped with four high-speed interrupt inputs of10 µs maximum.● Input time constant change functionThe ti
1.4 Special Functions3-261Chapter 1 Programming1.4.4 Output Disabled FunctionThis function disables outputs from each unit in RUN mode without regar
1.5 Extended Ladder Diagrams3-2711Chapter 1 Programming1.4.6 Contact Comment Save Function• This function transfers contact comments to the Visual K
1.4 Special Functions3-281Chapter 1 Programming1.4.7 Special FunctionsConstant Scan Time ModeIn this mode, operation can take place according to a p
1.5 Extended Ladder Diagrams3-2911Chapter 1 Programming1.5 Extended Ladder DiagramsThis section describes KEYENCE’s unique extended ladder diagram.1
1.5 Extended Ladder Diagrams3-301Chapter 1 Programming2010201020022010050205010500#01000CMPDM0000LDA#02000CMP#03000CMP2002DM0000LDA#01000CMP20022010
1.5 Extended Ladder Diagrams3-3111Chapter 1 Programming050105000000LD 0000OUT 0500OUT 0501LD 0000OUT 0500CONOUT 0501050105000000The CON instruction
1.5 Extended Ladder Diagrams3-321Chapter 1 ProgrammingKVNKA Chap 01P.p65 08.3.11, 11:49 AM32
Chapter 2InstructionsDescribes the concrete usage of instructions in the KV Series.Refer to "Chapter 3 Interrupts" on page 3-191 for details
2.1 Instruction ListVisual KV Series3-342Chapter 2 Instructions2.1 Instruction ListThe KV Series uses 80 instructions.The instructions are divided i
Visual KV Series3-3512Chapter 2 Instructions2.1 Instruction List• Number of bytes represents the memory capacity required for each instruction.• Num
Cautions when using the previous version of ladder support softwarePay strict attention to the following items when using the ladder support software.
2.1 Instruction ListVisual KV Series3-362Chapter 2 Instructions• Number of bytes represents the memory capacity required for each instruction.• Numb
Visual KV Series3-3712Chapter 2 Instructions2.1 Instruction List• Number of bytes represents the memory capacity required for each instruction.• Num
2.1 Instruction ListVisual KV Series3-382Chapter 2 Instructions• Number of bytes represents the memory capacity required for each instruction.• Numb
Visual KV Series3-3912Chapter 2 Instructions2.1 Instruction List• Number of bytes represents the memory capacity required for each instruction.• Num
2.1 Instruction ListVisual KV Series3-402Chapter 2 Instructions• Number of bytes represents the memory capacity required for each instruction.• Numb
Visual KV Series3-4112Chapter 2 Instructions2.1 Instruction List• Number of bytes represents the memory capacity required for each instruction.• Num
KV-300 Series, KV-10/802.2 Instruction ListKV-300 Series,3-422Chapter 2 Instructions2.2 Instruction List• Number of bytes represents the memory capa
KV-300 Series, KV-10/803-4312Chapter 2 Instructions2.2 Instruction ListKV-300InstructionSymbol Mnemonic OperandOperand valueExec.time(µs)BytesFuncti
KV-300 Series, KV-10/802.2 Instruction ListKV-300 Series,3-442Chapter 2 InstructionsKV-300InstructionSymbol Mnemonic OperandOperand valueExec.time(µ
KV-300 Series, KV-10/803-4512Chapter 2 Instructions2.2 Instruction List2.2.2 Application InstructionsKV-10/16/24/40/80KV-10/16/24/40/80 InstructionS
(6)KVNKA Front_Pro.p65 08.3.11, 0:13 PM7
KV-300 Series, KV-10/802.2 Instruction ListKV-300 Series,3-462Chapter 2 InstructionsKV-300KV-300InstructionSymbol Mnemonic OperandOperand valueExec.
KV-300 Series, KV-10/803-4712Chapter 2 Instructions2.2 Instruction ListKV-300InstructionSymbol Mnemonic OperandOperand valueExec.time(µs)BytesFuncti
KV-300 Series, KV-10/802.2 Instruction ListKV-300 Series,3-482Chapter 2 Instructions2.2.3 Arithmetic InstructionsKV-10/16/24/40/80KV-10/16/24/40/80
KV-300 Series, KV-10/803-4912Chapter 2 Instructions2.2 Instruction ListKV-10/16/24/40/80 InstructionSymbol Mnemonic OperandOperand valueKV-10/16Oper
KV-300 Series, KV-10/802.2 Instruction ListKV-300 Series,3-502Chapter 2 InstructionsKV-300InstructionSymbol Mnemonic OperandOperand valueExec.time(µ
KV-300 Series, KV-10/803-5112Chapter 2 Instructions2.2 Instruction ListKV-300InstructionSymbol Mnemonic OperandOperand valueExec.time(µs)BytesFuncti
KV-300 Series, KV-10/802.2 Instruction ListKV-300 Series,3-522Chapter 2 InstructionsKV-300InstructionSymbol Mnemonic OperandOperand valueExec.time(µ
KV-300 Series, KV-10/803-5312Chapter 2 Instructions2.2 Instruction ListKV-300InstructionSymbol Mnemonic OperandOperand valueExec.time(µs)BytesFuncti
KV-300 Series, KV-10/802.2 Instruction ListKV-300 Series,3-542Chapter 2 Instructions2.2.4 Interrupt InstructionsKV-10/16/24/40/80KV-300InstructionSy
2.3 Convention Details3-5512Chapter 2 Instructions2.3 Convention DetailsIn this chapter, each instruction is described as follows:2.4 Instruction D
(7)How this manual is organizedThe Visual KV Series User’s Manual is composed of 3 separate manuals;1-Installation, 2-Support Software, 3-Programming.
2.4 Instruction Details3-562Chapter 2 Instructions2.4 Instruction Details2.4.1 Basic InstructionsThis section describes the basic instructions used
2.4 Instruction Details123-57Chapter 2 InstructionsExampleCodingWhen input relay 0000 turns ON, output relay 0500 turns ON.When input relay 0001 tur
2.4 Instruction Details3-582Chapter 2 InstructionsAND: AndANB: And BarConnects N.O. contact in series withprevious contact.Connects N.C. contact in
2.4 Instruction Details123-59Chapter 2 InstructionsOperandKey operationExample: AND T012()SET1TMR(T)AND8AND8ANB5ANL2OperandENTR-SRCHENTR-SRCHAND / A
2.4 Instruction Details3-602Chapter 2 InstructionsOR: OrORB: Or BarConnects N.O. contact in parallel withprevious contact.Connects N.C. contact in p
2.4 Instruction Details123-61Chapter 2 InstructionsExampleCodingDescriptionThe above example shows a serial connection between Block A 0000 0002 and
2.4 Instruction Details3-622Chapter 2 InstructionsANL0000 000205000003 000500010004Line No. Instruction Operand0000 LD 00000001 OR 00010002 LD 00020
2.4 Instruction Details123-63Chapter 2 InstructionsExampleCodingDescriptionThe above example shows a parallel connection of Block A 0000 0001 and B
2.4 Instruction Details3-642Chapter 2 InstructionsApplications of ORL InstructionCoding (1) Coding (2)• The ORL instruction can be used as many time
2.4 Instruction Details123-65Chapter 2 InstructionsExampleCodingDescription• When input relay 0000 turn ON, output relay 0500 turns ON and output re
(8)Chapter 2 EditorDescribes the operating procedures in Editor mode.Chapter 3 SimulatorDescribes the operating procedures in Simulator mode.Chapter 4
2.4 Instruction Details3-662Chapter 2 InstructionsExampleCodingDescription• Output relay 0500 remains ON after input relay 0000 turns OFF. Output re
2.4 Instruction Details123-67Chapter 2 InstructionsExampleCodingTiming diagram (TMR000 #00010 and 0500 in the above example)• 0500 and 0501 turn ON
2.4 Instruction Details3-682Chapter 2 InstructionsExampleCodingDescription• 0500 and 0501 turn ON 0.1-s after 0000 turns ON.• TMH is a subtraction t
2.4 Instruction Details123-69Chapter 2 InstructionsExampleCodingDescription• 0500 and 0501 turn ON 0.1-s after 0000 turns ON.• TMS is a subtraction
2.4 Instruction Details3-702Chapter 2 InstructionsApplications of TMR instruction One-shot circuitWhen input relay 0000 turns ON, output relay 0500
2.4 Instruction Details123-71Chapter 2 Instructions On-delay circuitOutput relay 0500 turns ON in a specified time after input relay 0000 turns ON.
2.4 Instruction Details3-722Chapter 2 Instructions00010000#00010C000ExampleCodingTiming diagram (C000#00010 and 0500 in the above example)Descriptio
2.4 Instruction Details123-73Chapter 2 InstructionsDetails of counter Extended ladder• The counter for the KV Series supports the extended ladder m
2.4 Instruction Details3-742Chapter 2 Instructions000120090000#09999C00220020500#01000CMP2009 0501#02000CMP20090502#03000CMPC002LDAApplications of C
2.4 Instruction Details123-75Chapter 2 InstructionsCoding Counter multi-level settingOutputs in 3 different levels according to the counter current
Komentáře k této Příručce