INVT IVC Series Скачать руководство пользователя страница 1

 

 

IVC Series Small PLC 

Programming Manual   

 

Version                  V1.2 

Revision date 

March 17, 2015 

 

 

 

INVT  Auto-Control  Technology  provides  customers  with  technical  support.  Users  may  contact  the  nearest  INVT  local 

sales office, service center or headquarters. 

 

INVT Auto-Control Technology Co., Ltd. 

Copyright. All rights reserved. The content is subject to change without notice. 

 

INVT Auto-Control Technology Co., Ltd. 

Address: 4# Building, Gaofa Technological Park, Longjing, Nanshan District, Shenzhen 

Postal code: 518055 

Website: www.invt.com 

E-mail: [email protected]

Содержание IVC Series

Страница 1: ...act the nearest INVT local sales office service center or headquarters INVT Auto Control Technology Co Ltd Copyright All rights reserved The content is subject to change without notice INVT Auto Contr...

Страница 2: ...rt with chapters 1 4 to learn the basic PLC knowledge including PLC function description programming languages elements data addressing modes program annotating function main program and subprograms A...

Страница 3: ...62 5 3 SFC instructions 63 5 4 Timer instruction 65 5 5 Counter instruction 67 Chapter 6 Application instructions 69 6 1 Program flow control instruction 69 6 2 Data transmission instruction 74 6 3 I...

Страница 4: ...Chapter 10 Using communication function 274 10 1 Communication resource 274 10 2 Programming port protocol 274 10 3 Free port communication protocol 274 10 4 Modbus communication protocol 277 10 5 N N...

Страница 5: ...nputs 8 outputs 14 inputs 10 outputs 10 inputs 6 outputs 14 inputs 10 outputs 16 inputs 14 outputs 24 inputs 16 outputs 36 inputs 24 outputs 16 inputs 14 outputs 2 analog inputs 1 analog output 10 inp...

Страница 6: ...d hold time Standby batteries 3 year hold time Standby batteries 1 year hold time EEPROM permanent storage EEPROM permanent storage EEPROM permanent storage Element resource Timer 100ms accuracy T0 T2...

Страница 7: ...instruction With With With With Without Floating point instruction With With With With Without Locating instruction With With With With Only support DRVI High speed IO instruction With With With With...

Страница 8: ...take IVC1 1614MAR for example Figure 1 1 Outline and structure of IVC1 1L series main module PORT0 and PORT1 are for communication PORT0 is RS232 and use socket Mini DIN8 while IVC1 series PORT1 is R...

Страница 9: ...Auto Station Programming Software User Manual for Modbus programming and remote monitoring 1 2 1 Basic configuration Auto Station programming software requires an IBM PC and Microsoft Windows series...

Страница 10: ...e usage of Auto Station programming software refer to Auto Station Programming Software User Manual 1 2 4 Programming cable You can use the programming cable provided by INVT Auto Control Technology C...

Страница 11: ...series PLC is embedded with INVT developed N N communication protocol capable of setting up an N N communication network through the RS485 port on PORT1 and PORT2 or through PORT0 and a RS232 485 con...

Страница 12: ...series User Manual of IVC1 4AD Analog Input module User Manual of IVC1 2DA Analog Output module User Manual of IVC1 4DA Analog Output module User Manual of IVC1 2PT RTD Input Module User Manual of IVC...

Страница 13: ...tion several hundred s instruction Instruction number Basic instruction 32 Application instruction 226 Element resourceNote7 Input output 128 I 128 O input X0 X177 output Y0 Y177 Note1 Auxiliary relay...

Страница 14: ...r is required Realtime clock Built in 100h of working time after power failure the main module must have worked for more than 2mins before the power failure Table 2 2 IVC1S programming resources Name...

Страница 15: ...numbers Case sensitive Other protections Formatting and uploading ban enabled Programming modeNote5 Auto Station programming softwareNote6 IBM PC or compatible computer is required Realtime clock Bui...

Страница 16: ...ed Each subprogram can provide up to 16 parameter transfer User program protection Upload password 3 kinds of password Not longer than 8 letters or numbers Case sensitive Download password Monitor pas...

Страница 17: ...password 3 kinds of password Not longer than 8 letters or numbers Case sensitive Download password Monitor password Programming modeNote5 Auto Station programming softwareNote6 IBM PC or compatible co...

Страница 18: ...X and Y elements are addressed in octal system For example X10 stands for the eighth input point Note 2 Based on the timing precision T element addresses fall into three categories IVC1 IVC1S IVC1L IV...

Страница 19: ...gram execution time during every scan cycle and stop the user program if the running time exceeds the preset limit You can set the watchdog time in the Set time tab after double clicking the System bl...

Страница 20: ...Data type Power OFF ON STOP RUN Battery backed data Highest Highest EEPROM data High High Datablock precondition the Datablock enabled is checked in the Advanced Settings tab of System block Mid Mid...

Страница 21: ...ad to CPU fault 2 1 9 Digital filtering of input terminals The input terminals X0 X17 of IVC2L series main module and X0 X7 of IVC1 IVC1L and IVC2H series main module use digital filtering to filter t...

Страница 22: ...and input the correct password Note If you fail to input the correct password for continuously 5 times you will be banned from inputting password for the next 5 minutes 2 2System configuration 2 2 1 S...

Страница 23: ...IVC2L and IVC2H series PLC you can set two groups that form a union For IVC1 and IVC1L series PLC you can set only one group Note The T elements cannot be set in the saving range for IVC1 1L series PL...

Страница 24: ...d all the outputs will be frozen at the last status 3 Configure When the PLC is stopped the marked outputs will be set as ON Set time See Figure 2 5 Help Figure 2 5 Setting time 1 Watchdog time settin...

Страница 25: ...use digital filter while other digital input terminals use hardware filter IVC1 input filter can be in grouped divided into X0 X3 X4 X7 and the filter constant is 0 2 4 8 16 32 and 64 IVC2H input fil...

Страница 26: ...bled element value retained and no battery mode Help Figure 2 8 Advanced settings 1 Datablock enabled Check the Datablock enabled and the datablock will be used to initialize the D elements when the P...

Страница 27: ...tion In the TM state port 0 can only be used for programming communication 2 Free port protocol The free port protocol supports customized data file format either ASCII or binary code Only in the RUN...

Страница 28: ...al module configuration You can set the Module type and Module property in the Special module configuration tab as shown in Help Figure 2 10 Special module configuration 1 Module type As shown in you...

Страница 29: ...nual of the specific special module for the meanings and configuration methods of the various parameters Priority level of interruption The priority level of interruption is shown in Figure 2 12 The P...

Страница 30: ...Programming Software User Manual for detailed datablock instruction 2 2 3 Global variable table The global variables table enables you to give meaningful names for certain PLC addresses The names are...

Страница 31: ...s The configuration data that can be changed includes zero digital signal maximum digital signal output channel signal characteristic output channel ready flag and so on The main module uses the FROM...

Страница 32: ...ystem will stop executing the user program when a serious fault like user program error or user program execution overtime is detected 2 3 3 Setting output in STOP state You can set the state of outpu...

Страница 33: ...operation while a user program execution error is caused by the abnormal execution of the user program Every error is assigned with a code See Appendix 6System error code System error When system err...

Страница 34: ...e Connect the PLC with your PC through the serial port and you can read various PLC state information through the Auto Station including the system error and user program execution error In the main i...

Страница 35: ...r all element values when the PLC is in STOP state Think it twice before using the clearing function because clearing PLC element values may cause PLC operation error or loss of working data PLC progr...

Страница 36: ...ment values are one off and may change with the program operation but forced element values will be permanently recorded in the PLC hardware until being unforced To use the write or force function jus...

Страница 37: ...lement value during the debugging The program input and output elements can be added to the EMT so that they can be tracked after the program is downloaded to the PLC The EMT monitors the element valu...

Страница 38: ...ck the Read from RAM button and the data will be read into the list after the instruction is correctly executed You can select hex decimal or octal or binary system in the field of Display type to dis...

Страница 39: ...addition it is easier to program and modify the logic The types and functions of IVC series PLC elements are shown in the following figure Figure3 1 Types and functions of PLC elements In this manual...

Страница 40: ...768 R0 R32767 Decimal Local data registerNote5 64 V0 V63 64 V0 V63 64 V0 V63 64 V0 V63 Decimal Indexed addressing register 16 Z0 Z15 16 Z0 Z15 16 Z0 Z15 16 Z0 Z15 Decimal Special data register 256 SD0...

Страница 41: ...be used as the counting input point for high speed counters Besides X0 X7 can also be used for inputting external interrupts pulse tracking and SPD frequency detecting instruction Y0 and Y1 can be use...

Страница 42: ...Classification S0 S19 initial step flag Others normal step flag Elements numbered in Decimal starting with 0 Data type Boolean Available forms 1 Representation of steps when used in STL instruction 2...

Страница 43: ...t value as a negative number 3 1 7 Counter Element mnemonic C Function The C element contains a bit element and a word or a double word element The word elements can record 16 bit or 32 bit counted nu...

Страница 44: ...Cleared Note The saving range is set through the system block See R elements cannot be saved at power loss Note Some D elements may be reserved for internal tasks when the inverter instruction or N N...

Страница 45: ...ction The Z elements are 16 bit registers that can store signed integers For detailed indexed addressing information see Elements numbered in Decimal starting with 0 Data type Word Available forms The...

Страница 46: ...double words Kn addressing method The format is K n U where the n is an integer from one to eight standing for the length of the bit string n 4 The U stands for the address of the starting element For...

Страница 47: ...xample LD M0 1 MOV 30 Z20 MOV D100Z20 D0 The preceeding instructions are in effect equal to LD M0 1 MOV D130 D0 The addressing process is as follows Z20 30 D100 Z20 D 100 Z20 D130 Notes 1 The Z elemen...

Страница 48: ...address D0 stands for a single D0 element because operand 2 of the MOV instruction is of the WORD data type In the instruction DMOV 16 FEA867DA D0 the address D0 stands for two consecutive words D0 a...

Страница 49: ...tant types are listed in the following table Table 3 4 Constant types Constant type Example Valid range Remarks Decimal constant 16 bit signed integer 8949 32768 32767 Decimal constant 16 bit unsigned...

Страница 50: ...t bus Corresponding to the control bus in electric control diagram it provides power for the control circuit 2 Connecting line Corresponding to the electric connection in electric control diagram it c...

Страница 51: ...ting the instructions in the list one by one The following is an example of equivalent LAD and IL LAD IL LD X0 OR X1 AND X14 MPS OUT Y0 AND X1 OUT Y1 MPP AND X2 MPS OUT Y2 AND X3 AND X4 OUT Y3 MRD LD...

Страница 52: ...OUs Subprograms generally have call operand interface and are executed only when being called A user program can have random number of subprograms or no subprogram at all Interrupt INT An interrupt is...

Страница 53: ...ch piece of comment can be used to explain the function of the following program block In the program right click and select Insert Row to insert a row above the current row You can use an empty row t...

Страница 54: ...the program more sensible Figure 4 7 shows some variables defined in a global variable table Figure 4 7 Variables defined in the global variable table Symbol addressing When the defined variables are...

Страница 55: ...r using SBRs Note the following when writing or calling a SBR 1 The PLC supports up to 6 levels of SBR nesting The following is an fine example of 6 level of SBR nesting MAIN SBR1 SBR2 SBR3 SBR4 SBR5...

Страница 56: ...tive V element addresses WORD Word type One V element address DWORD Double word type Two consecutive V element addresses REAL Floating point type Two consecutive V element addresses 4 4 4 SBR paramete...

Страница 57: ...ng the result of the subprogram Parameter IN1 is used to transfer constant integer 3 Parameter IN2 is used to transfer constant integer 2 The result OUT1 is stored in D0 Figure 4 12 Calling subprogram...

Страница 58: ...e hardware resources Some instructions requires hardware resources When a specific hardware is being used by a certain instruction the access to the hardware will be denied to other instructions becau...

Страница 59: ...connect status ON or disconnect status OFF the power flow Example LD M0 OUT Y0 When M0 is ON Y0 is ON LD D1 2 OUT Y0 When the 2 nd bit of D1 is 1 Y0 is ON Note For the contact logic instructions of I...

Страница 60: ...steps plus 1 When the operands are Dx y the program steps will be 4 5 1 3 AND NO contact power flow and LAD AND Applicable to IVC1 IVC1S IVC1L IVC2L IVC2H Influenced flag bit IL AND S Program steps 1...

Страница 61: ...T Operand description S Source operand Function description After conducting OR operation on the ON OFF status of the designated contact S and the current power flow assign the value to the current p...

Страница 62: ...M1 OUT Y0 When M1 is ON Y0 is ON 5 1 8 ANB Power flow block and LAD ANB 1 2 Power flow block 1 Power flow block 2 Applicable to IVC1 IVC1S IVC1L IVC2L IVC2H Influenced flag bit IL ANB Program steps 1...

Страница 63: ...h the current power flow value into the stack for storage so that it can be used in the power flow calculation for the subsequent output branches Note It is prohibited to use the MPS instruction conse...

Страница 64: ...IVC2H Influenced flag bit IL ED Program steps 2 Function description Compare the current power flow status with its previous status If the power flow falls ON OFF the output is valid in the current sc...

Страница 65: ...connection with contacts INV cannot be used as the first instruction in the input parallel branch In LAD program the INV instruction cannot directly connect to the left power flow bus The examples of...

Страница 66: ...fluenced flag bit IL NOP Program steps 1 Function description This instruction does not enable any action Note In LAD program this instruction cannot directly connect to the left power flow bus 5 2 Ma...

Страница 67: ...e 4 Crossing of two MC MCR structures is not allowed The following is an illegal example LD M0 MC 0 LD SM0 OUT Y0 MCR 0 When M0 ON the instructions in the MC 0 MCR 0 structure will be executed and Y0...

Страница 68: ...Indexed addressing D BOOL S Operand description D Destination operand Function description When the power flow is valid the designated step D will be set valid and the current valid step will be set...

Страница 69: ...hen the power flow is OFF the timing will stop the timing value will be cleared and the timing coil output will be OFF 4 When the system executes the instruction for the first time it will reset the t...

Страница 70: ...o OFF falling edge the designated timer T D will start timing 2 When the power flow is OFF if the designated timer T has started timing it will keep timing until the timing value reaches the preset va...

Страница 71: ...n LAD Applicable to IVC1 IVC1S IVC1L IVC2L IVC2H Influenced flag bit IL CTU D S Program steps 5 Operand Type Applicable elements Indexed addressing D INT C S INT Constant KnX KnY KnM KnS KnLM KnSM D S...

Страница 72: ...flag bit IL DCNT D S Program steps 7 Operand Type Applicable elements Indexed addressing D DINT C S DINT Constant KnX KnY KnM KnS KnLM KnSM D SD C T V Z R Operand description D Destination operand S S...

Страница 73: ...the instructions in the FOR NEXT structure will be cyclically executed S times After that the instructions after the FOR NEXT structure will be executed 3 If the power flow before FOR is invalid or t...

Страница 74: ...onger it will take To prevent the operation overtime error use the WDT instruction in a time consuming loop 6 1 3 LBL Jump label definition LAD Applicable to IVC1 IVC1S IVC1L IVC2L IVC2H Influenced fl...

Страница 75: ...is not be executed and D0 is 100 After executing CFEND the current cycle of the main program ends in advance and the following LD M1 and MOV 200 D0 instructions are not executed 2 When M0 is ON M1 ON...

Страница 76: ...VC1S IVC1L IVC2L IVC2H Influenced flag bit IL DI Program steps 1 Function description 1 When the power flow is valid the global interrupt enable flag is inactive that is the global interrupt will be o...

Страница 77: ...he data type cannot be DINT DWORD Example 2 In the local variable table of the SBR1 subprogram the data type of Operand 1 is INT WORD The following usages are illegal CALL SBR1 C200 The data type of e...

Страница 78: ...element C only supports C0 to C199 Example LD X0 MOV D0 D10 When X0 is ON the content of D0 is assigned to D10 D10 500 6 2 2 DMOV Move double word data transmission instruction LAD Applicable to IVC1...

Страница 79: ...lock transmission instruction LAD Applicable to IVC1 IVC1S IVC1L IVC2L IVC2H Influenced flag bit IL BMOV S1 D S2 Program steps 7 Operand Type Applicable elements Indexed addressing S1 INT KnX KnY KnM...

Страница 80: ...e the same Example LD X0 FMOV D0 D100 10 When X0 is ON the content of D0 will be filled into 10 elements starting with D100 D100 D101 D109 D0 500 6 2 6 DFMOV Fill data block double word instruction LA...

Страница 81: ...high low bytes in D0 0x1027 4135 will be swapped and saved D0 is then 0x2710 10000 6 2 8 XCH Exchange word LAD Applicable to IVC1 IVC1S IVC1L IVC2L IVC2H Influenced flag bit IL XCH D1 D2 Program steps...

Страница 82: ...R D INT D V R S2 INT Constant KnX KnY KnM KnS KnLM KnSM D SD C T V Z R Operand description S1 push value D the number of elements in the stack It is also the element at the stack bottom S2 stack size...

Страница 83: ...ame time the value of D1 subtracts 1 the contents of the S units after D1 will move forward and the last unit is filled with 0 2 When D1 is 0 it indicates that the stack is empty the zero flag SM180 w...

Страница 84: ...bottom is assigned to D2 and at the same time the value of D1 subtracts 1 2 When D1 is 0 it indicates that the stack is empty the zero flag SM180 will be set 1 Note 1 When the stack is illegal for exa...

Страница 85: ...st S3 units will be discarded At the same time the contents of S3 units starting with S1 will be filled into the left end of the word string Note 1 The elements with smaller SN are at the right and th...

Страница 86: ...leftmost S3 units will be discarded At the same time the contents of S3 units starting with S1 will be filled into the right end of the word string Note 1 The elements with smaller SN are at the right...

Страница 87: ...2768 the borrow flag bit SM182 will be set Example LD X0 ADD D0 D1 D10 When X0 is ON add D0 1000 and D1 2000 and assign the result to D10 D10 3000 6 3 2 SUB Subtract integer instruction LAD Applicable...

Страница 88: ...s ON D0 1000 multiplies D1 2000 and the result 2000000 is assigned to D10 D11 6 3 4 DIV Divide integer instruction LAD Applicable to IVC1 IVC1S IVC1L IVC2L IVC2H Influenced flag bit IL DIV S1 S2 D Pro...

Страница 89: ...When the operation result rounds off the decimal fraction the borrow flag bit SM182 will be set Note S 0 otherwise the system will report operand error and the instruction will not be executed Example...

Страница 90: ...ion S source operand D destination operand Function description When the power flow is valid get the absolute value of S and assign it to D Note The range of S shall be 32767 32767 When S is 32768 the...

Страница 91: ...DD D0 D2 D10 When X0 is ON add the value 100000 of D0 D1 and the value 200000 of D2 D3 and assign the result to D10 D11 D10 D11 300000 6 3 11 DSUB Subtract double integer instruction LAD Applicable to...

Страница 92: ...000 of D2 D3 and the result 1660000000 is assigned to D10 D11 6 3 13 DDIV Divide double integer instruction LAD Applicable to IVC1 IVC1S IVC1L IVC2L IVC2H Influenced flag bit IL DDIV S1 S2 D Program s...

Страница 93: ...e decimal fraction the borrow flag bit SM182 will be set Note S 0 otherwise the system will report operand error and the instruction will not be executed Example LD X0 DSQT D0 D10 When X0 is ON extrac...

Страница 94: ...the execution D0 D1 99999 6 3 17 DVABS Double integer absolute value instruction LAD Applicable to IVC1 IVC1S IVC1L IVC2L IVC2H Influenced flag bit Zero carry borrow IL DVABS S D Program steps 7 Oper...

Страница 95: ...1 IVC1S IVC1L IVC2L IVC2H Influenced flag bit Zero carry borrow IL SUM S1 S2 D Program steps 8 Operand Type Applicable elements Indexed addressing S1 INT KnX KnY KnM KnS KnLM KnSM D SD C T V Z R S2 IN...

Страница 96: ...MOV 300000 D4 DMOV 400000 D6 DMOV 500000 D8 LD X0 DSUM D0 5 D100 When X0 is ON the double integers of 5 2 units starting with D0 will be summed up and the result is assigned to D100 D101 D100 D101 D0...

Страница 97: ...00 5 of D2 D3 is subtracted from the value 10000 2 of D0 D1 and the result 12000 7 is assigned to D10 D11 6 4 3 RMUL Multiply floating point number instruction LAD Applicable to IVC1 IVC1S IVC1L IVC2L...

Страница 98: ...e system will report Divided by 0 error and the RDIV instruction will not be executed Example LD X0 RDIV D0 D2 D10 When X0 is ON the value 10000 2 of D0 D1 is divided by the value 2000 5 of D2 D3 and...

Страница 99: ...ps 7 Operand Type Applicable elements Indexed addressing S REAL Constant D V R D REAL D V R Operand description S source operand D destination operand Function description When the power flow is valid...

Страница 100: ...en X0 is ON get the COS value of D0 D1 3 14 and assign the result 0 999999 to D10 D11 6 4 10 TAN Floating point number TAN instruction LAD Applicable to IVC1 IVC1L IVC2L IVC2H Influenced flag bit Zero...

Страница 101: ...ror and the instruction will not be executed 2 When S1 0 and the mantissa of S2 is not 0 the system will report operand error and the instruction will not be executed Example LD X0 POWER D0 D2 D10 Whe...

Страница 102: ...2H Influenced flag bit Zero carry borrow IL RSUM S1 S2 D Program steps 9 Operand Type Applicable elements Indexed addressing S1 REAL D V R S2 INT Constant KnX KnY KnM KnS KnLM KnSM D V R D REAL D V R...

Страница 103: ...N 1 value of D0 D1 0 500000 and assign the result 0 523599 to D10 D11 6 4 16 ACOS Floating point number ACOS instruction LAD Applicable to IVC2H Influenced flag bit Zero carry borrow IL ACOS S D Progr...

Страница 104: ...pplicable elements Indexed addressing S REAL Constant D V R D REAL D V R Operand description S source operand D destination operand Function description 1 When the power flow is valid get the LOG valu...

Страница 105: ...w flag bit SM181 will be set Example LD SM0 DEG D0 D10 When SM0 is ON get 3 0 of D0 D1 and assign the result 171 8873 to D10 D11 6 5 Data converting instruction 6 5 1 DTI Double integer to integer ins...

Страница 106: ...ements Indexed addressing S INT Constant KnX KnY KnM KnS KnLM KnSM D SD C T V Z R D REAL D V R Operand description S source operand D destination operand Function description When the power flow is va...

Страница 107: ...X0 is ON D0 D1 10000 5 will be converted from floating point number to integer and the result 10000 is assigned to D10 6 5 6 DINT Floating point number to double integer instruction LAD Applicable to...

Страница 108: ...s ON D0 0x0D05 3333 will be converted from integer to 16 bit BCD code and the result 0x3333 13107 is assigned to D10 6 5 8 DBCD Double word to 32 bit BCD instruction LAD Applicable to IVC1 IVC1S IVC1L...

Страница 109: ...0 is ON D0 0x5555 21845 will be converted from 16 bit BCD code to integer and the result 0x15B3 5555 is assigned to D10 6 5 10 DBIN 32 bit BCD to double word instruction LAD Applicable to IVC1 IVC1S I...

Страница 110: ...dexed addressing S DWORD Constant KnX KnY KnM KnS KnLM KnSM D SD C V R D DWORD KnY KnM KnS KnLM D C V R Operand description S source operand D destination operand Function description When the power f...

Страница 111: ...ll be converted from 32 bit Gray code to double integer and the result 0x88888888 2290649224 is assigned to D10 D11 6 5 15 SEG Word to 7 segment code instruction LAD Applicable to IVC1 IVC1S IVC1L IVC...

Страница 112: ...n SM186 is OFF the execution result is D0 0x3231 D1 0x3433 D2 0x3635 D3 0x3837 When SM186 is ON the execution result is D0 0x31 D1 0x32 D2 0x33 D3 0x34 D4 0x35 D5 0x36 D6 0x37 D7 0x38 6 5 17 ITA Hexad...

Страница 113: ...ment will store 1 ASCII code data Note 1 When S1 is not within 0x30 0x39 or 0x41 0x46 or S2 is not within 1 256 the system will report operand error and will not execute the instruction and D will not...

Страница 114: ...conversion table is meaningful For example the low point measured value should be smaller than the high point measured value The conversion result will be not accurate if exceeding the range of intege...

Страница 115: ...e SL V and high point standard value SH V into conversion table when the linear conversion is executed the source data will perform operation according to the following formulas and generate correspon...

Страница 116: ...C1S IVC1L IVC2L IVC2H Influenced flag bit IL WOR S1 S2 D Program steps 7 Operand Type Applicable elements Indexed addressing S1 WORD Constant KnX KnY KnM KnS KnLM KnSM D SD C T V Z R S2 WORD Constant...

Страница 117: ...en X0 is ON conduct logic NOT operation on D0 46739 and assign the result 18796 to D10 6 6 5 DWAND AND double word instruction LAD Applicable to IVC1 IVC1S IVC1L IVC2L IVC2H Influenced flag bit IL DWA...

Страница 118: ...R D DWORD KnY KnM KnS KnLM D C V R Operand description S1 source operand1 S2 source operand2 D destination operand Function description When the power flow is valid S1 and S2 will conduct logic exclu...

Страница 119: ...0 3 1 1 0 0 1 1 0 1 1 0 0 1 0 1 0 1 Before MSB LSB 1 0 1 0 1 1 0 1 0 0 1 After MSB LSB 1 1 0 1 0 SM181 SM181 1 Rotate rightward 3 bits When M0 is ON D0 2 1100110110010101 52629 rotates rightward for 3...

Страница 120: ...LM KnSM D SD C T V Z R Operand description S1 source operand1 D destination operand S2 source operand2 Function description When the power flow is valid S1 data and the carry flag SM181 will together...

Страница 121: ...g S1 DWORD Constant KnX KnY KnM KnS KnLM KnSM D SD C V R D DWORD KnY KnM KnS KnLM D C V R S2 INT Constant KnX KnY KnM KnS KnLM KnSM D SD C T V Z R Operand description S1 source operand1 D destination...

Страница 122: ...n 6 7 7 DRCR 32 bit carry circular shift right instruction LAD Applicable to IVC1 IVC1S IVC1L IVC2L IVC2H Influenced flag bit Carry flag SM181 IL DRCR S1 D S2 Program steps 9 Operand Type Applicable e...

Страница 123: ...OFF will rotate leftward for 25 bits and the result 2 001011000101100111001100010011100 1488165020 is assigned to D10 D11 SM181 ON 2 Please refer to the RCL instruction illustration 6 7 9 SHR 16 bit s...

Страница 124: ...tate leftward 7 bits When M0 is ON D0 2 0111101011011100 31452 shifts leftward for 7 bits and the result 2 0110111000000000 28160 is assigned to D10 6 7 11 DSHR 32 bit shift right instruction LAD Appl...

Страница 125: ...ght byte instruction LAD Applicable to IVC1 IVC1S IVC1L IVC2L IVC2H Influenced flag bit IL SFTR S1 D S2 S3 Program steps 9 Operand Type Applicable elements Indexed addressing S1 BOOL X Y M S LM SM C T...

Страница 126: ...Note 1 The elements with smaller SN are at the right and the elements with larger SN are at the left 2 S2 0 3 S3 0 Function description When the power flow is valid S2 elements starting with D will m...

Страница 127: ...67 If the BFM address is invalid the system will report BFM unit of accessed special module exceeds range D the D element where the data read from the target module will be stored S3 the number of con...

Страница 128: ...the BFM address is invalid the system will report BFM unit of accessed special module exceeds range D the D element where the data read from the target module will be stored S3 the number of consecuti...

Страница 129: ...in the BFM of the target module Range 0 32767 If the BFM address is invalid the system will report BFM unit of accessed special module exceeds range S3 the data to be written into the target module S4...

Страница 130: ...unit of accessed special module exceeds range Function description Write data from consecutive S4 registers starting with S3 to the consecutive S4 buffer registers starting with S2 in the BFM of the...

Страница 131: ...IVC1S IVC1L IVC2L IVC2H Influenced flag bit IL REF D S Program steps 5 Operand Type Applicable elements Indexed addressing D BOOL X Y S INT Constant Operand description D the starting X or Y element...

Страница 132: ...S1 to 6000 plus an integer multiple of 16 like D6000 D6016 and D6032 Function description 1 Partial PLC data are battery backed However during the calculation you can save the intermediate data into E...

Страница 133: ...OFF serial output 8 bytes when SM70 is ON serial output 1 16 bytes For H00 NUL code the previous character is the last one When the power flow is invalid the flag bit of print instruction in execution...

Страница 134: ...D1 2 Key information of D2 D2 10 Key information of D2 D2 9 ON OFF according to the keys pressed When any key in 0 9 is pressed D2 10 will output ON PLC 24V 1 s s 0V 5 4 3 2 9 8 7 6 S S S S S s S S S...

Страница 135: ...ve elements starting with D Function description Read the system time and store the value in the storage elements designated by D Note The TRD instruction will fail upon system clock setting error Exa...

Страница 136: ...D16 Week 0 6 SD106 Week Function description When the system time is different from the real time you can use the TWR instruction to correct the system time Note 1 The time must use the solar calendar...

Страница 137: ...he result of the time adding operation is stored in the 3 storage elements designated by D The result will affect the carry flag SM181 and the zero flag SM180 Function description Add two time format...

Страница 138: ...e subtracting operation is stored in the 3 storage elements designated by D The result will affect the carry flag SM181 and the zero flag SM180 Function description Conduct subtract operation on the t...

Страница 139: ...int changes to ON and generates output Function description Make judgment on the time when the input contact is ON unit hour Note 1 To sustain the current data after power off set D1 within the elemen...

Страница 140: ...ta must comply with the solar calendar format or the system will report operand error D Comparison status output When the data meet the comparison condition D is set ON otherwise it is set OFF Functio...

Страница 141: ...The data must comply with the 24 hour time format or the system will report operand error D comparison status output When the data meet the comparison condition D is set ON otherwise it is set OFF Fu...

Страница 142: ...M1 is ON convert the starting hour minute and second of D0 to second and store the result in D10 When D0 3 D1 10 and D2 15 D10 11415 6 9 9 STOH Second to time hour minute and second instruction LAD Ap...

Страница 143: ...reconditions of all system high speed I Os and refer to the instruction description in actual practice Example LD X10 OUT SM236 LD X11 RST C236 LD X12 HCNT C236 5 1 When X12 changes from OFF to ON the...

Страница 144: ...d counters will be seriously affected by instructions like DHSCS DHSCI DHSCR DHSZ DHSP and DHST For details see Function description 1 A high speed counter will count in the interrupt mode only when i...

Страница 145: ...CI DHSCS DHSCR DHSZ DHSP DHST can be used repeatedly However at most the first six such instructions can be driven at the same time 4 The maximum frequency supported by the PLC high speed counters wil...

Страница 146: ...7483647 S2 high speed output position element Range SD200 SD320 SD340 SD350 SD360 and SD370 S3 interrupt SN Range 53 54 55 56 57 and 58 Function description When the high speed output position element...

Страница 147: ...only applicable to the high speed counters that is driven by HCNT 2 The DHSCR instruction will be validated only by pulse input You cannot validate the instruction by changing the counter value with...

Страница 148: ...with the HCNT instruction because DHSZ is only applicable to the high speed counters that is driven by HCNT 2 The DHSZ instruction will be validated only by pulse input You cannot validate the instru...

Страница 149: ...e the DHST instruction when you want to immediately output according to certain comparison data the Y elements specified in a certain table Note 1 The DHST instruction must work together with the HCNT...

Страница 150: ...44 contact drives Y10 the execution of Y10 will be determined by the user program scan cycle 3 When M1 is ON and the DHST instruction meets the requirements in the preceding Note the compare will star...

Страница 151: ...cannot be executed unless the related high speed counter is driven by the HCNT instruction 2 When the DHSP instruction is used together with the PLSY instruction the values assigned to SD180 and SD181...

Страница 152: ...mpare with the second record will not start until the first compare is over and the output data has been output to SD180 SD181 After the compare with the last record is over the compare with the first...

Страница 153: ...M0 SPD X0 1000 D10 The time sequence chart of the example program is shown below D11 current value 1000ms 1000ms D10 measured value X0 M0 1000 D12 elapsed time Input X0 N fpn Proximity switch n pulse...

Страница 154: ...get independent pulse outputs You can also use PWM or PLSR instructions to get independent pulse outputs at different output ports 7 When multiple PWM PLSY or PLSR instructions work on the same outpu...

Страница 155: ...tal pulse number MSB IVC1L IVC2L R W SD53 PLSY accumulated output Y1 total pulse number LSB IVC1L IVC2L R W SD54 PLSY accumulated output Y1 Y0 total pulse number MSB IVC2L R W SD55 PLSY accumulated ou...

Страница 156: ...e the system will report instruction operand error output no pulse and no hardware resources will be occupied S3 acceleration or deceleration time ms If S1 S3 100 000 S3 will be regarded as 100000 S1...

Страница 157: ...f the output pulse number at Y0 for PLSY and PLSR instructions SD51 the LSB of the output pulse number at Y0 for PLSY and PLSR instructions SD52 the MSB of the output pulse number at Y1 for PLSY and P...

Страница 158: ...C2H R W SD210 Current position of Y1 output locating instruction MSB IVC1L IVC2L R W SD211 Current position of Y1 output locating instruction LSB IVC1L IVC2L R W SD320 Current position of Y2 output lo...

Страница 159: ...wn up M M M M 4 The frequency set in every step must be within the range of maximum speed and minimum speed 5 The maximum total pulse number of all steps is 999 999 4 Use the transistor output During...

Страница 160: ...total pulse number MSB R W SD167 PLSY accumulated output Y5 total pulse number LSB R W SD168 PLSY accumulated output Y6 total pulse number MSB R W SD169 PLSY accumulated output Y6 total pulse number...

Страница 161: ...resources will be occupied D pulse output point Range IVC1 IVC2L Y0 Y1 IVC2H Y0 Y2 Y4 Y5 Y6 Y7 Function description The PLSB instruction is a high speed pulse output instruction with base frequency an...

Страница 162: ...Y0 for PLSB instruction SD52 the MSB of the output pulse number at Y1 for PLSB instruction SD53 the LSB of the output pulse number at Y1 for PLSB instruction SD54 the MSB of the total output pulse nu...

Страница 163: ...SD350 Current position of Y5 output locating instruction MSB R W SD351 Current position of Y5 output locating instruction LSB R W SD360 Current position of Y6 output locating instruction MSB R W SD361...

Страница 164: ...ardless of the scan cycle 2 SM80 and SM81 control the output ON OFF of Y0 and Y1 respectively When SM80 and SM81 are ON the output will stop 3 SM82 and SM83 monitor the output of Y0 and Y1 respectivel...

Страница 165: ...sitive change overflows Bit1 process value negative change overflows Bit2 output value positive change overflows Bit3 output value negative change overflows Where S3 S3 6 are the mandatory user set op...

Страница 166: ...ntial time MV The change in the output manipulation values D The differential gain MV The current output manipulation value Example PID initialization If the control operands are the same you can init...

Страница 167: ...me TS is scan cycle 1ms scan cycle When TS is small the PID effect will be affected It is recommended to use PID instruction in the timed interrupt 4 When setting the PID output thresholds if the uppe...

Страница 168: ...S2 it will keep stable and the output state D2 will be set ON If the power flow falls the output state D2 will be set OFF but the output value D1 will not change until the power flow rises again when...

Страница 169: ...on D2 output state Function description In each scan cycle when the power flow is ON this instruction can determine the increment and current output value D1 according to the hackle wave height and st...

Страница 170: ...D SD C T V Z R D2 BOOL Y M S LM C T Operand description S1 starting value S2 end value D1 output value S3 step number S3 0 or system will report operand error and do not execute the calculation D2 out...

Страница 171: ...e when D1 will be initialized as S1 and a new triangle wave starts 2 You can use an external special module to convert the data into analog waveform 6 11 5 ABSD Absolute drum control instruction LAD A...

Страница 172: ...description 1 Compare n rows of table data starting with S1 occupy n rows 4 points with the current value S2 of the counter for ON OFF control on D output of consecutive n points 2 Change the rising p...

Страница 173: ...f the data to be received Function description 1 When being a master station and the input conditions are met the system will transmit the data stored in the unit starting with S2 and then receive the...

Страница 174: ...orward rotation instruction LAD Applicable to IVC2L IVC1 IVC2H IVC1L Influenced flag bit IL IVFWD S1 S2 Program steps 6 Operand Type Applicable elements Indexed addressing S1 INT Constant S2 WORD Cons...

Страница 175: ...receives the data it will conduct CRC check address check and instruction check and set the communication completion flag SM135 after the communication If there is any error the error flag SM136 will...

Страница 176: ...d the error details will be recorded in the special register SD139 6 12 6 IVSTOP Inverter stop instruction LAD Applicable to IVC1 IVC2L IVC2H IVC1L Influenced flag bit IL IVSTOP S1 S2 S3 Program steps...

Страница 177: ...35 after the communication If there is any error the error flag SM136 will be set and the error details will be recorded in the special register SD139 6 12 8 IVWRT Inverter write single register value...

Страница 178: ...tting and set D0 as the storage register for the returned status information Read the inverter status through communication in the Modbus protocol 2 After the inverter receives the data it will conduc...

Страница 179: ...tion frame depending on the element type D or V of the communication frame the ending character of the frame does not exceed D7999 or V63 2 In case of shutdown the sending will stop Special register 1...

Страница 180: ...ta only once you can use a rising edge or special registers that are effective only once such as SM1 to trigger the instruction 2 For detailed application examples refer to Special register SM111 SM12...

Страница 181: ...xed 1 06 Write single register 0 fixed 1 15 Write multiple coils 1 1968 S5 15 16 16 Write multiple registers 1 123 S5 The number of 05 and 06 must be 0 in S5 The number of read write elements for IVC2...

Страница 182: ...elf is the same with the set station number or the address is out of the range 20 D error namely element address overflow The element address overflows the received or sent data amount exceeds the mem...

Страница 183: ...T T The time for 4 T 8 T and 9 T is less than 1ms 1ms 1000 ms bps rate Baud length character sent be to Bytes T5 6 T the waiting time of master station is determined by salve station and the maximum...

Страница 184: ...ng the CCITT instruction 2 The data within the checking data zone starting with S2 are stored in byte mode by default That is the high bytes are taken as 0 and the check result has 16 bits Example LD...

Страница 185: ...VC2H IVC1L Influenced flag bit IL LRC S1 S2 D Program steps 7 Operand Type Applicable elements Indexed addressing S1 WORD D V R S2 INT Constant KnX KnY KnM KnS KnLM KnSM D SD C T V Z R D WORD D V R Op...

Страница 186: ...ared Example LD SM0 ZRST M10 10 When SM0 is ON the 10 units M10 M11 M12 M19 will be completely cleared 6 14 2 ZSET Set batch bit instruction LAD Applicable to IVC2L IVC1 IVC1S IVC2H IVC1L Influenced f...

Страница 187: ...tination operand Function description When the power flow is valid assign the number of the bit whose value is 1 in word element S to D Note When the value of multiple bits in S is 1 the smallest bit...

Страница 188: ...nto D Example LD SM0 DBITS 16 FF0FF D10 When the power flow is valid it is counted that there are 16 bits whose value is 1 ON status in constant 16 FF0FF so 16 is stored into D10 6 14 7 BON Judging ON...

Страница 189: ...C1S IVC2H IVC1L Influenced flag bit IL BLDI S1 S2 Program steps 5 Operand Type Applicable elements Indexed addressing S1 WORD KnX KnY KnM KnS KnLM KnSM D SD C T V Z R S2 INT Constant KnX KnY KnM KnS K...

Страница 190: ...ion Take the logic NOT of the status of bit S2 in element S1 and use it in serial connection with other nodes to drive the operation of the following instruction Example LD X0 BANI D0 5 OUT Y0 Take th...

Страница 191: ...nodes to drive the operation of the following stage Example LD X0 BORI D0 5 OUT Y0 Take the logic NOT of the status of BIT5 ON in element D0 1000 2 0000001111101000 which is OFF and use it in parallel...

Страница 192: ...X0 BSET D0 15 When the power flow is valid set BIT15 of element D0 1000 2 0000001111101000 After the execution D0 33768 2 1000001111101000 6 15 9 BRST Word bit coil reset instruction LAD Applicable t...

Страница 193: ...NT Constant KnX KnY KnM KnS KnLM KnSM D SD C T V Z R S2 INT Constant KnX KnY KnM KnS KnLM KnSM D SD C T V Z R Operand description S1 comparison parameter 1 S2 comparison parameter 2 Function descripti...

Страница 194: ...nSM D SD C T V Z R S1 INT Constant KnX KnY KnM KnS KnLM KnSM D SD C T V Z R Operand description S1 comparison parameter 1 S2 comparison parameter 2 Function description Conduct BIN comparison on eleme...

Страница 195: ...S1 INT Constant KnX KnY KnM KnS KnLM KnSM D SD C T V Z R Operand description S1 comparison parameter 1 S2 comparison parameter 2 Function description Compare elements S1 and S2 and use the comparison...

Страница 196: ...d addressing S1 DINT Constant KnX KnY KnM KnS KnLM KnSM D SD C V R S2 DINT Constant KnX KnY KnM KnS KnLM KnSM D SD C V R Operand description S1 comparison parameter 1 S2 comparison parameter 2 Functio...

Страница 197: ...D SD C V R S2 DINT Constant KnX KnY KnM KnS KnLM KnSM D SD C V R Operand description S1 comparison parameter 1 S2 comparison parameter 2 Function description Compare elements S1 and S2 and use the co...

Страница 198: ...C V R S2 DINT Constant KnX KnY KnM KnS KnLM KnSM D SD C V R Operand description S1 comparison parameter 1 S2 comparison parameter 2 Function description Compare elements S1 and S2 and use the comparis...

Страница 199: ...e Applicable elements Indexed addressing S1 REAL Constant D V R S2 RAEL Constant D V R Operand description S1 comparison parameter 1 S2 comparison parameter 2 Function description Compare elements S1...

Страница 200: ...stant D V R S2 REAL Constant D V R Operand description S1 comparison parameter 1 S2 comparison parameter 2 Function description Compare elements S1 and S2 and use the comparison result in serial conne...

Страница 201: ...V R S2 REAL Constant D V R Operand description S1 comparison parameter 1 S2 comparison parameter 2 Function description Compare elements S1 and S2 and use the comparison result in parallel connection...

Страница 202: ...When the power flow is valid execute the instruction and compare S1 and S2 Set one of D D 1 D 2 ON according to the result Example LD m0 CMP 1000 2000 M3 6 16 11 LCMP Compare and set double integer i...

Страница 203: ...D Program steps 9 Operand Type Applicable elements Indexed addressing S1 REAL Constant D R S2 REAL Constant D R D BOOL Y M S Operand description S1 comparison parameter 1 S2 comparison parameter 2 D...

Страница 204: ...te When the operation result overflows the carry flag will not be set ON Example LD M1 BKADD D10 D100 D1000 5 When M1 ON add the content of 5 units starting with D10 and 5 units starting with D100 and...

Страница 205: ...ment SN for comparison value or stored data S2 starting element SN to store comparison source data D starting element SN to store comparison result S3 number of data Function description 1 After compa...

Страница 206: ...S1 D S1 if S3 S2 D S2 if S1 S3 S2 D S2 D output S2 upper limit S1 lower limit Output Input Example LD M1 LIMIT D0 D10 D100 D1000 When M1 ON execute D0 D10 upper lower limit control on the content of D...

Страница 207: ...e deviation value to be added to input value S2 positive deviation value to be added to input value S3 input value controlled by zone D starting element SN for saving output value in zone control Func...

Страница 208: ...0 Coordinate point D100 5 Point 1 X coordinate D101 10 Y coordinate D102 0 Point 2 X coordinate D103 20 Y coordinate D104 20 Point 3 X coordinate D105 30 Y coordinate D106 60 Point 4 X coordinate D107...

Страница 209: ...haracter of S2 to the end character of S1 and leave out the end flag of S1 3 The valid data of string units are the data from the element designated by string units to the 1 st detected 00H 4 When the...

Страница 210: ...e to IVC2H Influenced flag bit Zero carry borrow IL STRRIGHT S1 D S2 Program steps 7 Operand Type Applicable elements Indexed addressing S1 INT KnX KnY KnM KnS KnLM KnSM D SD C T V R D INT KnY KnM KnS...

Страница 211: ...ent when the number is even add 0000H to the next element of the end character element 4 The valid data of string units are the data from the element designated by string units to the 1 st detected 00...

Страница 212: ...w IL STRMIDW S1 D S2 Program steps 7 Operand Type Applicable elements Indexed addressing S1 INT KnX KnY KnM KnS KnLM KnSM D SD C T V R D INT KnY KnM KnS KnLM D SD C T V R S2 INT KnX KnY KnM KnS KnLM K...

Страница 213: ...strings S1 allows 32 characters at most The comma and double quotation marks indicate the delimiter in upper computer software so it cannot be identified 4 When S1 is the empty string 00H the result...

Страница 214: ...S1 S2 Program steps 5 Operand Type Applicable elements Indexed addressing S1 INT R S2 INT Constant D Operand description S1 element unit of extension register for data storage S2 number of read points...

Страница 215: ...rting element No Range of write memory card R backup area 0 R0 R0 R2047 8 R16384 R16384 R18431 1 R2048 R2048 R4095 9 R18432 R18432 R20479 2 R4096 R4096 R6143 10 R20480 R20480 R22527 3 R6144 R6144 R819...

Страница 216: ...ge 0 If the memory card is used ER0 ER2047 will be also initialized 6 20 4 LOGR Log in extension register LAD Applicable to IVC2H Influenced flag bit Zero carry borrow IL LOGR S1 S2 S3 S4 D Program st...

Страница 217: ...n turn from 0 bit of S3 1926 S4 1 When all S3 1926 S4 1 become OFF use next element S3 1926 S4 Control area 122 S4 Example LD M1 LOGR D0 5 R0 1 D100 When M1 ON log in the data of D0 D4 in R0 R2047 at...

Страница 218: ...signal specifying the X point for inputting proximity signal If a non X element is specified the position offset of the zero point will increase due to the influence of the PLC calculation cycle D st...

Страница 219: ...se output IVC1 IVC2L Y0 or Y1 IVC1L Y0 Y1 Y2 Y3 IVC2H Y0 Y2 Y4 Y5 Y6 Y7 D2 starting address of rotating direction signal output Its state is determined by S When S is positive D2 is ON When S is negat...

Страница 220: ...egister will decrease 3 The rotating direction is determined by the positive or negative nature of S1 4 Changing the operands during the execution of the instruction will not take effect until the nex...

Страница 221: ...struction LSB IVC1L IVC2H SD330 Y3 outputs the current position of locating instruction MSB IVC1L SD331 Y3 outputs the current position of locating instruction LSB IVC1L SD340 Y4 outputs the current p...

Страница 222: ...rs the RUN state 2 The read current value D2 can be stored in any word element but the current value must be eventually stored in SD80 or SD82 3 The power flow of the ABS instruction should be ON afte...

Страница 223: ...n Note The ABS instruction supports the Mitsubishi MR J2 and MR J2S servo amplifiers and use its specialized data transmission protocol to read the current value of absolute position The ABS instructi...

Страница 224: ...tecting the back of DOG stop when detecting the first zero point signal 4 The initial position at limit switch forward rotation limit or reverse rotation limit 1 By executing the instruction of origin...

Страница 225: ...0 corresponds to interrupt input of pulse output Y0 and high 8bit corresponds to interrupt input of pulse output Y1 Set value Content 0 Designate X0 to interrupt input signal 1 Designate X1 to interru...

Страница 226: ...the direction signal designated in original PLSY PLS and locating instructions Executing the instruction will not change the state of the direction signal Note 1 The minimum value of actual output pul...

Страница 227: ...tal Pulse direction positive ON negative OFF 01 Incremental Positive pulse negative pulse 10 Absolute Pulse direction positive ON negative OFF 11 Absolute Positive pulse negative pulse S 2 Resultant s...

Страница 228: ...position LSB S 10 Y axis move distance target position MSB S 11 Y axis move distance target position LSB S 12 Center of a circle of X axis X coordinate of passed point MSB S 13 Center of a circle of...

Страница 229: ...X axis direction signal or negative pulse signal D3 corresponding output point SN of Y axis pulse signal or positive pulse signal Range Y2 Y4 Y5 Y6 Y7 D4 corresponding output point SN of Y axis direc...

Страница 230: ...match with Y0 and Y2 separately D1 and D3 can select any two of Y4 Y5 Y6 Y7 for interpolation and the corresponding direction signals are free to select 2 Output group Y0 Y2 can be designated to pulse...

Страница 231: ...ondary axis Speed synchronized Synchronization completed Start End Total amount of movement Amount of movement before synchronizing Amount of movement after synchronizing Total amount of movement Amou...

Страница 232: ...e secondary axis follows the primary axis by electronic gear ratio S1 S2 When the primary axis sends N pulses the secondary axis will send N S1 S2 pulses when the primary axis outputs F pulses the sec...

Страница 233: ...remainder Example LD M1 MEAN D0 D10 4 When M1 ON calculate the mean value of 4 units starting with D0 and store the result to D10 When D0 32 D1 10 D2 15 and D3 14 D10 10 6 22 2 WTOB Data separation in...

Страница 234: ...ation source are the object data For example n 5 the data of low bytes of S S 2 will be stored in D D 4 FEH DCH 56H 78H 0 1 2 0 1 2 3 4 n 5 ignore 12H 39H b15 b8 b7 b0 00H 12H 00H 39H 00H 56H 00H 78H...

Страница 235: ...s starting with D Ignore 8bit high bytes of 16bit data after S1 of combination source b15 b8 b7 b0 data of the 1st byte data of the 2nd byte data of the 3rd byte data of the nth byte n bytes n 1 0 1 2...

Страница 236: ...store the data which has been combined Function description 1 Store S2 16bit data starting with S1 into S2 elements starting with D b15 b4 b3 b0 low 4bit low 4bit low 4bit low 4bit 0 1 2 3 Ignored Da...

Страница 237: ...d data 0 4 S2 0 no processing D element SN to store the data which has been separated Function description 1 Store S2 16bit data starting with S1 into S2 elements starting with D S Low 4bit Low 4bit S...

Страница 238: ...00 S999 acts set SM401 after ON SD401 Min No at On Store the Min No in S900 S999 Example LD M0 ANS T0 100 S901 When the power flow is valid not disconnected in 10s S901 will be set 6 22 7 ANR Signal a...

Страница 239: ...rogram steps 7 Operand Type Applicable elements Indexed addressing S1 WORD Constant KnX KnY KnM KnS KnLM KnSM D SD C T V Z R S2 INT Constant KnX KnY KnM KnS KnLM KnSM D SD C T V Z R D BOOL SM Operand...

Страница 240: ...20 independent procedures The independent procedures can run independently that is to say the steps within different independent procedures are scanned and executed separately However jumping among in...

Страница 241: ...on branches When the transfer condition of one branch is met the last step will end and the next step will start Parallel branch Connected after a step the parallel branches share the same transfer co...

Страница 242: ...the program The range of S elements for normal step is 20 991 for IVC2L series or 20 1023 for IVC1 series 4 Transfer or reset The program shown in is ended with a jump which leads the program to the i...

Страница 243: ...ame time if condition M31 is met the program will start S32 and end S30 S31 The sequential control behind the parallel merge structure is that no next step can be executed unless all the parallel step...

Страница 244: ...it with prudence Shown in the following figure is a jump from one independent procedure to another with LAD on the left and SFC on the right In the SFC when the S0 in the first procedure is valid the...

Страница 245: ...ee Note 1 The SFC program of IVC series PLC usually contains LAD program blocks that are used to handle operations besides the flow including starting the SFC The LAD program blocks are not controlled...

Страница 246: ...tion The RET instruction can be only used in a main program 7 2 4 SFC jump and reset instruction As shown in the preceding figure the jump to S2 is realized in LAD program by the N3 row which uses an...

Страница 247: ...structions cyclically by their display order Because of these reasons there are some points to note during SFC programming 7 4 1 Common programming errors 1 Reusing steps In the same PLC program each...

Страница 248: ...ements During SFC programming certain elements may become contradictary to each other under some special transfer conditions Inter locking is then necessary Take the following forward backward operati...

Страница 249: ...un flow 2 Therefore the transfer will never occur making flow 1 unable to end Flow 1 Flow 2 Flow 1 cannot end due to the parallel structure Modify The same operation Empty step As shown in the right p...

Страница 250: ...conditions Some seemingly complicated branches are the result of bad design You can simplify them by merging some branches As shown below the designer set a selection branch first following it by two...

Страница 251: ...conveying belt on the right When the Convey complete limit switch is reset a complete lift and convey process is over and the machine is ready for the next round The input and output points are liste...

Страница 252: ...apter 7 SFC tutor 248 7 5 2 Selection branch structure The following example is a material mixing flow Through this flow two kinds of products namely A and B are produced See the following figure for...

Страница 253: ...SN Address Monitored object SN Address Monitored object 1 X0 Deionized water valve open 10 X11 Evacuation valve open 2 X1 Deionized water valve closed 11 X12 Evacuation valve closed 3 X2 Major ingredi...

Страница 254: ...product as the last time enter next step To process product different from last time enter the rinsing step Rinsing time 5min is up Add major ingredient Branch for product A Branch for product B The...

Страница 255: ...bel so that the flawed products will be eliminated in the third procedure while the qualified products will continue to the next work flow If no bottle is sent from the last work flow the packager wil...

Страница 256: ...8 X10 Capping cylinder rod BACK 2 X1 Bottle in position detection switch 9 X11 Labelling cylinder rod BACK 3 X2 Cap in position detection switch 10 X12 Eliminatiing cylinder rod BACK 4 X3 Label detec...

Страница 257: ...Start stop control program section Initial empty step When a X0 rising edge is detected The capping procedures Transfer conditions Capping operation Mark the qualified product M1 The labelling procedu...

Страница 258: ...Programming manual of IVC series small PLC Chapter 7 SFC tutor 254...

Страница 259: ...Programming manual of IVC series small PLC Chapter 7 SFC tutor 255...

Страница 260: ...tart C250 Up Down Reset Start Double phase input mode C251 Ph A Ph B 50 30 C304 Ph A Ph B C305 Ph A Ph B C306 Ph A Ph B C252 Ph A Ph B Reset 5 C253 Ph A Ph B Reset C254 Ph A Ph B Reset Start C255 Ph A...

Страница 261: ...SM251 SM255 and SM304 SM306 determine the current direction of corresponding counters up input when SM elements are OFF and down input when SM elements are ON The counting directions are shown as foll...

Страница 262: ...4 5 4 0 C244 C244 contact SM244 X12 X11 X6 are ON C244 starts to count X10 is ON C244 is cleared X12 SM244 are OFF C244 counts up X12 SM244 are ON C244 counts down C244 counts 3 and C244 contact stat...

Страница 263: ...0 value reaches 3 C250 contact changes X4 changes from OFF to ON C250 counts down SM250 is being driven X11 X7 ON If X5 is ON C250 is cleared and the contact is reset Note 1 Counter input points X3 X4...

Страница 264: ...ng direction which is monitored by the corresponding SM element Example X0 X10 X6 X11 X2 0 3 1 2 3 4 5 4 3 2 1 0 1 2 3 4 5 4 0 C254 C254 contact SM254 X1 X10 is ON C254 is cleared regardless of X11 X6...

Страница 265: ...ction are used at the same time is shown in the following table Conditions Maximum combined frequency Instructions DHSCS DHSCR DHSCI DHSZ DHSP and DHST are not used 80kHz Instructions DHSCS DHSCR DHSC...

Страница 266: ...structions are used on the same input point the pulse capture function will become invalid after the first scan cycle regardless of the validity of the instructions 8 3Points to note about high speed...

Страница 267: ...h A Ph B C306 Ph A Ph B C252 Ph A Ph B Reset 5 C253 Ph A Ph B Reset C254 Ph A Ph B Reset Start C255 Ph A Ph B Reset Start SPD instruction Input point Input point Input point Input point Input point In...

Страница 268: ...sending interrupt of communication port 0 SM48 3 X3 input rising edge interrupt SM43 31 Character receiving interrupt of communication port 0 SM49 4 X4 input rising edge interrupt SM44 32 Frame sendin...

Страница 269: ...ystem will repeat these procedures until the queue is empty 5 When the interrupt request queue is null the system will continue to execute the interrupted main program 3 The system can handle only one...

Страница 270: ...able 9 1 Timer interrupt resource list Timer interrupt Interrupt event No Intervals of timer interrupt SD Enable control SM 0 26 SD66 SM66 1 27 SD67 SM67 2 28 SD68 SM68 Note 1 Setting of enable contro...

Страница 271: ...nal interrupts are numbered as follows Interrupt number Interrupt source Interrupt number Interrupt source 0 X0 input rising edge interrupt 9 Reserved 1 X1 input rising edge interrupt 10 X0 input fall...

Страница 272: ...on the value of the high speed counter You can compile programs related to external pulse input in the high speed interrupt program The high speed counter interrupts 20 25 are valid only when the EI...

Страница 273: ...red when enable flag SM63 or SM64 is set and the high speed pulse output at Y0 or Y1 is finished You can carry out the relevant processing in the interrupt subprogram This function is applicable only...

Страница 274: ...has no external power supply the execution duration of power failure interrupt subprogram shall not be over 5ms Otherwise the power failure retention component cannot be completely saved 9 8Serial por...

Страница 275: ...acter receiving interrupt of communication port 0 SM49 32 Frame sending interrupt of communication port 0 SM50 33 Frame receiving interrupt of communication port 0 SM51 34 Character sending interrupt...

Страница 276: ...Attribute Range SM16 Enabling flag of high speed ring counter Unit 0 1ms 16 bits Setting High speed ring counter starts counting Clearing High speed ring counter stops counting R W SD16 High speed rin...

Страница 277: ...Programming manual of IVC series small PLC Chapter 9 Using interrupts 273 X0 rising edge interrupt X1 falling edge interrupt...

Страница 278: ...rotocol slave station N N bus communication protocol master station slave station Communication port 1 RS485 Free port protocol Modbus communication protocol master station slave station N N bus commu...

Страница 279: ...uding the start character to the designated BFM Allow end character detection Enabled or disabled default disabled End character detection 0 255 corresponding to 00 FF Stop receiving after the preset...

Страница 280: ...ta to be received 01 FF 02 03 05 FE Save the received data to D elements starting with D10 Each byte occupies one D element as shown below 01 FF 02 03 05 FE D10 D11 D12 D13 D14 D15 1 Change the settin...

Страница 281: ...aracteristics of links 1 Physical layer RS232 RS485 2 Link layer asynchronous transfer mode 1 Data bit 7 bits ASCII or 8 bits RTU 2 Transfer rate 1200 2400 4800 9600 19200 38400 3 Check method even ch...

Страница 282: ...C Word write 15 Write multiple coils 0 xxxx Y M SM S T C Bit write 16 Write multiple registers 4 xxxx D SD Z T C Word write Note 1 0 means coil 2 1 means discrete input 3 4 means register 4 xxxx means...

Страница 283: ...ements In principle in one frame there are 2000 bits and 125 words for reading 1968 bits and 120 words for writing at most However the actual protocol addresses for elements of different types are dif...

Страница 284: ...tem will respond with error code of illegal data For example XMT from master station 01 03 25 E5 00 04 5E F2 The starting address for the reading of master station 4 word elements of 25 E5 decimal 970...

Страница 285: ...e below Item Setting Station No 0 31 Baud rate 115200 57600 38400 19200 9600 4800 2400 1200 Data bit Set to 7 or 8 bits 7 for ASCII mode 8 for RTU mode Parity check bit Set to no check odd check and e...

Страница 286: ...mple reading the value of 11 39 bits protocol address in the slave station the logic address shall start from 12 2 The failure of this communication will not affect the next communication that is if t...

Страница 287: ...anging from 40 to 43 of No 5 station The read data are as follows The received frame starts from D100 D100 is for saving address D101 is for saving function code D102 is for saving the number of regis...

Страница 288: ...s of the whole network through the relevant SM element of any PLC in N N bus 10 5 2 N N bus data transfer mode N N bus has two types of messages token sent by the master station broadcast of PLCs on d...

Страница 289: ...yer network RS485 232 converter RS 485 RS 485 Connecting node N N bus multiple layer network In the single layer network each PLC only connects to N N bus through 1 communication port In the multiple...

Страница 290: ...on from other PLCs and save it to the read only sending area The element number in the Elements Sharing Area is fixed 64 D elements and 512 M elements can be shared and these elements are distributed...

Страница 291: ...4 M1719 19 M1720 M1735 20 10 5 M1736 M1751 21 M1752 M1767 22 11 M1768 M1783 23 M1784 M1799 24 12 6 3 M1800 M1815 25 M1816 M1831 26 13 M1832 M1847 27 M1848 M1863 28 14 7 M1864 M1879 29 M1880 M1895 30 1...

Страница 292: ...50 D7751 9 D7752 D7753 10 5 D7754 D7755 11 D7756 D7757 12 6 3 D7758 D7759 13 D7760 D7761 14 7 D7762 D7763 15 Explanation In mode 10 D7732 and D7733 are distributed to the sending area by 0 station lay...

Страница 293: ...protocol D7700 D7763 and M1400 M1911 will become the public resource for data exchange on the network Please pay attention to these elements when using them in the program 10 5 5 Enhanced refresh mode...

Страница 294: ...7 D7564 D7571 8 4 2 1 D7572 D7579 9 D7580 D7587 10 5 D7588 D7595 11 D7596 D7603 12 6 3 D7604 D7611 13 D7612 D7619 14 7 D7620 D7627 15 D7628 D7635 16 8 4 2 1 D7636 D7643 17 D7644 D7651 18 9 D7652 D7659...

Страница 295: ...their own Station No as shown in the following figure The Max number of sites refers to the total number of PLCs used in the network If 6 PLCs are used in total the value shall be set to 6 and the st...

Страница 296: ...rk multiple master slave structure The meanings of master and slave The master means the PLC can write its own M and D elements and read M and D elements of other stations the slave means the PLC can...

Страница 297: ...f the servo drive can power on again and achieve the current absolute position data After PLC powers on by communication or other special methods the absolute position data will be obtained to confirm...

Страница 298: ...er sends pulse instructions to the stepping drive and thus the stepping motor drives the console to move a certain distance The system is simple stable and easy to use but it cannot detect or correct...

Страница 299: ...rogramming End 11 2 PLC positioning function introduction 11 3 Points to note about positioning instructions 11 4 Special elements related to positioning instructions 11 5 Examples 11 6 PLS envelope i...

Страница 300: ...onding SD elements when the servo drive is running forward set the servo direction signal to ON whereas set the servo direction signal to OFF The positioning functions IVC series PLC support are shown...

Страница 301: ...ce at designated linear speed LIN Starting point x Target position x y y Move to the target position in linear trace at designated vector speed MOVELINK Speed of secondary axis Speed synchronized Sync...

Страница 302: ...matic updating of absolute position SD elements Absolute position SD elements can be used to store and update the current absolute position after executing the locating instructions Automatic increasi...

Страница 303: ...de the output axis 0 and 1 can adopt forward rotation reverse rotation mode In the mode of pulse direction the corresponding output points of the pulse and direction of the output axis 0 and 1 are fix...

Страница 304: ...ing default clear signal Y10 of the output axis will send 1 CLR pulse output at origin return arrival and the pulse width is 20ms 1 scan cycle If the default clear signal is used in other ways reset v...

Страница 305: ...ON when busy OFF when ready R W Note When SM320 is set the corresponding default clear signal Y12 of the output axis will send 1 CLR pulse output at origin return arrival and the pulse width is 20ms...

Страница 306: ...d to monitor the state of Y4 high speed pulse output channel when executing DSZR ON when busy OFF when ready R W Note When SM340 is set the corresponding default clear signal Y14 of the output axis wi...

Страница 307: ...etting zero point signal is ON when inputting ON R W SM358 Locating instruction in drive Used to monitor the state of Y5 high speed pulse output channel when executing DSZR ON when busy OFF when ready...

Страница 308: ...FF positive logic processing when resetting zero point signal is ON when inputting ON R W SM368 Locating instruction in drive Used to monitor the state of Y6 high speed pulse output channel when execu...

Страница 309: ...FF positive logic processing when resetting zero point signal is ON when inputting ON R W SM378 Locating instruction in drive Used to monitor the state of Y7 high speed pulse output channel when execu...

Страница 310: ...rd rotation limit non arrival when resetting R W SM284 Reverse rotation limit Applicable to DSZR DVIT function on the corresponding axis of Y0 reverse rotation limit arrival when setting reverse rotat...

Страница 311: ...output function when resetting R W SM83 Pulse output monitor Used to monitor the state of Y1 high speed pulse output channel ON when busy OFF when ready R SM64 Pulse output completion interrupt enabl...

Страница 312: ...ed when the output axis executes the locating instruction below 1 10 of the Max speed R W SD215 ACC DEC time The ACC DEC time when the output axis executes the locating instruction range 50 5000 unit...

Страница 313: ...se rotation of zero point signal Applicable to DSZR function on the corresponding axis of Y0 negative logic processing when setting zero point signal is ON when inputting OFF positive logic processing...

Страница 314: ...Y1 negative logic processing when setting near point signal is ON when inputting OFF positive logic processing when resetting near point signal is ON when inputting ON R W SM296 Logic reverse rotation...

Страница 315: ...on the corresponding axis of Y2 using corresponding Y element Y N of N in SD326 means clear signal when setting set Y12 to clear signal according to the default value when resetting R W SM322 Origin...

Страница 316: ...R ZRN function on the corresponding axis of Y3 CLR signal output of origin return instruction is valid when setting no CLR signal output when resetting R W SM331 Clear signal designated element valid...

Страница 317: ...must be smaller than 1 10 of the Max speed otherwise no pulse output If the speed of the locating instruction is lower than the base speed or higher than the Max speed no pulse output either 11 4 4 E...

Страница 318: ...truction is executed calculate and update SD82 SD83 according to SD52 SD53 and direction signals When starting the machine and reading absolute position data from servo drive store the acquired data 3...

Страница 319: ...l Shielded cable X1 X2 X3 X4 X5 X6 X7 COM S S 24V COM COM0 Y0 Y1 Y2 Y3 Y4 COM1 COM2 X10 X11 X12 X13 X14 COM Y10 Y11 Y12 COM3 Note1 When ABSM is set to ON it is ABS bit1 data line when ABSM is set to O...

Страница 320: ...Programming manual of IVC series small PLC Chapter 11 Using positioning function 316...

Страница 321: ...Programming manual of IVC series small PLC Chapter 11 Using positioning function 317...

Страница 322: ...Station select Tool Instruction Wizard to carry out the relevant configuration of PLS instruction as shown below select PTO Click Next to enter the interface of high speed pulse output point Max and...

Страница 323: ...lick Next in above figure and then enter Motion Contour Definition in below figure Input the target speed and move distance of the first step and click Add Step Input the target speed and move distanc...

Страница 324: ...nfiguration is completed as shown below click Finish to end PTO configuration 11 5 2 Example of trace interpolation program Mechanical diagram Console Forward direction Backward direction Forward dire...

Страница 325: ...oint signal Y axis near point signal X axis Y axis Servo drive Servo drive EC20H 1616BTA4 X2 X3 X4 X axis origin return Stop Start Y axis origin return X5 Program examples The program realizes the fol...

Страница 326: ...Programming manual of IVC series small PLC Chapter 11 Using positioning function 322...

Страница 327: ...Programming manual of IVC series small PLC Chapter 11 Using positioning function 323...

Страница 328: ...Programming manual of IVC series small PLC Chapter 11 Using positioning function 324...

Страница 329: ...Programming manual of IVC series small PLC Chapter 11 Using positioning function 325...

Страница 330: ...within the following 50ms the power is detected to be back this bit will be reset R SM7 No battery work mode If this bit is set as 1 the battery backup data lost error and the forced table lost error...

Страница 331: ...ag bit Enable when set as 1 R W SM53 COM 1 character reception interrupt enabling flag bit Enable when set as 1 R W SM54 COM 1 frame transmission interrupt enabling flag bit Enable when set as 1 R W S...

Страница 332: ...rupt drive pulse output valid ON PLSY instructions can be called in interrupt programs and subprograms and driven continuously and repeatedly with power flow in main programs R W SM88 Envelope loop ex...

Страница 333: ...an manually clear this bit to halt the current transmission at Port 0 The transmission can resume when power flow is on again R W SM112 Port 0 transmission complete flag bit This bit is set after the...

Страница 334: ...after the transmission is over R W SM133 Port 2 reception complete flag bit This bit is set after the reception is over R W SM134 Port 2 idle flag bit This bit is set when the port is idle R Note SM1...

Страница 335: ...egrated analog channel Addr Name Action and function R W IVC2L IVC1 IVC2H IVC1L SM172 Enabling flag of AD channel 1 Sampling at AD channel 1 is enabled when this bit is set to 1 R W SM173 Enabling fla...

Страница 336: ...stored with one ASCII code R W SM187 Instruction execution completion Set ON after MTR initial circulation R 17 System bus error flag Addr Name Action and function R W IVC2L IVC1 IVC2H IVC1L SM190 Mai...

Страница 337: ...R W SM223 C223 R W SM224 C224 R W SM225 C225 R W SM226 C226 R W SM227 C227 R W SM228 C228 R W SM229 C229 R W SM230 C230 R W SM231 C231 R W SM232 C232 R W SM233 C233 R W SM234 C234 R W SM235 C235 R W...

Страница 338: ...this bit is set Y006 pulse will be disabled R W SM267 Y007 pulse output stop instruction After this bit is set Y007 pulse will be disabled R W SM272 Y002 pulse output monitor busy ready Setting at Y00...

Страница 339: ...12 when no designation IVC2L is Y3 R W SM322 Origin return direction Y2 is applicable to DSZR R W SM323 Forward rotation limit Y2 is applicable to DSZR DVIT R W SM324 Reverse rotation limit Y2 is appl...

Страница 340: ...signal Y5 is applicable to DVIT R W SM358 Positioning instruction in drive Y5 is applicable to DSZR DVIT R W SM360 Clear function valid Y6 is applicable to DSZR ZRN R W SM361 Clear signal designated e...

Страница 341: ...uction R W SM431 Timer clock output 1 For DUTY instruction R W SM432 Timer clock output 1 For DUTY instruction R W SM433 Timer clock output 1 For DUTY instruction R W SM434 Timer clock output 1 For DU...

Страница 342: ...of extension I O module R SD08 Number of special module R SD09 Setting the input points for operation control Decimal X0 is displayed as 0 X10 8 Maximum 15 Configurable through system block R 0 15 SD1...

Страница 343: ...me error 5 Input filtering constant setting Addr Name Action and function R W IVC2L IVC1 IVC2H IVC1L SD35 Input filtering constant Configurable only through system block R 0 60ms 0 2 4 8 1 6 32 64 ms...

Страница 344: ...R 7 Timed interrupt cycle Addr Name Register content R W IVC2L IVC1 IVC2H IVC1L Range SD66 Cycle of timed interrupt 0 The interrupt will not occur when the value is not within 1 32767 R W 1 32767ms SD...

Страница 345: ...IVC2L IVC1 IVC2H IVC1L Range SD100 Year For real time clock R 2000 2099 SD101 Month For real time clock R 1 12 months SD102 Day For real time clock R 1 31 days SD103 Hour For real time clock R 0 23 h...

Страница 346: ...e omitted R W 1 32767ms SD115 Receiving completion message code Bit 0 set when receiving ends Bit 1 set when specified end character is received Bit 2 set when Max character number is received Bit 3 s...

Страница 347: ...frame overtime omitted R W 0 32767ms SD125 Receiving completion message code Bit 0 set when receiving ends Bit 1 set when specified end character is received Bit 2 set when Max character number is rec...

Страница 348: ...haracter unspecified SD140 9 free port word overtime enabling 1 word overtime enabled 0 word overtime disabled SD140 10 free port frame overtime enabling 1 frame overtime enabled 0 frame overtime disa...

Страница 349: ...mpling times of A D CH3 R W 1 1000 SD185 Average sample value of A D CH4 R 10000 10000 SD186 Sampling times of A D CH4 R W 1 1000 SD187 Average sample value of A D CH5 R 10000 10000 SD188 Sampling tim...

Страница 350: ...when Y0 executes ZRN DRVI DRVA DSZR and DVIT instructions 1000 R W Addr Name Initial value R W IVC1 IVC2L IVC2H IVC1L SD210 Current data register of Y001 output locating instruction 0 R W SD211 SD212...

Страница 351: ...when Y3 executes ZRN PLSV DRVI DRVA DSZR and DVIT instructions below 1 10 of Max speed 5000 R W SD335 ACC DEC time 50ms 5000ms for base speed SD204 rising to the Max speed SD202 SD203 when Y3 execute...

Страница 352: ...g instruction 0 R W SD361 SD362 Max speed when Y6 executes ZRN PLSV DRVI DRVA DSZR and DVIT instructions 10 100000 100000 R W SD363 SD364 Base speed when Y6 executes ZRN PLSV DRVI DRVA DSZR and DVIT i...

Страница 353: ...rm instruction Addr Name Initial value R W IVC1 IVC2L IVC2H IVC1L SD401 Store the Min No in S900 S999 0 R W 20 Timing output instruction Addr Name Initial value R W IVC1 IVC2L IVC2H IVC1L SD430 Scan t...

Страница 354: ...IVC1S Buffer area for transmission of inverter instructions D7940 D7969 D3940 D3969 Buffer area for reception of inverter instructions D7970 D7999 N N bus network shared area D7700 D7763 N N enhanced...

Страница 355: ...address the specific error code element stores the received slave address 0x17 The received function code does not match with the requested function code the specific error code element stores the re...

Страница 356: ...operation failure including the error due to invalid data although the data is in the range 0x5 Valid instruction Processing Mainly used to save data to EEPROM 0x6 Slave busy Please try again later Ma...

Страница 357: ...eal time clock incorrect time is read during system update System error ERR indicator blinks This alarm is cleared automatically upon the removal of the fault 24 EEPROM write read operation error Syst...

Страница 358: ...Outside instruction element range Execution error 66 Subprogram stack overflow Execution error 67 User interrupt request queue overflow Execution error 68 Illegal label jump or subprogram call Executi...

Страница 359: ...e 2 xxxx X Bit read 03 read register status 4Note 3 xxxxNote 4 D SD Z T C Word read 05 write single coil status 0 xxxx Y M SM S T C Bit write 06 write single register status 4 xxxx D SD Z T C Word wri...

Страница 360: ...tions of Y0 Y7 Y10 Y17 and Y20 Y27 etc 2 Two addressing methods are available for element X One is the protocol address of 1200 1455 with corresponding function codes of 01 05 and 15 the other is the...

Страница 361: ...a No 1 Read data No n Check code CRC or LRC B7 B6 B5 B4 B3 B2 B1 B0 3 3 Read holding registers 0x03 It refers to reading the value of data word register at the slave station with the maximum number of...

Страница 362: ...urn Bus Exception Error Cnt 0x0e Return Slave Message Count 0x0f Return Slave No Response Cnt 0x12 Return Bus Char Overrun Cnt The frame description of sub function code is as follows Return request f...

Страница 363: ...0x08H Function word Data field Check code CRC or LRC 0x00H 0x0BH H L CRC error count 0x0C Record the number of CRC errors received by slave station since the last starting clearing and power on of cou...

Страница 364: ...and power on of counter 1 Request frame Address Function code 0x08H Function word Data field Check code CRC or LRC 0x00H 0x12H 0x00H 0x00H 2 Response frame Address Function code 0x08H Function word D...

Страница 365: ...s function codes 01 02 03 05 06 08 15 and 16 The rest will be responded with illegal function code except broadcast frame Read and write of element Except function code 08 the other supported function...

Страница 366: ...ad write register The address of every two registers corresponds to one C double word element and the registers can only be read or written in pair For example read the RTU fame of three C double word...

Страница 367: ...03 05 06 08 15 and 16 decimal Wherein 01 02 and 03 can read element but do not support broadcast no response will be gotten after sending out the broadcast 05 06 15 and 16 can write element and suppor...

Страница 368: ...3 bit 0 1 2 3 4 5 6 7 Low 4 bit 0 NUL DLE SPACE 0 P p 1 SOH DC1 1 A Q a q 2 STX DC2 2 B R b r 3 ETX DC3 3 C S c s 4 EOT DC4 4 D T d t 5 ENQ NAK 5 E U e u 6 ACK SYN 6 F V f v 7 BEL ETB 7 G W g w 8 BS...

Страница 369: ...DD Compare double integer AND instruction 7 ANDD Compare double integer AND instruction 7 ANDD Compare double integer AND instruction 7 ANDD Compare double integer AND instruction 7 ANDR Compare float...

Страница 370: ...t instruction 5 BSET Word bit coil set instruction 5 BTOW Data combination instruction for byte unit 7 Zero carry borrow C CALL Calling a subprogram Depend on the program CCITT CCITT check instruction...

Страница 371: ...gh speed counting compare reset instruction 10 DHSCS High speed counting compare set instruction 10 DHSP High speed counting table compare pulse output instruction 10 DHSPI High speed output absolute...

Страница 372: ...egress to origin with DOG search instruction 9 Zero carry borrow DVIT Interrupt locating 11 Zero carry borrow E ED Power flow falling edge detection 1 EI Enable interrupt instruction 1 ENCO Encode ins...

Страница 373: ...nteger LD instruction 5 LD Compare integer LD instruction 5 LD Compare integer LD instruction 5 LD Compare integer LD instruction 5 LDD Compare double integer LD instruction 7 LDD Compare double integ...

Страница 374: ...Compare integer OR instruction 5 OR Compare integer OR instruction 5 OR Compare integer OR instruction 5 OR Compare integer OR instruction 5 ORB Power flow or instruction 1 ORD Compare double integer...

Страница 375: ...ing point number data transmission 7 RMUL Multiply floating point number instruction 10 Zero carry borrow RND Generate random number instruction 3 Zero RNEG Negative floating point number instruction...

Страница 376: ...ro carry borrow SUM Sum integer instruction 8 Zero carry borrow SWAP Swap bytes 3 T TADD Add clock instruction 7 Zero carry TAN Floating point number TAN instruction 7 Zero carry borrow TCMP Compare t...

Страница 377: ...nstruction 7 WSFL Shift left word instruction 9 Zero carry borrow WSFR Shift right word instruction 9 Zero carry borrow WTOB Data separation instruction for byte unit 7 Zero carry borrow WXOR Exclusiv...

Страница 378: ...instruction 1 ORB Power flow or instruction 1 INV Power flow block inverse 1 NOP No operation 1 MPS Output power flow input stack 1 MRD Read output power flow stack top value 1 MPP Output power flow s...

Страница 379: ...e word data transmission instruction 5 DMOV Move double word data transmission instruction 7 RMOV Move floating point number data transmission 7 BMOV Move data block transmission instruction 7 SWAP Sw...

Страница 380: ...quare root double integer instruction 7 Zero carry borrow SUM Sum integer instruction 8 Zero carry borrow DSUM Sum double integer instruction 9 Zero carry borrow Floating point number math instruction...

Страница 381: ...e word instruction 10 WXOR Exclusive OR word instruction 7 DWXOR Exclusive OR double word instruction 10 WINV NOT word instruction 5 DWINV NOT double word instruction 7 Shift rotate instruction ROR 16...

Страница 382: ...d counting table compare pulse output instruction 10 SPD Pulse detection instruction 7 PLSY High speed pulse output instruction 9 PLSR Count pulse with ACC DEC output instruction 10 PLSB Count pulse w...

Страница 383: ...DRVI Relative position control instruction 11 Zero carry borrow DRVA Absolute position control instruction 11 Zero carry borrow DSZR Regress to origin with DOG search instruction 9 Zero carry borrow D...

Страница 384: ...ber LD instruction 7 LD Compare integer LD instruction 5 LDD Compare double integer LD instruction 7 LDR Compare floating point number LD instruction 7 LD Compare integer LD instruction 5 LDD Compare...

Страница 385: ...double integer OR instruction 7 ORR Compare floating point number OR instruction 7 OR Compare integer OR instruction 5 ORD Compare double integer OR instruction 7 ORR Compare floating point number OR...

Страница 386: ...CD instruction 5 Zero carry borrow DBCD Double word to 32 bit BCD instruction 7 Zero carry borrow BIN 16 bit BCD to word instruction 5 Zero carry borrow DBIN 32 bit BCD to double word instruction 7 Ze...

Страница 387: ...Free port receiving instruction 7 IVFWD Inverter forward rotation instruction 6 IVREV Inverter reverse rotation instruction 6 IVDFWD Inverter jogging forward rotation instruction 6 IVDREV Inverter jog...

Страница 388: ...r 16bit data 7 Zero carry borrow ANS Signal alarm set instruction 7 Zero carry borrow ANR Signal alarm reset instruction 1 Zero carry borrow Data block processing instruction BKADD Add batch data oper...

Страница 389: ...file register instruction LOADR Read extension file register 5 Zero carry borrow SAVER Write extension file register 7 Zero carry borrow INITR Initialize extension register 5 Zero carry borrow LOGR Lo...

Отзывы: