Home

Cx-Drive Programming Software User's Manual for MX2, RX, LX

image

Contents

1. O FW 1 for RX and MX2 or UP 1 for LX Note The instruction is available since CX Drive v2 10 Run RV Command Description Arguments Makes the inverter run the motor in reverse direction starts the inverter output This command is a shortcut of the func value command RV 2 1 for RX and MX2 or DOWN 1 for LX Note This instruction is available since CX Drive v2 10 Makes the inverter decelerate and stop the motor stop the inverter output Command Description Arguments T It sets the frequency of the inverter ENDS This command is a shortcut of the Value any variable or constant Self command range from 0 to 40000 SEM Units 0 01Hz Set Freg value Note This instruction is available since CX Drive v2 10 14 Drive Programming Example entry Top select Xw case 1 set freq 1006 fw r 1 case 2 set freg 1588 rv I 1 case else stop endselect goto Top end a case else 3 1 11 12 Hent Block This program will run the motor in forward direction at 10Hz if general input contact Xw is 1 If general input contact Xw is 2 it will run in reverse direction at 15Hz For other values the motor will stop Go to Top 15 Drive Programming Trip Command Descripion Arguments N D e Value any variable or constant This instruction makes inverter trip is range O to 9 T
2. Timing chart TC 4k Comparison for matchin TD k timer set TD ki 1900 timer set TD iki 1500 timer of TD fk entry loop _ inc U 801 timer set TD 8 U 61 LBe88 pe inc 11101 if TC 6 lt U 81 goto LBee goto loop end timer set TD 0 01 3 LB Us TC 10 if TCO 0001 goto Goto LEDO Go to loop Hent Black This program will set the timer TD 0 to an increasing value each timer execution taking longer time on each loop 68 Drive Programming Timer Off Command Description Arguments Clears the timer counter up counter to e k number of timer zero and starts it in free running mode range O to 7 Comparison for matchin TD fk timer set TD k 1000 timer set TD k 150D timer off TD ik Example entry 5 U 1 28 timer set TD 8 U 81 oop if X 1 1 goto LBe8G8 timer off 1D 0 goto loop E 51515 goto loop end if X1 1 goto True F Go to LEO E LEQOO wait TEO 1 Go to loop Ment Block This example uses a fixed timer execution But it is cancelled when digital input X 01 is OFF 69 Drive Programming 6 5 Parameter Control Commands ChgParam Command Description Arguments Changes the parameter s inverter setting Parameter parameter code specified by display code to a value Fxxx Axxx DXXX Cxxx Hxxx Pxxx ChgParam Any inverter parameter
3. break down situations b Such carrier shall act as the agent of Buyer and delivery to such carrier shall constitute delivery to Buyer c All sales and shipments of Products shall be FOB shipping point unless oth erwise stated in writing by Omron at which point title and risk of loss shall pass from Omron to Buyer provided that Omron shall retain a security inter est in the Products until the full purchase price is paid d Delivery and shipping dates are estimates only and e Omron will package Products as it deems proper for protection against nor mal handling and extra charges apply to special conditions Claims Any claim by Buyer against Omron for shortage or damage to the Products occurring before delivery to the carrier must be presented in writing to Omron within 30 days of receipt of shipment and include the original trans portation bill signed by the carrier noting that the carrier received the Products from Omron in the condition claimed Warranties a Exclusive Warranty Omron s exclusive warranty is that the Products will be free from defects in materials and workmanship for a period of twelve months from the date of sale by Omron or such other period expressed in writing by Omron Omron disclaims all other warranties express or implied b Limitations OMRON MAKES NO WARRANTY OR REPRESENTATION EXPRESS OR IMPLIED ABOUT NON INFRINGEMENT MERCHANTABIL 14 15 16 17 18 ITY OR FITNE
4. oooW co Wo Woo anr Wana 20 3 15 Region definition Text Editor ooooo W WWW anna 21 3 16 Conversion from Flowchart to Text W Wo Woo 21 3 17 Conversion from Text to Flowchart WWW nh 21 3118 KING 6 Replace UNC pair aa eka Ra aa helai eta E aa aa ba 22 A Drive Program sSI A bana 23 ZU DNE A 23 42 UD OWING cuento drei Me ates iron io oa Ie Sen an ora octo ec Sie ana aa 24 5 Drive Programming user variableS oo oom 25 Sioa aa Da T 25 OO to W 3 or User parameter cada 25 UL OO to UL 07 or Internal User parameters ode a ea ah ki iaces 25 5 2 CUEING VAN OS ui medic dico 25 SERFO em M EE 25 nies c on S 25 ps c e n 26 5 3 Inverter Monitor Variables RUND OOO A A E E 26 PPP A 26 DI an nan Aa Dn AN ERE 26 A A 26 A M RR 26 Ae TI T e TERR 27 Ny UM ER 27 PONE ab a 27 e A 27 GE ce u 2 27 UMON OTO UMON 2 mee aoeet 27 uo 28 aine ge ns 28 ERA ERROR ee eee enti dedi NE 28 BN an an ana Aa a E ae PN 28 STATUS eee PA er 28 5 4 Terminal Variable E EDU p nM E uM MUNI M MEA NU SUME I TN I 29 Drive Programming XS iuh Fc A 29 P4 PEPPER 29 Y OOOO EET 29 A an
5. 6088 loop _ FH i wait X 81 FH 8 Wait RUM RV 1 wait X 82 RV i 8 Walt RUM goto loop Go to loop A forward and reverse run at 60Hz is repeated continuously 61 Drive Programming Command Description Arguments l e Variable any variable Em Sa output status is assigned to a Function any function of output varsfunc terminal lt variable gt lt function gt Example entry loop _ utee soto loop end Go to loop Hest Block 3 The value of P100 is set to 1 if the ZS zero speed signal is on otherwise is set to 0 62 Drive Programming Var UB i Command Description Arguments Variable any variable Assigns the value of an internal user value of the variable will be 0 or 1 l contact to a variable e i Number of the user contact var U Bi range Oto 7 Format variable UB i Example entry loop ubw UB X 88 UB 1 x e1 UB 2 X 82 UMon 8 UOW T ga LB 2 UENO X00 goto loop 3 UB 1 04 4 UBI x 02 x Ubon 0 UB E wq UE 2 7 a Ment Block Go to loop The internal user contacts are cleared on the loop s 1 instruction The status of the X 00 X 02 input terminals are stored in the UB 0 UB 2 internal user contacts and monitored on the d025 parameter Finally the status of the X 02 input terminal is set tot the Y 00 output term
6. U 01 mod U 80 The P102 parameter calculation result is 0 49 Drive Programming Command Descripion Arguments Result any variable Absolute value Value any variable or constant range 2147483648 to 2147483647 result Abs value Warning Drive Programming does not control overflow underflow The application should take care Example 0 260 abs UL entry 1 UL oO 200 UL 01 abs ULD 4 The UL 01 variable is set to 200 50 Drive Programming Command Description Arguments And logical product Result any variable Value1 Value2 Result e Value 1 any variable or constant range 128 to 127 o 0 0 1 Value 2 any variable or constant 1 0 range 2147483648 to 2147483647 result value 1 And Value 2 gt Warning Drive Programming does not control overflow underflow The application should take care Example entry u 2 u 3 loop U 84 U 82 and U 83 goto loop end Go to loop Hest Black The initial P104 parameter calculation result is 4 as 6 in binary format is 00000110 and 12 in binary format is 00001100 so the result of the and operation is 00000100 that is 4 in decimal format If P102 and P103 are changed by the user then P104 will recalculate accordingly 51 Drive Programming Command Description Arguments Or logical addi
7. Y 01 are sequentially turned on every 10Hz step of the output frequency 59 Drive Programming Command Descripion Arguments vwe Instruction to access digital outputs by word Value any variable or constant Y wevalue Each bit reflects one of the outputs Yw value Note The inputs have to be assigned to digital multifunction input by the multifunction 44 to 49 for MX2 and RX 35 to 41 for LX Yw 1 gt bit O Yw 2 gt bit 1 Yw 4 gt bit 2 Yw 8 gt bit 3 only if expanded I O board used Yw 16 2 bit 4 only if expanded I O board used Yw 32 gt bit 5 only if expanded I O board used and enough outputs Yw 64 gt bit 6 only if expanded l O board for LX is used Example entry gt loop _ entry LJ fae y x KW u ae Urea u es Urea yw utas goto loop 2 Ugo LIDO 4 3 LI 00 U00 and 15 Go to loop Hest Block This example acquires the state of the X 02 X 05 input terminals and outputs it to Y 00 Y 03 output terminals To cut X 00 X 01 the U 00 value is divided by 4 To cut X 06 X 07 the U 00 value is masked by 15 60 Drive Programming func value Command Description Arguments Assigns the value of a variable to a Function any function of input terminal command of a terminal input Value any variable or constant hunc walue function value Example entry SET Freq
8. 42 Drive Programming For Next Command Description Arguments Variable any variable e Start value Initial value it is the value assigned to the variable in the first loop Constant value from 128 to 127 End value Value that exits the loop Constant value from 128 to 127 Incremental value The variable will be incremented by this value each loop Constant value from 128 to 127 Instruction set One or more instructions until Next instruction It can contain nested instructions up to 8 levels For 101007 000 ra Executes lt instruction set gt repeatedly until variable reaches end value Each cycle incremental value is added to variable For variable start value end value incremental value instruction set Next Example entry for U 81 1 to 8 step 1 U aa U B1 wait 186 next end Far 10101 1 to 8 step 1 2 ugo u 3 4 True 5 False This example make the variable U 00 P 100 count from 1 to 8 each second 43 Drive Programming While Wend Command Description X Arguments Executes instruction set while a condition is met While condition instruction set Wend Example while 00 1 Henst Block Condition A comparison between two variables or constants with the format Left hand value Comparison Right Hand Value Left hand value an
9. 8 contacts Internal timer contact TD 0 to TD 7 8 counter contacts Internal timer counter TC 0 to TC 7 8 counters Inverter input output Specification by code on the remote operator s display UMon 00 to UMon 02 3 user monitors Makes the inverter trip 10 trips 7 Drive Programming 3 Drive Programming Editor Drive Programming Editor allows the user to design drive programs in an intuitive way CX Drive provides a way to create drive programs compile them transfer them to and from the drive start and stop their execution and other related tasks You can open this function by clicking on Drive Programming in the workspace of a drive which supports it or selecting Program Program Editor from the Drive menu or with the CX Drive toolbar button E Please create a new CX Drive File by clicking on the menu File New The New Drive window will appear Image 1 Select the Drive Type and press OK button Then it will appear on the Workspace Image 2 New Drive EjWorkspace1 CX Drive Drivel Ell Edit wiew Drive Tools Window Hel ll Drive Name Mx Project Drive Type Inverter Mez Settings M2 A2 BOO4 PRG43234309 k PRESAT IESE san T aq MX Project Offline Connection Type HA Parameter Editor Direct usa Settings H Eh Graphs oe Status m Monitor Comments Type your own comment in here 5 m Settings ER Drive Programming 7 8 Pa
10. Hoofddorp The Netherlands e Tel 31 0 23 568 13 00 Fax 31 0 23 568 13 88 e www industrial omron eu Cat No 0 13 Note Specifications are subject to change O 2013 Omron Electronics LLC Printed in U S A
11. 20 41 Drive Programming Select Case End Select Command Description Arguments This instruction allows multiple program sections to be executed depending on a variable value For a particular CASE section it Executes lt instruction set n gt when lt conditional variable gt matches Conditional variable the instruction lt conditional value n gt select variable If lt conditional variable gt doesn t match Conditional value x variable value any of the CASE section the instruction Instruction set x One or more set if no other Case Else is executed instructions until next case or end This instruction is convenient when select It can contain nested instructions CaseElse multiple choices have to be done from up to 8 levels parameter value It makes simple some e a if then structures This instruction is recommended to organize program by Ende leci using subroutine calls as instruction set Select lt conditional variable gt Case lt conditional value 1 gt A Case lt conditional value 2 gt instruction set 2 gt CES Eis instruction set if no other End select Example entry loop select U 88 case 1 u 1 Case 2 u 1 case else u 1 endselect goto loop end UID 1 200 Go to loop 10 Hest Black Ihe P101 parameter is set to 100 200 300 or 500 depending on the value of the P100 parameter 1 2 3 or any other respectively
12. C001 C009 71 C001 C009 72 C001 C009 73 C001 C009 74 R R oo Be mn X X X SPD1 SPD2 SPD3 Change OL level TRQ TRO2 X 00 X 11 Drive Programming FP1 FP6 Floor position 1 to 6 v RW C001 C009 76 v RW C001 C009 77 Note The LX inverter functions are available for the digital multifunction input terminals P140 P144 Multi Input Ex IN1 5 gt 3G3AX EIO E LX extra I O board EN NET v RW C001 C009 04 v RW C001 C009 32 v RW C001 C009 33 v RW C001 C009 34 v RW C001 C009 40 v RW C001 C009 46 a ies v RW Coo1 Coo9 61 v RW C001 C009 62 E EA X X X XK X xX x X X X KK xX x ROK _ DISP DOWN SPD SPD2 SPD3 TRQI TRQ2 X X X x X X X x X X X C001 C009 63 y C001 C009 64 Vv RAN C001 C009 65 C001 C009 66 Y RW C001 C009 72 v RW C001 C009 73 v RW C001 C009 74 v RW C001 C009 75 X X X XXX x X X X X X KK x X X Xx KK x 33 Drive Programming 5 6 Digital Output Functions These variables correspond to the settings available for the digital multifunction output terminals The variable can read and used as it would be for an external device connected to the digital output configured for the function It is interesting to note that digital outputs are not required to be assigned in order to use th
13. Change parameter P100 in order to test the GoTo function with this sample When P100 1 P101 starts counting When P100 lt gt 1 stops counting 40 Drive Programming Ifs Else End If Command Description Arguments Condition A comparison between two variables or constant with the format Left hand Value gt lt Comparison gt lt Right hand Value Left hand value any variable or constant range 128 to 127 Comparison gt lt gt lt gt Right hand value any variable or constant range 128 to 127 e Instruction set 1 One or more instructions until Else instruction lt can contain nested instructions up to 8 levels e Instruction set 2 One or more instructions until End If instruction It can contain nested instructions up to 8 levels This instruction executes different portion of code based on a condition When the condition is met this instruction executes instruction set 1 When the condition is not met this instruction executes instruction set 2 IF UO UI DO Then Ifs condition Then instruction set 1 Else instruction set 2 Endif Example entry loop _ if Uteg gt U 81 then u a3 28 else u a3 18 endif goto loop z E 4 Go to loop 7 y Mest Block The example changes the value of P103 based on the value of parameter P100 and P101 If P100 is bigger than P101 then P103 10 If not P103
14. Co26 48 R Co21 C026 49 R C021 C026 50 R Co21 C026 51 R Co2i Co26 52 R Co2i Co26 53 C021 C026 54 C021 C026 55 C021 C026 56 C021 C026 57 DSE POK FA4 FAS OL2 L OlDc Je FBV NDc LOG LOG2 LOG 3 LOG 4 LOG 5 LOG 6 X XXX x X XXX x TI IN UJ UT SEE SIS 2 Cm gt Tl MO OIJ O DIA Y lt lt lt AS AN EN LN o oolojo en ee FWR RVR MJA x KK KK KK KK KK gt WCOI WCO2 MPS 8B MM m M 57 O U O lt 2 RH C021 C026 54 jS R C021 C026 55 uu RH C021 C026 56 Vv R C021 C026 57 CO IN Drive Programming Function Description MX2 RX LX Usage Comment FREF Command frequency sel mode y 24 HR C021 C026 58 REF Command operation mode R C021 C026 59 SETM Setting motor R C021 C026 60 EDM RH C021 C026 62 IRDY v R C021 C026 44 FWR v R C021 C026 45 RVR v R C021 C026 46 MJA v R C021 C026 47 OL2 v R C021 C026 19 TH C v R C021 C026 20 NDc v R C021 C026 23 WAF v R C021 C026 31 X X X Xx X x X XXX x V R 6021 0026 32 00 Drive Programming MO3 Drive Programming MO6 Vv R C021 C026 33 Vv R C021 C026 34 Vv R C021 C026 35 Vv R C021 C026 36 Vv Ro C021 C026 37 Vv R C021 C026 38 Vv R C021 C026 39 R C021 C026 40 Vv R Co2
15. Set range is to 65535 Fn L To change the value of a block parameter place the cursor at its row and click on the edition box to the right of its name Enter the new value CX Drive will warn you if the value exceeds the valid range At the lower part of the window a help text for the block parameters is displayed 16 Drive Programming 3 8 Properties window The Properties window allows the user to edit the properties of the drive program block which is currently selected in the Flowchart Program Editor Properties are displayed when Drive Programming is entered You can also show or hide it by clicking on Drive Programming Properties in the View menu Properties are displayed by default docked at the rightmost side of CX Drive You can resize it as needed to better display its elements Also you can toggle its docking by right clicking near the window s edges ES Command Arguments variable to be assigned LI OO User parameter value C00 general input contact al Substitution The format of this instruction 1s zresult lt value gt The Arguments e Result anv variable e Value any variable or constant range 2147483648 to 2147483647 hd To change one block command argument place the cursor at its row and click on the edition box to the right of its name f the block argument has options a second click of the mouse will unfold the available options for you to select If t
16. The text of the error or warning message The list is automatically cleared every time a Compile is done 3 10 Creating a program with Flowchart Editor Follow the steps described below to create a drive program 1 Open the Program Editor The Drive Programming auxiliary windows Toolbox Block Parameters Properties and Error List will be displayed automatically 2 Select on the menu New Tab New Task flowchart or New Subroutine flowchart 3 Drag each block of the program from the Toolbox window to the Flowchart Program Editor 4 After dragging a block edit its properties by clicking on it and edit the arguments in the Properties window 5 Connect the blocks accordingly 6 Edit the drive program variables in the Block Parameters window 7 You may now compile the program transfer it to the drive export it etc Alternatively you can connect to a drive which has a program and transfer it following the simple steps described below 1 Open the Program Editor The auxiliary Drive Programming windows Toolbox Block Parameters and Properties will be displayed automatically 2 Click the Transfer from Drive button in the program Editor Toolbar The program will be transferred from the drive and automatically displayed in the Program Editor designer area 3 You may now edit the program compile it transfer it to the drive export it etc When a drive program is present you can also transfer it from and to the drive wit
17. U 31 32 variables UL 00 to UL 07 8 variables SET Freg ACCEL DECEL FM lout Dir PID FB F CNV Tmon Vout Power RUN Time ON Monitoring variable Time PlsCnt Only RX POS STATUS DCV ERR CNT ERR 1 ERR 2 ERR 3 ERR 4 ERR 5 and ERR 6 FW RV CF1 CF2 CF3 CF4 JG DB SET TCH FRS EXT USP CS SFT mande AT RS STA STP F R PID PIDC UP DWN UDC OPE SF1 SF2 SF3 SF4 SF5 SF6 SF7 OLR TL TRQ1 2 BOK LAC PCLR ADD F TM ATR KHC AHD CP1 3 ORL ORG SPD RS485 HLD ROK DISP RUN FA1 FA2 OL OD AL FA3 OTQ UV TRQ RNT ONT THM Output Functions BRK BER ZS DSE POK FA4 FA5 OL2 ODc OlDc FBV NDc Execution format External input Input output related functions ALA N ON Instructions 0 ko pun 5 ko D gt ic D 0 cc LOG1 LOG2 LOG3 WAC WAF FR OHF LOC IRDY FWR RVR MJA WCO WCOI FREF REF SETM EDM GER EIHIDUIDOSO ipu LX X 00 to X 06 7 contacts oe RX X 00 to X 07 8 contacts MX2 X 00 to X 07 8 contacts LX X 07 to X 11 3G3AX ElO E expansion card A AA Number of variables Extended IO option input contact RX MX2 General purpose output LX Y 00 to Y 03 4 contacts contact RX Y 00 to Y 05 6 contacts MX2 Y 00 to Y 02 3 contacts LX Y 04 to Y 06 3G3AX ElO E expansion card Extended output contact MX2 amp RX Internal user contact UB 00 to UB 7
18. are not to be construed as an amendment or addition to the above warranty See http www omron247 com or contact your Omron representative for pub lished information Limitation on Liability Etc OMRON COMPANIES SHALL NOT BE LIABLE FOR SPECIAL INDIRECT INCIDENTAL OR CONSEQUENTIAL DAMAGES LOSS OF PROFITS OR PRODUCTION OR COMMERCIAL LOSS IN ANY WAY CONNECTED WITH THE PRODUCTS WHETHER SUCH CLAIM IS BASED IN CONTRACT WARRANTY NEGLIGENCE OR STRICT LIABILITY Further in no event shall liability of Omron Companies exceed the individual price of the Product on which liability is asserted Indemnities Buyer shall indemnify and hold harmless Omron Companies and their employees from and against all liabilities losses claims costs and expenses including attorney s fees and expenses related to any claim inves tigation litigation or proceeding whether or not Omron is a party which arises or is alleged to arise from Buyer s acts or omissions under these Terms or in any way with respect to the Products Without limiting the foregoing Buyer at its own expense shall indemnify and hold harmless Omron and defend or set tle any action brought against such Companies to the extent based on a claim that any Product made to Buyer specifications infringed intellectual property rights of another party Property Confidentiality Any intellectual property in the Products is the exclu sive property of Omron Companies and Buyer shall not attempt to dupli
19. as A004 Count as U 88 Dummy 1 as UL 00 Global alias this alias definition can be used in all the tasks and subroutines This is the format for a global alias definition Examples alias global alias as replacement alias alias alias alias alias alias entry global global global global global global const 104 as 1008 Acceleration as F 2 Deceleration as F603 Time as U 18 AppTimer as TD G8 Temp as UL 85 Note 1 The alias will be lost converting a text task subroutine to flowchart CX Drive will show a message advising about this issue Note 2 reserved words cannot be used like an alias A compilation error will appear 20 Drive Programming 3 15 Region definition Text Editor A Region definition can be only defined in a text task or subroutine It is useful to define code regions to clarify the program source code Examples region Alias alias global const 108 as 100 alias global Acceleration as FG82 alias global Deceleration as F003 Halias global Time as U 18 alias global AppTimer as TD 8 Halias global Temp as UL 685 Hendregion entry amp region Start Acceleration const 188 Deceleration const 188 Time 5860 Temp 10000 set freg 1800 Fw 1 amp endregion 3 16 Conversion from Flowchart to Text There are two options to convert from Flowchart program to text Convert Flowchart to text It converts current Flowchart Task Subroutine to
20. can be changed Value any variable or constant ChgParam lt parameter gt lt value gt Note The same rules to parameter writing from operator panel or communications apply Some parameters can not be written in certain mode of inverter e g some parameters can not be changed during RUN condition This instruction does not fix the parameter in EEPROM EepWrt to be used for this purpose Example entry loop_ inc U 82 FOQ2 U 82 wait 100 goto loop end Go to loop 1 Mest Block The F002 acceleration time setting 1 value is increased by 1 every second 70 Drive Programming MonParam Command Description Arguments Parameter parameter code BY Assigns the inverter s parameter content Fxxx Axxx bxxx Cxxx dxxx Hxxx TE specified by display code to a variable Pxxx Variable any variable MonParam lt parameter gt lt variable gt Example entry loop UMon Feei goto loop _ end Go to loop Hent Block 5 The value of the FOO1 parameter output frequency setting is monitored on the d025 parameter user parameter monitor 11 Drive Programming The command allows write into EEPROM the next ChgParam executed just after this command if two ChgParam follows an EepWrt only for the first one will be saved Note Limitation of EepWrt If this command is executed in more than one task ChgParam is executed in the sequence it is
21. digital input is closed If it is open then it will stay in the until loop portion The check of the input is every second because of this structure Digital input has to be configured in the multifunction input 45 Drive Programming Command BDescripion Arguments Value any variable or constant time in 10 x ms e Condition A comparison between two variables or constant with the format lt Left Watt ime This hand value gt lt Comparison gt lt Right Hand IS instruction makes the program Vales d DI ae ana Or UNNA Wait Time value from 0 to 32767 10ms l Left hand value any variable or constant range 128 to 127 E SE Comparison lt gt lt gt lt gt Right hand value any variable or constant range 128 to 127 Wait lt value gt or lt condition gt NOTE WaitTime is not accurate way to measure time please use internal timers or external Real Time Clock in LCD for accurate time measurement Example Wait Time wait during a time period entry loop wait 186 inc U 88 goto loop _ end Go to loop Hest Block The P100 parameter is increased every second Example Wait condition wait for condition entry loop _ wait x 00 1 inc U 88 wait X00 1 goto loop_ end Go to loop Hent Black The program waits until the digital input is closed you need to set one of the multifunction inputs for this and then P100 parameter is increased 46 Dr
22. every second Go to loop 55 Drive Programming Command Descripion Arguments Decrements a value by 1 Value any variable Dec Dec lt value gt Warning Drive Programming does not control overflow underflow The application should take care Example entry u 82 188 loop dec U 82 wait 1060 goto loop end Go En loop Hest Block The P102 parameter is decremented by 1 every second 56 Drive Programming 6 3 Input Output Control Commands For memory optimization use Input Output Control Commands 4 bytes instead of the Egual Arithmetic Command 8 bytes Var X i Command Description X Arguments Variable any variable the value of the variable will be O or 1 e i Number of the contact input range O to 11 Instruction to access contact inputs Reflects the state of the input Note The inputs have to be assigned to digital multifunction input by the multifunction 56 to 63 X 02 is not necessarily input 2 depends where MF 58 is entry loop_ UMon 8 X 81 goto loop end Go to loop Hent Block The state of the input terminal X 01 is monitored on the d025 parameter 57 Drive Programming Command Description Arguments Instruction to access contact inputs by word Variable any variable Each bit reflects one of the inputs lt variable gt Xw Note The inputs have to be assigned
23. startup and are incremented in a 10 ms cycle When a timer start instruction timer set or delay operation instruction delay on or delay off is executed the timer counter corresponding to the instruction operates as the counter for output to a specified timer contact In this case the counter is cleared to zero when the instruction is executed start counting and then stops counting upon reaching the specified count When a timer stop instruction timer off is executed the timer counter corresponding to the instruction is cleared to zero and operates as a 31 bi free running timer counter that is incremented in a 10 ms cycle TD 0 TD 7 Range of Values Timer contact output O 7 bit 0 Off Unsigned access 1 On 1 word The data in timer contact output variables TD 0 to TD 7 change only when these variables are specified in the timer start instruction timer set or delay operation instruction delay on or delay off A timer contact output variable is set to O off when the counter corresponding to the contact output is cleared to zero the variable is set to 1 on when the counter stops counting the timing action selected finish While a timer counter variable TC k is being used for a free running timer counter timer contact output variable TD k corresponding to the timer counter variable retains its status Range of Values Attribute Pi Timer contact output word access 0 to 255 ps O
24. the program The error will be showed with a red underline n DUMMY ULOL 35 A838 c A Task or Subroutine may be deleted or renamed by right clicking on the tab title Task 01 Subroutine 01 Delete Current Subroutine Rename Current Subroutine Right clicking on an area which is not an element of the flowchart displays a popup menu which allows you to Paste elements that you have previously copied or to select all the elements Select All Bring To Front p Send To Back Align To Grid Pin Lock Ckrl X Cert Ckrl V Set Label Set Subroutine 13 Drive Programming Right clicking on a selected Text it shows a popup menu with more options call mmm dh Find goto Top Monitor SER Replace cut dn Copy B Paste p Go ta Subroutine D Go to Label x Lindo The available menu commands with Flowchart editor are described below e Bring To Front places the element graphically in front of other elements e Send To Back places the element graphically in back of other elements e Pin fixes the element to its current position in the graph It will not be moved in click and drag operations Lock acts like Pin and besides sets the properties of the element as read only Cut deletes the element and saves it in the clipboard for further pasting Copy saves the element in the clipboard for further pasting e Paste puts the contents previously copied in the clipboard in
25. to digital multifunction input by the multifunction 56 to 63 for MX2 and RX or 49 to 60 on LX Xw 1 gt bitO Xw 2 2 bit 1 Xw 4 gt bit 2 Xw 8 2 bit 3 XW 162 bit 4 Xw 322 bit 5 Xw 642 bit 6 Xw 128 gt bit 7 only for RX and LX Xw 256 2 bit 8 only for LX with extension I O Xw 512 gt bit 9 only for LX with extension I O Xw 1024 gt bit 10 only for LX with extension I O Xw 2048 gt bit 11 only for LX with extension I O entry loop _ U 8B8 x u U u U yw U 88 goto loop end a Goto loop _ Hest Block This example acquires the state of the X 02 X 05 input terminals and outputs it to Y 00 Y 03 output terminals To cut X 00 X 01 the U 00 value is divided by 4 To cut X 06 X 07 the U 00 value is masked by 15 58 Drive Programming i Number of the contact output range O to 6 Value any variable or constant Note The inputs have to be assigned to digital multifunction output by the multifunction 44 to 49 for MX2 and RX and 35 to 41 for LX entry SET Freg ACCEL DECEL yw i O FH 1 LOOP _ if FM lt U 88 goto ST el 1 if FM lt U 1 goto 5T642 Y 801 1 51061 goto LOOP _ 5 T6062 FH 8 end if Fh4z Ln goto ue gt Goto 57001 if Fh4 UI gata ue gt Goto STOUZ To test this example initialize the user variables with the following value U 00 1000 U 01 2000 U 02 3000 Y 00
26. values Default Attribute Deceleration time 0 01 Unsigned This variable can be used to read and write the motor deceleration time in the inverter The deceleration time setting using this variable is enabled only when the setting of accel decel time input selection P031 is 03 PRG The setting of this variable does not correspond to the setting of inverter parameter F003 The data written to this variable is not stored in the inverters EEPROM This variable will restore the initial setting when the inverter power is turned off Note 1 By default when the inverter power is turned on the deceleration time follows the deceleration 1 time setting F003 F203 or F303 For details refer to the Inverter Instruction Manual Note 2 When a program writes a value to this variable the value is reflected in the inverter in a 40 ms cycle which conforms to the standard inverter specifications 5 3 Inverter Monitor Variables This units does not always corresponds with the display units Range of values Default Attribute frequency 0 01 Unsigned The data monitored with this variable corresponds to the data monitored by the output frequency monitor d001 This variable is read only lout Description Range of values Default Attribute 0 01 Unsigned noa ose AS The data monitored with this variable corresponds to the data monitored by the output current monitor d002 The monitored data indic
27. Attribute Kw 1 word The data monitored whit this variable corresponds to the data monitored by the power monitor d014 This variable is read only RUN Time Range of values Default Attribute d016 Run Time monitor 0 to 999999 Hour Unsigned 2 word The data monitored with this variable corresponds to the data monitored by the cumulative operation RUN time monitor d016 This variable is read only Range of values Default Attribute Power on time Unsigned The data monitored with this variable corresponds to the data monitored by the cumulative power on time monitor d017 This variable is read only ae Description Range of values Default Unit Data size Attribute ene ais User Parameter 31 31 Signed 2 to2 3027 monitor O to 2 2 word The data monitored with these variables corresponds to the data monitored on d025 d026 and d027 These are monitors available for the user Drive Programming application 27 Drive Programming POS Description Rangeofvalues Default Attribute d030 Current Position 2 1 to 2 1 1 Signed monitor E427 50 102 1 2 word The data referenced with this variable corresponds to the data monitored by the current position monitor d030 With RX when 03 high resolution absolute position control has been selected for control pulse setting P012 the range in brackets applies N of Unsigned The data monitored with this variable cor
28. Cat No 1170E EN 01B MX2 RX LX Drive Programming Model MX2 series inverter RX series inverter LX series inverter USER S MANUAL AA AA Ea YA YA AYAM 7 SESION ae ID INIA DRA 1PHASE omron a ERG RUN A STOP Ng j RESET Un zzv I5 AT Y DHE shock fter disconnecting p y y 9 Ep 777 PROGRAM Drive Programming Table of Contents ntr du el EN La aa 5 TeT branalingrcertis Instruction Manuals ss ee pie vete mue cun atleta bau aa ana 5 ae AS E 5 1 3 Preparation and System configuratiOn oom man 6 2 PECHINA RN 7 3 Drive Programming Edo naa 8 3 1 Saving and leading Program Sae naa o e toU tab e AD itte iter rd 9 9 2 Ello uiui te een an Bni ee eee eee Eu Paca 9 SPeENFeelo cwMt RT a EE 2 3 10 99 1 Common Command 4 a eta ca caet re o 8 PR tbi a redet 10 3 3 2 Commands for the Flowchart EditOf oo o WWW 11 3 3 3 Commands tor the Text Editor ii balasan 11 AO A OCURRA lahan AA AA Sg aa 12 oro Brel Nim A A A BN Naa i adc ea teen aa 12 3 0 FOOIDOX Window lis 15 3 7 Block Parameters WI O Wisin A AA iaa 16 3 07 Properties WINGO Werner lil 17 CUTE WINOO Wan io ica 18 3 10 Creating a program with Flowchart Editor o WooWo oom Ja 18 3 11 Creating a program with Text Eduard wil nian 19 AA Drg an ane Mancina DUM Eos 19 935 4 50mmehis gt Text Editor at en oa hed aa ata Season dan iaa 19 3 14 Alias definition Text Editor
29. N TONER oe eae ee 65 B RAE ISBN NENNT TREND 66 6 4 Timer Control Commands sess JW WWW aan 67 E 2 n PE EA ECT Tm 67 EEE E EEEE EE AE EAE IE A E ENE E E E AANE AEE E A EE acess 68 MIMO MENU da a da 69 6 5 Parameter CONTO Command ee aa sete Ban ea et ntl an ee an 70 Ong cee Lf a eee ee eee OLET 70 UO ed eNO aa SN AN Na es cha AA A NA TN NA 71 mila eme ee ME 72 Drive Programming o 73 6 0 Inverter Control Command Stilo a odes 74 allg M A anna 74 A A A a 74 joo A 74 imo MEE 74 Digo c O An A 16 Ae naa TY Bec NA aa NN TR 77 Z MROUDIGSNOOUING Passes P 18 8 Drive Programming Parameters General PrecautiOnS oo omar 19 8 1 Parameters list affected by setting order Woo oo WWW aan 19 8 2 Parameters list affected by Rated Current Yo oom mma 19 8 3 Parameters list affected by PID enabled disabled WoWoW Woo WWW Waah 80 9 Insertion Points MX2 amp RX Jessi aa mkn 81 9 de Freduency betore AGG DEC xu aeuo Mee o odit le e Na oae ec loot Ma mi ha Mia bh 81 9 2 Frequency after ACOIDEC lt bs reco te he aos sa adan 81 9 3 Deviation before PID block i teh Ert Ee eee dh asn on iie eo Mc be e hm 81 Drive Programming 1 Introduction This Instruction Manual explains how to use the Drive Programming software for the Omron MX2 RX LX Series Inverter Be sur
30. RO It access to the timer counter outputs as word 31 Drive Programming 5 5 Digital input Functions These variables correspond to the settings available for the digital multifunction input terminals Setting the variable to 1 will simulate the function as if the terminal was closed in a digital input It is interesting to note that the multifunction does not need to be configured in order to use the function E g FW 1 will generate a RUN Forward command as used in some examples Please refer to the inverter user manual for details about the individual functions AN C001 C009 18 AN H System reset EN C001 C009 20 C001 C009 21 C001 C009 22 C001 C009 24 C001 C009 26 C001 C009 27 C001 C009 28 C001 C009 29 C001 C009 31 C001 C009 32 Start of 3 wires Stop of 3 wires Values 0 Off 1 On Function Description MX2 RX LX Usage Comment FW jFowad 000000000 ESSEN RV Reverse v E JG Jogging ME External Brake YON x Second control v RW C001 C009 08 V E Freerun YAI v R W C001 C009 11 External tip o v C001 C009 12 USP Unattended start protection V x C001 C009 13 Change from commercial power V x C001 C009 14 Y C001 C009 15 Changeofanaloginput wv v MES Rw Coot Coo9 16 SET3 x x C001 C009 17 PIDC OPE SF1 SF7 Multi speed bit 1 7
31. SS FOR A PARTICULAR PURPOSE OF THE PRODUCTS BUYER ACKNOWLEDGES THAT IT ALONE HAS DETERMINED THAT THE PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS OF THEIR INTENDED USE Omron further disclaims all warranties and responsibility of any type for claims or expenses based on infringement by the Products or oth erwise of any intellectual property right c Buyer Remedy Omron s sole obli gation hereunder shall be at Omron s election to i replace in the form originally shipped with Buyer responsible for labor charges for removal or replacement thereof the non complying Product ii repair the non complying Product or iii repay or credit Buyer an amount equal to the purchase price of the non complying Product provided that in no event shall Omron be responsi ble for warranty repair indemnity or any other claims or expenses regarding the Products unless Omron s analysis confirms that the Products were prop erly handled stored installed and maintained and not subject to contamina tion abuse misuse or inappropriate modification Return of any Products by Buyer must be approved in writing by Omron before shipment Omron Compa nies shall not be liable for the suitability or unsuitability or the results from the use of Products in combination with any electrical or electronic components circuits system assemblies or any other materials or substances or environ ments Any advice recommendations or information given orally or in writing
32. X PCACN2 or USB CONVERTERCABLE MX2 CX Drive 2 0x or higher RX CX Drive 2 3x or higher LX CX Drive 2 5x or higher Install CX Drive on your Windows personal computer and connect the personal computer to the inverter MX2 RX or LX via the PC inverter connection cable After completing these preparations you can operate Drive Programming Editor to create a user program and download it to the inverter The table below lists the main functions of Drive Programming Editor Programming Editor Supports the input editing saving reading and printing of user programs Compile and edit a user program Downloads a user program to the inverter Bebi UOS Uploads a user program from the inverter Drive Programming 2 Specifications The table below lists the programming related specifications of the Drive Programming function Item c o Cc 2 9 Dis C o G D IQ o Specification Programming language Flow Chart and Text language Input device Windows personal computer OS Windows XP SP3 Windows Vista Windows 7 Max program size 1024steps The internal storage capacity of the inverter is 1024 steps or 6 Kilobytes Programming support Editing on Windows Display on Windows function programming Program syntax check on Windows software Downloading uploading and full clearance of program Execution by interpreter in an execution cycle of 2ms per instruction possible subroutine call with nestin
33. X X KK xXx x X XxX K x C001 C009 39 C001 C009 40 C001 C009 41 X 00 TL Torque Limit Enable TRQ1 2 Torque Limit Selection 1 2 BOK Brake Confirmation X X Overload protection switch P PI switching x OX O O cluolcio mininioini gt lnlOlcimin im n I E Usil amo m o4Wrmideiduli xmom inei BE SAO X 00 X 07 Drive Programming MI1 MI8 i X C001 C009 43 X C001 C009 44 x C001 C009 45 LAC LAD Cancel x C001 C009 46 PCLR Clear Position Deviation X C001 C009 47 STAT Pulse train position command input x CO01 CO09 48 permission ADD Add Setting Frequency m NE X C001 C009 50 F TM Forced Terminal Block x C001 C009 51 ATR Torque reference input permission a X C001 C009 52 Integrated power clear Peak X C001 C009 53 x x C001 C009 54 FOC Preliminary excitation X X C001 C009 55 C001 C009 56 Analog command on hold Y X C001 C009 65 CP1 3 Position command selection 1 3 X e DOS Origin return limit signal MEN x C001 C009 69 Origin return start signal MESA X C001 C009 70 CO N Drive Programming x X Speed Position switching oy x X Usage Comment y PRG ExecutingDriveProgram_______ v HLD HOLD Acceleration deceleration C001 C009 83 stopping ROK Operation OK signal R W C001 C009 84 DISP Display limitation terminal R W C001 C009 86 LAI RW C001 C009 00 EU RAW RAW R DOWN y R R R R R R R R
34. XA 0 General purpose analog input O terminal General purpose analog input Unsigned Sn 0 to 10000 1 word Ol terminal o XA 2 General purpose analog input 01 O2 terminal only for RX and LX These variables can be used to monitor the analog input to the O and Ol and O2 terminals Terminals O L OI L O2 L Associated parameters A011 to A015 A101 to A105 A111 to A114 XA 2 is only available for Rx and LX YA 0 YA 2 Range of Values General purpose analog output EO terminal for MX2 FM terminal for RX and LX Unsigned AM terminal 0 01 a etel purpose analog output AMI terminal only for RX and LX With this variables we can monitor the analog outputs any multifunction assigned to them or write analog output if YA O to YA 2 are assigned to analog multifunction parameters C027 C028 and C029 Value is reflected as a data range from 0 to 100 0096 YA 2 is only available for RX and LX 30 Drive Programming UB 00 UB 07 Range of Values Ld Internal user contact bit access SE These variables can be used as bit variable for the user UBw Description X Range of Values Attribute D Internal user contact word access 0 to 255 ES ps The bit variables reflected as single word TC 0 TC 7 Range of Values Api vide 0 to 7 31 Unsigned The timer counters TC 0 to TC 7 operate as 31 bit free running timer counters They start with the user program
35. a Ctrl X Cut Ctrl C Copy Ctrl V Paste Ctrl Z Undo Ctrl Y Redo Ctrl A Select All Ctrl F Find function Ctrl L Lock Ctrl P Pin Ctrl Space Code Snippets Tab Select Next Shift Tab Select Previous Arrow Keys Move selected element Home End Page Up Page Down Navigate through the graph Zoom In Zoom Out 3 5 Designer Area The designer area will display the current design of the program New Tab w im X oo ih d EH ji Ca X Ep Y T RR d ny ki E e Til Program Sj Program Run ME entry u ae Xx 00 call Run end P This area may have different pages organized in tabs Each tab is either a Task or a Subroutine in Flowchart or Text The designer is created with one default tab which is a Text Task When a program is compiled without error an icon with a circled green arrow highlights the starting point of each Flow chart task ll E E With text editor the output window will indicate if the program is compiled successfully Drive Programming For programs compiled with errors a red icon with an exclamation mark identifies the erroneous blocks with Flowchart Editor Placing the mouse on the error icon displays the compile error which can also be seen in the Error List C w elements in this Flow chart must be Fully connected Li With Text Editor in the output window will appear the errors of
36. a IEEE 29 AA qi mM EM 30 iN AO eG abstulit e IE eM ie EE SI d e EN ILE 30 WF OO UO Fe Ne e EA An END AA AS TE TE 31 Msi crea PE ete aa Pn NN AA Sa AAA Ma AN Sa NP en APN NN PA PA SAN PP 31 TE OTOT PP O 31 ICO a vs AA A E 31 A IN A TA DA PAR EE 31 e A Bean ang mmm 32 5 6 Digital Output FUNCION Sen anna BN BEN Bun 34 6 Drive Programming INSTFUCTONS sii ma mama 36 6 Control Gem mang ea Br 36 ENY nama nona tone end Kon a ena NN Jan i tinae 36 zio MM TT 36 A NETTEN RR 36 so ERR amare Men TEES 36 End Sbs ER ena ON a sn nar TERN Tem 36 EA eater rae eS ae ee Neer aE AA MEER aS 38 CONIA Naa AN MN AN ured bible cnet 39 A An Aa ant 40 ne na aa 41 Select Gase EMG Select ran on 42 FOr Ne cuc 43 Vine ciascun 44 Uni BOOM ae ae ene ner en ee een ee 45 PASA EUST ni 46 o 2 Arthmelie and Logic Command ea AI e cv dese ee ANE 47 SOUD UUM OM eher mE 47 ACIO 9 neem SEE E ETT ME 47 Setra a g Rammer arn E A PTY Fo ROTOR E ia OID IEEE ee ERT EMERGE Te 48 MUI ICA ON en AN IT 48 DIVISION aii e an PSA add 49 A Ao na 49 TOU Se A en na 50 PN lo ERR A AA PMHm 51 g Pn AA A aan en PE En Ana 52 A vances ieee 53 NOP ai 54 ID A Sep aan AN TAN o A e 55 pr o e 56 6 3 Input Output Control Commands o oo W aa 57 an nan 57 A A O AAN PA AON 58 SA aan anna 59 VES VAMO sus 60 UNES VANS ani rt aiii iio 61 Var A TUNA iaa diia 62 Vat UD Dis 63 A A PAN A MA NA AN AA A O 64 MA A ERROR DA
37. ar and 2 bytes for month U lt k 1 gt with 2 bytes for Month s day and 2 bytes for week s day 00 for Sunday 06 for Saturday and U lt k 2 gt with 2 bytes for hour and 2 bytes for minutes RtcSet on UL k It will set UL lt k gt with 2 bytes for year 2 bytes for month 2 bytes for month s day and 2 bytes for week s day 00 for Sunday 06 for Saturday and UL lt k 1 gt with 2 bytes for hour 2 bytes for minutes and 4 bytes of padding 0000 e If the watch LCD operator is not attached RtcSet instruction sets 000000000000h Example entry rtcset off Uu 8a end 1 rtcset off U fOCI After executing the program with the watch LCD operator attached the hexadecimal value of the first 2 bytes of U 00 will correspond with the current year and the hexadecimal value of the last 2 bytes of U 00 will correspond to the current month Le if the example program runs on July 5 Monday of 2010 at 02 29 P M then U 00 U 01 and U 02 will display the following values display in decimal Which converted to format hexadecimal format results in 10 for 2010 4103 1007 oru 05 for 5 day of month 1281 0501 01 for Monday 14 for 2 p m 5161 1429 29 for 29 minutes 13 Drive Programming 6 6 Inverter Control Commands Arguments Makes the inverter run the motor in forward direction starts the inverter output This command is a shortcut of the func value command Format
38. associated with the task To be used with other task a copy of the subroutine is necessary on the task 24 Drive Programming 5 Drive Programming user variables 5 1 Initial Data U 00 to U 31 or User parameters ue PME HE Data stored Unsigned User variable 0 to 65535 in P100 1 word to P131 User variables are the general purpose functions that can be used as unsigned 1 word The data written from a drive program to the user defined variables is not stored in the inverters EEPROM The variables will restore the initial settings when the inverter power is turned off The user defined variables correspond to inverter parameters P100 to P131 You can also change the settings of user defined variables from the digital operator The changes made from the digital operator will be stored in EEPROM This is also possible to emulate from drive programming by using the EepWrt command The variables P129 to P131 U 29 to U 31 are saved at power down of the inverter automatically This function may not work under heavy load motor output current or too small inverter low capacity in DC bus In case of trouble it is recommended to disable the inverter output to preserve the energy in the capacitors UL 00 to UL 07 or Internal User parameters Uu es Signed 31 31 Internal user variables are the general purpose functions that can be used as unsigned 2 word variables for example to temporarily store arithmetic o
39. ates the ratio of present output current to rated current of the inverter This variable is read only For details refer to the Inverter Instruction Manual Dir Description Rangeofvalues Default Attribute We 0 Stop Rotation direction EA Ba PT Unsigned monitor 2 Reverse rotation 1 word 4003 The data monitored with this variable corresponds to the data monitored by the rotation direction monitor d003 This variable is read only PID FB Range of values Default Attribute Process variable PV d004 PID feedback 0 to 9990000 C eios monitoring i The data monitored with this variable corresponds to the data monitored by the process variable PV PID feedback monitor d004 This variable is read only F CNV Range of values Default Attribute Scaled output Unsigned The data monitored with this variable corresponds to the data monitored by the scaled output frequency monitor d007 This variable is read only 26 Drive Programming Range of values Default Attribute Unsigned The data monitored with this variable corresponds to the data monitored by the torque monitor d012 This variable is read only Range of values d013 Output Voltage 0 to 6000 0 1v Unsigned monitor 1 word The data monitored with this variable corresponds to the data monitored by the output voltage monitor function d013 This variable is read only Power Description Range of values Default
40. call Run Pr 1E call Run Pa Main RunRV 3 Wait RUN 0 10 UB O not UB O 13 11 wait KOP Doo ome U OO z Go to Loop 12 Hert Block endsub Text Main RunFW Main RunRV sub sub FW 1 RV i 1 wait x e1 wait X 802 1 endsub endsub if UB 1 then call RunFW else call RunRV endif stop Walt RUN 6 UB 8 not UE O goto Loop A forward and reverse run at 60Hz is repeated continuously between two limits X 01 and X 02 37 Drive Programming Command Descripion Arguments Use this ISIN branch processing Label A name that is used to identify a unconditionally to the step labeled with particular function block in the task label name GoTo lt label gt Note The instruction must also be connected to the next program block you want to be executed This is necessary to make clear the flow of the program Example entry Ini if U 68 1 goto Condit True goto Ini Condit True inc U 81 if U00 1 goto pore ine Go tol Condit True end 2 Lo Hest Block 3 Condit True 4 5 Hent Block Go to Ini Change parameter P100 in order to test the GoTo function with this sample When P100 1 P101 starts counting When P100 lt gt 1 stops counting 38 Drive Programming Command Description Arguments ro This instruction makes conditional e Label A name that is used to identify a branching in case a trip in the inverter pa
41. cate it in any way without the written permission of Omron Notwithstanding any charges to Buyer for engineering or tooling all engineering and tooling shall remain the exclusive property of Omron All information and materials supplied by Omron to Buyer relating to the Products are confidential and proprietary and Buyer shall limit distribution thereof to its trusted employees and strictly prevent disclosure to any third party Export Controls Buyer shall comply with all applicable laws regulations and licenses regarding i export of products or information iii sale of products to forbidden or other proscribed persons and ii disclosure to non citizens of regulated technology or information Miscellaneous a Waiver No failure or delay by Omron in exercising any right and no course of dealing between Buyer and Omron shall operate as a waiver of rights by Omron b Assignment Buyer may not assign its rights hereunder without Omron s written consent c Law These Terms are governed by the law of the jurisdiction of the home office of the Omron company from which Buyer is purchasing the Products without regard to conflict of law princi ples d Amendment These Terms constitute the entire agreement between Buyer and Omron relating to the Products and no provision may be changed or waived unless in writing signed by the parties e Severability If any provi sion hereof is rendered ineffective or invalid such provision shall no
42. ch it contains if any is automatically loaded You can display it by opening the Program Editor Alternatively you can export a drive program to save it independently of other drive information To do so use the Program Export Program command in the Drive menu Enter the name of the file to be used The file will be saved with extension driveprogram A drive program can be imported with the Program Import Program command in the Drive menu 3 2 Editor The Program Editor is the main window of the Drive Programming function New Tab w ml gt kh d ita Om ds i m 3c wo Wo n5 a 0 AN Tg Task01 MS entry end 3 xd EB E MX2 Project The window area consists of a toolbar with common commands and a designer area where the program is displayed as a text Drive Programming 3 3 Toolbar The Program Editor window contains the following commands 3 3 1 Common Commands Commands Image 9 Descripion It allows creating a new Flowchart task for the program up to the maximum number of tasks allowed Tasks are parts of the program which are executed independently of each other It allows creating a new Text task for the program up to the New Task Text LE maximum number of tasks allowed Tasks are parts of the program which are executed independently of each other Flowchart part of the program which is called from a task Text the program which is called from a ta
43. detected For the second invocation of the command a waiting time of typically 10 ms will occur before each ChgParam is executed For example when ChgParam is detected in task 1 2 and 3 at the same time and the one in task 1 is executed at first is necessary to wait 10 ms for task 2 and 20 ms for task 3 But when Eepwrt is not executed ChgParam doesn t need this waiting time Example only FOO2 is stored in EEPROM entry loop _ eepwrt F882 U 82 F883 U 83 goto loop 2 FOO Woz T LE 3 FO03 Us Li LT Go to loop On executing the program only F002 parameter is saved permanently from U 02 After power off and on again F003 will have the old value The initial values of the U 02 and U 03 variables can be set on the program variables list or the P102 P103 parameters 12 Drive Programming RS Command Description amp Arguments This statement sets 6 bytes data of time to a variable This data corresponds with year month day day of week hour and minute The variable value in hexadecimal User variable any user or internal user corresponds to the year month day day variable U xx or UL xx of a week hour and minute in decimal RtcSet on updates the 6 bytes data continuously RtcSet off updates the 6 bytes data only once RtcSet on off user variable Note e RtcSet on U k It will set U lt k gt with 2 bytes for ye
44. e function within the program in other words no waste of digital outputs required Function Description MX2 RX LX Usage Comment RUN Running Ro Co21 Co26 00 FA1 Reachingconstantspeed v v Y R C021 C026 01 FA2 Greater than setting frequency v v Y R C021 C026 02 OL Overload preannounce v v v R C021 C026 03 OD PIDdeviationoverrate v v MESE Ro Co2i Co26 04 AL Tripsignal v v v HR C021 CO2E 05 FA3 Only the setting frequency v v v R C021 C026 06 OTQ Overtorgue undertorgue v v v R C021 C026 07 IP_ Signal during m power interruption KIKI Y Y R CO21 CO026 08 UV Under voltage signal v v v R Co2i Co2e 09 TRO Torque limitation signal wv v v R CO21 CO26 10 RNT jRUN meovr Y v v R C021 C026 11 PONT ONtimeover v IN V R CO 1 CO026 12 THM Thermal warning v v v Ro C021 C026 13 x Y R C021 C026 14 x Y R C021 C026 16 x Y R C021 C026 17 x V RH C021 C026 18 Brake open_________________ v y MESE Ro C021 CORT 19 Brake error Zero speed signal Speed deviation overrate Positioning operation complete Greater than setting frequency 2 Only the setting frequency 2 Overload p
45. e to read this Instruction Manual carefully before using Drive Programming and keep it on hand for future reference 1 1 Handling of this Instruction Manual The contents of this Instruction Manual are subject to change without prior notice No part of this Instruction Manual may be reproduced in any form without the publisher s permission If you find any incorrect description missing description or have a question concerning the contents of this Instruction Manual please contact the publisher 1 2 Safety Instruction Be sure to read this Instruction Manual Inverter Instruction Manual and appended documents thoroughly before using Drive Programming and the inverter Before creating user programs for the inverter also refer to the Inverter Instruction Manual and configuration software CX Drive Instruction Manual for the necessary related Knowledge and ensure you understand and follow all safety information precautions and operating and handling instructions for the correct use of the inverter Always use the inverter strictly within the range of specifications described in the Inverter Instruction Manual and correctly implement maintenance and inspection to prevent fault from occurring When using the inverter together with optional products also read the manuals for those products Note that this Instruction Manual and the manual for each optional product to be used should be delivered to the end user of the inverter In th
46. g 8 Drive Programming Parameters General Precautions 8 1 Parameters list affected by setting order A003 Base freguency setting A004 Maximum freguency setting A203 Base frequency setting 2 motor A204 Maximum frequency setting 2 motor B015 Free setting electronic thermal freguency 1 B017 Free setting electronic thermal frequency 2 B019 Free setting electronic thermal frequency 3 B049 Dual Rating Selection B050 Controlled deceleration on power loss B051 DC bus voltage trigger level of control deceleration B052 Over voltage threshold of control deceleration B060 Maximum limit level of window comparators O B061 Minimum limit level of window comparators O B062 Hysteresis width of windows comparators O B063 Maximum limit level of window comparators OI B064 Minimum limit level of window comparators OI B065 Hysteresis width of window comparator Ol B079 Watt hour display gain setting B082 otart frequency adjustment B100 Free setting V f freq 1 B102 Free setting V f freq 2 B104 Free setting V f freq 3 B106 Free setting V f freq 4 B108 Free setting V f freq 5 B110 Free setting V f freq 6 B112 Free setting V f freq 7 P070 Low speed zero return frequency Note this parameter list only affect MX2 and RX 8 2 Parameters list affected by Rated Current 96 B012 Level of electronic thermal setting B016 Free setting electronic thermal current 1 B018 Free setting electronic thermal c
47. g in up to 8 layers Contact Signal 24v open collector input using intelligent input terminals Eronram bete et Be RX Assign to the PRG terminal Always run 9 lan MX2 Assign to the PRG terminal Always run l RX Up to 8 terminals X 00 to X 07 Ja uu MX2 Up to 8 terminals X 00 to X 07 XA 0 0 to 10V O terminal General purpose analog input XA 1 4 to 20mA OI terminal XA 2 General purpose output terminal PX Up to 6 terminals Y 00 to Y 05 PSP p MX2 Up to 3 terminals Y 00 to Y 02 0 2 0 to 10V O2 terminal Only RX External Output YA 0 Assignable to the EO terminal FM terminal for RX General purpose analog output YA 1 Assignable to the AM terminal YA 2 Assignable to the AMI terminal Only RX 1 Program control instructions Loop For Unconditional branching Goto Time control Wait Conditional branching If Then Ifs Then Else Select Case Until and While Subroutine call sub Others Entry End Sub End Sub Inc and Dec Arithmetic instructions Arithmetic operation Remainder Mod Substitution Absolute value Abs Logic operation Or And Xor and Not Input Output control General purpose input output bit input word input bit output and word output Reading of inverter input terminal Timer control Delay operation Timer control 5 Parameter control Rewriting of parameters by reselecting code on the operator s display U 00 to
48. gns horizontally the right sides of the currently selected al Right B blocks Vertical Align Middle It aligns vertically the middles of the selected blocks It arranges the elements of the flowchart automatically in the Auo arange e currently selected orientation cs tn o M placeholders for the beginning and ending of arrow connections Show sw lt allows you to select a display style of the program Text only Icon Only Icon and Text or Name Icon and Arguments 3 3 3 Commands for the Text Editor Commands Image Description 1 1 Find amp It finds a text on the program code CB It replaces a text on the program code Increment Indentation It increases the indentation of the selected text Decrement Indentation It decreases the indentation of the selected text Format Selected Text It applies the automatic formatting to the selected text Comment Selected It transforms the selected rows of text to comments Text Convert Text to Flowchart Convert whole program to Flowchart Text Program to Text It converts current text Task Subroutine to Flowchart It converts whole program to Flowchart It converts current Flowchart Task Subroutine to text It converts whole program to Text EE Selected It uncomments the selected rows of text GF 11 Drive Programming 3 4 Shortcut Keys The following Keyboard shortcuts can be applied to the designer are
49. gt gt Task 2 Task 5 Elapsed line time Am Entry Entry Entry Entry Entry 2 ms 4 Process A Process B Process Process D Process E LILII 10 12 Process B Process D 16 Process E 18 20 Process A 22 2 Process B Process D 26 28 Process A Process C Process E 30 32 ms Command Execution cccccc Inside each task subroutines can be associated but maximum nesting call inside a subroutine call is 8 level depth 4 1 Tasks When Drive Programming it s open an empty task appears by default Ii Tasko With the right mouse click we can Delete Current Task or Rename Current Task n zy Tij Task T Tasio ab Rename Current Task X Delete Current Task entry Mew Tab lau Ti Task01 entry end 23 Drive Programming 4 2 Subroutines Subroutines are useful to organize your program into parts of code that you can reuse in other programs or in the same program For insert a subroutine press the button j or and a new subroutine will appear Like on Tasks you can delete or rename a subroutine Every subroutine must begin with the Sub block and end with the EndSub Control Command T Proaram Program Test T Proaram Si Program Test sub endsub 4 The subroutine is executed via the call command with the subroutine name gy Program Program Test entry call Test call Test end It is only possible to call a subroutine that is
50. h the Transfer to Drive and Transfer from Drive buttons of the CX Drive toolbar In this case a message dialog will ask you whether to transfer the parameters the program or both 18 Drive Programming 3 11 Creating a program with Text Editor Follow the steps described below to create a drive program 1 Open the program Editor The Drive Programming auxiliary windows Toolbox Block Parameters Properties and Error List will be displayed automatically 2 The three ways to edit the code are a Manual typing b Calling code snippets Ctrl Space c Drag amp Drop commands from Toolbox window like Flowchart Editor 3 You may now compile the program transfer it to the drive export it etc Note 1 The Text editor is supported from CX Drive version 2 50 Note 2 Text and Flowchart Tasks Subroutines can be used simultaneously within same program 3 12 Run a program After transferring the program to the device you can run the program with the command or setting the next inverter parameters MX2 and RX 0 Disabling program will be A017 Drive Drive Programming program will run l l 1 PRG terminal by digital input Set terminal to PRG Programming Selection A meli n 2 Alwavs Drive Programming program will be l y always running E Drive Programming program will be F025 Drive Programming ded disabled function selection 1 Enable Drive Programming program will be Enabled Drive Programming program will ru
51. he block argument does not have options clicking on its current value will enable you to change it by typing a new one CX Drive will warn you if the value exceeds the valid range If the block argument can have both an option and a custom value clicking on the unfold sign at the right of the cell will unfold the available options whereas clicking anywhere in the cell text you will be able to edit it 17 Drive Programming 3 9 Output window It shows the compilation errors and warnings of the currently edited drive program after it is compiled Errors will prevent the program to be correctly compiled Warnings will allow compilation but advise customer of abnormal conditions output xj Date Component Description 30709 2010 10 15 Black Entry All elements in this flow chart must be fully connected a 30709 2010 10 15 Black End All elements in this flow chart must be Fully connected Q 30 09 201010 15 Black Entry The Subroutine must begin with a Sub element D 30 03 2010 10 15 i 0 E Output Error List The J JEn Error s button toggles displaying error in the list The AO Warnings Warning s button toggles displaying warnings in the list The Message s button toggles displaying informative message in the list Messages in the list show the following information Date The date and time when the error was generated Component Identifies the element with an error Description
52. he timer counter When the timer output TD K is turned Value 1 any variable Value 2 any variable or constant time in 10 x ms e K number of timer on off lt value 1 gt is turned on off It is important to note that meantime counting proceeds the lt value 1 gt remains unchanged from original value Delay on off lt value 1 gt TD k lt value 2 gt Timing chart Comparison for matchin i il 1 F i Yx 00 li T I PA k F1 delay on Y D0 TD 0 1000 delay off Y D0 TD O0 1500 timer off TD D Example entry U aa 208 U 8G1 300 loop if x ee 8 goto GT001 Loo 200 delay on FW TD U 80 gt wait FW 1 FW 1 wait G166el goto loop end IF 00 0 goto True Go to GT001 Hent Block delay off FY TO Um 3 Sample program that activates deactivates the FW instruction with Delay On Delay Off instruction Go to loop 67 Drive Programming Command Description Arguments Sets value in the timer and starts the Bon counter The timer starts from 0 and increments until lt value gt Associated Value any variable or constant time in 10 x ms ak ua e K number of timer TimerSet cak reflects status 1 finish range 0 to 7 Format oo Timer set TD k value Note Timer value can be check in variable TC k Completion of timer can be checked in variable TD k when it becomes 1
53. i Co26 41 pV R Co2i Co26 51 R C021 C026 52 Vv R C021 C026 54 R C021 C026 55 Vv R Co2i Co26 56 v R C021 C026 58 X XXX x Contactor control signal Brake Control signal UPS protect direction search status UPS protect direction Gate suppress monitor SEQ error cr o M x KK KK KK KK KK X Note The LX inverter functions are available for the digital multifunction output terminals P145 P147 Multi Output Ex OUT1 3 gt 3G3AX ElO E LX extra I O board 35 Drive Programming 6 Drive Programming Instructions 6 1 Control Commands Note It is compulsory to have End at the end of each task Call Command Description X Arguments EN e Subroutine Subroutines are identified It jumps to a subroutine by a name or alias defined by the user call lt subroutine gt Note After the execution of the subroutine ends the next instruction line after the call is executed Command Descripion Arguments It indicates the beginning of the subroutine Note It is compulsory to have Sub at the beginning of each subroutine Command Description Arguments Note It is compulsory to have End Sub at the end of each subroutine 36 Drive Programming Example AE Main RunFW SET Freq amp nn 1 2 E zub 13 14 Fi 13 if UBI 51th Se ze wait 01 1
54. inal 63 Drive Programming Var UBw Command Descripion Arguments Assigns the value of the internal user contact as word all together to a word Variable any variable variable varzllBw variable UBw Note UBw 1 2 bitO UBw 2 gt bit 1 UBw 4 2 bit2 UBw 8 2bit3 UBw 16 gt bit 4 UBw 32 gt bit5 UBw 64 gt bit 6 UBw 128 gt bit 7 Example entry leop iwi uB 8 X 88 UB 1 X 01 UB 2 x 82 UMon 8 ubw Y 80 UB 2 goto loop 2 Ui 00 3 MEI x01 4 HB 2 xiz J Ubon 0 UE E 00 UB 2 T Hent Block Go to loop_ E The internal user contacts are cleared on the loop s 1 instruction The status of the X 00 X 02 input terminals are stored in the UB 0 UB 2 internal user contacts and monitored on the d025 parameter Finally the status of the X 02 input terminal is set to the Y 00 output terminal 64 Drive Programming UB i value Command Description Arguments e i Number of the user contact Assigns a value to an internal user contact control range 0 to 7 l UBi value e Value any variable or constant Format ooh UB i value Example entry loop ubw UB O X 88 UB 1 X e1 UB 2 X 02 l UMon 8 ubw Y 88 UB 2 aiu iu goto loop 3 UBI 101 4 UBI 102 Ubon 0 UB E 00 UE 2 T Hent Bl
55. is instruction manual you can find WARNINGS along the instructions WARNING Indicates that incorrect handling may cause hazardous situation which may result in serious personal injury or death Drive Programming 1 3 Preparation and System configuration To create user programs with Drive Programming function of the inverter you must prepare the following devices and software 1 MX2 RX LX inverter 2 Personal computer PC Windows System 32 bit PC Windows XP SP3 Windows Vista any service pack and Windows 7 64 bit PC Windows Vista any service pack and Windows 7 3 Optional programming software CX Drive MX2 inverter CX Drive version 2 0x or higher RX inverter CX Drive 2 3x or higher LX inverter CX Drive 2 5x or higher 4 Optional PC inverter connection cable For MX2 it is a USB cable For RX LX the converter cable USB to RJ 45 is required Item codes Item code name for MX2 AX CUSBM002 E Item code name for RX LX 2 option cables 3G3AX PCACN2 or USB CONVERTERCABLE LX Inverter port Operator connection port RJ 45 RX Inverter port Operator connection port RJ 45 MX2 Inverter port USB connector The following figure shows the basic system configuration for programming Optional programming Windows personal Optional PC Inverter cable MX2 RX or LX software CX Drive computer Inverter 2 8 0 76 UN For MX2 AX CUSBM002 E For RX LX 2 options 3G3A
56. ive Programming 6 2 Arithmetic and Logic Commands Substitution Command Description____ Arguments Result any variable Value any variable or constant range 2147483648 to 2147483647 T 5 D 200 Ufo UM 2 U 68 U U 81 E U 00 180 les 2 U 88 U BA3 17 mod U 85 E 7 T 0101 00 00 LI 06 17 mod US abs UL 87 3 B 102 0007 Uma 11107 abs ULF 4 3 The P100 and P101 parameters are set to 200 Command Description Arguments Result any variable Value 1 any variable or constant range 128 to 127 e Value 2 any variable or constant range 2147483648 to 2147483647 entry U ae 1 U G1 588 000 200 U 82 U 88 U 81 2 11101 5 500 3 102 0100 n1 4 end The P102 parameter calculation result is 700 47 Drive Programming Subtraction Command Descripion Arguments Result any variable Value 1 any variable or constant range Subtracts value 2 from value 1 gt 128 to 127 Value 2 any variable or constant range 2147483648 to 2147483647 lt result gt value 1 value 2 Warning Drive Programming does not control overflow underflow The application should take care 0 entry U 200 Ufal 500 U 82 u e1 U Ba umo 200 end entry e Loa Up Un 4 The P102 para
57. meter calculation result is 300 Multiplication Command Descriipion Arguments Result any variable Value 1 any variable or constant range Multiplies value 1 by value 2 gt 128 to 127 Value 2 any variable or constant range 2147483648 to 2147483647 result value 1 value 2 Warning Drive Programming does not control overflow underflow The application should take care 500 Ufee U B1 2 1101 500 3 102 uon ut 4 The P102 parameter is set to 1000 48 Drive Programming Command Description Arguments Result any variable Value 1 any variable or constant range Divides lt value 1 gt by lt value 2 gt 128 to 127 Value 2 any variable or constant range 2147483648 to 2147483647 lt result gt lt value 1 gt lt value 2 gt Warning Drive Programming does not control overflow underflow The application should take care Example 500 U 81 u ee 2 1101 500 3 uiz 10104 4 Una 4 The P102 parameter calculation result is 250 Mod Command Description Arguments Result Any variable EO ics IN variable or constant range Mad Value 2 any variable or constant range 2147483648 to 2147483647 result value 1 Mod value 2 Warning Drive Programming does not control overflow underflow The application should take care Example 500
58. n F026 Drive Programming 0 TRM PRG terminal MA Set terminal to PRG PO IOS SCHON 1 PARAM Drive Programming program will run if setting FO25 enable F025 enable 3 13 Comments Text Editor Only it is possible to add comments in a Text editor task or subroutine To add a comment in a text line press the character follow by the comment The comment will be showed in a green color format Examples alias global Time as U 18 Timer time alias global AppTimer as TO Timer TD 68 Halias global Temp as UL 685 Internal use Note if you convert a Text task or subroutine to Flowchart the comments will be lost Drive Programming 3 14 Alias definition Text Editor Only it is possible to define an alias in a Text editor task and before the command entry It s not possible to define an alias in a subroutine Alias definitions are user friendly names given to parameters variables commands and numerical constants There are two kinds of alias definition Local alias this alias definition only can be used in the current task and his subroutines and not in the other tasks and subroutines that the program could have This is the format for a local alias definition inside a task Examples Halias alias alias alias alias alias alias entry local local local local local local local alias as replacement ON as 1 OFF as Monitor 1 as UMon MaxFrequency
59. n consumer products or any use in significant quantities iii Energy control systems combustion systems railroad systems aviation systems medical equipment amusement machines vehicles safety equip ment and installations subject to separate industry or government regulations iv Systems machines and equipment that could present a risk to life or prop erty Please know and observe all prohibitions of use applicable to this Prod uct NEVER USE THE PRODUCT FOR AN APPLICATION INVOLVING SERIOUS RISK TO LIFE OR PROPERTY OR IN LARGE QUANTITIES WITHOUT ENSURING THAT THE SYSTEM AS A WHOLE HAS BEEN DESIGNED TO ADDRESS THE RISKS AND THAT THE OMRON S PRODUCT IS PROP ERLY RATED AND INSTALLED FOR THE INTENDED USE WITHIN THE OVERALL EQUIPMENT OR SYSTEM Programmable Products Omron Companies shall not be responsible for the user s programming of a programmable Product or any consequence thereof Performance Data Data presented in Omron Company websites catalogs and other materials is provided as a guide for the user in determining suitabil ity and does not constitute a warranty It may represent the result of Omron s test conditions and the user must correlate it to actual application require ments Actual performance is subject to the Omron s Warranty and Limitations of Liability Change in Specifications Product specifications and accessories may be changed at any time based on improvements and other reasons It is our prac
60. ng by right clicking near the window s edges ES Program Control Commands Entry End Lal Sub EndSub Y sa gt I GoTo OnTrip If Is Select E Up o d o D e Caze LaseElse EndSelect For While DNA Sr 9 Until Vi alk T ime WaltLond Arithmetic Commands laput Dutput Control Commands Timer Control Commands Parameter Control Command Inverter Control Command You can also choose its displays style by right clicking on it with the mouse Three styles are available Large Icons Small Icons and List In any style placing the mouse cursor on a block will show a short help text for it Click on any category title to display the blocks which belong to that category 15 Drive Programming 3 7 Block Parameters window The Block Parameters window allows the user to edit drive program parameters which act as variables of the program The parameters are organized in categories Block parameters is displayed when Drive Programming is entered You can also show or hide it by clicking on Drive Programming Block Parameters in the View menu Block Parameters is displayed by default docked at the rightmost side of CX Drive You can resize it as needed to better display its elements Also you can toggle its docking by right clicking near the window s edges User Parameters Fide i P101 P102 P103 P104 P105 P106 Pio P108 oOo oO oO oO oO oO A EH TIE Drive Programming User parameters
61. o any terms or conditions proposed in Buyer s purchase order or other documents which are inconsistent with or in addition to these Terms Prices Payment Terms All prices stated are current subject to change with out notice by Omron Omron reserves the right to increase or decrease prices on any unshipped portions of outstanding orders Payments for Products are due net 30 days unless otherwise stated in the invoice Discounts Cash discounts if any will apply only on the net amount of invoices sent to Buyer after deducting transportation charges taxes and duties and will be allowed only if i the invoice is paid according to Omron s payment terms and ii Buyer has no past due amounts Interest Omron at its option may charge Buyer 1 1 2 interest per month or the maximum legal rate whichever is less on any balance not paid within the stated terms Orders Omron will accept no order less than 200 net billing Governmental Approvals Buyer shall be responsible for and shall bear all costs involved in obtaining any government approvals required for the impor tation or sale of the Products Taxes All taxes duties and other governmental charges other than general real property and income taxes including any interest or penalties thereon imposed directly or indirectly on Omron or required to be collected directly or indirectly by Omron for the manufacture production sale delivery importa tion consumption or use of the Pr
62. ock Go to loop E The internal user contacts are cleared on the loop s 1 instruction The status of the X 00 X 02 input terminals are stored in the UB 0 UB 2 internal user contacts and monitored on the d025 parameter Finally the status of the X 02 input terminal is set to the Y 00 output terminal 65 Drive Programming UBw value Command Description Arguments ra Assigns a value to the internal user contact controls Instruction to access internal user contact by word Value any variable or constant UE w value UBw lt value gt Note UBw 1 DbitO UBw 2 gt bit 1 UBw 4 gt bit2 UBw 8 gt bit3 UBw 16 gt bit 4 UBw 32 gt bit5 UBw 64 gt bit 6 UBw 1282 bit 7 Example entry loop UD uB 8 X 88 UB 1 X 01 UB 2 X 82 UMon 8 ubw UBIO X 00 ntn ion 3 UB 1 XI 4 UBI x02 al Ubon 0 UB E 00 UE 2 7 3 Next Block oteloop The internal user contacts are cleared on the loop s 1 instruction The status of the X 00 X 02 input terminals are stored in the UB 0 UB 2 internal user contacts and monitored on the d025 parameter Finally the status of the X 02 input terminal is set to the Y 00 output terminal 66 Drive Programming 6 4 Timer Control Commands Delay Command Description Arguments This instruction sets the count of the timer in value 2 and starts t
63. oducts sold hereunder including customs duties and sales excise use turnover and license taxes shall be charged to and remitted by Buyer to Omron Financial If the financial position of Buyer at any time becomes unsatisfactory to Omron Omron reserves the right to stop shipments or require satisfactory security or payment in advance If Buyer fails to make payment or otherwise comply with these Terms or any related agreement Omron may without liabil ity and in addition to other remedies cancel any unshipped portion of Prod ucts sold hereunder and stop any Products in transit until Buyer pays all amounts including amounts payable hereunder whether or not then due which are owing to it by Buyer Buyer shall in any event remain liable for all unpaid accounts Cancellation Etc Orders are not subject to rescheduling or cancellation unless Buyer indemnifies Omron against all related costs or expenses Force Majeure Omron shall not be liable for any delay or failure in delivery resulting from causes beyond its control including earthquakes fires floods strikes or other labor disputes shortage of labor or materials accidents to machinery acts of sabotage riots delay in or lack of transportation or the requirements of any government authority Shipping Delivery Unless otherwise expressly agreed in writing by Omron a Shipments shall be by a carrier selected by Omron Omron will not drop ship except in
64. oop Check the numerical value specified in U ii Check the program for the instruction causing overflow underflow or division by zero not in early MX2 firmware Check the parameters and the values to be written lf the error has occurred during inverter operation check whether the parameter in question can be updated during inverter operation Check the setting of software lock selection 0031 Check with the drive program documentation to recognize the trip conditions 78 Recreate the program and then download it to the inverter Correct the program so that the number of layers will be eight or less Correct the jump destinations of GoTo instructions As general recommendation never jump a Goto out of the current level it is Correct the value of variable U ii or limit the range of values of variable U ii Correct the program so that no arithmetic instruction causes overflow underflow or division by zero Correct the parameters or the values to be written to parameters so that they will be within the setting range Disable software lock If the parameter to be updated is the one that cannot be updated during inverter operation change the setting of software lock selection b031 to 10 to switch to the mode enabling parameter updating during inverter operation Check the drive program documentation to recognize countermeasures Drive Programmin
65. peration results The initial values can be set via the initial program data 5 2 Setting Variables Range of values Default Attribute frequency 0 01 Unsigned When A001 7 Freq ref from Drive Programming it becomes the frequency set point of the inverter Always reflects the reading of parameter F001 regardless the setting of A001 This variable is not stored in the inverter EEPROM It will be restored to initial setting after power cycle When the inverter receives an operation command FW 1 or RV 1 it accelerates the motor up to the frequency that was set last ACCEL Range of values Acceleration time 0 01 Unsigned This variable can be used to read and write the motor acceleration time in the inverter It is enabled only when the setting of accel decel time input selection P031 is 03 PRG Please note that it does not correspond to the setting of inverter parameter F002 The data written to this variable is not stored in the inverter s EEPROM It restores initial value after power cycle Note 1 By default when the inverter power is turned on the acceleration time follows the setting of the inverter parameter F002 F202 or F302 For details refer to the Inverter Instruction Manual Note 2 When a program writes a value to this variable the value is reflected in the inverter in a 40 ms cycle which conforms to the standard inverter specifications 25 Drive Programming DECEL Range of
66. r details on other errors in the inverter refer to the inverter instruction manual Factor Error causing i i The PRG terminal was turned on without a E43 E50 User trip O to 9 to E59 Invalid instruction Nesting count error Instruction error 1 If statements are nested in more than eight layers program downloaded to the inverter Subroutines are nested in more than eight layers For Next loop statements are nested in more than eight layers The jump destination of a GoTo instruction is a next instruction to end a for or other loop The variable U ii referenced via another variable is not found An arithmetic instruction caused Overflow underflow or division by zero A ChgParam instruction caused reference to a non existing parameter writing of a value out of the setting range change of a parameter value during inverter operation that cannot be updated during inverter operation or Change of a parameter value of which updating is restricted by software lock when software lock is enabled These trips are generated from the user application The cause is determined by the Drive Programming logic By uploading the program you can check if really a program is in the inverter or not Read the program to check the number of nesting layers some times difficult to recognize Check whether each GoTo instruction jumps to an instruction that ends a l
67. rameters ne Settings Cancel Help 3 User Parameters Image 1 New Drive window Image 2 CX Drive Workspace Making double click to the Drive Programming option the Drive Programming Editor will appear Ej Workspace1 CX Drive Drive1 MX2 Project MX2 A2 B004 PRG43234309 Program Editor JJ N nl xl Ili File Edit View Drive Tools Window Help la x D amp Hg X e mnmmmmanmaeo md sime axa a CAES 7 Illa sa x x e AA m e a Beers o EE quo A E MX2 Project Offline s m Hu p a ra i i Se A tao NewTab va XL lA ao ld Maior BO User Param s i MS i ki x Dd P100 0 raphs P101 Gi ag Status NE Y rese ife P102 H Monitor mi P103 0 Tuning 1 entry a 5 gt P104 H Settings E Drive Programming 3 end P105 0 J Parameters P106 0 YY TaskOl P107 P108 0 P109 0 P110 0 P111 0 P112 P113 0 P114 0 P115 0 Preprocessor Commands P116 0 Program Control Commands P117 0 5 z P118 Arithmetic Commands El P119 0 Input Output Control Commands s n P120 pa olv Timer Control Commands s py S MX2 Project Parameter Control Pammands B Drive For Help press F1 MX2 A2 B004 PRG43234309 NUM Drive Programming 3 1 Saving and loading programs A drive program is automatically saved when the drive document which contains it is saved When a CX Drive document is opened the drive program whi
68. reannounce 2 Analog O break detection Analog Ol break detection Analog 2 disconnection detection Capacitor life warning PID feedback comparison Communication break detection Result of logic operation 1 Result of logic operation 2 Result of logic operation 3 Result of logic operation 4 Result of logic operation 5 Result of logic operation 6 Condenser life span preannounce Fan life span preannounce Start contact signal Cooling fan over heat preannounce Low electricity signal Drive Programming MO1 Drive Programming MO2 Drive Programming MO3 Drive Programming MO4 Y Drive Programming MO5 Y 05 Drive Programming MO6 Operation setup complete Forward running signal Reverse running signal Serious failure signal Window comparator O Window comparator Ol Window comparator O2 Magnet pole position search R Co21 C026 20 R Co2i Co26 21 R Co21 C026 22 R Co2i Co26 23 R Co2i Co26 24 R Co21 Co26 25 R C021 C026 26 R Co21 C026 27 R Co2i Co26 28 R Co21 C026 29 R C021 C026 30_ R C021 C026 31 R C021 C026 32 R C021 C026 33 R C021 C026 34 R C021 C026 35_ R C021 C026 36_ R C021 C026 37 R C021 C026 38 R C021 C026 39 R Co2i Co26 40 R Co2i Co26 41 R Co21 C026 42 R C021 C026 43 R C021 C026 44 R C021 C026 45 R C021 C026 46 R Co2i Co26 47 R Co2i
69. responds to the data monitored by the trip counter monitor d080 ERC Range of values d086 Trip monitor 1 to 6 0 to 127 1 word The data monitored with these variables correspond to the data monitored by trip monitors 1 to 6 d081 to d086 Range of values Default Attribute 0 1 Unsigned The data referenced with this variable corresponds to the data monitored by the DC voltage monitor 4102 STATUS Range of values Unsigned This variable can be used to reference inverter status information The information is reflected with the following bit weights s Reserve Under Reset Over voltage Over current Overload Rei evens voltage suppression suppression suppression 28 Drive Programming 5 4 Terminal Variables Input Output Control Instructions X 00 X 11 Range of Values 0 Off Input terminal O to 11 bit See table below for each inverter function number Inverter function number Range of Values Attribute Unsigned NENNEN Input terminal word 0 to 65535 PE Instruction to access contact inputs by word Each bit reflects one of the inputs Y 00 Y 06 Range of Values See table below for each inverter function number Inverter function number Range of Values Attribute Unsigned This variable can be used to change the digital output terminals in units of word Each output is one bit Drive Programming XA 0 XA 2 Range of Values
70. rip lt value gt entry loop FH r 1 if X 01 6 goto jmp trip 1 stop mp goto loop end if X 01 O goto gt Goto jmp Henst Block This sample program will throw a user trip on the inverter when digital input X 01 is set to ON Goto loop E 76 Drive Programming oo OA Command Description Arguments It sets the acceleration time of the inverter This command is a shortcut of the command Units 10 ms Accel lt value gt Note Parameters P031 for MX2 and RX or A053 on LX must be set to value 3 Drive programming for the command to become effective Value any variable or constant range from 1 to 360000 It sets the deceleration time of the inverter This command is a shortcut of the command Units 10ms Decel value Note Parameters P031 for MX2 and RX or A053 on LX must be set to value 3 Drive programming for the command to become effective Value any variable or constant range from 1 to 360000 Example entry loop _ if x 88 acce dece set fw else fa 00 1 then stop endif goto loop end Go to loop Mest Block 10 This sample program will set the Acceleration to 10 seconds and deceleration to 20 seconds if digital input X 00 is set to ON 11 Drive Programming 7 Drive Programming specific trips and Troubleshooting The table below shows how to handle the specific errors to Drive Programming function Fo
71. rticular function block in the task occurs On Trip goto lt label gt Note The On Trip instruction works as a trigger arming The instruction is executed once if any trip occurs the program jumps immediately to the designated label then the On trip trigger is disarmed Example entry i gt on trip goto count entry loop while x 08 1 inc U 68 Go to count wend Hent Block goto loop count inc U 83 goto loop while 00 1 end Go to loop Hest Block wait 100 J Y count Go to loop Hent Block When the digital input is set to ON value then P100 parameter is incrementing every second If a trip is generated like by external trip input then P103 increments count And then goes to the beginning of the task 39 Drive Programming O A Command Description Arguments Condition A comparison between two variables or constant with the format lt Left hand value gt lt Comparison gt lt Right Hand Value gt Jump to a label when a condition is Left hand value any variable or satisfied constant range 128 to 127 Comparison lt gt lt gt lt gt Right hand value any variable or constant range 128 to 127 Label A name that is used to identify a particular function block in the task entry loop _ if U 68 1 goto condit goto loop condit inc U 681 goto loop end FOOD 1 goto True gt Go to gondit Go to loop Go to loop Ment Block
72. sk Delete Current Tab It deletes the current Task or Subroutine Undo Itreverts the latest change It recovers the most recently undone change EE the program and if there are no errors transfer it to the Transfer from Drive lt transfers the program from the drive to the Program Editor lt starts the program in the drive CX Drive will first compare it with the program currently being edited to make sure that they are the same If they differ the program will not be started It stops the program in the drive This action is done regardless of whether the program in the drive is the same that in the program designer It compiles the program which is currently being designed Compile errors and warnings will be reported as tool tips in the blocks in the flowchart Password lt allows you to set change or remove the program password Hep ia It displays the Drive Programming help 10 Drive Programming 3 3 2 Commands for the Flowchart Editor Commands Image Description Zoomin ON It increases the zoom level Zoomout Itdecreasesthezoomlevel It allows the user to select one or more elements of the program by click and drag with the mouse cursor This mode is active by default Powe O PARA NN sang in any direction while keeping the same scale by click and drag pb Align EN It aligns horizontally the middles of the selected blocks Horizontal Align T It ali
73. t invalidate any other provision f Setoff Buyer shall have no right to set off any amounts against the amount owing in respect of this invoice g Definitions As used herein including means including without limitation and Omron Compa nies or similar words mean Omron Corporation and any direct or indirect subsidiary or affiliate thereof Certain Precautions on Specifications and Use 1 Suitability of Use Omron Companies shall not be responsible for conformity with any standards codes or regulations which apply to the combination of the Product in the Buyers application or use of the Product At Buyer s request Omron will provide applicable third party certification documents identifying ratings and limitations of use which apply to the Product This information by itself is not sufficient for a complete determination of the suitability of the Prod uct in combination with the end product machine system or other application or use Buyer shall be solely responsible for determining appropriateness of the particular Product with respect to Buyers application product or system Buyer shall take application responsibility in all cases but the following is a non exhaustive list of applications for which particular attention must be given i Outdoor use uses involving potential chemical contamination or electrical interference or conditions or uses not described in this document ii Use i
74. te this parameter list only affect MX2 and RX 80 Drive Programming 9 Insertion Point MX2 8 RX The Gain Bias can be applied to any reference 9 1 Freguency before ACC DEC Set Freguency ACCIDEC block Gain A902 0 100096 Bias A903 100 100 Description Insertion Point Insertion Point Frequency before ACC Dec Gain Insertion Point Frequency before ACC DEC Bias 9 2 Frequency after ACC DEC ACC DEC LAD Freq Motor A Control block Gain A904 0 1000 Bias A905 100 100 Description Insertion Point Insertion Point Frequency after ACC Dec Gain Insertion Point Frequency after ACC DEC Bias 9 3 Deviation before PID block PID block Gain EACH A906 Gain A906 0 100096 Bias A907 100 100 Parameter Description A901 Insertion Point 0 Disable 1 Enable A906 Insertion Point Deviation before PID block Gain 0 to 1000 A907 Insertion Point Deviation before PID block Bias 100 to 100 81 Terms and Conditions of Sale OMRON 12 Offer Acceptance These terms and conditions these Terms are deemed part of all quotes agreements purchase orders acknowledgments price lists catalogs manuals brochures and other documents whether electronic or in writing relating to the sale of products or services collectively the Products by Omron Electronics LLC and its subsidiary companies Omron Omron objects t
75. text Convert whole program to text 3 17 Conversion from Text to Flowchart It converts whole program to text There are two option to convert from Text to Flowchart Command Image Description Convert Text to Flowchart na It converts current Flowchart Task Subroutine to text Convert whole program to Flowchart x It converts whole program to text 21 Drive Programming 3 18 Find amp Replace function Function only available in text mode It allows look for an exchange code inside your text program To use Find function press the WA icon or the shortcut keys Ctrl F r1 To use Replace function press the on icon or the shortcut keys Ctrl F Find and Replace window f Find and Replace window q xj And peplace Find Replace Find what Find what Look in all text tabs Replace with Look in all text tabs Find options Find options Match Case Match Case Search Up Search Up 22 Drive Programming 4 Drive Program structure The programming language is a Flowchart Text language The inverter can process five parallel tasks The processing is as following diagram gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt Command Execution gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt
76. tice to change part numbers when published ratings or features are changed or when significant construction changes are made However some specifica tions of the Product may be changed without any notice When in doubt spe cial part numbers may be assigned to fix or establish key specifications for your application Please consult with your Omron s representative at any time to confirm actual specifications of purchased Product Errors and Omissions Information presented by Omron Companies has been checked and is believed to be accurate however no responsibility is assumed for clerical typographical or proofreading errors or omissions OMRON AUTOMATION amp SAFETY OMRON INDUSTRIAL AUTOMATION THE AMERICAS HEADQUARTERS Schaumburg IL USA e 847 843 7900 800 556 6766 www omron247 com OMRON CANADA INC HEAD OFFICE OMRON ARGENTINA SALES OFFICE Toronto ON Canada 416 286 6465 866 986 6766 e www omron247 com Cono Sur e 54 11 4783 5300 OMRON ELECTRONICS DE MEXICO HEAD OFFICE OMRON CHILE SALES OFFICE M xico DF e 52 55 59 01 43 00 001 800 556 6766 mela omron com Santiago e 56 9 9917 3920 OMRON ELECTRONICS DE MEXICO SALES OFFICE OTHER OMRON LATIN AMERICA SALES Apodaca N L e 52 81 11 56 99 20 e 001 800 556 6766 mela omron com 54 11 4783 5300 OMRON ELETR NICA DO BRASIL LTDA HEAD OFFICE Sao Paulo SP Brasil e 55 11 2101 6300 e www omron com br OMRON EUROPE B V Wegalaan 67 69 NL 2132 JD
77. tion Nalue1 Value2 Result Rol bil cds Value 1 any variable or constant 1 jo 1 e Value 2 any variable or constant result value 1 Or value 2 Warning Drive programming does not control overflow underflow The application should take care Example entry u a2 6 U 83 12 loop U 84 Ufe2 or U 83 goto loop end Go to loop Mest Block The initial P104 parameter calculation result is 14 as 6 in binary format is 00000110 and 12 in binary format is 00001100 so the result of the operation is 00001110 that is 14 in decimal format If P102 and P103 are changed by the user then P104 will recalculate accordingly 52 Drive Programming XOr Command Description Arguments XOr exclusive or Value 1 Value2 Result Rises bil sus Value 1 any variable or constant range 128 to 127 Value 2 any variable or constant range 2147483648 to 2147483647 lt result gt value 1 XOr value 2 Warning Drive Programming does not control overflow underflow The application should take care entry u a2 6 U 83 12 loop U 84 U 82 xor U 83 goto loop _ end Go En loop Hest Block The initial P104 parameter calculation result is 10 as 6 in binary format is 00000110 and 12 in binary format is 00001100 so the result of the XOr operation is 00001010 that is 10 in decimal format If P102 and P103 are changed by the user then P104
78. to the design area Note that after copying elements you can also paste them to other contexts for example as images in a Microsoft Office application The available menu commands with Text editor are described below e Find looks for the selected text on the program code e Replace exchange the selected text on the program code e Cut deletes the element and saves it in the clipboard for further pasting e Copy saves the element in the clipboard for further pasting e Paste puts the contents previously copied in the clipboard into the design area Note that after copying text elements you can also paste them to other contexts for example as text in a Microsoft Office application e Go to Subroutine jumps to the selected text subroutine e Go to Label jumps to the selected text label e Undo reverts the latest change e Redo recovers the most recently undone change e Help will show the CX Drive help 14 Drive Programming 3 6 Toolbox window The Toolbox window allows you to add blocks to the Program Designer by drag and drop It displays the blocks supported for a particular drive organized in categories The Toolbox is displayed when Drive Programming is entered You can also show or hide it by clicking on Drive Programming Toolbox in the View menu The Toolbox is displayed by default docked at the rightmost side of CX Drive You can resize it as needed to better display its elements Also you can toggle its docki
79. urrent 2 B020 Free setting electronic thermal current 3 B022 Overload restriction level setting B025 Overload restriction level 2 setting B028 Current level of active freq matching restart setting B126 Brake release current setting B212 Level of electronic thermal setting 2 motor B222 Overload restriction operation mode 2 motor C030 Digital current monitor reference value C039 Low load detection level C041 Overload level setting C111 Overload seiting 2 C241 Overload level setting 2 motor Note this parameter list affect MX2 RX and LX 19 Drive Programming 8 3 Parameters list affected by PID enabled disabled A011 A012 A020 A021 A022 A023 A024 A025 A026 A027 A028 A029 A030 A031 A032 A033 A034 A035 A101 A102 A145 A220 Pot O L input active range start frequency Pot O L input active range end frequency Multi speed O setting Multi speed 1 setting Multi speed 2 setting Multi speed 3 setting Multi speed 4 setting Multi speed 5 setting Multi speed 6 setting Multi speed 7 setting Multi speed 8 setting Multi speed 9 setting Multi speed 10 setting Multi speed 11 setting Multi speed 12 setting Multi speed 13 setting Multi speed 14 setting Multi speed 15 setting Ol input active Range start frequency Ol input active Range end frequency ADD frequency Multi speed 0 setting 2 motor F001 Output frequency setting These parameters are affected by A071 A075 No
80. will recalculate accordingly 53 Drive Programming Command Descripion Arguments Not negation e Result any variable except variables with bit data size Note 1 Value 1 Result Value any variable or constant except variables with bit data size Note 1 range 2147483648 to 2147483647 result Not lt value gt Note Unexpected result will be obtained with instructions like UB 1 Not UB 0 Please use XOr command to negate variables with bit data size in Drive Programming as shown on the next examples Example 1 UB 1 UB 0 Xor 1 Example 2 UB 2 X 00 Xor 1 Warning Drive Programming does not control overflow underflow The application should take care Example entry U 83 12 loop _ U 84 not U 83 goto loop end Go to loop Hert Block The initial P104 parameter calculation result is 65523 as 12 in binary format is 0000000000001100 so the result of the not operation is 1111111111110011 that is 65523 in decimal format If P103 is changed by the user then P104 will recalculate accordingly 54 Drive Programming Command Description Arguments m Increments a value by 1 Value any variable Inc Inc lt value gt Warning Drive Programming does not control overflow underflow The application should take care Example entry loop _ inc U 82 wait 100 goto loop end 4 Hest Black The P102 parameter is incremented by 1
81. y variable or constant range 128 to 127 Comparison gt lt gt lt gt Right hand value any variable or constant range 128 to 127 Instruction set One or more instructions until Wend instruction It can contain nested instructions up to 8 levels While U 00 Ufo entry loop_ while x inc U 1 wait 166 wend goto loop end Go to loop The code will increment P101 parameter every second while the digital input X 00 is closed while wend loop If it is open P101 is not increased GoTo label loop loop the while wend portion is not executed Digital input has to be configured in the multifunction input 44 Drive Programming Command Description Arguments Condition A comparison between two variables or constants with the format Left hand value Comparison Right Hand Value Left hand value any variable or constant Executes instruction set until a range 128 to 127 condition is met Comparison lt gt lt gt lt gt Right hand value any variable or constant range 128 to 127 e Instruction set One or more instructions until Loop instruction It can contain nested instructions up to 8 levels Ure Up Up Until condition instruction set Loop Example entry again until x 1 wait 100 loop inc U 1 goto again end 4 Go to again Hert Black This code will increment while the

Download Pdf Manuals

image

Related Search

Related Contents

Samsung RS7577THCWW    Milwaukee 4270-20 Drill User Manual  Table des matières  PitchPad Field User Guide  Heizgerät GP120  Vidéo-Bahut avec France 3 Aquitaine  Manual de uso y mantenimiento  Incipio SA-462  GE 169205 Owner's Manual  

Copyright © All rights reserved.
Failed to retrieve file