Home
Automation Systems - Software
Contents
1. These variables can be used as bit variable for the user UBw Description Range of Values Data Size Attribute Internal user contact word access 0 to 255 p peg RAN The bit variables reflected as single word TC 0 TC 7 Description Range of Values Data Size Attribute Timer counters 0 to 7 31 Unsigned Unit 10ms Oto 2 1 2 word dd The timer counters TC 0 to TC 7 operate as 31 bit free running timer counters They start with the user program 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 Description Range of Values Unit Attribute Timer contact output 0 7 bit 0 Off Unsigned R access 1 On 1 word The data in timer contact output variables TD 0 to TD 7 is changed only when these variables are specified in the timer start ins
2. lt result gt 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 Go to loop jp Next Block 4 aa The initial P104 parameter calculation result is 249 as 6 in binary format is 00000110 so the result of the not operation is 11111001 that is 249 in decimal format If P103 is changed by the user then P104 will recalculate accordingly Drive Programming User s Manual v0 90 110217 doc 46 Issue 0 90 Draft Drive Programming Inc Command Description Arguments Increments a value by 1 Value any variable Inc Format Inc lt value gt Warning Drive Programming does not control overflow underflow The application should take care Example 0 E m Inc U 02 m Go to loop je Next Blo 4 aa The P102 parameter is incremented by 1 every second Drive Programming User s Manual v0_90 110217 doc 47 Issue 0 90 Draft Drive Programming Dec Command Description Arguments Decrements a value by 1 Value any variable Dec Format Dec lt value gt Warning Drive Programming does not control overflow underflo
3. 3 After dragging a block edit its properties by clicking on it and edit the arguments in the Properties window 4 Connect the blocks accordingly 5 Edit the drive program variables in the Block Parameters window 6 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 with 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 Drive Programming User s Manual v0 90 110217 doc 16 Issue 0 90 Draft Drive Programming 4 Drive Program structure The programming language is a flowchart 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
4. 4 UB 2 X 02 5 Uhon 0 UB 6 00 UB 2 Next Block Botoloop 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 terminal Drive Programming User s Manual v0 90 110217 doc 55 Issue 0 90 Draft Drive Programming Var UBw Command Description Arguments co Assigns the value of the internal user tact as word all together to a word gor e Variable any variable variable var UBw Format lt variable gt UBw Note UBw 1 gt bitO UBw 2 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 128 gt bit 7 Example 2 UB 0 X 00 3 UB 1 X 01 4 UB 2 X02 5 Ubon 0 UB 6 00 UB 2 Next Block Botoloop 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 Drive Programming User s Manual v0 90 110217 doc 56 Issue 0 90 Draft Drive Programming UB i value Co
5. Cut deletes the element and saves it in the clipboard for further pasting Copy saves the element in the clipboard for further pasting Paste put the contents previously copied in the clipboard into 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 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 docking by right clicking near the window s edges AA s Program Control Commands Entry End Call Sub EndSub A r aw Ww GoTo OnTrip If Ifs Select E 4 e me eae CaseElse EndSelect For While m fer Until WaitTime WaitCond Arithmetic Commands bad Input Output Control Commands Timer Control Commands Parameter Control Commands Inverter Control Commands 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
6. 1 On Function Description Usage Comment FW Forward R W C001 C007 00 RV Reverse R W C001 C007 01 CF1 CF4 Multi speed 1 4 R W C001 C007 02 05 JG Jogging R W C001 C007 06 DB External Brake R W C001 C007 07 SET Second control R W C001 C007 08 2CH 2 acceleration deceleration time R W C001 C007 09 FRS Free run R W C001 C007 11 EXT External trip RAW C001 C007 12 USP Unattended start protection RAW C001 C007 13 CS Change from commercial power R W C001 C007 14 SFT Software lock RAW C001 C007 15 AT Change of analog input R W C001 C007 16 SET3 3 control R W C001 C007 17 RS System reset R W C001 C007 18 STA Start of 3 wires RAW C001 C007 20 STP Stop of 3 wires R W C001 C007 21 F R Forward Reverse of 3 wires RAW C001 C007 22 PID Switch PID R W C001 C007 23 PIDC Reset of PID integration R W C001 C007 24 CAS Control gain switching R W C001 C007 26 UP Increasing speed from remote RAW C001 C007 27 DWN Decreasing speed from remote RAW C001 C007 28 UDC Clear data from remote operation R W C001 C007 29 OPE Change to operator R W C001 C007 31 SF1 SF7 Multi speed bit 1 7 R W C001 C007 32 38 OLR Overload protection switch R W C001 C007 39 TL Torque Limit Enable R W C001 C007 40 TRQ1 2 Torque Limit Selection 1 2 R W C001 C007 41 42 PPI P PI switching R W C001 C007 43 BOK Brake Confirmation R W C001 C007 44 ORT Orientation R W C001 C007 45
7. 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 OMRON ELECTRONICS LLC 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 Cono Sur 54 11 4783 5300 www omron247 com OMRON ELETR NICA DO BRASIL LTDA HEAD OFFICE OMRON CHILE SALES OFFICE Sao Paulo SP Brasil e 55 11 2101 6300 e www omron com br Santiago e 56 9 9917 3920 OMRON ELECTRONICS MEXICO SA DE CV HEAD OFFICE OTHER OMRON LATIN AMERICA SALES Apodaca N L e 52 811 156 99 10 001 800 556 6766 mela omron com 54 11 4783 5300 OMRON EUROPE B V Wegalaan 67 69 NL 2132 JD Hoofddorp The Netherlands Tel 31 0 23 568 13 00 Fax 31 0 23 568 13 88 www industrial omron eu Cat No 1170E EN 00 02 11 Note Specifications are subject to change O 2010 Omron Electronics LLC
8. 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 gt gt Hn Elapsed time 2 ms lt lt lt lt lt lt Process A Process B Process C Process D Process E Process Process A Process B Process D Process Process E Command Execution Process A Process Process B Process D Process A i Process C Process E 30 XS 32 ms 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 T Tako With the right mouse click we can Delete Current Task or Rename Current Task Tj Tako T Tasko02 Delete Current Task Rename Current Task Every task must begin with Entry and must finish with the End Control Commands DA x amp qQi 9 ho Ti Task 01 Drive Programming User s Manual v0 90 110217 doc 17 Issue 0 90 Draft 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 and a new subroutine will appear Similarly to Tasks you can delete or rename a subroutine Every subroutine must begin with the Sub block and end with the EndSub Cont
9. 0 F001 kd LLJ i Next Block 3 aa Go to loop The value of the F001 parameter output frequency setting is monitored on the d025 parameter user parameter monitor Drive Programming User s Manual v0_90 110217 doc 63 Issue 0 90 Draft Drive Programming EepWrt Command Description Arguments a The command allows write into EEPROM a for the next ChgParam inmediately u Eenwit following if two ChgParam following P EepWrt only for the first will be applied Format EepWrt Note Limitation of EepWrt If this command is executed in more than one task ChgParam is executed in the sequence it is detected but for the second invocation of the command a waiting time of typically 10 ms will occur before each ChgParam 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 10 ms for task 2 and 20 ms for task 3 are two waited But when Eepwrt is not executed ChgParam don t need the waiting time Example only F002 is stored in EEPROM EEPROM rite loop hd m 2 F002 U 02 kd LLLI 3 F003 U 03 kd qu i Next Block 5 aa 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
10. 1500 timer off TD k Drive Programming User s Manual v0 90 110217 doc 61 Issue 0 90 Draft Drive Programming 6 5 Parameter Control Commands ChgParam Command Description Arguments GA Changes the parameter s inverter setting specified by display code to a value ChgParam Any inverter parameter can be changed Parameter parameter code Fxxx Axxx bXXX Cxxx Hxxx Pxxx Value any variable or constant Format 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 2 F002 Uj02 kd qu 1loop hd m 3 T Wait 100 Go to loop t Next Block The F002 acceleration time setting 1 value is increased by 1 every second Drive Programming User s Manual v0 90 110217 doc 62 Issue 0 90 Draft Drive Programming MonParam Command Description Arguments Parameter parameter code H4 Assigns the inverter s parameter content Fxxx Axxx bxxx Cxxx dxxx Hxxx MonP sem specified by display code to a variable Pxxx Variable any variable Format MonParam parameter variable Example Ubon
11. Goto LOOP 2 True gt Golto STOO1 H ACCEL 3000 11 T002 y T FW 0 ie hd DECEL 3000 m In r ES jen True gt Go to STOO2 To test this example initialize the user variables with the following value U 00 1000 U 01 2000 U 02 3000 Y 00 Y 01 are sequentially turned on every 10Hz step of the output frequency Drive Programming User s Manual v0 90 110217 doc 51 Issue 0 90 Draft Drive Programming Yw value Command Description Arguments Instruction to access digital outputs by word Value any variable or constant Ywevalue Each bit reflects one of the outputs Format Yw lt value gt Note The inputs have to be assigned to digital multifunction input by the multifunction 44 to 49 Yw 1 2 bit 0 Yw 2 gt bit 1 Yw 4 gt bit 2 Yw 8 gt bit 3 only if expanded I O board used Yw 16 gt bit 4 only if expanded l O board used Yw 32 gt bit 5 only if expanded I O board used and enough outputs Example 0 e 1 loop kd LLI 2 U p0 U00 4 ha LLI 3 T U 00 U 00 And 15 La Go to loop aa Next Block CC 5 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 Drive Programming User s Manua
12. LAC LAD Cancel R W C001 C007 46 PCLR Clear Position Deviation R W C001 C007 47 STAT Pulse train position command input permission RAW C001 C007 48 ADD Add Setting Frequency R W C001 C007 50 F TM Forced Terminal Block R W C001 C007 51 ATR Torque reference input permission R W C001 C007 52 KHC Integrated power clear RAW C001 C007 53 SON Servo ON R W C001 C007 54 FOC Preliminary excitation R W C001 C007 55 X 00 X 07 Drive Programming MI1 MI8 R W C001 C007 56 63 AHD Analog command on hold RAW C001 C007 65 CP1 3 Position command selection 1 3 R W C001 C007 66 68 ORL Origin return limit signal RAW C001 C007 69 ORG Origin return start signal R W C001 C007 70 FOT Forward driving stop R W C001 C007 71 ROT Reverse driving stop R W C001 C002 72 SPD Speed Position switching RAW C001 C007 73 Drive Programming User s Manual v0 90 110217 doc 25 Issue 0 90 Draft Drive Programming Function Description Usage Comment PCNT Pulse counter R W C001 C007 74 PCC Pulse counter clear R W C001 C007 75 RS485 Inverter communication start terminal R W C001 C007 81 HLD HOLD Acceleration deceleration stopping R W C001 C007 83 ROK Operation OK signal RAW C001 C007 84 DISP Display limitation terminal R W C001 C007 86 5 6 Digital Output Functions These variables correspond to the settings available for the digital multifunction o
13. Size Attribute Output terminal word 01065535 Unsigned ay 1 word This variable can be used to change the digital output terminals in units of word Each output is one bit XA 0 XA 2 Description Range of Values Data Size Attribute General purpose analog input AA O terminal Unsigned XA 1 ae analog input 0 to 10000 1 word R O XA 2 General purpose analog input 001 C2 terminal only for RX These variables can be used to monitor the analog input to the O and Ol and O2 terminals Terminals 0 L O1 L O2 L Associated parameters A011 to A015 A101 to A105 A111 to A114 YA 0 YA 2 Description Range of Values Data Size Attribute General purpose analog output TAI EO terminal Unsigned YA 1 P rU analog output 0 to 10000 1 word RW O YA 2 General purpose analog output UTR AMI terminal only for RX 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 Drive Programming User s Manual v0 90 110217 doc 23 Issue 0 90 Draft Drive Programming UB 00 UB 07 Description Range of Values Data Size Attribute Internal user contact bit access E gt bit R W
14. 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 duplicate it in any way without the written permission of Omron Notwithstanding any charges to Buyer
15. 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 LIM ii x Ej Workspace CX Drive Drivel Drive Name File Edit Yiew Drive Tools Window Hel MX2 Project nA sag ee M Drive Type finverter ie oO ose le ex v MX2 A2 B004 PRG43234309 2 xl LJ MX2 Project Offline Connection Type Parameter E ditor metus o mo see Graphs mg Status M Comments Monitor Type your own comment in here Settings Drive Programming zi Parameters 3 Settings Cancel Help 2 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 El workspace CX Drive Drivel MX2 Project MX2 A2 B004 PRG43234309 Program Editor ol xi jm File Edit view Drive Tools Window Help 191 xl n sug 98 gt cam SR 2 90 ej es uxas 08 e ax of oclla
16. el e x eattr e arras mao YE six B Y MX2 Project Offline 104 x Q Q gt le a bar a alea B User Parameters B Parameter E ditor TO mans P101 E P102 P103 P104 P105 P106 P107 P108 P109 P110 P111 P112 P113 P114 P115 P116 Pi7 P118 p119 El B Graphs n3 Status Monitor Egra Ei Settings Drive Programming 4000 dad Program Control Commands Co c5 me Entry End Call Arithmetic Commands v Input Output Control Commands Timer Control Commands Parameter Control Commands Inverter Control Commands a 10 02 2011 09 07 Info CX Drive For Help press F1 IMX2 A2 B004 PRG43234309 num E Drive Programming User s Manual v0 90 110217 doc 8 Issue 0 90 Draft Drive Programming 3 1 Saving and loading programs A drive program is automatically saved when the CX Drive drive document which contains it is saved When a CX Drive document is opened the drive program which 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 information of the drive 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 wit
17. s Value1 Value2 Result Value 1 any variable or constant range 0 0 0 128 to 127 And 0 1 0 Value 2 any variable or constant 1 0 0 range 2147483648 to 2147483647 1 1 1 Format result value 1 And Value 2 Warning Drive Programming does not control overflow underflow The application should take care Example i gt Li ha LJ Go to loop 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 Drive Programming User s Manual v0 90 110217 doc 43 Issue 0 90 Draft Drive Programming Or Command Description Arguments Or logical addition Value 1 Value 2 Result Result any variable 1 0 0 0 e Value 1 any variable or constant 0 1 1 range 128 to 127 Dr 1 0 1 Value 2 any variable or constant 1 1 1 range 2147483648 to 2147483647 Format result value 1 Or value 2 Warning Drive programming does not control overflow underflow The application should take care Example ha LL Go to loop 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 i
18. 0 UB 07 5i e ede pe t eee ide ie aren Son ae hd 24 UBW 24 TG O 2TC 7 is ETT 24 IDO TD Misco n 24 TDI a il e Dt 24 Drive Programming User s Manual v0 90 110217 doc 2 Issue 0 90 Draft Drive Programming 5 5 Digitaliinput FUNCHONS tt 25 5 6 Digital Output FUNCION NEP a ia 26 6 Drive Programming Instructions 6 1 Gontrol Commands oe A a a a a a 28 O EE A E O 28 Eng A ov nA ME EEEE E EE ET DAR TE 28 C l a a aa ee epe a a a a E eau doce dece 28 SUD A EA A E AE E A ensuoseade 28 End Sub ti E 29 COM a Cc 30 CON TMP isos ween cata ee ce reves teach O EA E E aiecauaasveceent cance dia E A T 31 Da cd Ds or dss pe EA as ee Rite 32 Its FElse End lios is TED AE toe ald itt oa Ae os ig Oe 33 Select Case End Sel ct iii A itive Ges CR es 34 ime rM EE 35 While AWerid 2 cest eoe A uc 36 Until LOOP ietie etaa eae eae aaen iaae aea chad ob a a eth al eucgived tena dete 37 Wi EE 38 6 2 Arithmetic and Logic Commands sssssssssssssesseseeeeeneee nnne nnnen ns 39 Substitution ieee A AA At tare 39 A RR 39 SULDIFACION AA A e E EAEE e do o E 40 MUTI Cath ci rear 40 DIVISION ETSI NELLE 41 Moda a a A nt ee eed el e Maite He sos 41 A A MA 42 uam NO 43 our 44 MOK mE 45 M 46 L
19. 01 300 U 01 500 LL LJ an LLI 10 End Select 11 T Next Block 12 The P101 parameter is set to 100 200 300 or 500 depending on the value of the P100 parameter 1 2 8 or any other respectively Goto loop Drive Programming User s Manual v0 90 110217 doc 34 Issue 0 90 Draft Drive Programming For Next Command Description Arguments For Executes lt instruction set gt repeatedly until lt variable gt reaches lt end value gt that is added lt incremental value gt each cycle Variable any variable Start value Initial value it is the value assigned to the variable in the first loop End value Value than processing exits the loop Incremental value The variable will be incremented by this value in each loop Instruction set One or more instructions until Next instruction It can contain nested instructions up to 8 level of nesting Format For variable start value end value incremental value instruction set Next For 11500 100 to 10100 step 1 True Example This example make the variable U 00 P 100 count from 1 to 8 each second Drive Programming User s Manual v0 90 110217 doc 35 Issue 0 90 Draft Drive Programming While Wend Command Description Arguments Condition A comparison between two variables or constants with the format lt Left hand
20. 1 C022 C026 52 MJA Serious failure signal R C021 C022 C026 53 WCO Window comparator O R C021 C022 C026 54 WCOI Window comparator Ol R C021 C022 C026 55 WCO2 Window comparator O2 R C021 C022 C026 56 FREF Command frequency selected mode R C021 C022 C026 58 REF Command operation mode R C021 C022 C026 59 SETM Setting motor R C021 C022 C026 60 EDM STO operation monitor signal R C021 C022 C026 62 Drive Programming User s Manual v0 90 110217 doc 27 Issue 0 90 Draft Drive Programming 6 Drive Programming Instructions 6 1 Control Commands Entry Command Description Arguments e v It indicates the beginning of the task Entry Format Note It is compulsory to have Entry at the begging of each task End Command Description Arguments ED It indicates the end of the task End Format Note It is compulsory to have End at the end of each task Call Command Description Arguments itumps toa subroutine Subroutine Subroutines are identified Call Jump by a name or alias defined by the user Format call lt subroutine gt Note After the execution of the subroutine ends the next instruction line after the call is executed Sub Command Description Arguments e It indicates the beginning of the subroutine Sub Format Note It is compulsory to have Sub at the begin
21. 11 Issue 0 90 Draft Drive Programming For programs compiled with errors a red icon with an exclamation mark identifies the erroneous blocks Placing the mouse on the error icon displays the compile error which can also be seen in the Error List All elements in this Flow chart must be fully connected 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 1 U D0 x 00 Select All Right clicking on an element selects it and shows a popup menu with more options Bring To Front Send To Back Align To Grid Pin Lock Cut Ctrl x Copy Ctrl C j Paste Ctri Delete i Set Label Set Subroutine Drive Programming User s Manual v0 90 110217 doc 12 Issue 0 90 Draft Drive Programming The available menu commands are described below e Bring To Front places the element graphically in front of other elements 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
22. 17 doc 33 Issue 0 90 Draft Drive Programming Select Case End Select Command Description Arguments This instruction allows multiple program sections to be executed depending on a Select variable value It For a particular CASE section it Executes instruction set n gt lt gt when lt conditional variable gt matches lt conditional value n gt Case If no lt conditional variable gt don t match any of the CASE section the lt instruction e set if no other Case Else is executed This instruction is convenient when CaseElse multiple choices have to be done from parameter value It makes many if then Q structures simpler This instruction is recommended to organize our program by Encelad using subroutine calls as instruction set Conditional variable the select variable to the instruction Conditional value x the value of the variable Instruction set x One or more instructions until next case or end select It can contain nested instructions up to 8 level of nesting Format Select 100 Select conditional variable Case conditional value 1 gt instruction set 1 Case conditional value 2 gt instruction set 2 Case UIO Case Else Case Else instruction set if no other End select End Select Example 0 e LLI 1loop ha Select U 00 LL 2 4 hd 6 h 3 h LLI LLI qu 3 h 5 hd 7 hd 3 hd U 01 100 U 01 200 U
23. 2 R C021 C022 C026 26 ODc Analog O break detection R C021 C022 C026 27 OIDc Analog Ol break detection R C021 C022 C026 28 FBV PID feedback comparison R C021 C022 C026 31 NDc Communication break detection R C021 C022 C026 32 LOG1 Result of logic operation 1 R C021 C022 C026 33 LOG 2 Result of logic operation 2 R C021 C022 C026 34 LOG 3 Result of logic operation 3 R C021 C022 C026 35 LOG 4 Result of logic operation 4 R C021 C022 C026 36 LOG 5 Result of logic operation 5 R C021 C022 C026 37 LOG 6 Result of logic operation 6 R C021 C022 C026 38 WAC Condenser life span preannounce R C021 C022 C026 39 WAF Fan life span preannounce R C021 C022 C026 40 FR Start contact signal R C021 C022 C026 41 OHF Cooling fan over heat preannounce R C021 C022 C026 42 LOC Low electricity signal R C021 C022 C026 43 Y 00 Drive Programming MO1 R C021 C022 C026 44 Y 01 Drive Programming MO2 R C021 C022 C026 45 Y 02 Drive Programming MO3 R C021 C022 C026 46 Y 03 Drive Programming MO4 R C021 C022 C026 47 Y 04 Drive Programming MO5 R C021 C022 C026 48 Y 05 Drive Programming MO6 R C021 C022 C026 49 IRDY Operation setup complete R C021 C022 C026 50 FWR Forward running signal R C021 C022 C026 51 Drive Programming User s Manual v0 90 110217 doc 26 Issue 0 90 Draft Drive Programming RVR Reverse running signal R C02
24. Cat No 1170E EN 00 DRAFT V0 90 CX Drive Drive Programming Drive Programming Table of Contents AAA O EE EEEE E 5 1 1 Handling of this Instruction Manual essere nennen nennen nnne 5 1 2 Safety eis D M e 5 1 3 Preparation and System configuration ssssssssssssseseeeeen enne nenne 6 AA ansie 7 3 Drive Programming Editor eese eere eee eene cnn cnn 8 3 1 Saving and loading programs nde adici die dedere tpe ae dogs 9 9 2 Editor A eed hee eot ud dh dettes Wile nee diated renege 9 A ge 1E 10 3 4 Shortcut Keys iiti aer D PEU ede eB dU LIE 11 3 5 Desigrier Area iine id dio 11 3 6 Toolbox WIDGOW 3 2 31 I epe Re egre tome tn 13 3 7 Block Parameters WINGOW ccccecceceeeeeeseeeeseeeceneeeeaeeecaaeececaeeeseeeeeeeeeseeeeeeaeeeseeeeeeeeeeeeeeeeeeess 14 3 8 Properties WIDdOW 5 ret Gere Or PR Op e D ere ie Im RE EEEE aA Taena 15 3 9 Output WIN IOWA dd ddan tees ee araa 16 3 10 Creating program 1 iren ai 16 A Drive Program structure oooooncccnnnincnancnanaca nana c rra anna once 17 O cM CE HREME C hash Ae este a ashe acre Mien Sods ete ae ate 17 4 2 SUBrOUtINGS ci E 18 5 Drive Programming user Variables cccceescseeesseeseeeseeeeeeeeeeeeseeaseeeesenssseeseeeseeeseeseeesseeeeseneseenens 19 xd EI AAA RI 19 U 00 to U 31
25. E 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 are not to be construed as an amendment or addition to the above warranty See http www omron247 com or
26. EES 47 BT EccL Se Sa Sade 48 6 3 Input Output Control Commands esses nn nn cnn nn n ran n rra narran rra 49 Vat A O ON 49 EI Y 50 MORES TID 51 BARES EI Cx 52 RS A TO 53 NAVE TUN A mer uc 54 Var UB Dia a e e ede e Sad sid ey cedo 55 AY rea AN AE eo E caa ier cue ee bcne E 56 UBI values tuse amete enema ce ete tados 57 UBW VallO curia A licen idt ede DI INS la 58 6 4 Timer Gontrol Gomimmards ies obeelict eei lotto iaa dir tia 59 py EE 59 BREST 60 Mer OTE E ro UE ME esie nte erede p RAUS UR LEE a ree rude Tad Ral oth ue D Bh 6 61 6 5 Parameter Control Commands cocccnnncococccnncccconnnonnnnnonnnnnnnnennnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnns 62 er dz ato 62 Moa e 63 TO 64 A A SPRICIEM 65 6 6 Inverter Gontrol Gormimarids 5 eere it a DU ederet eet UE 66 adm een 66 RURERY ois deer nter ple e veo Meere eee ate eod va eiae Mare ere d E suede Cre dette e rhode 66 SLOP i edo id eel a edd eene re dE ea dts 66 Set Frege cie pter Ue eene eet repe pc deae e dp Ye Eve e re Pu e eee eue eos 66 jugo XE 68 lor M MU TIC LEUTE es Gre cle theese bls A odii 69 BD CTI 69 7 Drive Programming specific trips and Troubleshooting eren 70 Drive Programming User s Manual v0 90 110217 doc 3 Issue 0 90 Draft Drive Programming 8 Drive Programming Parameters Ge
27. ID enabled disabled Parameter Description A011 Pot O L input active range start frequency A012 Pot O L input active range end frequency A020 Multi speed 0 setting A021 Multi speed 1 setting A022 Multi speed 2 setting A023 Multi speed 3 setting A024 Multi speed 4 setting A025 Multi speed 5 setting A026 Multi speed 6 setting A027 Multi speed 7 setting A028 Multi speed 8 setting A029 Multi speed 9 setting A030 Multi speed 10 setting A031 Multi speed 11 setting A032 Multi speed 12 setting A033 Multi speed 13 setting A034 Multi speed 14 setting A035 Multi speed 15 setting A101 Ol input active Range start frequency A102 Ol input active Range end frequency A145 ADD frequency A220 Multi speed 0 setting 2 motor F001 Output frequency setting These parameters are affected by A071 A075 Drive Programming User s Manual v0 90 110217 doc 72 Issue 0 90 Draft Terms and Conditions of Sale OMRON 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 to any terms or conditions proposed in Buyers purchase order or othe
28. P103 parameters Drive Programming User s Manual v0 90 110217 doc 64 Issue 0 90 Draft Drive Programming RtcSet Command Description Arguments This statement sets 6 bytes data of time to a variable The 6 bytes data of time means year month day a day of week hour and minute ce 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 RtcSet 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 Format RtcSet on off user variable Note RtcSet on U lt k gt It will set U lt k gt with 2 bytes for year 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 lt k gt 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 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 curre
29. 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 Output Functions RUN FA1 FA2 OL OD AL FA3 OTQ UV TRQ RNT ONT THM BRK BER ZS DSE POK FA4 FA5 OL2 ODc OlDc FBV NDc LOG1 LOG2 LOG3 WAC WAF FR OHF LOC IRDY FWR RVR MJA WCO WCOI FREF REF SETM EDM General purpose input RX X 00 to X 07 8 contacts contact MX X 00 to X 07 8 contacts Extended lO option input RX contact MX X 08 to X 09 2 contacts General purpose output RX Y 00 to Y 05 6 contacts contact MX2 Y 00 to Y 02 3 contacts Extended output contact MX Y 03 to Y 05 3 contacts Internal user contact UB 00 to UB 7 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 User Monitor UMon 00 to UMon 02 3 user monitors User trip Makes the inverter trip 10 trips Drive Programming User s Manual v0 90 110217 doc 7 Issue 0 90 Draft 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
30. alue 1 lt value 2 gt Warning Drive Programming does not control overflow underflow The application should take care Example The P105 parameter calculation result is 2 Mod Command Description Arguments Result Any variable Remainder of division e D variable or constant range Mod Value 2 any variable or constant range 2147483648 to 2147483647 Format result value 1 Mod value 2 Warning Drive Programming does not control overflow underflow The application should take care Example The P106 parameter calculation result is 1 Drive Programming User s Manual v0 90 110217 doc 41 Issue 0 90 Draft Drive Programming Abs Command Description Arguments x Result any variable Absolute value Value any variable or constant Abs range 2147483648 to 2147483647 Format lt result gt Abs lt value gt Warning Drive Programming does not control overflow underflow The application should take care Example If the UL 07 variable is set to a positive value in the program variables list then P107 UL 07 If the UL 07 is set to a negative value then P107 UL 07 Drive Programming User s Manual v0 90 110217 doc 42 Issue 0 90 Draft Drive Programming And Command Description Arguments And logical product Result any variable
31. 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 15 16 ITY OR FITNESS FOR A PARTICULAR PURPOSE OF THE PRODUCTS BUYER ACKNOWLEDGES THAT IT ALONE HAS DETERMINED THAT TH
32. ariable corresponds to the data monitored by the rotation direction monitor d003 This variable is read only PID FB Description Range of values Default Unit Data size Attribute Process variable PV d004 PID feedback 0 to 9990000 0 x Eo R monitoring T 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 Description Range of values Default Unit Data size Attribute Scaled output Unsigned d007 frequency monitor 0 103996000 0 01 2 word i The data monitored with this variable corresponds to the data monitored by the scaled output frequency monitor d007 This variable is read only Drive Programming User s Manual v0 90 110217 doc 20 Issue 0 90 Draft Drive Programming Tmon Description Range of values Default Unit Data size Attribute Unsigned d012 Torque monitor 300 to 300 Word R The data monitored with this variable corresponds to the data monitored by the torque monitor d012 This variable is read only Vout Description Range of values Default Unit Data size Attribute Output Voltage g Unsigned d013 monitor 0 to 6000 0 1v dora R The data monitored with this variable corresponds to the data monitored by the output voltage monitor function d013 This variab
33. atus information The information is reflected with the following bit weights NE i i i i i Bi Bit2 Bit Bito to 15 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 it3 it it it Under Over voltage Over current Overload 4 neserme voltage Reset suppression suppression suppression Retry Reverse Trip R n Drive Programming User s Manual v0_90 110217 doc 22 Issue 0 90 Draft Drive Programming 5 4 Terminal Variables Input Output Control Instructions X 00 X 09 Description Range of Values Data Size Attribute Input terminal 0 to 9 C011 C017 a a bit R Variables from X 00 to X 06 reflect the multi functions X 00 MI1 to X 06 MI7 For MX2 variable X 07 corresponds to the EA input pulse input terminal contact digital status Variables from X 08 to X 09 are Extended lO option input contacts when expansion lO board is attached Xw Description Range of Values Data Size Attribute Unsigned Input terminal word 0 to 65535 vota R Instruction to access contact inputs by word Each bit reflects one of the inputs Y 00 Y 05 Description Range of Values Data Size Attribute 0 Off Output terminal O to 5 1 On bit R W Variables from Y 00 to Y 05 write to the multifunction output contacts C021 C026 Y 03 to Y 05 are extended IO option output contacts Yw Description Range of Values Data
34. during a time period 0 y A LLI loop Y Wait 100 LLI i Next Block 4 ka The P100 parameter is increased every second Example Wait condition wait for condition 1 loop Wait X 00 1 LJ a Next Block 4 aa Go to loop Go to loop 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 Drive Programming User s Manual v0 90 110217 doc 38 Issue 0 90 Draft Drive Programming 6 2 Arithmetic and Logic Commands Substitution Command Description Arguments Result any variable Assigns lt value gt to lt result gt Value any variable or constant range 2147483648 to 2147483647 Format lt result gt lt value gt Warning Drive programming does not control overflow underflow The application should take care Example The P100 and P101 parameters are set to 200 Addition Command Description Arguments Result any variable Value 1 any variable or constant range Adds value 1 and value 2 gt 128 to 127 Value 2 any variable or constant range 2147483648 to 2147483647 Format 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 The P102 parameter calculation result is 400 Dri
35. e 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 break down situations b Such carrier shall act as the agent of Buyer
36. e to the EO terminal FM terminal for RX Assignable to the AM terminal YA 1 YA 2 Assignable to the AMI terminal Only RX Reserved Words Instructions 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 2 Arithmetic operation Remainder Mod Substitution Absolute value Abs Logic operation Or And Xor and Not 3 Input Output control General purpose input output bit input word input bit output and word output Reading of inverter input terminal 4 5 Timer control Delay operation Timer control Parameter control Rewriting of parameters by reselecting code on the operator s display Number of variables User defined variable U 00 to U 31 32 variables Internal user variable UL 00 to UL 07 8 variables Set frequency SET Freq Acceleration time ACCEL Deceleration time DECEL Monitoring variable FM lout Dir PID FB F CNV Tmon Vout Power RUN Time ON Time PlsCnt Only RX POS STATUS DCV ERR CNT ERR 1 ERR 2 ERR 3 ERR 4 ERR 5 and ERR 6 Bit commands FW RV CF1 CF2 CF3 CF4 JG DB SET TCH FRS EXT USP CS SFT AT RS STA STP F R PID PIDC UP DWN
37. et to value 3 Drive Programming for the command has effect Decel Command Description Arguments It sets the deceleration time of the daa inverter i i This command is a shortcut of the rro lia Decel command Units 10ms Format Decel value Note The parameter P031 must be set to 3 Drive Programming for the command has effect Example Go to loop LO Next Block 10 aa This sample program will set the Acceleration to 10 seconds and deceleration to 20 seconds if digital input X 00 is set to ON Drive Programming User s Manual v0_90 110217 doc 69 Issue 0 90 Draft Drive Programming 7 Drive Programming specific trips and Troubleshooting The table below shows how to handle the specific errors to Drive Programming function For details on other errors in the inverter refer to the inverter instruction manual Factor Error causing gt a code inverter trip Possible cause Checking method Corrective action The PRG terminal was By uploading the program s Recreate the program E43 Invalid instruction turned on without a you can check f really 2 and then download it to program downloaded to program is in the inverter or ihe inverter the inverter not Subroutines are nested in Fo Ne loop staterients Read the program to check Correct the program so E44 Nesting count error are nested in more than the umber of nestingilayers that
38. f window comparators O B062 Hysteresis width of windows comparators O B063 Maximum limit level of window comparators Ol B064 Minimum limit level of window comparators Ol B065 Hysteresis width of window comparator Ol B079 Watt hour display gain setting B082 Start 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 8 2 Parameters ist affected by Rated Current Parameter Description B012 Level of electronic thermal setting B016 Free setting electronic thermal current 1 B018 Free setting electronic thermal current 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 setting 2 C241 Overload level setting 2 motor Drive Programming User s Manual v0 90 110217 doc 71 Issue 0 90 Draft Drive Programming 8 3 Parameters list affected by P
39. fications The table below lists the programming related specifications of the Drive Programming function Item Specification Programming language Flow Chart language c Input device Windows personal computer OS Windows XP SP3 Windows Vista Windows 7 2 2 Max program size 1024steps The internal storage capacity of the inverter is 1024 steps or 6 Kilobytes S 8 Programming support Editing on Windows Display on Windows E S function programming Program syntax check on Windows 238g software Downloading uploading and full clearance of program Execution format Execution by interpreter in an execution cycle of 2ms per instruction possible subroutine call with nesting in up to 8 layers Input output related functions External input Contact Signal 24v open collector input using intelligent input terminals Program run signal input RX Assign to the PRG terminal Always run MX2 Assign to the PRG terminal Always run Multifunction terminals RX Up to 8 terminals X 00 to X 07 MX2 Up to 8 terminals X 00 to X 07 General purpose analog input XA 0 O to 10V O terminal XA 1 4 to 20mA OI terminal XA 2 0 to 10V O2 terminal Only RX External Output General purpose output terminal RX Up to 6 terminals Y 00 to Y 05 MX2 Up to 3 terminals Y 00 to Y 02 General purpose analog output YA 0 Assignabl
40. 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 not invalidate any other provision f Setoff Buyer shall have no right to set off any am
41. g in case a trip in the inverter kevin ak ne E i c OnTrip occurs P i Format On Trip goto lt label gt Note The On Trip instruction works as a trigger arming The instruction is executed once after at any moment a trip occurs the program immediately jumps to the designed label and the On trip trigger is disarmed Example Next Block Go to count 7 count k J Next Block jo to loop Go to loop 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 Drive Programming User s Manual v0 90 110217 doc 31 Issue 0 90 Draft Drive Programming Command Description Arguments RY Jump to a label when a condition is satisfied Condition A comparison between two variables or constant with the format lt Left hand value gt lt Comparison gt lt Right Hand Value gt 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 Label A name that is used to identify a particular function block in the task Format If condition GoTo label Example It U 00 1 GoTo Go to loop Change parameter P100 in order to test the GoTo function with thi
42. g inverter cane or 9 operation operation change the i 5 of Meier Check the setting of setting of software lock lies GE updating is software lock selection selection b031 to 10 b031 to switch to the mode restricted by software lock enabling parameter A locks updating during inverter operation E50 User trip O to 9 These trips are generated to from the user application Check with the drive EON aOR E59 The cause is determined program documentation to prog by the Drive Programming logic recognize the trip conditions to recognize countermeasures Drive Programming User s Manual v0 90 110217 doc 70 Issue 0 90 Draft Drive Programming 8 Drive Programming Parameters General Precautions 8 1 Parameters ist affected by setting order Parameter Description A003 Base frequency setting A004 Maximum frequency setting A203 Base frequency setting 2 motor A204 Maximum frequency setting 2 motor B015 Free setting electronic thermal frequency 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 o
43. h the Program Import Program command in the Drive menu 3 2 Editor The Program Editor is the main window of the Drive Programming function D98 xI amp Q h4 c E a sj amp 3 ur t k Orientation da ri show A9 T Task ot E Drivel The window area consists of a toolbar with common commands and a designer area where the program is displayed as a flowchart Drive Programming User s Manual v0 90 110217 doc 9 Issue 0 90 Draft Drive Programming 3 3 Toolbar The Program Editor window contains the following commands Commands Image Description It allows creating a new task for the program up to the maximum New task T number of tasks allowed Tasks are parts of the program which are executed independently of each other E It allows creating a new subroutine A subroutine is a part of the Mew Subroutine program which is called from a task Delete Current Tab X It deletes the current Task or Subroutine Zoom in ON It increases the zoom level Zoom out Q It decreases the zoom level Zoom Reset It restores the zoom to its initial value It allows the user to select one or more elements of the program Select Mode ls by click and drag with the mouse cursor This mode is active by default Pan Mode M It allows the user to move the extent of the view l in any direction while keeping the same scale by click and drag Undo K7 It reve
44. imer counter The timer starts counting at Value any COS time in 10 x ms K number of timer range 0 to 7 0 and increments until value TimerSet Associated timer contact reflects status 1 finish timing Format 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 it becomes 1 Example 0 e ha U 02 TC 0 True gt Go to LBOO Go to loop This program will set the timer TD 0 to an increasing value each timer execution Therefore because of increasing U 01 it will take longer every cycle to close the loop Timing chart TC k t f Comparison Vd x for matchin LA A f 1 TD k timer set TD k 1000 timer set TD k 1500 timer off TD k Drive Programming User s Manual v0 90 110217 doc 60 Issue 0 90 Draft Drive Programming Timer Off Command Description Arguments Dorr Clears the timer counter up counter to de nuinberot timer zero and starts the timer counter in free range 0 to 7 TimerOff running timer mode 9 Format Timer off TD k Example 1 loop u01 20 L True gt Go to Go to loop Next Block 8 This example uses a fixed timer execution But it is cancelled when digital input X 01 is OFF Timing chart TC k Comparison for matchin TD k timer set TD k 1000 timer set TD k
45. ity 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 DS a Description Range of values Default Unit Data size Attribute Internal user variable to 21 0 Pais R W Internal user variables are the general purpose functions that can be used as unsigned 2 word variables for example to temporarily store arithmetic operation results The initial values can be set via the initial program data 5 2 Setting Variables Set Freq Description Range of values Default Unit Data size Attribute Output frequency 0 to 40000 0 0 01 Unsigned R W setting Hz 1 word When A001 7 Freq ref from Drive Programming it is the frequency set point for the inverter Always it 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 Description Range of values Default Unit Data size Attribute Acceleration time 1 to 360000 Note 1 0 01 Unsigned R W setting sec 2 word This variable can be used to read and write the motor acceleration time in the inverter It is enabled only when the se
46. l v0 90 110217 doc 52 Issue 0 90 Draft 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 func walue Format lt function gt lt value gt Example 8 hd T 3 m Wait RUN 0 t Next Block 1 1 aa A forward and reverse run at 60Hz is repeated continuously Go to loop Drive Programming User s Manual v0 90 110217 doc 53 Issue 0 90 Draft Drive Programming Var func Command Description Arguments A terminal output status is assigned to a Variable any variable Function any function of output variable varzfunc terminal Format lt variable gt lt function gt Example loop U DO Z L Go to loop The value of P100 is set to 1 if the ZS zero speed signal is on otherwise is set to 0 Drive Programming User s Manual v0 90 110217 doc 54 Issue 0 90 Draft Drive Programming Var UB i Command Description Arguments Variable any variable Assigns the value of an internal user the value of the variable will be O or 1 var UBi contact to a variable i Number of the user contact E range 0 to 7 Format lt variable gt UB i Example 0 Entry 2 UB 0 X 00 3 UB 1 X 01
47. lay hide of the contacts of the blocks which are Snow contacIS ea ll the beginning and ending of arrow connections Show It allows you to select a display style of the program Text only Icon Only Icon and Text or Name Icon and Arguments Password 4 It allows you to set change or remove the program password Help It displays the Drive Programming help Drive Programming User s Manual v0 90 110217 doc 10 Issue 0 90 Draft Drive Programming 3 4 Shortcut Keys The following Keyboard shortcuts can be applied to the designer area Ctrl X Cut Ctrl C Copy Ctrl V Paste Ctrl Z Undo Ctrl Y Redo Ctrl A Select All Ctrl L Lock Ctrl P Pin 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 Dx Q QehSoc he Tj Task 01 Task 01 Subroutine 01 ile amp Sl xi a ht Orientation da 11 show 1 9 0 U 00 X 00 hd m This area may have different pages organized in tabs Each tab is either a Task or a Subroutine The designer is created with one default tab which is a Task When a program is compiled without error an icon with a circled green arrow highlights the starting point of each task Drive Programming User s Manual v0_90 110217 doc
48. le is read only Power Description Range of values Default Unit Data size Attribute d014 Power monitor 0 to 9999 5 me ease E The data monitored whit this variable corresponds to the data monitored by the power monitor d014 This variable is read only RUN Time Description Range of values Default Unit Data size Attribute d016 Run Time monitor 0 to 999999 Hour Unsigned R 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 On Time Description Range of values Default Unit Data size Attribute doi oeron time 0 to 999999 25 Hou Hnsigned R monitor 2 word The data monitored with this variable corresponds to the data monitored by the cumulative power on time monitor d017 This variable is read only UMon 0 to Description Range of values Default Unit Data size Attribute Umon 2 d025 User Parameter 31 31 Signed o monitor 0 to 2 2 02 l 0 2 word EUN 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 Drive Programming User s Manual v0 90 110217 doc 21 Issue 0 90 Draft Drive Programming POS Description Range of values Default U
49. lock which is currently selected in the 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 xf Command Arguments Variable to be assigned U DO User parameter Value X 00 general input contact Substitution El The format of this instruction is lt result gt lt value gt The Arguments e Result any variable e Value any variable or constant range 2147483648 to 2147483647 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 the 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 Drive Programming User s Manual v0 90 110217 doc 15 Is
50. mmand Description Arguments i Number of the user contact Assigns a value to an internal user range 0 to 7 UBi walue contact control Value any variable or constant Format UB i value Example 2 UB 0 X 00 3 UB 1 X 01 4 UB 2 X 02 5 Uhon 0 UB 6 00 UB 2 Next Block Gotoloop 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 Drive Programming User s Manual v0_90 110217 doc 57 Issue 0 90 Draft Drive Programming UBw value Command Description Arguments Assigns a value to the internal user awe se contact controls Value any variable or constant Instruction to access internal user contact UBw value by word Format UBw lt value gt Note UBw 1 gt bitO UBw 2 gt bit 1 UBw 4 gt bit 2 UBw 8 gt bit 3 UBw 16 gt bit 4 UBw 32 2 bit 5 UBw 64 gt bit 6 UBw 1282 bit 7 Example 2 UB 0 X 00 3 UB 1 X 01 4 UB 2 X 02 5 UMon 0 UB 6 00 UB 2 Next Block Sotoloop The internal user contacts are cleared on the loop s 1 instruction The status of the X 00 X 02 in
51. neral Precautions csssseccesssssseeessssseeeessseeeenseeeeenees 71 8 1 Parameters list affected by setting order oonmccinnccnnnccnnnacanananananacananac ana na nn no crac anar nn aora aan 71 8 2 Parameters list affected by Rated Current oococonccnnnnnnccnnnnccnnanancnnn cane 71 8 3 Parameters list affected by PID enabled disabled eee 72 Drive Programming User s Manual v0 90 110217 doc 4 Issue 0 90 Draft Drive Programming 1 Introduction This Instruction Manual explains how to use the Drive Programming software for the Omron MX2 RX Series Inverter Be sure 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 f 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 Instruc
52. ning of each subroutine End Sub Command Description Arguments It indicates the end of a subroutine EndSub Format Note It is compulsory to have End Sub at the end of each subroutine Drive Programming User s Manual v0_90 110217 doc 28 Issue 0 90 Draft Drive Programming Example 15 T m If UB 0 1 Then 13 ha m UB D Not UB 0 Go to Loop A forward and reverse run at 60Hz is repeated continuously between two limits X 01 and X 02 Drive Programming User s Manual v0 90 110217 doc 29 Issue 0 90 Draft Drive Programming Go To Command Description Arguments ay Use this instruction to branch processing unconditionally to the step labeled with GoTo label name Label A name that is used to identify a particular function block in the task Format GoTo label 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 If U DO 1 GoTo 3 Condit True i 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 Drive Programming User s Manual v0_90 110217 doc 30 Issue 0 90 Draft Drive Programming On Trip Command Description Arguments ro This instruction makes conditional f branchin
53. nit Data size Attribute 2 t to 8 d030 Current Position 2 1 1 Signed R monitor 20 to 2 word _ 90 1 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 PRE Description Range of values Default Unit Data size Attribute N of Unsigned d080 Trip counter monitor 0 to 65535 mes 4 word R The data monitored with this variable corresponds to the data monitored by the trip counter monitor d080 ER Description Range of values Default Unit Data size Attribute d081 g Unsigned d086 Trip monitor 1 to 6 0 to 127 1 word R The data monitored with these variables correspond to the data monitored by trip monitors 1 to 6 d081 to d086 DCV Description Range of values Default Unit Data size Attribute a 0 1 Unsigned d102 DC voltage monitor 0 to 9999 Vdc ward R The data referenced with this variable corresponds to the data monitored by the DC voltage monitor d102 STATUS Description Range of values Default Unit Data size Attribute Unsigned Inverter status monitor Ta R This variable can be used to reference inverter st
54. nt 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 Parameter display in decimal Which converted to which means format hexadecimal format results in 10 for 2010 U 00 4103 1007 or for July 05 for 5 day of month U 01 1281 0501 01 for Monday U 02 5161 1429 1 for 2 p m 29 for 29 minutes Drive Programming User s Manual v0 90 110217 doc 65 Issue 0 90 Draft Drive Programming 6 6 Inverter Control Commands Run FW Command Description Arguments Makes the inverter run the motor in 9 forward direction starts the inverter output RunFw This command is a shortcut of the func value command Format FW 1 Note The instruction is available since CX Drive v2 10 Run RV Command Description Arguments Makes the inverter run the motor in O reverse direction starts the inverter output RunRv This command is a shortcut of the func value command Format RV 1 Note This instruction is available since CX Drive v2 10 Stop Command Description Arguments O Makes the inverter decelerate and stop u the motor stop the inverter output Stop Format Stop Set Freq Command Descrip
55. oad 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 tice to change part numbers when published ratings or features are changed or when significant construction changes are made
56. or User parameters ssssssssssse eene 19 UL 00 to UL 07 or Internal User parameters sss 19 5 2 Setting Variables dere nnde edt dedo edges e eret de Ea eter edo ge tase 19 Seb Ere n ederet Ede tene o re doeet e eve lg pet Sound ERR eld 19 ACCEL vires A E a Aedes 19 DEGEL 25 di cnt ira ttes 20 5 3 Inverter Monitor Variables FMn oneribus taris Mo Lor lt ate OM ea 20 OU C A 20 Dio ie oberen LE Lc SA Kl e Id EL Leste Pre Re Raat Ed urs 20 PIB E Birri a A A A A d r Pesta 20 ECON Mii A AAA tete A AAA AR A RE A A 20 MOM CPC 21 O a 21 ONE A O 21 Hune ou ci a AOA m Decus ia lv E Rd dia aah A 21 ON TIME civic 21 UMon 0 to U MOn 2 y 3 5 5 un air E RR ERR IRAE 21 POS cit addens A s a ead Ui sural eee A gares eo xt de Me AA eed tee dee nad ege ra 22 ERRANTE e he dad ee re eer nt sien fat ine ad epe ohn Sod ded Dr RE iad 22 ERRUDSEBRHB 6 J method eoe Lip I Eee A E DE eros eds 22 DOM zin lat 22 AFROS E 22 54 Terminal Variables cuca tala as tle ele ee e eie e i e MB dale ails 23 X 00 X 09yz s ic ere cn n coe a Leo aea 23 A A 23 UI AEO L 5 n cient e p e RTL tna ie PIS e niii EIE MERS deii totus 23 MU DER H A E aN eneass 23 XA 0 2XA 2 cx t ette tele NS a eee Det 23 YA 0 Y A 2 A ettet eade oed acted gate ere d aleve reed dtt dide eoe d eodd 23 UB 0
57. ounts 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 Buyer s 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 in consumer products or any use in significant quantities iii Energy control systems combustion systems railr
58. put 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 Drive Programming User s Manual v0 90 110217 doc 58 Issue 0 90 Draft Drive Programming 6 4 Timer Control Commands Delay Command Description Arguments This instruction sets the count of the timer a in value 2 and starts the timer counter Value 1 any variable Value 2 any variable or constant time in 10 x ms K number of timer When the timer output TD K is turned on off value 1 is turned on off It is Delay important to note that meantime counting proceeds the value 1 remains unchanged from original value Format Delay on off value 1 TD k value 2 Example If X 00 0 GoTo True gt Goto GTOO1 Go to loop Next Block Sample program that activates deactivates the FW instruction with Delay OrvDelay Off instruction Timing chart TC 0 ow rs A C 1 i M 1 Comparison d 4 for matchin i3 B i i TD 0 i 41 1 Y 00 j f A A delay on Y DO TD 0 1000 delay off Y 00 TD 0 1500 timer off TD 0 Drive Programming User s Manual v0 90 110217 doc 59 Issue 0 90 Draft Drive Programming Timer Set Command Description Arguments Sets lt value gt in the timer and starts the Bon t
59. r 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 Products sold hereunder including customs duties and sales excise us
60. r 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 FM Description Range of values Default Unit Data size Attribute Output frequency g 0 01 Unsigned a001 monitor 0 1040900 Hz 1 word R 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 Unit Data size Attribute 0 01 Unsigned d002 Output current monitor 0 to 9999 ward R The data monitored with this variable corresponds to the data monitored by the output current monitor d002 The monitored data indicates 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 Range of values Default Unit Data size Attribute ut 0 Stop d003 Rotation direction 1 Normal rotation A A Unsigned R monitor 1 word 2 Reverse rotation The data monitored with this v
61. riable yarsxw Each bit reflects one of the inputs Format lt variable gt Xw Note The inputs have to be assigned to digital multifunction input by the multifunction 56 to 63 Xw 1 2 bit O Xw 2 gt bit 1 Xw 4 2 bit 2 Xw 8 gt bit 3 Xw 16 gt bit 4 Xw 322 bit 5 Xw 642 bit 6 Xw 128 2 bit 7 only for RX Example value is masked by 15 0 gt 2 U DO U00 4 kd LL 3 U 00 U00 And 15 kd LLI i Next Block 6 kd 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 Drive Programming User s Manual v0 90 110217 doc Go to loop 50 Issue 0 90 Draft Drive Programming Y i value Command Description Arguments ve i Number of the contact output Instruction to access digital outputs range O to 5 Yi value Value any variable or constant Format Y i value Note The inputs have to be assigned to digital multifunction output by the multifunction 44 to 49 Y 00 MO1 44 Y 01 MO2 45 Y 02 MO3 46 Y 03 MO4 47 with expansion l O board Y 04 MOS 48 with expansion I O board Y 05 MO6 49 with expansion I O board if enough outputs Example 2 gt Entry gt 10 STOO1 T GoTo a SET Freq 6000 If FM lt U 00 GoTo pem
62. rol Command T3 Program e End Sub The subroutine is executed via the call command with the subroutine name D x amp Q5s9Hh o Tj Program 5 Program Test It is only possible to call a subroutine that is associated with the task to be used with other task a copy of the subroutine is necessary on the task Drive Programming User s Manual v0 90 110217 doc 18 Issue 0 90 Draft Drive Programming 5 Drive Programming user variables 5 1 Initial Data U 00 to U 31 or User parameters Ten to Description Range of values Default Unit Data size Attribute Data User variable 0 to 65535 d g di RN 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 capac
63. rts the latest change Redo Ca It recovers the most recently undone change Transter to Drive Eh M cue the program and if there are no errors transfer it to the Transfer from Drive gA It transfers the program from the drive to the Program Editor It starts the program in the drive CX Drive will first compare it with Start gt the program currently being edited to make sure that they are the same lf they differ the program will not be started It stops the program in the drive This action is done regardless of Stop a whether the program in the drive is the same that in the program designer It compiles the program which is currently being designed Compile i Compile errors and warnings will be reported as tool tips in the blocks in the flowchart Horizontal Align Left la It aligns horizontally the left sides of the selected blocks ae Align It aligns horizontally the middles of the selected blocks Horizontal Align 3 It aligns horizontally the right sides of the currently selected Right blocks Vertical Align Top ijt It aligns vertically the top sides of the selected blocks Vertical Align Middle a It aligns vertically the middles of the selected blocks Vertical Align Bottom ai It aligns the bottom sides of the selected blocks Orientation Orientation It selects a preferred orientation for connecting the blocks Auto arrange EN It arranges the elements of the flowchart automatically in the currently selected orientation It toggles disp
64. s 00001110 that is 14 in decimal format If P102 and P103 are changed by the user then P104 will recalculate accordingly Drive Programming User s Manual v0_90 110217 doc 44 Issue 0 90 Draft Drive Programming XOr Command Description Arguments XOr exclusive or Value1 Value2 Result Result any variable 0 0 0 Value 1 any variable or constant 0 1 1 range 128 to 127 lt Dr 1 0 1 Value 2 any variable or constant 1i 1 0 range 2147483648 to 2147483647 Format lt result gt lt value 1 gt XOr lt value 2 gt Warning Drive Programming does nat control overflow underflow The application should take care Example 1 2 je Next Block 5 aa Go to loop 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 will recalculate accordingly Drive Programming User s Manual v0_90 110217 doc 45 Issue 0 90 Draft Drive Programming Not Command Description Arguments Result any variable except variables lua Not negatio sun with bit data size Note 1 0 1 Value any variable or constant except Not 1 0 variables with bit data size Note 1 range 2147483648 to 2147483647 Format
65. s sample When P100 1 P101 starts counting When P100 1 stops counting Drive Programming User s Manual v0 90 110217 doc 32 Issue 0 90 Draft Drive Programming Ifs Else End If Command Description Arguments lt gt lfs 2 lem 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 Condition A comparison between two variables or constant with the format Left hand Value gt lt Comparison gt lt Right hand Value gt 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 Instruction set 1 One or more instructions until Else instruction It can contain nested instructions up to 8 level of nesting Instruction set 2 One or more instructions until End If instruction It can contain nested instructions up to 8 level of nesting Format Ifs condition Then instruction set 1 Else instruction set 2 Endif IF WOO U 00 Then Example Go to loop 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 20 Drive Programming User s Manual v0 90 1102
66. struction It can contain nested instructions up to 8 level of nesting Format Until condition instruction set Loop False Example hd Li a Li Wait 100 hd q ha LLLI o 2 t 0 4 Next Block 6 aa Ge to again This code will increment while the 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 Drive Programming User s Manual v0 90 110217 doc 37 Issue 0 90 Draft Drive Programming Wait Command Description Arguments WaitT ime m W aitCond This instruction makes the program wait for a number of seconds or until a condition is met Value any variable or constant time in 10 x ms Condition A comparison between two variables or constant with the format Left hand value gt lt Comparison gt lt Right Hand Value Wait Time value from 0 to 32767 10ms 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 Format Wait value or condition 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
67. sue 0 90 Draft 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 AA x Ni Warning i J0 Messages Component Description D 1010 15 Block Entry All elements in this flow chart must be fully connected Q 30 09 2010 10 15 Block End All elements in this flow chart must be fully connected 30 09 2010 10 15 Block Entry The Subroutine must begin with a Sub element Output Error List The 9 HERES Error s button toggles displaying error in the list The no DONE 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 The text of the error or warning message The list is automatically cleared every time a Compile is done 3 10 Creating a program 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 Drag each block of the program from the Toolbox window to the Program Editor
68. the Number of eight layers some times difficult to layers will be eight or If statements are nested in regogniize vem more than eight layers Correct the jump The jump destination of a Check whether each GoTo destinations of GoTo GoTo instruction is a next instruction jumps to an instructions As general instruction to end a for or instruction that ends a loop recommendation never other loop jump a Goto out of the current level it is a Correct the value of The variable U ii WT Ei TEE A Check the numerical value variable U ii or limit bai Mia anotar specified in U ii the range of values of variable is not found variable U ii An arithmetic instruction Check the program for the Correct the program so caused instruction causing overflow that no arithmetic Overflow underflow or division by instruction causes underflow or zero not in early MX2 overflow underflow or division by zero firmware division by zero E45 Instruction error 1 A ChgParam instruction Ex Uni eee da M anoi written to parameters so existing parameter Check the parameters and that they will be within ETA value oui of the values to be written the setting range tha seitinarande If the error has occurred Disable software lock hande a nen during inverter operation If the parameter to be alta EN veter check whether the updated is the one that parameter in question can cannot be updated ba i sath be updated during inverter durin
69. tion Arguments It sets the frequency of the inverter EA This command is a shortcut of the Value any variable or constant command range from O to 40000 SelFreg Units 0 01Hz Format Set Freq lt value gt Note This instruction is available since CX Drive v2 10 Drive Programming User s Manual v0_90 110217 doc 66 Issue 0 90 Draft Drive Programming Example 0 e i Go to Top a Next 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 Drive Programming User s Manual v0_90 110217 doc 67 Issue 0 90 Draft Drive Programming Trip Command Description Arguments Value any variable or constant A This instruction makes inverter trip range 0 to 9 Trip Format Trip lt value gt Example Go to loop Next Block This sample program will throw a user trip on the inverter when digital input X 01 is set to ON Drive Programming User s Manual v0 90 110217 doc 68 Issue 0 90 Draft Drive Programming Accel Command Description Arguments It sets the acceleration time of the fac inverter This command is a shortcut of the IU a Accel command Units 10 ms Format Accel lt value gt Note The P031 parameter must be s
70. tion 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 this 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 User s Manual v0 90 110217 doc 5 Issue 0 90 Draft 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 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 4 Optional PC inverter connec
71. tion cable For MX2 it is a USB cable For RX the converter cable USB to RJ 45 is required Item codes Item code name for MX2 AX CUSBM002 E Item code name for RX 2 option cables 3G3AX PCACN2Z or USB CONVERTERCABLE 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 or RX software CX Drive computer Inverter For MX2 AX CUSBMOO2 E eos bunt For RX 2 options 3G3AX PCACN2 or AA USB CONVERTERCABLE MX2 CX Drive 2 0x or higher RX CX Drive 2 3x or higher Install CX Drive on your Windows personal computer and connect the personal computer to the inverter MX2 or RX 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 Function Description Supports the input editing saving reading and printing of user Programming Editor programs Compilation Compile and edit a user program Downloads a user program to the inverter Downloading and uploading Uploads a user program from the inverter Drive Programming User s Manual v0 90 110217 doc 6 Issue 0 90 Draft Drive Programming 2 Speci
72. truction 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 TDw Description Range of Values Unit Attribute e Unsigned Timer contact output word access 0 to 255 Toward R It access to the timer counter outputs as word Drive Programming User s Manual v0 90 110217 doc 24 Issue 0 90 Draft 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 Values 0 Off
73. tting 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 Drive Programming User s Manual v0 90 110217 doc 19 Issue 0 90 Draft Drive Programming DECEL Description Range of values Default Unit Data size Attribute Deceleration time 0 01 Unsigned setting 1 to 360000 Note 1 d 2 word R W 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 inverte
74. utput 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 the function within the program in other words no waste of digital outputs required RUN Running R C021 C022 C026 00 FA1 Reaching constant speed R C021 C022 C026 01 FA2 Greater than setting frequency R C021 C022 C026 02 OL Overload preannounce R C021 C022 C026 03 OD PID deviation overrate R C021 C022 C026 04 AL Trip signal R C021 C022 C026 05 FA3 Only the setting frequency R C021 C022 C026 06 OTQ Over torque under torque R C021 C022 C026 07 UV Under voltage signal R C021 C022 C026 09 TRQ Torque limitation signal R C021 C022 C026 10 RNT RUN time over R C021 C022 C026 11 ONT ON time over R C021 C022 C026 12 THM Thermal warning R C021 C022 C026 13 BRK Brake open R C021 C022 C026 19 BER Brake error R C021 C022 C026 20 ZS Zero speed signal R C021 C022 C026 21 DSE Speed deviation overrate R C021 C022 C026 22 POK Positioning operation complete R C021 C022 C026 23 FA4 Greater than setting frequency 2 R C021 C022 C026 24 FA5 Only the setting frequency 2 R C021 C022 C026 25 OL2 Overload preannounce
75. value gt lt Comparison gt lt Right Hand Value gt Left hand value any variable or constant range 128 to 127 lt gt Executes lt instruction set gt while a Comparison gt lt gt lt gt condition is met WE 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 level of nesting Format While condition While U 08 U00 instruction set Wend Example 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 Drive Programming User s Manual v0 90 110217 doc 36 Issue 0 90 Draft Drive Programming Until Loop Command Description Arguments gt Until Executes lt instruction set gt until a lt condition gt is met 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 range 128 to 127 Comparison lt gt lt gt lt gt Right hand value any variable or constant range 128 to 127 Instruction set One or more instructions until Loop in
76. ve Programming User s Manual v0 90 110217 doc 39 Issue 0 90 Draft Drive Programming Subtraction Command Description Arguments Result any variable Value 1 any variable or constant range Subtracts value 2 from value 1 gt 128 to 127 e Value 2 any variable or constant range 2147483648 to 2147483647 Format 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 The P103 parameter calculation result is 100 Multiplication Command Description Arguments Result any variable Ea e Value 1 any variable or constant range Multiplies lt value 1 gt by lt value 2 gt 128 to 127 Value 2 any variable or constant range 2147483648 to 2147483647 Format result lt value 1 value 2 Warning Drive Programming does not control overflow underflow The application should take care Example The P104 parameter is set to 200 Drive Programming User s Manual v0 90 110217 doc 40 Issue 0 90 Draft Drive Programming Division Command Description Arguments Result any variable e Value 1 any variable or constant range Divides value 1 by value 2 128 to 127 Value 2 any variable or constant range 2147483648 to 2147483647 Format result lt v
77. w The application should take care Example 0 ny 2 loop hd Dec U 02 m 3 aa Wait 100 m i Go to loop je Next Block 5 aa The P102 parameter is decremented by 1 every second Drive Programming User s Manual v0_90 110217 doc 48 Issue 0 90 Draft Drive Programming 6 3 Input Output Control Commands To improve the memory optimization use Input Output Control Commands 4 bytes instead of the Equal Arithmetic Command 8bytes Var X i Command Description Arguments e Variable any variable the value of the Instruction to access contact inputs variable will be O or 1 Reflects the state of the input i Number of the contact input range O vari to 9 Format lt variable gt X i Note The inputs have to be assigned to digital multifunction input by the multifunction 56 to 63 X2 is not necessarily input 2 depends where MF 58 is X 00 MI1 56 X 01 MI2 57 X 02 MI3 58 X 03 MI4 59 X 04 2 MI5 60 X 05 MI6 61 X 06 MI7 62 X 07 MI8 63 EA terminal in MX2 expansion l O in RX Example Go to loop Next Block 3 T The state of the input terminal X 01 is monitored on the d025 parameter Drive Programming User s Manual v0 90 110217 doc 49 Issue 0 90 Draft Drive Programming Var Xw Command Description Arguments X Instruction to access contact inputs by word Variable any va
78. will show a short help text for it Click on any category title to display the blocks which belong to that category Drive Programming User s Manual v0 90 110217 doc 13 Issue 0 90 Draft 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 Block Parameters xj User Parameters Pio P101 P102 P103 P104 P105 P106 P107 P108 0000000 x Eo Drive Programming User parameters Set range is 0 to 65535 Is 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 Drive Programming User s Manual v0 90 110217 doc 14 Issue 0 90 Draft Drive Programming 3 8 Properties window The Properties window allows the user to edit the properties of the drive program b
Download Pdf Manuals
Related Search
Related Contents
Panasonic - Handytreff P6X58D Premium Motherboard Manual ValveBank Man 3-00 - AutoMate Scientific RuggedServer™ RS401 Panasonic SA-XR58S AV receiver Folio : 1/1 Planche : 111 MULTIFREQUENZ-TASCHENSENDER Copyright © All rights reserved.
Failed to retrieve file