Home
MX2/RX/LX Drive Programming USER`S MANUAL
Contents
1. 27 SLEEP 27 UMONO to UNO T snes 27 PO eameeeasaee 28 A a E 28 nisi nimiis CER De 28 Bi MCN ET RR TCR PETRO NER NUR tel aril e lind MENS 28 STATU eis eau i C uM iA d uL ict t 28 544 Terminal VarableSus c poete ces 29 Drive Programming NI 29 A OY PR a PEA Y TEERAA E One T nN OE OE Sea eee 29 O ee 29 A 29 A 30 A c der pcr 30 Biziuss rop oi 31 Hlc E 31 QS peg m PUR 31 FO OTO PCR EE HH 31 TOW 31 5 5 Digital In DH P BEI COE Sparta luneta 32 5 6 Digital Output FUNCUON Susa dera 34 6 Drive Programming Instructions eeeee cese eere eere nere enne nenne nnn n nnn nnne n nhan nnn nnn 36 61 TONTO COmtftiali6S s doce torio derer oeoret art 36 zog Met LCS 36 o tet ar De ecto eee Er oR MM M IMMO CAE 36 ere erie per A A 36 UB oss mr M MUR MALI acdc M IAM M MM UL ED M EDS 36 End SUD matt fe outs ca tuno atu led insta adeptus ciat be era 36 MUERE MAE TUER 38 SERI AE E PR 39 A i aM ui E RU EE 40 Tis dem iz sd xao d AAA A II A nee eS tee 41 Select Gase 7 End Selecta subditus ve benc args E cree MM EE CI Ad E ELE 42 a o TRE IN
2. 1 wait 02 1 3 ll 11 Goto Loop Next Black 12 Text Main RunFW Main RunRV entry sub sub set freg 6088 Fly lt 7 1 UB 1 wait X 1 1 wait X 82 1 Loop endsub endsub if UB 8 1 then call RunFW else call RunRV endif stop wait RUM 8 UB 8 not UB 8 goto Loop A forward and reverse run at 60Hz is repeated continuously between two limits X 01 and X 02 37 Drive Programming Use this instruction to branch processing di e Label A name that is used to identify a oe po eS ep lan AL particular function block in the task GoTo lt label gt Note The instruction must also be connected to the next program block you want to be executed This is necessary to make clear the flow of the program Example entry Ini if U 880 1 goto Condit True goto Ini Condit True inc U 81 if LINO 1 goto goto Ini Go to Condit True end z i KL Lx gig Lu 3 Condit True 4 Hent Block Go to Ini J Change parameter P100 in order to test the GoTo function with this sample When P100 1 P101 starts counting When P100 lt gt 1 stops counting 38 Drive Programming Command Descripion Arguments ro This instruction makes conditional e Label A name that is used to identify a branching in case a trip in the inverter particular function block in the task Unt rip occurs On Trip goto lt label gt Note The On Trip instr
3. UA HE 3 32 ms Command Execution lt lt lt lt lt lt lt 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 Il T k01 With the right mouse click we can Delete Current Task or Rename Current Task Pp ij Task t Taski all Rename Current Task X Delete Current Task entry Mew Tab e i im Tj Task01 Tij Task entry end 23 Drive Programming 4 2 Subroutines Subroutines are useful to organize your program into parts of code that you can reuse in other programs or in the same program For insert a subroutine press the button j or and a new subroutine will appear Like on Tasks you can delete or rename a subroutine Every subroutine must begin with the Sub block and end with the EndSub Control Command T Program i Program Test T3 Lions Program Test sub endsub The subroutine is executed via the call command with the subroutine name T Program Program Test entry call Test call Test end 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 24 Drive Programming 5 Drive Programming user variables 5 1 Initial Data U 00 to U 31 or User parameters Data store
4. loop U 84 U 82 or U 83 goto loop 1 A end Go to loop _ Hest Block The initial P104 parameter calculation result is 14 as 6 in binary format is 00000110 and 12 in binary format is 00001100 so the result of the operation is 00001110 that is 14 in decimal format If P102 and P103 are changed by the user then P104 will recalculate accordingly 92 Drive Programming XOr Command Description Arguments XOr exclusive or Value Value 2 Result E Value 1 any variable or constant range 128 to 127 Value 2 any variable or constant range 2147483648 to 2147483647 lt result gt value 1 XOr value 2 Warning Drive Programming does not control overflow underflow The application should take care entry u a2 u a3 loop U 84 U 82 xor U 83 goto loop end Goto loop Hest Block The initial P104 parameter calculation result is 10 as 6 in binary format is 00000110 and 12 in binary format is 00001100 so the result of the XOr operation is 00001010 that is 10 in decimal format If P102 and P103 are changed by the user then P104 will recalculate accordingly 53 Drive Programming Command Descripionn Arguments Not negation e Result any variable except variables Value1 Result with bit data size Note 1 Value any variable or constant except variables with bit data size Note 1 range 2
5. Dir Description Range of values Default Unit Attribute E l 0 Stop d003 MOTA ONCE on 1 Normal rotation lbs monitor i 1 word 2 Reverse rotation The data monitored with this variable corresponds to the data monitored by the rotation direction monitor d003 This variable is read only PID FB Range of values Default Attribute Process variable PV 0 01 Unsianed d004 PID feedback 0 to 9990000 o An monitoring j The data monitored with this variable corresponds to the data monitored by the process variable PV PID feedback monitor d004 This variable is read only F CNV Range of values Default Attribute Scaled output Unsigned The data monitored with this variable corresponds to the data monitored by the scaled output frequency monitor d007 This variable is read only 26 Drive Programming Range of values Default Attribute 5 Unsigned The data monitored with this variable corresponds to the data monitored by the torque monitor d012 This variable is read only Range of values Default Attribute Output Voltage Unsigned The data monitored with this variable corresponds to the data monitored by the output voltage monitor function d013 This variable is read only Power Description Rangeofvalues Default Attribute 0 1 Unsigned The data monitored whit this variable corresponds to the data monitored by the power monitor d014 This variable is read only RUN Tim
6. Halias global AppTimer as TD Halias global Temp as UL 85 entry Note 1 The alias will be lost converting a text task subroutine to flowchart CX Drive will show a message advising about this issue Note 2 reserved words cannot be used like an alias A compilation error will appear 20 Drive Programming 3 15 Region definition Text Editor A Region definition can be only defined in a text task or subroutine It is useful to define code regions to clarify the program code Examples region Alias Halias global const 188 as 100 Halias global Acceleration as F882 Halias global Deceleration as F 03 Halias global Time as U 18 Halias global AppTimer as TD 8 Halias global Temp as UL 5 endregion entry region Start Acceleration const 188 Deceleration const 188 Time 500 Temp 10000 set freq 1080 Fw 1 amp endregion H region Stop 3 16 Conversion from Flowchart to Text There are two options to convert from Flowchart program to text Convert Flowchart to text It converts current Flowchart Task Subroutine to text Convert whole program to text It converts whole program to text 3 17 Conversion from Text to Flowchart There are two option to convert from Text to Flowchart Command Image amp Ciesccription Convert Text to Flowchart It converts current Flowchart Task Subroutine to text Convert whole program to Flowchart i
7. follow by the comment The comment will be showed in a green color format Examples Halias global Time as U 18 Timer time alias global AppTimer as TO Timer TD Halias global Temp as UL 65 Internal use Note if you convert a Text task or subroutine to Flowchart the comments will be lost 19 Drive Programming 3 14 Alias definition Text Editor Only it is possible to define an alias in a Text editor task and before the command entry It s not possible to define an alias in a subroutine Alias definitions are user friendly names given to parameters variables commands and numerical constants There are two kinds of alias definition Local alias this alias definition only can be used in the current task and his subroutines and not in the other tasks and subroutines that the program could have This is the format for a local alias definition inside a task Halias local alias as replacement Examples Halias local ON_ as 1 Halias local OFF as 8 Halias local Monitor 1 as UMon 8 Halias local MaxFrequency as A884 Halias local Count as U 88 Halias local Dummy 1 as UL 8G8 entry Global alias this alias definition can be used in all the tasks and subroutines This is the format for a global alias definition Halias global alias as replacement Examples Halias global const 188 as 188 Halias global Acceleration as FG82 Halias global Deceleration as F883 Halias global Time as U 18
8. loop _ while x 09 inc U 1 wait 100 wend goto loop end Go to loop The code will increment P101 parameter every second while the digital input X 00 is closed while wend loop If it is open P101 is not increased GoTo label loop loop the while wend portion is not executed Digital input has to be configured in the multifunction input 44 Drive Programming Command Description amp Arguments Condition A comparison between two variables or constants with the format Left hand value Comparison Right Hand Value Left hand value any variable or constant Executes instruction set until a range 128 to 127 condition is met Comparison lt gt lt gt lt gt Right hand value any variable or constant range 128 to 127 Instruction set One or more instructions until Loop instruction It can contain nested instructions up to 8 levels Until lt condition gt l lt instruction set gt Loop Example entry again until x wait 1060 loop inc U 1 goto again end 4 Go to again Hest Black 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 45 Drive Programming Command Description Arguments e Value
9. 180 loop _ dec U B2 wait 100 goto loop end Go En loop Hest Black The P102 parameter is decremented by 1 every second 96 Drive Programming 6 3 Input Output Control Commands For memory optimization use Input Output Control Commands 4 bytes instead of the Equal Arithmetic Command 8 bytes Var X i Command Description Arguments Variable any variable the value of the Instruction to access contact inputs variable will be O or 1 Reflects the state of the input e i Number of the contact input range 0 to 11 Note The inputs have to be assigned to digital multifunction input by the multifunction 56 to 63 X 02 is not necessarily input 2 depends where MF 58 is ZOO0oOo0Qocoooog X X X X X X X X X X X X N Bl Do I Ue i O more details in chapter 5 4 Terminal Variables entry loop _ UMon 8 goto loop end Go to loop E Hest Block 3 The state of the input terminal X 01 is monitored on the d025 parameter 57 Drive Programming Command Descripion Arguments Instruction to access contact inputs by word Variable any variable Each bit reflects one of the inputs variable Xw Note The inputs have to be assigned to digital multifunction input by the multifunction 56 to 63 for MX2 and RX or 49 to 60 on LX Xw 2 1 2 bitO Xw 2 gt bit 1 Xw 4 gt bit2 Xw 8 2 bit 3 Xw 16 gt bit 4 Xw 32 gt
10. Drive Programming Command Descripionn Arguments Yw amp Instruction to access digital outputs by word Value any variable or constant Y w value Each bit reflects one of the outputs Yw value Note The inputs have to be assigned to digital multifunction input by the multifunction 44 to 49 for MX2 and RX 35 to 41 for LX Yw 17bit0 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 Yw 64 gt bit 6 only if expanded I O board for LX is used Example entry loop _ U e xw u utog u ae u ee yw U 88 goto loop 2 Ug lt up 4 3 1100 100 and 15 Go to loop Hest Block This example acquires the state of the X 02 X 05 input terminals and outputs it to Y 00 Y 03 output terminals To cut X 00 X 01 the U 00 value is divided by 4 To cut X 06 X 07 the U 00 value is masked by 15 60 Drive Programming func value Command Description Arguments X Assigns the value of a variable to a Function any function of input terminal command of a terminal input Value any variable or constant funczvalue function value Example entry SET Freg 6008 loop _ FW i wait X 1 Fl 8 Wait RUM 1 wait X 802 RV i 8 w
11. XK KKK KKK KK KK KK XK XK XK XK XK XK XK UD X XK X XK X X XX X X X X X X X X X X X X X X X OX X TK TAX X xXx x x Note The LX inverter functions are available for the digital multifunction output terminals P145 P147 Multi Output Ex OUT1 3 gt 3G3AX ElO E LX extra I O board 35 Drive Programming 6 Drive Programming Instructions 6 1 Control Commands Entry Command Descripion Arguments It indicates the beginning of the task Note It is compulsory to have Entry at the begging of each task C 2 End Note It is compulsory to have End at the end of each task Call Command Descipion Arguments e Subroutine Subroutines are identified It jumps to a subroutine by a name or alias defined by the user call subroutine Note After the execution of the subroutine ends the next instruction line after the call is executed Command Descripion Arguments It indicates the beginning of the subroutine Note It is compulsory to have Sub at the beginning of each subroutine Ed Sa Command Description Arguments Note It is compulsory to have End Sub at the end of each subroutine 36 Drive Programming Example Flower Main RunFW 0 gt 1 SET Freq 6000 2 13 if LIB O 1 then wait 01 1 call Run Fry 16 endzub call Run P Main RunRV 3 Wait RUIN 0 10 LB mot UB fi
12. em Assigns the value of the internal user contact as word all together to a word e Variable any variable variable war LlB 1 Note UBw 1 2 bitO UBw 2 gt bit 1 UBw 4 gt bit2 UBw 8 2bit3 UBw 16 gt bit4 UBw 232 gt bit 5 UBw 264 gt bit 6 UBw 128 gt bit 7 Example entry loop _ uB 8 X 80 UB 1 X 81 UB 2 X 82 UMon 8 ubw v 880 UB 2 zii als goto loop 3 UB 1 x01 4 UIB 2 x02 J Lond UB E Yio UBI 7 Next Block 9 to loop_ The internal user contacts are cleared on the loop s 1 instruction The status of the X 00 X 02 input terminals are stored in the UB 0 UB 2 internal user contacts and monitored on the d025 parameter Finally the status of the X 02 input terminal is set to the Y 00 output terminal 64 Drive Programming UB i value Command Description Arguments l e i Number of the user contact ES Assigns a value to an internal user range O to 7 contact control UBi value Value any variable or constant ma SOS UB i value Example entry loop _ UB 8 UB 1 x 81 UB 2 X 82 UMon 8 ubw Y 00 UB 2 pl lud goto loop 3 UB 1 X01 4 UBI x02 J LI hon O UB Yio U BIZ E T Next Block Go to loop The internal user contacts are cleared on the loop s 1 instruction The status of the X
13. 3 8 Properties window The Properties window allows the user to edit the properties of the drive program block which is currently selected in the Flowchart Program Editor Properties are displayed when Drive Programming is entered You can also show or hide it by clicking on Drive Programming Properties in the View menu Properties are displayed by default docked at the rightmost side of CX Drive You can resize it as needed to better display its elements Also you can toggle its docking by right clicking near the window s edges ES Command Arguments Variable to be assigned LI ag User parameter Value 00 general input contact A Substitution The format of this instruction is lt result gt lt value gt The Arguments Result any variable Value any variable or constant range 2147483648 to 2147483647 ha 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 f 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 a
14. C021 C026 43 00 Drive Programming MO1 v v MESE H C021 COLE 44 Y 01 Drive Programming MOB a R C021 C026 45 Y 02 Drive Programming MOS 29 R C021 C026 46 x jS R C021 C026 47 x 2S R C021 CO26 48 X E R C021 CO26 49 JR C021 CO26 50 24 R C021 CO26 51 my R C021 CO26 52 _ mR C021 CO26 53 WCO Window comparator O v v MESE R C021 C026 54 Y R C021 C026 55 x 4 R C021 C026 56 E Y R C021 C026 57 34 Drive Programming Function Description MX2 RX LX Usage Comment JR C021 C026 58 REF Commandoperationmode v i29 R C021 C026 59 Y R C021 CO26 60 S4 R C021 C026 62 _ v R C021 C026 44 v R C021 C026 45 RVR Reverse rotation E y R C021 C026 46 v R C021 C026 47 v R C021 C026 t8 v R C021 C026 20 v R C021 C026 23 WAF Coolingfanspeeddrop 1E E y R C021 C026 31 v R C021 C026 32 v R C021 C026 33 v R C021 C026 34 v R C021 C026 35 Y 01 Drive Programming MO2 P E y R C021 C026 36 v R C021 C026 37 v R C021 C026 38 v R C021 C026 39 v R C021 C026 40 v R C021 Co26 41 v R C021 C026 51 v R C021 C026 52 v R C021 C026 54 v R C021 C026 55 _ v R C021 C026 56 v R C021 C026 58
15. CE 17 cus QUID UL WIN O West idad colonies 18 3 10 Creating a program with Flowchart Editor sese 18 3 1 1 Greating a program with Text Editor e Sateen eee deed Pes e PEE Soie 19 Sed gt Rua LOOK AI ea E m a iaa 19 O13 Gomen TSXxt EGITOE s oec rr ita 19 3 14 Alias definition Text Editor ia puente oin oe uento exo einen entorno e Deos ee sped 20 3 10 Region definitions Text EANO o ure t Ero ee A A OD te e eiae ec ae 21 3 16 Cornversiorn Trom Flowchart to Text suce eremo A Ut qo Oxo coL esteso dees 21 3 17 Conversion from Text to FlowcChart ccccccconnnccnccccconcnnnnccoconccnnnnnnnnnncnnnnnnonannnnnnnnnnnnnonnncnnnnaninos 21 3 FOF ING amp Replace TUMCUON c oia A o dur C dus itd d Mus ovd Ld fud es dpadusE 22 DIV Pr ogr m Structure oem 23 FS WA GIA JE 23 42 SUT OUE oi 24 Drive Programming user Vals acia 25 SEMESTER O a EL E 25 WOON TOUS Dor User parameters uc cac ceddra sicut A a neue 25 UL 00 to UL 07 or Internal User parameterS cccccccconnccconccccconononcnononnonnnnnnnonnnnnnnonnnannonnnonnnnnnnnns 25 52 S Cuna Van al Sid rd 25 A A DO DEREN 25 A A I ee PR ee ee er a ne eee ee 25 DECE eee IE o ee ene 26 5 3 Inverter Monitor Variables a 26 OUT eee 26 DA e M rcm 26 A T RM ERN RTT EE 26 mie e D EE 26 jeg i P A 27 A ac arn teats I ULM DI Sc NADS LE tanc Em ted cie cokes 27 DONC gee ener ee PEPE E A eens tm 27 iUic
16. E Tuning entry P104 0 Settings El Drive Programming end P105 0 E Parameters P106 0 TY Task01 P107 0 P108 P109 0 P110 0 P111 0 P112 P113 0 P114 0 P115 Preprocessor Commands P116 0 Program Control Commands P117 0 Arithmetic C d P118 0 rthmetic Lommands P119 0 Input Output Control Commands P120 0 PI2L o v Timer Control Commands El Mx2 Project Parameter Control Cammands For Help press F1 MX2 A2 BOO4 PRG43234309 NUM Z Drive Programming 3 1 Saving and loading programs A drive program is automatically saved when the drive document which contains it is saved When a CX Drive document is opened the drive program 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 drive information To do so use the Program Export Program command in the Drive menu Enter the name of the file to be used The file will be saved with extension driveprogram A drive program can be imported with the Program Import Program command in the Drive menu 3 2 Editor The Program Editor is the main window of the Drive Programming function New Tab v ml gt Eb dA ity Om iB Alo 3m 3c 7 a Wo Me ue x ge dd a sl Pw Pw T Task01 T entry E end zl E E Mx2 Project The window area consists of a toolbar with common commands and a designer area
17. Makes the inverter run the motor in reverse direction starts the inverter output This command is a shortcut of the func value command RV 1 for RX and MX2 or DOWN 1 for LX Note This instruction is available since CX Drive v2 10 Makes the inverter decelerate and stop the motor stop the inverter output Command Descripion Arguments It sets the frequency of the inverter AD This command is a shortcut of the Value any variable or constant Sel command range from O to 40000 iius Units 0 01Hz a Set Freq value Note This instruction is available since CX Drive v2 10 74 Drive Programming Example entry Top select Xw case 1 set fre fw lt 1 case 2 q ry i 1 case else stop endselect goto Top end a 3 1 11 12 Hest Block Goto Top 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 19 Drive Programming Trip Command Descripion Arguments N _ e Value any variable or constant This instruction makes inverter trip Ti range O to 9 Trip lt value gt entry loop _ FH 1 if X 01 6 goto jmp trip 1 stop mp goto loop end if X 01 0 goto gt Go to jmp 4 m Hest Block E This sample program will throw a user trip on
18. 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 will show a short help text for it Click on any category title to display the blocks which belong to that category 15 Drive Programming 3 7 Block Parameters window The Block Parameters window allows the user to edit drive program parameters which act as variables of the program The parameters are organized in categories Block parameters is displayed when Drive Programming is entered You can also show or hide it by clicking on Drive Programming Block Parameters in the View menu Block Parameters is displayed by default docked at the rightmost side of CX Drive You can resize it as needed to better display its elements Also you can toggle its docking by right clicking near the window s edges User Parameters e EE e P101 P10 P105 Ping P105 P106 Pio P10 oOo oOo A oO oO Oo 0 E mm Drive Programming User parameters Set range is 0 to 65535 To change the value of a block parameter place the cursor at its row and click on the edition box to the right of its name Enter the new value CX Drive will warn you if the value exceeds the valid range At the lower part of the window a help text for the block parameters is displayed 16 Drive Programming
19. Range of Values Attribute General purpose analog input XA 0 O terminal General purpose analog input pid as O to 10000 1 word Ol terminal 0 01 peal purpose analog input O2 terminal only for RX and LX These variables can be used to monitor the analog input to the O and Ol and O2 terminals Terminals O L Ol L O2 L Associated parameters A011 to A015 A101 to A105 A111 to A114 XA 2 is only available for Rx and LX YA O0 YA 2 Descipion General purpose analog output EO terminal for MX2 FM terminal for RX and LX Unsigned Pene purpose ew 7 output 0 to 10000 1 word AM ew 7 0 01 General purpose analog output AMI terminal only for RX and LX With this variables we can monitor the analog outputs any multifunction assigned to them or write analog output if YA O to YA 2 are assigned to analog multifunction parameters C027 C028 and C029 Value is reflected as a data range from 0 to 100 0096 YA 2 is only available for RX and LX 30 Drive Programming UB 00 UB 07 Range of Values These variables can be used as bit variable for the user UBw Description Range of Values Attribute ig Internal user contact word access 0 to 255 pol The bit variables reflected as single word TC 0 TC 7 Range of Values Attribute Timer counters 0 to 7 31 Unsigned d Unit 10ms Oto 2 l 2 word bib The timer counters TC 0 to TC 7 operate
20. 00 X 02 input terminals are stored in the UB 0 UB 2 internal user contacts and monitored on the d025 parameter Finally the status of the X 02 input terminal is set to the Y 00 output terminal 65 Drive Programming UBw value Command Descripion Arguments Assigns a value to the internal user contact controls Instruction to access internal user contact by word Value any variable or constant UB w yalue Note UBw 1 gt bitO UBw 2 gt bit 1 UBw 4 gt bit2 UBw 8 gt bit3 UBw 16 gt bit 4 UBw 2 32 2 bit 5 UBw 64 gt bit 6 UBw 1282 bit 7 Example entry loop UB 8 X 88 UB 1 X 81 UB 2 X 82 UMon 8 ubw 2 E P y 88 UB 2 eee goto loop 3 UB 1 X01 4 UB 2 x02 J Lond UB E Yio UBI 7 Next Block 9 t loop The internal user contacts are cleared on the loop s 1 instruction The status of the X 00 X 02 input terminals are stored in the UB 0 UB 2 internal user contacts and monitored on the d025 parameter Finally the status of the X 02 input terminal is set to the Y 00 output terminal 66 Drive Programming 6 4 Timer Control Commands Delay Command Description Arguments This instruction sets the count of the timer in lt value 2 gt and starts the timer counter When the timer output TD K is turned on off lt value 1 gt is turned on off It is important to note that meantime coun
21. 07 _ IP Signal during m power interruption v v R__ C021 C026 08 Under voltage signal AR 002 0026209 THQ Torque limitation signal 6 V x Y Coat C026 10 RNT RiUNtimeove 0 v Y v R CO21 C026 11 PONT jON meovr v v v R C021 C026 12 THM Thermal warning v v v R OO21 CO026 13 em R C021 CO26 14 SA R coat coze 16 ee Y H C021 C026 17 EA H C021 C026 18 BRK Brakeopen v v MESE R C021 C026 19 BER Brkeerr v yY MESE R CO21 CO26 20 ju R C021 CO26 21 E R C021 C026 22 JR C021 C026 23 JR C021 C026 24 FAS Onlythesettingfrequency2_____ v v MESE R C021 CO26 25 JR C021 C026 26 amp E R C021 C026 27 Y R C021 C026 28 X MESA R Cco21 C026 29 Capacitor life warning EE R CO21 CO26 30 FFBV PID feedback comparison v 3 JR C021 C026 31 NDc Communicationbreakdetecion v v MESE R C021 C026 32 2 R C021 C026 33 SE RH C021 C026 34 yy R C021 CO26 35 v MA H C021 Co26 36 2 NEM R C021 C026 37 x JR C021 C026 38 JR C021 CO26 39 my R C021 CO26 40 JR C021 CO26 41 OHF Cooling fan over heat preannounce v Y MESE R C021 C026 42 yy R
22. Functions BRK BER ZS DSE POK FA4 FA5 OL2 ODc OlDc FBV NDc External input Input output related functions ALA Instructions O p z O D gt e o co as LOG1 LOG2 LOG3 WAC WAF FR OHF LOC IRDY FWR RVR MJA WCO WCOI FREF REF SETM EDM General purpose input LX X 00 to X 06 7 contacts contact RX X 00 to X 07 8 contacts MX2 X 00 to X 07 8 contacts Number of variables Extended IO option input contact General purpose gutui LX Y 00 to Y 03 4 contacts contact dius p RX Y 00 to Y 05 6 contacts MX2 Y 00 to Y 02 3 contacts LX Y 04 to Y 06 3G3AX EIO E expansion card Extended output contact MX2 amp BX JB 0 to UB G6 cona Internal timer contact TD 0 to TD 7 8 counter contacts Internal timer counter TC 0 to TC 7 8 counters Inverter input output Specification by code on the remote operator s display UMon 00 to UMon 02 3 user monitors Makes the inverter trip 10 trips 7 Drive Programming 3 Drive Programming Editor Drive Programming Editor allows the user to design drive programs in an intuitive way CX Drive provides a way to create drive programs compile them transfer them to and from the drive start and stop their execution and other related tasks You can open this function by clicking on Drive Programming in the workspace of a drive which supports it or selecting Program Program Editor
23. Parameters Properties and Error List will be displayed automatically 2 The three ways to edit the code are a Manual typing b Calling code snippets Ctrl Space c Drag amp Drop commands from Toolbox window like Flowchart Editor 3 You may now compile the program transfer it to the drive export it etc Note 1 The Text editor is supported from CX Drive version 2 50 Note 2 Text and Flowchart Tasks Subroutines can be used simultaneously within same program 3 12 Run a program After transferring the program to the device you can run the program with the command or setting the next inverter parameters MX2 and RX D Drive Programming program will be 0 Disabling signed Drive Programming program will run A017 Drive ao i Programming Selection 1 PRG terminal by digital input Set terminal to PRG function 2 Always Drive Programming program will be always running P Drive Programming program will be F025 Drive Programming 0 Disable disabled function selection E Drive Programming program will be Enabled Drive Programming program will run F026 Drive Programming 0 TRM PRG terminal by terminal Set terminal to PRG RUN trigger selection IBnclion 1 PARAM Drive Programming program will run if setting FO25 enable F025 enable 3 13 Comments Text Editor Only it is possible to add comments in a Text editor task or subroutine To add a comment in a text line press the character
24. Programming Ifs Else End If Command Descripion Arguments This instruction executes different portion of code based on a condition When the condition is met this instruction executes instruction set 1 gt When the condition is not met this instruction executes instruction set 2 Ifs condition Then instruction set 1 Else instruction set 2 Endif Example 7 Hest Block 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 lt 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 levels Instruction set 2 One or more instructions until End If instruction It can contain nested instructions up to 8 levels IF Ugo Urn Then entry loop _ if U gt U B1 then U 3 28 else U 83 10 endif goto loop 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 41 Drive Programming Select Case End Select Command Description X Arguments This instruction allows multiple program sections to be executed
25. Tab New Task flowchart or New Subroutine flowchart 3 Drag each block of the program from the Toolbox window to the Flowchart Program Editor 4 After dragging a block edit its properties by clicking on it and edit the arguments in the Properties window 5 Connect the blocks accordingly 6 Edit the drive program variables in the Block Parameters window 7 You may now compile the program transfer it to the drive export it etc Alternatively you can connect to a drive which has a program and transfer it following the simple steps described below 1 Open the Program Editor The auxiliary Drive Programming windows Toolbox Block Parameters and Properties will be displayed automatically 2 Click the Transfer from Drive button in the program Editor Toolbar The program will be transferred from the drive and automatically displayed in the Program Editor designer area 3 You may now edit the program compile it transfer it to the drive export it etc When a drive program is present you can also transfer it from and to the drive 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 18 Drive Programming 3 11 Creating a program with Text Editor Follow the steps described below to create a drive program 1 Open the program Editor The Drive Programming auxiliary windows Toolbox Block
26. Values Attribute MA Timer contact output word access 0 to 255 E pin OR It access to the timer counter outputs as word 31 Drive Programming 5 5 Digital input Functions These variables correspond to the settings available for the digital multifunction input terminals Setting the variable to 1 will simulate the function as if the terminal was closed in a digital input It is interesting to note that the multifunction does not need to be configured in order to use the function E g FW 1 will generate a RUN Forward command as used in some examples Please refer to the inverter user manual for details about the individual functions Values 0 Off 1 On Function Description MX2 RX LX Usage Comment Fw Fomwad S O V E R W C001 C009 00 RV Reverse V Nw R W C001 C009 01 CFt CF4 Multispeedi 4 1 y V MESS Rw CO001 C009 02 05 JG Joging 1 S Y v R W C001 0009 06 DB External Brake V V ESQ FW C001 C009 07 SET j Secodconro v v v RW C001 C009 08 2CH 2 acceleration decelerationtime wv v ES Rw C001 C009 09 FRS Freerun y RW O00t C009 11 EXT Externaltip Y v Y RW C001 C009 12 USP X Unattended start protection v v eS Rw C001 COOD 13 CS Changefromcommercialpower_________ _ y v ES Rw CO
27. any variable or constant time in 10 x ms e Condition A comparison between two T variables or constant with the format lt Left alt ime i i This instruction makes the program eee mane O Or a or Matha Wait Time value from 0 to 32767 10ms gt Left hand value any variable or constant a range 128 to 127 a Comparison lt gt lt gt lt gt Right hand value any variable or constant range 128 to 127 Wait lt value gt or lt condition gt NOTE WaitTime is not accurate way to measure time please use internal timers or external Real Time Clock in LCD for accurate time measurement Example Wait Time wait during a time period entry loop_ wait 100 inc U 88 goto loop _ end Go to loop Ment Block The P100 parameter is increased every second Example Wait condition wait for condition entry loop _ wait X 880 1 inc U 88 wait X DB 1 goto loop end Go to loop Hest Block The program waits until the digital input is closed you need to set one of the multifunction inputs for this and then P100 parameter is increased 46 Drive Programming 6 2 Arithmetic and Logic Commands Substitution Command Description Arguments Result any variable Value any variable or constant range 2147483648 to 2147483647 0 E UH Uma 2 U 88 U U 81 E U 00 100 les 2 U 88 u 83 17 mod U 65 e 7 0101 01
28. bit 5 Xw 642 bit 6 Xw 128 gt bit 7 only for RX and LX Xw 256 gt bit 8 only for LX with extension I O Xw 512 gt bit 9 only for LX with extension I O Xw 1024 gt bit 10 only for LX with extension I O Xw 2048 gt bit 11 only for LX with extension I O entry loop_ U e i xw u U e u a utoe yw U 88 goto loop 2 Ug uo z4 3 100 U nn and 15 Go to loop Hest Block This example acquires the state of the X 02 X 05 input terminals and outputs it to Y 00 Y 03 output terminals To cut X 00 X 01 the U 00 value is divided by 4 To cut X 06 X 07 the U 00 value is masked by 15 58 Drive Programming Y i value Command Descripion Arguments e i Number of the contact output range O to 6 Value any variable or constant Note The inputs have to be assigned to digital multitunction output by the multifunction 44 to 49 for MX2 and RX and 35 to 41 for LX entry SET Freq ACCEL DECEL yw i 8 FH 1 LOOP _ if FM lt U 88 goto 5T881 v GB8 1 if FM lt U 1 goto STe 2 Y 801 1 ST861 goto LOOP _ 51002 FW i 8 end if Fh4 000 goto ue gt Goto STOO if Fh4 LI O1 goto ue gt Goto STOO 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 99
29. depending on a variable value For a particular CASE section it Executes instruction set n when conditional variable matches Conditional variable the instruction conditional value n select variable If conditional variable doesn t match Conditional value x variable value any of the CASE section the instruction Instruction set x One or more set if no other Case Else is executed instructions until next case or end This instruction is convenient when select lt can contain nested instructions L aseElse multiple choices have to be done from up to 8 levels parameter value It makes simple some O a if then structures This instruction is recommended to organize program by Ende using subroutine calls as instruction set Select lt conditional variable gt Case lt conditional value 1 gt ano Caseta B Case Ujit Case conditional value 2 instruction set 2 CESE lt instruction set if no other gt End Select End select Example entry loop _ select U case 1 u 1 case 2 u a1 Case else u 1 endselect goto loop end Go Eo loop The P101 parameter is set to 100 200 300 or 500 depending on the value of the P100 parameter 1 2 3 or any other respectively 42 Drive Programming For Next Command Description ___________ Arguments Variable any variable Start value Initial value it is the value Executes instruction set repeatedly assigned
30. ish lh At hi i k a X jet h d re PT P UL x t E E kj ae ae T Program 5 Program Run lle entry u ee x ea call Run end a Ma This area may have different pages organized in tabs Each tab is either a Task or a Subroutine in Flowchart or Text The designer is created with one default tab which is a Text Task When a program is compiled without error an icon with a circled green arrow highlights the starting point of each Flow chart task With text editor the output window will indicate if the program is compiled successfully 12 Drive Programming For programs compiled with errors a red icon with an exclamation mark identifies the erroneous blocks with Flowchart Editor Placing the mouse on the error icon displays the compile error which can also be seen in the Error List C w a elements in this Flow chart must be Fully connected With Text Editor in the output window will appear the errors of the program The error will be showed with a red underline amp ummy ULOL A838 A Task or Subroutine may be deleted or renamed by right clicking on the tab title Task 01 Subroutine 01 Delete Current Subroutine Rename Current Subroutine Right clicking on an area which is not an element of the flowchart displays a popup menu which allows you to Paste elements that you have previously copied or to select all the elements Select All 1
31. the frequency set point of the inverter Always reflects the reading of parameter F001 regardless the setting of A001 This variable is not stored in the inverter EEPROM It will be restored to initial setting after power cycle When the inverter receives an operation command FW 1 or RV 1 it accelerates the motor up to the frequency that was set last ACCEL Range of values Default Attribute setting se 2 word This variable can be used to read and write the motor acceleration time in the inverter It is enabled only when the setting of accel decel time input selection P031 is 03 PRG Please note that it does not correspond to the setting of inverter parameter F002 The data written to this variable is not stored in the inverter s EEPROM It restores initial value after power cycle Note 1 By default when the inverter power is turned on the acceleration time follows the setting of the inverter parameter F002 F202 or F302 For details refer to the Inverter Instruction Manual Note 2 When a program writes a value to this variable the value is reflected in the inverter in a 40 ms cycle which conforms to the standard inverter specifications 25 Drive Programming DECEL Range of values Default Attribute Deceleration time 0 01 Unsigned This variable can be used to read and write the motor deceleration time in the inverter The deceleration time setting using this variable is enabled only when th
32. the inverter when digital input X 01 is set to ON Go Eo loop 76 Drive Programming AA gt Command Description Arguments It sets the acceleration time of the inverter This command is a shortcut of the command Units 10 ms Accel lt value gt Note Parameters P031 for MX2 and RX or A053 on LX must be set to value 3 Drive programming Value any variable or constant range from 1 to 360000 for the command to become effective Dec 0 0 000 00 Command Description Arguments It sets the deceleration time of the inverter This command is a shortcut of the command Units 10ms Decel value Note Parameters P031 for MX2 and RX or A053 on LX must be set to value 3 Drive programming Value any variable or constant range from 1 to 360000 for the command to become effective if 00 1 then entry loop_ if x 00 accel decel set freg fw 1 else stop endif goto loop _ end 1 then 188 28000 load SET Freq 1000 Go to loop Hest Block 10 This sample program will set the Acceleration to 10 seconds and deceleration to 20 seconds if digital input X 00 is set to ON if 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 error
33. to the variable in the first loop until variable reaches end value End value Value that exits the loop Each cycle incremental value is added Incremental value The variable will be to variable incremented by this value each loop Instruction set One or more instructions until Next instruction It can contain nested instructions up to 8 levels For 000 Uf00 to For lt variable gt lt start value gt lt end value gt lt incremental value gt lt instruction set gt Next entry for U 1 1 to 8 step 1 u aa u 81 wait 100 next end for 0104 z 11a 8 Step 1 2 007 10101 3 This example make the variable U 00 P 100 count from 1 to 8 each second 43 Drive Programming While Wend Command Description Argumens Executes lt instruction set gt while a condition is met While lt condition gt lt instruction set gt Wend Example while 00 1 Hent Block e Condition A comparison between two variables or constants 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 lt gt lt gt lt gt Right hand value any variable or constant range 128 to 127 e Instruction set One or more instructions until Wend instruction It can contain nested instructions up to 8 levels While U 0O LH on entry
34. where the program is displayed as a text Drive Programming 3 3 Toolbar The Program Editor window contains the following commands 3 3 1 Common Commands Commands Image Descripti n NENNEN E A It allows creating a new Flowchart task for the program up to the New task Flowchart T3 maximum number of tasks allowed Tasks are parts of the program which are executed independently of each other It allows creating a new Text task for the program up to the New Task Text maximum number of tasks allowed Tasks are parts of the program which are executed independently of each other Flowchart part of the program which is called from a task Text the program which is called from a task Peraza Cunan OM Relovetorametecireinione ask Subroutine Delete Current Tab j Itdeletes the current Task or Subroutine Undo s It reverts the latest change Redo J fu Itrecovers the most recently undone change Transfer to Drive ls the program and if there are no errors transfer it to the Transfer from Drive lt transfers the program from the drive to the Program Editor It starts the program in the drive CX Drive will first compare it with the program currently being edited to make sure that they are the same If they differ the program will not be started It stops the program in the drive This action is done regardless of whether the program in the drive is the same that i
35. 00 1106 17 mod U 0s abs UL 7 3 8 0102 Ue Ut 11107 abs ULF 3 The P100 and P101 parameters are set to 200 Command Description Arguments Result any variable Value 1 any variable or constant range Adds value 1 and value 2 128 to 127 Value 2 any variable or constant range 2147483648 to 2147483647 result value 1 value 2 Warning Drive Programming does not control overflow underflow The application should take care 00 1 5808 U 00 02 e 3 Um u00 11101 4 The P102 parameter calculation result is 700 47 Drive Programming Subtraction Command Description Arguments Result any variable Value 1 any variable or constant range Subtracts lt value 2 gt from lt value 1 gt 128 to 127 Value 2 any variable or constant range 2147483648 to 2147483647 lt result gt lt value 1 gt lt value 2 gt Warning Drive Programming does not control overflow underflow The application should take care Multiplication Description Arguments Result any variable Value 1 any variable or constant range Multiplies value 1 by value 2 gt 128 to 127 Value 2 any variable or constant range 2147483648 to 2147483647 result value 1 value 2 Warning Drive Programming does not control overflow underflow The application should t
36. 001 C009 14 SFT jSofiwrelock CECT y v Rw C001 C009 15 AT Change of analog input v y es Rw CO001 C009 16 SEI3 j 3 cnol MEA y NEN RW _ C001 C009 17 RS Systemrest v v v RW C001 C00 18 STA jStatof3wies y y R W C001 C009 20 STP Stopof3wires wv y R W C001 C009 21 F R JjForward Reverseof3wires V y R W C001 C009 22 Switch PID m PIDC R W C001 C009 24 R W CO001 C009 26 R W C001 C009 27 R W CO001 C009 28 E Rw CO001 009 29 R W O001 C009 31 R W CO001 C009 32 38 R W C001 C009 39 R W CO001 C009 40 R W C001 C009 41 42 R W G001 C009 43 R W C001 C009 44 R W C001 C009 45 R W C001 C009 46 R W O001 C009 47 R W CO001 C009 48 E Rw CO001 009 50 R W C001 C009 51 RW CO001 C009 52 R W C001 C009 53 R W C001 C009 54 E Rw CO001 0009 55 R W C001 C009 56 63 R W C001 C009 65 R W C001 C009 66 68 R W C001 C009 69 E Rw C001 009 70 R W O001 C009 71 RW C001 C009 72 R W C001 C009 73 RW C001 C009 74 R W C001 C009 75 R W C001 C009 77 Reset of PID integration Control gain switching Increasing speed from remote Decreasing speed from remote Clear data from remote operation Change to operator Multi speed bit 1 7 Overload prote
37. 147483648 to 2147483647 result Not lt value gt Note Unexpected result will be obtained with instructions like UB 1 Not UB 0 Please use XOr command to negate variables with bit data size in Drive Programming as shown on the next examples Example 1 UB 1 UB 0 Xor 1 Example 2 UB 2 X 00 Xor 1 Warning Drive Programming does not control overflow underflow The application should take care Example entry U a3 loop_ U 84 not U 83 goto loop end Go to loop Hest Block The initial P104 parameter calculation result is 65523 as 12 in binary format is 0000000000001 100 so the result of the not operation is 1111111111110011 that is 65523 in decimal format If P103 is changed by the user then P104 will recalculate accordingly 94 Drive Programming Command Descripion Arguments 1 Increments a value by 1 Value any variable Inc Inc lt value gt Warning Drive Programming does not control overflow underflow The application should take care Example entry loop_ inc U 82 wait 106 goto loop end Go to loop Hest Block The P102 parameter is incremented by 1 every second 55 Drive Programming Command Description Arguments Decrements a value by 1 Value any variable Dec Dec lt value gt Warning Drive Programming does not control overflow underflow The application should take care Example entry u 82
38. 81 Unsigned d086 Trip monitor 1 to 6 0 to 127 1 word The data monitored with these variables correspond to the data monitored by trip monitors 1 to 6 d081 to d086 Range of values Default Unit Attribute l 0 1 Unsigned d102 DC voltage monitor 0 to 9999 m Vde b d OR The data referenced with this variable corresponds to the data monitored by the DC voltage monitor d102 STATUS Range of values Default Unit Attribute Unsigned This variable can be used to reference inverter status information The information is reflected with the following bit weights zs Reserve Under Reset Over voltage Over current Overload Retry oltage suppression suppression suppression 28 Drive Programming 5 4 Terminal Variables Input Output Control Instructions X 00 X 11 Range of Values Attribute 0 Off See table below for each inverter function number Inverter function number Range of Values Attribute MO Input terminal word 0to 65535 nsigneo ORO Instruction to access contact inputs by word Each bit reflects one of the inputs Y 00 Y 06 Range of Values Output terminal O to 6 1 On See table below for each inverter function number Inverter function number Range of Values Attribute Unsigned This variable can be used to change the digital output terminals in units of word Each output is one bit 29 Drive Programming XA 2
39. C RETE T C A O 43 Miles Memes nected tina EEE Coie E E A sedet Are wh las ee ca cs tud pana i LA LaL Lr mte Ul E Le 44 Bio CF ity Eee nd t Rr t 45 lieet PO ec tile ete 46 6 2 Arithmetic and Logic COMM ANOS ushtunu ete aee ed cias 47 uelle S 47 ACAO NR TETTE edi 47 Si MI ML M CI A dw M DERE MED ME EE 48 MP O ENT 48 IIS o do o lol cds dond 49 o A eee M ee tf oP ee DHT NO EEO Ot oY I PIR A 49 PS Se ead eeepc S O ON mate 50 A A A A M RS 51 O rd dido edecanes Ecos 52 O O II A 53 A O A A aE eee O 54 A AI TRES 55 D1 E a T Be oe inca oN Saeed acted A Lee ee 56 6 3 Input Output Control Commands occccnnncccnnccnnnnoccnnnnnnnnnnnnnnnnanncnnnnnnnnonnnnnnnnnnnnnnnnnnnnnnnnnannrrnnnnnnnnnns 57 O TC 57 NN ex ui ML MEM I hae A A A 58 2d E E T E E A 59 b RERUM NER UR MT 60 UV C 61 MOT FUNG si tritio sh 62 Vars UB A A Ae 63 Varas DI Rm 64 UI valle iot Sce a LA A IL Rte LEAL 65 UBW BIETET ER DERE 66 6 4 Timer SON TO CON MAN lados 67 DA A o deis 67 ANAN E E E AAT ee ne amas T EIE 68 A T 69 6 5 Parameter Control Commands iii edere d va ta Pa tob testor cet ee a coe erect ehe at oc deua saad 70 Suet M 70 MA A 71 E GON Ee A 72 Drive Programming A ENTONCES 73 6 6 Inverter Control Commands m
40. Cat No 1170E EN 01A SIN AAA MX2 RX LX Drive Programming Model MX2 series inverter RX series inverter LX series inverter USER S MANUAL AA TT gt EAT ESAS M eee i AM 4 PROGRAMM J Drive Programming Table of Contents 1 2 3 Ia I QI I MUOd CUO pe D S 5 1 1 Handling of this Instruction Manual ccccoooonnnnccconcnncnnnccnnconancnnnnnancnnnnonncnnnnnannnnnnnnnnnnnnnnnnrnnnnnnnnns 5 ire c m 5 1 3 Preparation and System CONFIQUIATION cccccccseeseeeeeceseeeeeeeeeeaseeseeeeeeeseaeeeeeeeesuaaseeeeesasanseseesenaas 6 a o ENTERO DLE D 7 Drive Programming EGLIOE cuoc ece coax pcc iacu c ends S wecessdauce cosnu se cuan an cera aUe Du en e cEdsiu uc L Ou e Nan T PME M URUUE 8 3 1 Saving and loading programS 222546045 ce ateecc ict one 1o tte a un IE Too on actua ae dis 9 A m EN 9 SS Korolorzi nee D T 10 99e ComM GoTmimeatids s aoi adieueecttbesa ge dd oculta iubose meique orent d dette uiuis idco ue Pub st 10 3 3 2 Commands for the Flowchart Editor oooccccnconccccccocononnncenonncononononnnnncnnnnnnonnnnnnnnnarncnnoos 11 3 3 3 Commands for the Text EOI aa 11 DS tei Se S cuan eee ean et iSc tes LR EE E bru Mite es AE 12 SODIO SAO li TET T T S 12 30 TOOIDOWINCOW TT 15 327 Block Parameters WINGOW a ls Cece is testem au le thee 16 A err ete sen ERC
41. Programrun__ p E Y Rw CO001 C009 76 XX KK OX OX OX OX OX OX OX OX OX OX OX OX OX OX OX OX OX OX OX OX OX OX OX OX X X X X X X X X X X X X X X X X X X X X X X X X X X X Note The LX inverter functions are available for the digital multifunction input terminals P140 P144 Multi Input Ex IN1 5 gt 3G3AX EIO E LX extra I O board 33 Drive Programming 5 6 Digital Output Functions These variables correspond to the settings available for the digital multifunction output terminals The variable can read and used as it would be for an external device connected to the digital output configured for the function It is interesting to note that digital outputs are not required to be assigned in order to use the function within the program in other words no waste of digital outputs required Function Description MX2 RX LX Usage Comment RUN Running v v v R C021 C026 00 FA1 Reachingconstantspeed Y v v R OCO021 C026 01 FA2 Greater than setting frequency v Y v R C021 C026 02 OL Overlvadpreamounce Y v v R C021 CO26 03 OD PiDdeviationoverrate v Y MES R C021 CO26 04 AL Tuipsgna v v v RH C021 C026 05 FA3 Only the setting frequency v v v R G021 C026 06 OTQ__ Over torquelunder torque __ vj B C021 0026
42. X Up to 6 terminals Y 00 to Y 05 MX2 Up to 3 terminals Y 00 to Y 02 External Output YA 0 Assignable to the EO terminal FM terminal for RX General purpose analog output Program control instructions Loop For Unconditional branching Goto Time control Wait Conditional branching If Then Ifs Then Else Select Case Until and While Subroutine call sub Others Entry End Sub End Sub Inc and Dec Arithmetic instructions Arithmetic operation Remainder Mod Substitution Absolute value Abs Logic operation Or And Xor and Not Input Output control General purpose input output bit input word input bit output and word output Reading of inverter input terminal Timer control Delay operation Timer control 5 Parameter control Rewriting of parameters by reselecting code on the operator s display U 00 to U 31 32 variables UL 00 to UL 07 8 variables FM lout Dir PID FB F CNV Tmon Vout Power RUN Time ON Monitoring variable Time PlsCnt Only RX POS STATUS DCV ERR CNT ERR 1 ERR 2 ERR 3 ERR 4 ERR 5 and ERR 6 FW RV CF1 CF2 CF3 CF4 JG DB SET TCH FRS EXT USP CS SFT tale AT RS STA STP F R PID PIDC UP DWN UDC OPE SF1 SF2 SF3 SF4 SF5 SF6 SF7 OLR TL TRQ1 2 BOK LAC PCLR ADD F TM ATR KHC AHD CP1 3 ORL ORG SPD RS485 HLD ROK DISP RUN FA1 FA2 OL OD AL FA3 OTQ UV TRQ RNT ONT THM Output
43. a It converts whole program to text 21 Drive Programming 3 18 Find amp Replace function This Find and Replace function are only available in text mode Find and Replace function allow look for an exchange code inside your text program To use Find function press the icon or the shortcut keys Ctrl F fi n To use Replace function press the 48 icon or the shortcut keys Ctrl F Find and Replace window Xl AS xj Find Replace Find Replace Find what Find what Look in fan text tabs Replace with Look in all text tabs Find options Find options Match Case Match Case Search Up Search Up Replace ali Replace Find 22 Drive Programming 4 Drive Program structure The programming language is a Flowchart Text language The inverter can process five parallel tasks The processing is as following diagram gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt Command Execution gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt gt Elapsed line line line line ume Po Entry Entry ode Entr Entr Process B Process D entry Entry ms 4 lt lt lt lt lt lt 10 12 14 Process B Process D 16 Process E 18 20 Process A 22 24 Process B Process D 26 28 Process A Process C Process E 30
44. able A902 Insertion Point Frequency before ACC Dec Gain 0 to 100096 A903 Insertion Point Frequency before ACC DEC Bias 100 to 100 9 2 Frequency after ACC DEC ACC DEC LAD Fre Motor q i Control block Gain A904 A Gain A904 0 100096 Bias l A95 15 Bias A905 100 100 Description A901 Insertion Point 0 Disable 1 Enable A904 Insertion Point Frequency after ACC Dec Gain 0 to 1000 A905 Insertion Point Frequency after ACC DEC Bias 100 to 100 9 3 Deviation before PID block A901 pee og PID block M in PID Deviation Gain A906 0 1000 Bias A907 100 100 Parameter Description A901 Insertion Point 0 Disable 1 Enable A906 Insertion Point Deviation before PID block Gain O to 1000 A907 Insertion Point Deviation before PID block Bias 100 to 100 81 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 Austria Tel 43 0 2236 377 800 www industrial omron at Belgium Tel 32 0 2 466 24 80 www industrial omron be Czech Republic Tel 420 234 602 602 www industrial omron cz Denmark Tel 45 43 44 00 11 www industrial omron dk Finland Tel 358 0 207 464 200 www industrial omron fi France Tel 33 0 1 56 63 70 00 www industrial omron fr Germany Tel 49 0 2173 680 00 www industrial omron de Hu
45. ait RUM goto loop Go to loop A forward and reverse run at 60HZ is repeated continuously 61 Drive Programming Command Descripion Arguments A terminal output status is assigned to a i anlaa o i variable e Function any function of output war zfunc terminal lt variable gt lt function gt Example entry loop _ U Z5 goto loop end Go to loop The value of P100 is set to 1 if the ZS zero speed signal is on otherwise is set to 0 62 Drive Programming Var UB i Command Description ____ ___ Arguments Variable any variable Assigns the value of an internal user value of the variable will be O or 1 contact to a variable i Number of the user contact var U Bl range O to 7 Format SS lt variable gt UB i Example entry loop UB X B0 UB 1 X 81 UB 2 X 82 UMon 8 ubw Y 00 UB 2 goto loop 2 LIB 0 00 3 UB 1 X01 4 UB 2 x02 J LI hon O LB Yio UBI E T Next Block Go to loop The internal user contacts are cleared on the loop s 1 instruction The status of the X 00 X 02 input terminals are stored in the UB 0 UB 2 internal user contacts and monitored on the d025 parameter Finally the status of the X 02 input terminal is set tot the Y 00 output terminal 63 Drive Programming Var UBw Command Descipion Arguments
46. ake care entry 508 U B8 U B1 2 1101 500 3 102 Upooy Um 4 The P102 parameter is set to 1000 48 Drive Programming Command Description Arguments Result any variable Value 1 any variable or constant range Divides lt value 1 gt by lt value 2 gt 128 to 127 Value 2 any variable or constant range 2147483648 to 2147483647 lt result gt lt value 1 gt lt value 2 gt Warning Drive Programming does not control overflow underflow The application should take care Example B entry entry u ae U 1 500 U 82 U e1 u ee end 2 Uf 500 3 102 10104 4 0 00 4 The P102 parameter calculation result is 250 Mod Command Description Arguments Result Any variable Remainder oi dvision ar um variable or constant range Mad e Value 2 any variable or constant range 2147483648 to 2147483647 result value 1 Mod value 2 Warning Drive Programming does not control overflow underflow The application should take care Example 500 U 1 mod Uae The P102 parameter calculation result is 0 49 Drive Programming As gt Command Description Arguments Result any variable Absolute value Value any variable or constant range 2147483648 to 2147483647 lt result gt Abs lt value gt Warning Drive Programming does not control overflow underflow Th
47. al Precautions 8 1 Parameters list affected by setting order A003 Base frequency setting A004 Maximum frequency setting A203 Base frequency setting 2 motor A204 Maximum frequency setting 2 motor BO15 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 of 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 Note this parameter list only affect MX2 and RX 8 2 Parameters list affected by Rated Current Parameter B012 Level of electronic thermal setting B016 Free setting electronic thermal current 1 B018 Free setting electronic thermal current 2 B020 Free setti
48. 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 Range of Values Attribute Timer contact output 0 7 bit 0 Off led access 1 On 1 word The data in timer contact output variables TD 0 to TD 7 change only when these variables are specified in the timer start instruction timer set or delay operation instruction delay on or delay off A timer contact output variable is set to 0 off when the counter corresponding to the contact output is cleared to zero the variable is set to 1 on when the counter stops counting the timing action selected finish While a timer counter variable TC k is being used for a free running timer counter timer contact output variable TD k corresponding to the timer counter variable retains its status Range of
49. ction switch Torque Limit Enable Torque Limit Selection 1 2 P PI switching Brake Confirmation Orientation LAD Cancel Clear Position Deviation Pulse train position command input permission Add Setting Frequency Forced Terminal Block Torque reference input permission Integrated power clear Servo ON Preliminary excitation Drive Programming MI1 MI8 Analog command on hold Position command selection 1 3 Origin return limit signal Origin return start signal Forward driving stop Reverse driving stop Speed Position switching Pulse counter Pulse counter clear GS1 input N SF1 SF7 L TRQ1 2 BOK PCLR STAT F TM Y X 00 X 07 CP1 3 PCNT X X X X KK KK X X X X OX X OX OX OX OX OX OX OX OX OX OX OX OX OX OX OX OX OX OX OX OX X OX X mm U mim gt TIN A D gt gt ro 710 OICIJICIO O 2133182 I GOOrA uo 2x NIETO D gt O ZO AD PI OSO ZO DU 2 0 Oz DA MOS 0 GS1 CO NO Drive Programming Description__________________ MX2 RX LX Usage Comment x Inverter communication startterminal wv HOLD Acceleration deceleration stopping DISP Display limitation terminal n v HB UP Upward RUNS L X X X X X Upward RUN E Y RW CO001 C009 00 v RW OC001 009 02 Change OL level E Y RW C001 C009 32 Kwhdea CY E Y RW CO001 C009 46 X 00 X 11 Torque bias latch trigger Leveling signal v RW C001 CO09 75 PRG
50. d Unsigned User variable 0 to 65535 in P100 PH R W to P131 User variables are the general purpose functions that can be used as unsigned 1 word The data written from a drive program to the user defined variables is not stored in the inverters EEPROM The variables will restore the initial settings when the inverter power is turned off The user defined variables correspond to inverter parameters P100 to P131 You can also change the settings of user defined variables from the digital operator The changes made from the digital operator will be stored in EEPROM This is also possible to emulate from drive programming by using the EepWrt command The variables P129 to P131 U 29 to U 31 are saved at power down of the inverter automatically This function may not work under heavy load motor output current or too small inverter low capacity in DC bus In case of trouble it is recommended to disable the inverter output to preserve the energy in the capacitors UL 00 to UL 07 or Internal User parameters Signed n n 31 Pn R 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 Attribute Output frequency 0 01 Unsigned When A001 7 Fred ref from Drive Programming it becomes
51. e Range of values Default Attribute d016 Run Time monitor 0 to 999999 Hour Unsigned 2 word The data monitored with this variable corresponds to the data monitored by the cumulative operation RUN time monitor d016 This variable is read only Range of values Default Attribute dog Oey ote 0 to 999999 Hour Unsigned 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 re Description Range of values Default Unit Data size Attribute DIS d025 v uerum ez eed d027 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 2 Drive Programming POS Description Range of values Default Unit Attribute d030 Current Position 27 1 to 2 1 1 Signed monitor E97 21 192 7 1 2 word The data referenced with this variable corresponds to the data monitored by the current position monitor d030 With RX when 03 high resolution absolute position control has been selected for control pulse setting P012 the range in brackets applies N of Unsigned d080 Trip counter monitor 0 to 65535 Nm da Ora ORO The data monitored with this variable corresponds to the data monitored by the trip counter monitor d080 ERR Range ofvalues Defaut is d0
52. e application should take care Example 0 entry zum UL 200 UL 61 abs UL G8 end UL 01 abs UL OO 4 The UL 01 variable is set to 200 50 Drive Programming AR gt Command Descripion Arguments And logical product e Result any variable Value1 Value2 Result Value 1 any variable or constant range 128 to 127 Value 2 any variable or constant range 2147483648 to 2147483647 result value 1 And Value 2 gt Warning Drive Programming does not control overflow underflow The application should take care entry u 2 U a3 loop_ U 84 U 82 and U 83 goto loop 1 end Go Eo loop Hest Block 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 91 Drive Programming Command Description Arguments Or logical addition Valuei Value2 Result _ cont pleure Value 1 any variable or constant Or EA Value 2 any variable or constant 0 0 range 2147483648 to 2147483647 13 jf j result value 1 Or value 2 Warning Drive programming does not control overflow underflow The application should take care Example entry u a2 u aa
53. e 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 FO03 The data written to this variable is not stored in the inverters EEPROM This variable will restore the initial setting when the inverter power is turned off Note 1 By default when the inverter power is turned on the deceleration time follows the deceleration 1 time setting F003 F203 or F303 For details refer to the Inverter Instruction Manual Note 2 When a program writes a value to this variable the value is reflected in the inverter in a 40 ms cycle which conforms to the standard inverter specifications 5 3 Inverter Monitor Variables This units does not always corresponds with the display units FM Description Range of values Default Attribute Output frequenc 0 01 Unsigned The data monitored with this variable corresponds to the data monitored by the output frequency monitor d001 This variable is read only lout Description Range of values Default Attribute 0 01 Unsigned d002 Output current monitor 0 to 9999 mM of a X 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
54. el L Bee U 82 TC 6 if TC lt U 1 goto LB88 goto loop end 102 TC iF TC 0 0101 goto Go to LBOO Go to loop Hest Block This program will set the timer TD 0 to an increasing value each timer execution taking longer time on each loop 68 Drive Programming Timer Off Command Description X X Arguments pd Clears the timer counter up counter to e k number of timer Timer Itt zero and starts it in free running mode range O to 7 Format CCC Timer off TD k Timing chart er 234 1 Comparison for matchin TD k i timer set TD k TOOD timer set TD k 1500 timer off TD Kk Example entry E U 1 20 T timer set TD 8 U el nup if X 1 1 goto LBGOG timer off TD 0 goto loop E LBee8 goto loop _ end if 01 1 goto True f Goto LEOOO E LBOOO wait TOO 1 Go to loop Hest Block o This example uses a fixed timer execution But it is cancelled when digital input X 01 is OFF 69 Drive Programming 6 5 Parameter Control Commands ChgParam Command Description_________ _ Arguments Changes the parameter s inverter setting e Parameter parameter code specified by display code to a value Fxxx Axxx bXXX Cxxx Hxxx Pxxx ChgParam Any inverter parameter can be changed e Value any variable or constant ChgParam lt parameter gt lt value gt Note The same rules to parameter writing from
55. erci ida HE 74 PUL TV c E 74 DIDI EV conset ciones ctn O A om dun en ee ee ae ee eee 74 AOD P 74 SOEP eme ea ROTC EE aS eR I CP ee ee REE een M 74 TOD ee eS os ss cease esameneesee 76 PG GN mE O 77 Deco E E 77 TA OUDIESNOOUN Garssia i 78 8 Drive Programming Parameters General Precautions esee eere 79 8 1 Parameters list affected by setting order ooooocccccccconnccnoncccnnanonnnnnononnnnnnnnnonnnnnnnnnonnnnrnnnnnnnnnanenns 79 8 2 Parameters list affected by Rated Current cccccccconcccononccncnnncnononononanncnnnnnnnnnononanannennnnononnnos 79 8 3 Parameters list affected by PID enabled disabled eese 80 9 Insertion Points MX2 Q RX ciae diset es oue incaico cnica su eS Yet oo Po Ese SE veas res 81 9 Ts Frequency belore AC GO DEQ suuni liada 81 O 2 Frequency alter AG Gi DEG ce et tias 81 9 3 Deviation Def re PID DOCK italia 81 Drive Programming 1 Introduction This Instruction Manual explains how to use the Drive Programming software for the Omron MX2 RX LX Series Inverter Be 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 N
56. fied in U ii Check the program for the instruction causing overflow underflow or division by zero not in early MX2 firmware Check the parameters and the values to be written lf the error has occurred during inverter operation check whether the parameter in question can be updated during inverter operation Check the setting of software lock selection b031 Check with the drive program documentation to recognize the trip conditions 18 Recreate the program and then download it to the inverter Correct the program so that the number of layers will be eight or less Correct the jump destinations of GoTo instructions As general recommendation never jump a Goto out of the current level it is Correct the value of variable U ii or limit the range of values of variable U ii Correct the program so that no arithmetic instruction causes overflow underflow or division by zero Correct the parameters or the values to be written to parameters so that they will be within the setting range Disable software lock If the parameter to be updated is the one that cannot be updated during inverter operation change the setting of software lock selection b031 to 10 to switch to the mode enabling parameter updating during inverter operation Check the drive program documentation to recognize countermeasures Drive Programming 8 Drive Programming Parameters Gener
57. figuration To create user programs with Drive Programming function of the inverter you must prepare the following devices and software 1 MX2 RX LX inverter 2 Personal computer PC Windows System 32 bit PC Windows XP SP3 Windows Vista any service pack and Windows 7 64 bit PC Windows Vista any service pack and Windows 7 3 Optional programming software CX Drive MX2 inverter CX Drive version 2 0x or higher RX inverter CX Drive 2 3x or higher LX inverter CX Drive 2 5x or higher 4 Optional PC inverter connection cable For MX2 it is a USB cable For RX LX the converter cable USB to RJ 45 is required Item codes Item code name for MX2 AX CUSBM002 E Item code name for RX LX 2 option cables 3G3AX PCACN2 or USB CONVERTERCABLE LX Inverter port Operator connection port RJ 45 RX Inverter port Operator connection port RJ 45 MX2 Inverter port USB connector The following figure shows the basic system configuration for programming Optional programming Windows personal Optional PC Inverter cable MX2 RX or LX software CX Drive computer Inverter e 10 75 FF For MX2 AX CUSBM002 E For RX LX 2 options 3G3AX PCACN2 or USB CONVERTERCABLE MX2 CX Drive 2 0x or higher RX CX Drive 2 3x or higher LX CX Drive 2 5x or higher Install CX Drive on your Windows personal computer and connect the personal computer to the inverter MX2 RX or LX via the PC inverte
58. from the Drive menu or with the CX Drive toolbar button s Please create a new CX Drive File by clicking on the menu File New The New Drive window will appear Image 1 Select the Drive Type and press OK button Then it will appear on the Workspace Image 2 New Drive 3w EjWorkspace1 CX Drive Drivel Drive Mame Ele Edit view Drive Tools Window Hel Mx2 Project As 0 Sud sema Drive Type la ata Inverter ws Settings Mx2 4 2 8004 PR 643234309 MX2 Project Offline H E Parameter Editor Connection Type Direct LSB Settings ii Graphs E Status Comments E rx Monitor E Settings E Drive Programming J E Parameters Settings Cancel Help HE User Parameters Type Your own comment in here Image 1 New Drive window Image 2 CX Drive Workspace Making double click to the Drive Programming option the Drive Programming Editor will appear Ej Workspace CX Drive Drive1 MX2 Project MX2 A2 B004 PRG43234309 Program Editor 3 2 Oj xj a File Edit View Drive Tools Window Help 181 xj 0 Sud xsme mxmm naeo m gwe axa a lees idj 8 x x m amp ssi gSgssso msmqut E L3 MX2 Project Offline n New Tab lab x gt 2 dc User Param a Parameter Editor E ki ip k a ki P100 ol i Graphs Wro E pi Status hji a sd Mills ae E Monitor P103 0
59. hd 0001 Xm ai Right clicking on a Flowchart block element it shows a popup menu with more options Bring To Front rn send To Back Align To Grid Ctrl e Ctro Ctrl V 13 Drive Programming Right clicking on a selected Text it shows a popup menu with more options dis Find goto Top Monitor a on Replace b cut m Copy B Paste Go to Subroutine yy Go to Label KD Undo C Rede Help The available menu commands with Flowchart editor are described below e Bring To Front places the element graphically in front of other elements e Send To Back places the element graphically in back of other elements e Pin fixes the element to its current position in the graph It will not be moved in click and drag operations e Lock acts like Pin and besides sets the properties of the element as read only Cut deletes the element and saves it in the clipboard for further pasting Copy saves the element in the clipboard for further pasting Paste puts 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 The available menu commands with Text editor are described below e Find looks for the selected text on the program code e Replace exchange the selected text on the program code e Cut deletes the element and sa
60. ms for task 2 and 20 ms for task 3 But when Eepwrt is not executed ChgParam doesn t need this waiting time Example only F002 is stored in EEPROM entry loop _ eepwrt F 82 U 82 Fa 3 U 83 goto loop end 2 Foo 1102 ki aa 3 FOO Um ki L I Go to loop p Ment Block J La On executing the program only F002 parameter is saved permanently from U 02 After power off and on again F003 will have the old value The initial values of the U 02 and U 03 variables can be set on the program variables list or the P102 P103 parameters 72 Drive Programming RSet Command Description Arguments This statement sets 6 bytes data of time to a variable This data corresponds with year month day day of week hour and minute The variable value in hexadecimal User variable any user or internal user corresponds to the year month day day variable U xx or UL xx HtcSet of a week hour and minute in decimal RtcSet on updates the 6 bytes data continuously RtcSet off updates the 6 bytes data only once RtcSet on off user variable Note 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 k It will set UL lt k gt with 2 bytes for
61. n the program designer It compiles the program which is currently being designed Compile ignis Compile errors and warnings will be reported as tool tips in the blocks in the flowchart Password d It allows you to set change or remove the program password Help amp It displays the Drive Programming help 10 Drive Programming 3 3 2 Commands for the Flowchart Editor GG EEE Zoomin increases the zoom leve E CE B 1H O RU MEER l u It allows the user to select one or more elements of the program Select Mode by click and drag with the mouse cursor This mode is active by default ES arene aca in any direction while keeping the same scale by click and drag aan Align EN It aligns horizontally the middles of the selected blocks Horizontal Align E It aligns horizontally the right sides of the currently selected al Right B blocks Vertical Align Middle It aligns vertically the middles of the selected blocks It arranges the elements of the flowchart automatically in the someones A placeholders for the beginning and ending of arrow connections Show Show It allows you to select a display style of the program Text only Icon Only Icon and Text or Name Icon and Arguments 3 3 3 Commands for the Text Editor GCommands Image Description A PRMBE Ie on Re remo soe It finds a text on the program code Replace j It I
62. ng 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 Note this parameter list affect MX2 RX and LX 19 Drive Programming 8 3 Parameters list affected by PID enabled disabled Multi speed O setting Multi speed 1 setting Multi speed 2 setting Multi speed 3 setting Multi speed 4 setting Multi speed 5 setting Multi speed 6 setting Multi speed 7 setting Multi speed 8 setting Multi speed 9 setting Multi speed 10 setting Multi speed 11 setting Multi speed 12 setting Multi speed 13 setting Multi speed 14 setting Multi speed 15 setting A220 Multi speed 0 setting 2 motor F001 Output frequency setting These parameters are affected by A071 A075 Note this parameter list only affect MX2 and RX 80 Drive Programming 9 Insertion Point MX2 amp RX The Gain Bias can be applied to any reference 9 1 Frequency before ACC DEC Set Frequency ACC DEC block Gain A802 0 100096 Bias A803 100 100 Description Range A901 Insertion Point 0 Disable 1 En
63. ngary Tel 36 0 1 399 30 50 www industrial omron hu Italy Tel 39 02 32 681 www industrial omron it Middle East Africa Tel 31 0 23 568 11 00 www industrial omron eu Note Specifications subject to change without notice Cat No 1170E EN 01A OMRON Netherlands Tel 31 0 23 568 11 00 www industrial omron nl Norway Tel 47 0 22 65 75 00 www industrial omron no Poland Tel 48 0 22 645 78 60 www industrial omron com pl Portugal Tel 351 21 942 94 00 www industrial omron pt Russia Tel 7 495 648 94 50 www industrial omron ru Spain Tel 34 913 777 900 www industrial omron es Sweden Tel 46 0 8 632 35 00 www industrial omron se Switzerland Tel 41 41 748 13 13 www industrial omron ch Turkey Tel 4 90 0 216 474 00 40 www industrial omron com tr United Kingdom Tel 44 0 870 752 08 61 www industrial omron co uk
64. nywhere in the cell text you will be able to edit it 17 Drive Programming 3 9 Output window It shows the compilation errors and warnings of the currently edited drive program after it is compiled Errors will prevent the program to be correctly compiled Warnings will allow compilation but advise customer of abnormal conditions Dutput x Date Component Description 30 03 2010 10 15 Black Entry All elements in this flow chart must be fully connected 3070972010 10 15 Black End All elements in this flow chart must be Fully connected Black Entry The Subroutine must begin with a Sub element Output Error List The E dup Error s button toggles displaying error in the list The 0 Warnings Warning s button toggles displaying warnings in the list The Message s button toggles displaying informative message in the list Messages in the list show the following information Date The date and time when the error was generated Component Identifies the element with an error Description The text of the error or warning message The list is automatically cleared every time a Compile is done 3 10 Creating a program with Flowchart Editor Follow the steps described below to create a drive program 1 Open the Program Editor The Drive Programming auxiliary windows Toolbox Block Parameters Properties and Error List will be displayed automatically 2 Select on the menu New
65. o part of this Instruction Manual may be reproduced in any form without the publisher s permission If you find any incorrect description missing description or have a question concerning the contents of this Instruction Manual please contact the publisher 1 2 Safety Instruction Be sure to read this Instruction Manual Inverter Instruction Manual and appended documents thoroughly before using Drive Programming and the inverter Before creating user programs for the inverter also refer to the Inverter Instruction Manual and configuration software CX Drive Instruction Manual for the necessary related Knowledge and ensure you understand and follow all safety information precautions and operating and handling instructions for the correct use of the inverter Always use the inverter strictly within the range of specifications described in the Inverter Instruction Manual and correctly implement maintenance and inspection to prevent fault from occurring When using the inverter together with optional products also read the manuals for those products Note that this Instruction Manual and the manual for each optional product to be used should be delivered to the end user of the inverter In 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 1 3 Preparation and System con
66. operator panel or communications apply Some parameters can not be written in certain mode of inverter e g some parameters can not be changed during RUN condition This instruction does not fix the parameter in EEPROM EepWrt to be used for this purpose Example entry loop _ inc U 82 Fa 2 U 82 wait 106 goto loop end Go to loop Hest Block J The F002 acceleration time setting 1 value is increased by 1 every second 70 Drive Programming MonParam Parameter parameter code Assigns the inverter s parameter content Fxxx Axxx bxxx Cxxx dxxx Hxxx specified by display code to a variable Pxxx Variable any variable entry loop UMon 8 goto loop _ end Go to loop Hent Black 3 The value of the F001 parameter output frequency setting is monitored on the d025 parameter user parameter monitor 71 Drive Programming The command allows write into EEPROM the next ChgParam executed just after this command if two ChgParam follows an EepWrt only for the first one will be saved Note Limitation of EepWrt If this command is executed in more than one task ChgParam is executed in the sequence it is detected For the second invocation of the command a waiting time of typically 10 ms will occur before each ChgParam is executed For example when ChgParam is detected in task 1 2 and 3 at the same time and the one in task 1 is executed at first is necessary to wait 10
67. r connection cable After completing these preparations you can operate Drive Programming Editor to create a user program and download it to the inverter The table below lists the main functions of Drive Programming Editor Programming Editor Supports the input editing saving reading and printing of user programs Compile and edit a user program Downloadina and uploadin Downloads a user program to the inverter i P 9 Uploads a user program from the inverter Drive Programming 2 Specifications The table below lists the programming related specifications of the Drive Programming function Programming support Editing on Windows Display on Windows function programming Program syntax check on Windows software Downloading uploading and full clearance of program Execution by interpreter in an execution cycle of 2ms per instruction possible subroutine call with nesting in up to 8 layers Contact Signal Language specification Execution format 24v open collector input using intelligent input terminals Program run signal input RX Assign to the PRG terminal Always run g MX2 Assign to the PRG terminal Always run Multifunction terminale RX Up to 8 terminals X 00 to X 07 MX2 Up to 8 terminals X 00 to X 07 XA 0 0 to 10V O terminal General purpose analog input XA 1 4 to 20mA Ol terminal XA 2 0 to 10V O2 terminal Only RX i General purpose output terminal R
68. s in the inverter refer to the inverter instruction manual Factor Error causing s Invalid instruction Nesting count error Instruction error 1 E50 User trip O to 9 to E59 The PRG terminal was turned on without a program downloaded to the inverter Subroutines are nested in more than eight layers For Next loop statements are nested in more than eight layers If statements are nested in more than eight layers The jump destination of a GoTo instruction is a next instruction to end a for or other loop The variable U ii referenced via another variable is not found An arithmetic instruction caused Overflow underflow or division by zero A ChgParam instruction caused reference to a non existing parameter writing of a value out of the setting range change of a parameter value during inverter operation that cannot be updated during inverter operation or Change of a parameter value of which updating is restricted by software lock when software lock is enabled These trips are generated from the user application The cause is determined by the Drive Programming logic By uploading the program you can check if really a program is in the inverter or not Read the program to check the number of nesting layers some times difficult to recognize Check whether each GoTo instruction jumps to an instruction that ends a loop Check the numerical value speci
69. ting proceeds the lt value 1 gt remains unchanged from original value Value 1 any variable Value 2 any variable or constant time in 10 x ms e K number of timer Delay on off value 1 gt TD k lt value 2 gt Timing chart Comparison for matchin il H 001 F F r Y A delay on Y 00 TD 0 1000 delay off Y 00 TD 0 1500 timer off TD D Example entry U 200 U l 300 i loop_ T if X 0 e goto GT001 delay on FW TD U 88 gt wait FW 1 delay off FW TD U 81 wait FW 1 61661 goto loop _ end if 00 0 goto True Goto GTOO1 Henst Block delay off FTD O0 00101 3 Sample program that activates deactivates the FW instruction with Delay On Delay Off instruction Ge to loop 67 Drive Programming Command Description Arguments Sets value in the timer and starts the Bon counter The timer starts from 0 and increments until lt value gt Associated Value any variable or constant time in 10 x ms Ate e K number of timer TimerSet imn as reflects status 1 finish range 0 to 7 Timer set TD k lt value gt Note Timer value can be check in variable TC k Completion of timer can be checked in variable TD k when it becomes 1 Timing chart TE k Comparison for maichin TD k timer set TD ki 1000 timer set TD k 1500 timer off TD k entry loop _ inc U 81 timer set TD 8 U
70. treplacesatextontheprogramcode i a text on the program code Increment Indentation NN It increases the indentation of the selected text Decrement Indentation It decreases the indentation of the selected text Format Selected Text It applies the automatic formatting to the selected text Comment Selected Text It transforms the selected rows of text to comments oo Selected N It uncomments the selected rows of text Convert Text to It converts current text Task Subroutine to Flowchart Flowchart Convert whole program to It converts whole program to Flowchart Flowchart di Flowchart to 3 It converts current Flowchart Task Subroutine to text converts current Flowchart It converts current Flowchart Task Subroutine to text to text Convert whole Program to Text EN It converts whole program to Text 11 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 F Find function Ctrl L Lock Ctrl P Pin Ctrl Space Code Snippets Tab Select Next Shift Tab Select Previous Arrow Keys Move selected element Home End Page Up Page Down Navigate through the graph Zoom In Zoom Out 3 5 Designer Area The designer area will display the current design of the program i New Tab
71. uction works as a trigger arming The instruction is executed once if any trip occurs the program jumps immediately to the designated label then the On trip trigger is disarmed Example entry D e on trip goto count entry loop while x 09 1 1 inc U 88 Hent E Go to count wend goto loop count inc U 83 goto loop while X 00 1 NE end Go to boop b Hest Block Go to loop Hest Block When the digital input is set to ON value then P100 parameter is incrementing every second If a trip is generated like by external trip input then P103 increments count And then goes to the beginning of the task 39 Drive Programming Jump to a label when a condition is satisfied iF Ln 1 goto True Go to ondit Go to loop Go En loop Ment Block entry 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 loop_ if U 68 1 goto condit goto loop condit inc U e1 goto loop end Change parameter P100 in order to test the GoTo function with this sample When P100 1 P101 starts counting When P100 1 stops counting 40 Drive
72. ves it in the clipboard for further pasting e Copy saves the element in the clipboard for further pasting e Paste puts the contents previously copied in the clipboard into the design area Note that after copying text elements you can also paste them to other contexts for example as text in a Microsoft Office application e Go to Subroutine jumps to the selected text subroutine e Go to Label jumps to the selected text label e Undo reverts the latest change e Redo recovers the most recently undone change e Help will show the CX Drive help 14 Drive Programming 3 6 Toolbox window The Toolbox window allows you to add blocks to the Program Designer by drag and drop It displays the blocks supported for a particular drive organized in categories The Toolbox is displayed when Drive Programming is entered You can also show or hide it by clicking on Drive Programming Toolbox in the View menu The Toolbox is displayed by default docked at the rightmost side of CX Drive You can resize it as needed to better display its elements Also you can toggle its docking by right clicking near the window s edges ES Program Control Cammands Entry End Call Sub EndSub A r y 9 B Golo Unt rip lt gt Is Select bd e Gm Case CaseElze EndS elect For While T p 5 Until Vi alt T ime WaitCond Arithmetic Commands lnput Output Control Command Timer Control Commands
73. 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 gt entry rtcset off U 88 entry ad 1 rteset off U 00 After executing the program with the watch LCD operator attached the hexadecimal value of the first 2 bytes of U 00 will correspond with the current year and the hexadecimal value of the last 2 bytes of U 00 will correspond to the current month l e 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 format hexadecimal format results in 10 for 2010 4103 1007 07 for July U 00 05 for 5 day of month U 01 1281 0501 01 for Mondes 02 U 14 for 2 p m 9161 1429 29 for 29 minutes 13 Drive Programming 6 6 Inverter Control Commands Arguments Makes the inverter run the motor in forward direction starts the inverter Output This command is a shortcut of the func value command Format O FW 1 for RX and MX2 or UP 1 for LX Note The instruction is available since CX Drive v2 10 Run RV Command Description X Arguments
Download Pdf Manuals
Related Search
Related Contents
fiche projet mode d`emploi Panasonic NV-VP33 Series DVD Player User Manual Fellowes e500 User's Manual 取扱説明書 P R O J E T S guide du debutant en aeromodelisme 接続方法のご案内(2007年12月21日 更新) Manual do Usuário Conteúdo e Acessórios Copyright © All rights reserved.
Failed to retrieve file