Home
Drive Programming
Contents
1. For peripheral USB port connec tion use commercially available USB cable For peripheral port connection Model CS1W CN226 CN626 Inverter e For RS 232C port connection and EtherCAT Communication Unit CompoNet Communica tion Unit or DeviceNet Commu E nication Unit Model XW2Z 200S CV 500S CV Install the CX Drive in your Windows personal computer Connect the computer with the programmable controller and go online with the inverter via EtherCAT CompoNet or DeviceNet communications When the online connection is established you can use the Drive Programming Editor to create user programs and transfer download them to the inverter Drive Programming User s Manual 1580 E2 1 5 1 Overview Drive Programming User s Manual 1580 E2 Specifications G This section describes the specifications of the Drive Programming 2 1 SDeciHlicallols snc how aad REIHE Ree ane oe a Ed Owed bore eens 2 2 Drive Programming User s Manual 1580 E2 2 1 2 Specifications 2 1 Specifications The following table shows the specifications related to the Drive Programming Item Specifications Program specifica Programming lan Flowchart and text language method Input device Windows personal computer padeve OS Windows XP SP3 Windows Vista or Windows 7 Program capa
2. 4 17 4 4 Inserting Deleting and Calling Subroutines 4 18 4 5 Creating Flowchart Programs es 4 19 4 6 Creating Text Programs 0 0 es 4 20 4 7 Editing Transferred Uploaded Programs 4 21 4 8 Saving Programs 4 2 cece se eee edn e eee newed eet eaeeeew ee ene 4 22 4 9 Transferring and Verifying Programs lesse 4 24 4 10 Executing Programs Drive Programming Function Selection 4 25 4 11 Other Useful Functions 2 0 0 ccc es 4 28 Drive Programming User s Manual 1580 E2 4 1 4 Drive Programming Editor 4 1 Starting Drive Programming Editor To create Drive Programming programs you use the Drive Programming Editor in the support tool for the Inverter Servomotor CX Drive This section explains the configuration of the Drive Programming Editor in the CX Drive and the opera tions you carry out before starting the Drive Programming Editor al Precautions for Correct Use e The Drive Programming function is included in the following or higher versions of the CX Drive If the version of your CX Drive is lower you need to upgrade the version MX2 Version 2 8 or higher with version 2 7 or lower operation is not possible RX Version 2 7 or higher with version 2 6 or lower operation is not possible e A password is required when you start the Drive Programming Editor in the CX Drive for
3. Drive Programming User s Manual 1580 E2 3 Operation Procedure for Drive Programming I Setting Inverter I O Functions In the Drive Programming you can use the inverter s I O functions multi function I O and analog I O as the I O functions of the program To use the I O functions it is necessary to set each I O function according to the purpose This section describes how to set I O functions for the Drive Programming By configuring the following settings you can control I O functions by the function variables of the Drive Programming In the case that you use the functions for purpose other than Drive Programming I O functions refer to the MX2 User s Manual 1570 E2 or the RX User s Manual 1560 E2 MX2 Parameter No A001 A201 C001 to C007 P003 C021 and C022 C026 C027 C028 P031 1st 2nd Frequency 07 Drive Programming Reference Selection 56 to 62 MI1 to MI7 General purpose input 1 to 7 Multi function Input 1 to S7 Selection 02 MI8 General purpose input 8 for Drive Programming Pulse Train Input RP Selection MO1 to MO3 General purpose output 1 to 3 Multi function Output 44 to 46 P1 and P2 Selection Multi function Relay Output MA MB Function Selection MP Selection Drive Programming YA 0 AM Selection Drive Programming YA 1 Acceleration Decel Drive Programming eration Time Input Type Drive Programming User s Manual 1580 E2
4. The maximum number of the general purpose outputs for the 3G3MX2 Series Inverter is three MO1 to MO3 RX You can control the status of the multi function output terminals P1 to P5 and the multi function relay output terminals MA and MB as bit size variables e By setting the Multi function Output P1 to P5 Selection C021 to C025 or the Multi function Relay Output MA MB Function Selection C026 to 44 to 49 MO1 to MOG General purpose output you can control the output terminals P1 to P5 or the relay output terminals MA and MB as the output ter minal variables Y 00 to Y 05 of the Drive Programming Numbers are given to the output terminal variables Y 00 to Y 05 according to the numerical order of the set general purpose outputs MO1 to MO6 not the terminal numbers P1 to P5 MA or MB Drive Programming User s Manual 1580 E2 o Drive Programming User Variables Setting for Multi function Output Selection EHRCHOHVallapte MX2 C021 C022 and C026 RX C021 to C026 Y 00 MX2 and RX 44 MO1 Y 01 MX2 and RX 45 MO2 Y 02 MX2 and RX 46 MO3 Y 03 RX only 47 MO4 Y 04 RX only 48 MO5 Y 05 RX only 49 MO6 Function Default Yw Output terminal variable 0 to 255 Unsigned word access 1 word The output terminal variables word access Yw is a function to use the output terminal variables MX2 Y 00 to Y 02 RX Y 00 to Y 05 as a word size variable e The output terminal variables Y 00 to Y 05 are
5. amp region Start Acceleration const 188 Deceleration const 188 ime 500 emp 186008 set Treq 1888 Fw 1 la Precautions for Correct Use The region definition created in the text program is deleted when the program is compiled for transferring downloading to the inverter or for program conversion To save the created region definition save the program before you execute program compi lation You can save the program by saving the whole project in the CX Drive or export file of the program n the verification process the program after compilation is compared with the program inside the inverter Therefore the comments alias definitions region definitions etc are not verified Drive Programming User s Manual 1580 E2 4 31 4 Drive Programming Editor Drive Programming User s Manual 1580 E2 Drive Programming User Variables This section describes the user variables provided for Drive Programming 5 1 User Variables and User Parameters 5 2 5 2 Input Output Terminal Variables Lese 5 5 5 9 Timer Variables ebur tuc Rob Tbe VR ded eee a a 5 10 5 4 Inverter Setting Variables leeren 5 12 5 5 Inverter Monitor Variables llllllelrenn 5 14 5 6 Multi function Input Variables lllllernrnn 5 17 5 7 Multi function Output Variables
6. ipii uice oi peo SE Eee E Coop cosa deos c cago L c ceva cas Reese iil 13 Related rais S 14 REVISION HIS EOD iioii ceo soc osu sey copa o soc Ni ausis vxUS UL Us o nisu Cobrush epe cde R sd rcu EDYM DUE E SUR ad dE 15 Section 1 Overview 1 1 Overview of Drive Programming 1 eeeeeeeeeeeene nennen nnn n nne nnne nn nnn nnn nnn anna nana n 1 2 1 2 Preparation and System Configuration eeeeeeeeeeeseeeeeee nene nennen nnn nnn 1 4 Section 2 Specifications MEET elle PETERET I I I ME 2 2 Section 3 Operation Procedure for Drive Programming 9 1 Operation Procedute io sooo rose ia tee Poe ro dors E Rab WEG vU OD es 3 2 3 2 Parameters Related to Drive Programming cesses eene eene nennen 3 5 3 9 Program SUCTUS pte cowl A 3 13 OO Aak oT He ERE 3 13 3a 6 8 66 16 IIR iM Ut S 3 13 ee s ASI FOC CSS ING MTS IU 3 13 3 3 4 Drive Programming Start Stop and Task Operation ccccccceececeeeceeeeeeesseeeeeseeseeseeeeeseeeeees 3 15 399 Brvedrogramihg ISestattosdssneds Avett a aa os Mota e naar eather 3 17 Job Task ODSratiopnmOkt ITIP iate a ence an ic adticss ct te ties desc b sese cieli ad 3 18 6 Drive Programming User s Manual 1580 E2 Section 4 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 4 10 4 11 Section 5 5 1 5 2 5 3 5 4 5 5 5 6 5 7 Section 6 6 1 6 2 6 3 6 4 6 5 6 6 6 7
7. parameter J e Example Flowchart Text entry loop UMon 8 Feel goto loop end p co U 9 o j D e D O O e 9 O O 3 3 D 5 o O Go to loop Hent Block _ _ In the above example the value of the parameter F001 Output Frequency Setting Monitor is assigned to the parameter UMon 0 d025 User Monitor and monitored Block number Operation 1 Assigns the parameter F001 to UMon 0 2 Jumps to the block 1 loop unconditionally Drive Programming User s Manual 1580 E2 6 53 6 Drive Programming Commands EepWrt Command Argument Enables the ChgParam command executed e immediately after this command to write data in the EEPROM Eep irk Format Flowchart method Text language method Y Note 1 Setthe parameter data with the ChgParam command immediately after executing the eepwrt command The parameter data is changed in the program and also saved in the EEPROM You can use the data saved in the EEPROM as the initial data when you turn on the power supply again If you do not exe cute the ChgParam command immediately after the eepwrt command the data is not saved in the EEPROM Also if you execute two ChgParam commands immediately after the eepwrt command the latter ChgParam command cannot save the data in the EEPROM 2 Each eepwrt command requires up to 10 ms processing time The task in which the eepwrt com mand is e
8. 2 Jumps to the block 1 loop if X 01 is 0 Goes to the next step if X 01 is not O 3 Starts the timer 0 for the timer set command with the set value U 01 4 to 9 Monitors X 01 and jumps to the block 10 LB0001_ when TD 0 is 1 and X 01 is not O When X 01 changes to O the timer 0 stops and the program goes to the next step 10 Jumps to the block 1 loop unconditionally Drive Programming User s Manual 1580 E2 6 51 P 3 D O O 5 e 9 O O 3 3 D 5 2 o 6 Drive Programming Commands 6 8 Parameter Control Commands HERE ChgParam Command Argument Changes the data of the inverter parameter Parameter parameter code SE specified in parameter to value Fxxx Axxx bXXX Cxxx Hxxx or Pxxx aT You can change any inverter parameter Value any variable or constant Format Flowchart method Text language method lt parameter gt lt value gt V Note 1 Similar to the settings with the inverter s Digital Operator each parameter has the following restrictions If any of the event listed in the restrictions occurs the inverter detects the command error 1 E45 and the Drive Programming program is stopped For details on restrictions for each parameter refer to Section 7 Precautions for Use of Param eters for Drive Programming and the MX2 User s Manual I570 E2 or the RX User s Manual I560 E2 Data that exceeds the setting range was set to the parameter e A matching
9. Description Use this setting to specify the inverter fre quency reference by the function variables of the Drive Programming If you select any other option than 01 Con trol circuit terminal block the analog inputs FV FI will be disconnected from the fre quency reference and you can use them as the analog inputs XA 00 and XA 01 for the Drive Programming Set 56 to 62 MI1 to MI7 to use the termi nals for the general purpose inputs for the Drive Programming The parameter settings correspond to the function variables X 00 to X 06 Set 02 MI8 General purpose input 8 for Drive Programming to use the RP terminal for the general purpose input for the Drive Programming The RP terminal corresponds to the function variable X 07 Set 44 to 46 MO1 to MO3 to use the termi nals for the general purpose outputs for the Drive Programming You can control the multi function output ter minals by changing the corresponding func tion variables Y 00 to Y 02 to ON OFF Set 12 Drive Programming to use the ter minal for the general purpose pulse output YA 0 for the Drive Programming Set 13 Drive Programming to use the ter minal for the general purpose analog output voltage YA 1 for the Drive Programming Set this parameter to control the acceleration deceleration time through the Drive Programming e N U e e 3 D e D o A A D e D a e O O a lt as o e e 3 3 j e
10. Yizvalue Value any variable or constant Format Flowchart method Text language method bed Y Note The output terminal variable is a variable that controls the status of the inverter s output termi nal The following settings are required The numerical order of the output terminal variables follows the numerical order of the set general output numbers Set the Multi function Output 11 to 13 Selection C021 to C023 and the Multi function Relay Output RY Func tion Selection C026 to 35 to 41 MO1 to MO7 General purpose output Assignment example Y 00 MO1 multi function No 35 Y 01 MO2 multi function No 36 Y 02 MO3 multi function No 37 Y 03 MO4 multi function No 38 Y 04 MO5 multi function No 39 Y 05 MO6 multi function No 40 Y 06 MO7 multi function No 41 e Example Flowchart Text e entry loop _ ubw 8 UB X 88 UB 1 X 81 UB 2 X 82 2 UMon 8 ubw v 09 U8 2 goto loop 3 end UB 1 X 01 4 LIB 2 02 x UMon 0 UB E wp UB 7 Hext Black Go to loop In the above example the status of X 00 to X 02 is monitored with the parameter UMon 0 d025 and X 02 is output to Y 00 Block number Operation 1 Assigns 0 to UBw 2to4 Assigns the variables X 00 to X 02 to the variables UB 0 to UB 2 5 Assigns UBw to UMon 0 6 Assigns UB 2 to Y 00 7 Jumps to the block 1 loop unconditionally 9 14 Drive Pro
11. wait RUN 6 end Go Eo loop Hent Block In the above example the following operation is repeated a forward operation is performed at 60 00 Hz until X 01 changes to ON Then a reverse operation is performed until X 02 changes to ON Block number Operation 1 Sets the output frequency to 60 00 Hz 2 Operates the inverter in the forward direction 3 to 5 Waits until X 01 changes to ON stops the inverter and waits with the wait command until the inverter completely stops 6 Operates the inverter in the reverse direction 7 to 9 Waits until X 02 changes to ON stops the inverter and waits with the wait command until the inverter completely stops 10 Jumps to the block 2 loop unconditionally 6 40 Drive Programming User s Manual 1580 E2 6 Drive Programming Commands var func Command Argument Assigns the status of the multi function output Variable any variable variable to lt variable gt Function any bit of the multi function output variable var func Format Flowchart method Text language method variable function V For details refer to 5 7 Multi function Output Variables on page 5 20 e Example Flowchart Text Ey entry loop_ u Z5 goto loop end P O O O e 9 O O 3 3 D 2 0 Goto loop Hest Block In the above example 1 is assigned to U 00 when ZS 0 Hz detection signal is ON and 0 is assigned to U 00 when ZS 0 Hz detecti
12. 3 Operation Procedure for Drive Programming l Precautions for Correct Use e Even if you select MI1 to MI7 General purpose input 1 to 7 for the Multi function Input S1 to S7 Selection you can select NO NO contact or NC NC contact for the Multi function Input S1 to S7 Operation Selection C011 to C017 e Even if you select MO1 to MO3 General purpose output 1 to 3 for the Multi function Output P1 and P2 Selection or for the Multi function Relay Output MA MB Function Selection you can select NO NO contact or NC NC contact for the Multi function Output P1 and P2 Oper ation Selection CO31 C032 or for the Multi function Relay Output MA MB Operation Selection C036 e In the Drive Programming the analog I O functions are allocated to XA 0 XA 1 YA O and YA 1 You can monitor the analog I O status in the programs by using these function vari ables regardless of the settings for A001 A201 C027 and C028 e In the Drive Programming programs you cannot monitor the status of multi function I O ter minals for which the general purpose I Os are not set in C001 to C007 C021 C022 or C026 RX Parameter D A001 Frequency Refer 07 Drive Programming Use this setting to specify the inverter fre ence Selection quency reference by the function variables of the Drive Programming If you select any other option than 01 Control circuit terminal block the analog inputs FV Fl FE will be disconnected from th
13. 31 NDc Communications disconnection detection R CO21to C026 32 LOG Logic operation output R C021to C026 33 LOG 2 Logic operation output R C021to CODE 34 LOG 3 Logic operation output3 R C02t0C026 35 WAC Capacitor ife warning signal R C021to C026 39 WAF Cooling fan life waring signal R CO21to CO26 40 FR Starting contact signal R CO21toC026 4i OHF Cooling fin overheatwaming R C021to C026 42 5 20 Drive Programming User s Manual 1580 E2 o Drive Programming User Variables Function variable Reference LOC Lowcumensgna S CO2ZtoCO26 43 IRDY Operationready R C02itoC026 50 FWR Forwardrun signal R C02itoC026 81 RVR Reverse run sgnal R C02itoC026 52 MJA Fatal fautsiga R CO2itoC026 53 WCO Window comparatorFV R C02ito C026 54 WCO Window comparator F R C02tt0C026 55 e MX2 only Function variable Reference FREF Frequency command source R C001 t0 C007 58 REF RUN command sourse R C001 to COOT 59 SETW Motor2selecion R C001toCO07 60 EDM Safety device monitor R C00ttoCO07 62 e RX only Function variable Reference P Signal during momentary power interruption R C021 to C026 08 O2Dc Analog FE disconnection detection R CO21to C026 28 LOG 4 Logic operation outputa R C021to CO26 36 LOG 5 Logic operation outputs R C021to C026 37 LOG 6 Logic operation output R CO21to C026 38 WCO2 Window compa
14. e Example Flowchart Text zh entry u 2 6 U 83 12 loop U 84 U 82 and U 83 goto loop 5 end 3 loop 5 Hent Block OR Block number Operation 1 Assigns 6 to U 02 2 Assigns 12 to U 03 3 Assigns 4 binary 00000100 which is the result of logical AND on 6 U 02 binary 00000110 and 12 U 03 binary 00001100 to U 04 4 Jumps to the block 3 loop unconditionally 6 30 Drive Programming User s Manual 1580 E2 6 Drive Programming Commands Or Logical OR Command Argument Logical OR on lt value 1 gt and lt value 2 gt in Result any variable 1 binary format Value 1 any variable or constant Or or Logical OR range 128 to 127 Value 2 any variable or constant range 2 147 483 648 to 2 147 483 647 Format Flowchart method Text language method result value 1 or value 2 result value 1 or value 2 Note If an overflow or underflow occurs the Drive Programming detects it as an error Take neces sary measures in the application so that they do not occur e Example Flowchart Text 3 entry U 82 6 U 83 12 loop _ U 84 U 82 or U 83 goto loop 1 end 5 Hest Block ation Block number Operation 1 Assigns 6 to U 02 2 Assigns 12 to U 03 3 Assigns 14 binary 00001110 which is the result of logical OR on 6 U 02 binary 00000110 and 12 U 03 binary 00001100 to U 04 4 Jumps to the block 3 loop unconditionally Drive Programming User
15. gt gt 3 D e Oo O Ke D ie o 3 f gt Q r o a Oo D O D ie Oo 3 O Oo 3 3 Q Q o e Example Flowchart Text entry u ae 2 U 801 588 U 2 u a1 u ee end e 3 4 Block number Operation 1 Assigns 2 to U 00 2 Assigns 500 to U 01 3 Assigns the quotient of U 01 and U 00 to U 02 Drive Programming User s Manual 1580 E2 6 27 6 Drive Programming Commands Mod Modulo division Command Argument Remainder for division of lt value 1 gt by lt value 2 gt Result any variable Value 1 any variable or constant range 128 to 127 Mud Value 2 any variable or constant range 2 147 483 648 to 2 147 483 647 Format Flowchart method Text language method result value 1 mod value 2 Y Note If an overflow underflow or division by zero occurs the Drive Programming detects it as an error Take necessary measures in the application so that they do not occur e Example Flowchart Text entry entry U 2 U 81 588 U 82 U 801 mod U 88 end e Block number Operation 1 Assigns 2 to U 00 2 Assigns 500 to U 01 3 Assigns the remainder for division of U 01 and U 00 to U 02 Drive Programming User s Manual 1580 E2 6 Drive Programming Commands Abs Absolute value Command Argument Finds the absolute value of lt value gt Result any variable Value any variable or constant Abs Range 2 147
16. 02 x UMon 0 UB E 00 UB 7 Hest Block Go to leap In the above example the status of X 00 to X 02 is monitored with the parameter UMon 0 d025 and X 02 is output to Y 00 Block number Operation 1 Assigns 0 to UBw 2to4 Assigns the variables X 00 to X 02 to the variables UB 0 to UB 2 5 Assigns UBw to UMon 0 6 Assigns UB 2 to Y 00 T Jumps to the block 1 loop _ unconditionally Drive Programming User s Manual 1580 E2 6 45 P O O O e 9 O O 3 3 D 2 0 6 Drive Programming Commands 6 Timer Control Commands Delay on off Command Argument Starts the timer k The the timer counter TC k on off operation setting on off after the delay G is started with 0 and incremented every 10 ms time until it reaches value 2 When value 2 gt iS Value 4 any contact variable or variable BEER reached the timer contact TD k changes to ON Value 2 any variable or constant and the processing on or off specified for mE value 1 is executed specified time x 10 ms TD k the timer output contact of the timer that you use range of k is O to 7 Format Flowchart method Text language method delay on off value 1 TD k value 2 delay on off value 1 gt TD k value 2 gt Y Note 1 The timer k is started when the delay on off command is executed If TD k is ON it is changed to OFF when the timer k is started However the vari
17. 1580 E2 6 Drive Programming Commands Accel Command Argument Sets the inverter acceleration time Value any variable or constant fac This command is a Assign command whose MX2 range 0 to 360 000 RX range 1 to cul left hand side is set to the acceleration time 360 000 variable ACCEL Unit 10 ms Format Flowchart method Text language method Y Decel 00 0 0 0 Command Argument Sets the inverter deceleration time Value any variable or constant lt ds This command is a Assign command whose MX2 range 0 to 360 000 RX range 1 to S Brei left hand side is set to the deceleration time 360 000 9 variable DECEL Unit 10 ms Format 3 Flowchart method Text language method 3 Y la Precautions for Correct Use The acceleration time variable ACCEL and the deceleration time variable DECEL are enabled only when you set the Acceleration Deceleration Time Input Type P031 to 03 Drive Programming e In the following cases the data that is set in the program is not reflected and the previously set data is used for operation the data set for the acceleration time variable ACCEL or the deceleration time variable DECEL is out of range or O is set for the 3G3RX Series Inverter e When the Drive Programming program is stopped the data of the acceleration time variable ACCEL and deceleration time variable DECEL before the program stop is retained When the program execution is started again the process begi
18. 6 8 6 9 CONTENTS Drive Programming Editor Starting Drive Programming Editor eeeeeeleeeeeeeeeee seen ee ee nennen nnne nnn 4 2 Parts of Drive Programming Editor 11eeeseeeeeeeeeeeseeee seen n nnn nnn nnn 4 6 4 2 1 Dive Programming Ear visi sso sa ien pens seein e vaa aa Ma ruo erue auia adita Ka v t OF Rad D d UID A l 4 6 42 2 TOODA E ustudseictssceietsuncne ee tas see oa ea oleae ala Posset Ct Sud ecu Etc I dL nae Uf a ete ee UE 4 6 4 2 3 Drive Programming Alea susce suci kaC E aera aure Renal Ede aiv coe bre bride aded eee oe ORE FR a 4 9 A TOOIDOX VVIMGOW E T Tem 4 13 A 2 5 Block Parameters VVIEOW acce isse oo susiqisis n aa aaa Ee aE aE iaia Ea ian 4 14 4 2 0 JProberues VVITIOOWahteseis eiie cuoio o En ts bees sean recu Aere PEU wands oic dun we sius es cee cad isi Se Rees a 4 15 4 2 7 Error List Tab in Output Wind Ow ox ueste veto daft od use eep tbe eece idus soc ee ue tia eren dcc b un ege eee 4 16 Adding Deleting and Renaming Tasks eeeeeeeeeeeeeeesee eene nnne 4 17 Inserting Deleting and Calling Subroutines eeeeeee eee reee eee 4 18 Creating Flowchart Programs conse inae eaae kyva e rune Po hn cag e sve a rdv voe vcra edu Uus 4 19 Creating Text Prograim ics iiio eve deed edi Cua pe dev ze eb ae nx opu Er pus es Creado TY Ceu e Ed EU sud kv a DERE v a Ei UGa 4 20 Editing Tr
19. L Go Ea laa P Hent Block F amp Block number Operation 1 to 8 Based on the value of U 00 100 is assigned to U 01 if U 00 is 1 and 200 is assigned to U 01 if U 00 is 2 In the case 3 500 is assigned to U 01 and the program jumps to the endselect command 9 Jumps to the block 1 loop unconditionally Drive Programming User s Manual 1580 E2 6 17 6 Drive Programming Commands For Next Command Argument Executes command set repeatedly until vari Variable any variable Em able started with start value reaches end Start value initial value This is the value value In every time of execution incremental assigned to the variable in the first loop For s a gt lt gt value gt is added to variable wnen te next Constant range 128 to 127 command is executed a judgment with end 3 value is executed and incremental value is End value a value to exit the loop added to variable Constant range 128 to 127 F id Incremental value the variable is incremented by this value in each loop Lo Constant range 128 to 127 Next Command set one or more commands until the next command It can contain nested com mands up to eight levels Format Flowchart method Text language method for lt variable gt lt start value gt to lt end value gt step lt incremental value gt lt command set gt next e Example Flowchart Text
20. OHF LOC IRDY FWR RVR MJA WCO and WCOI MX2 only FREF REF SETM and EDM RX only IP O2Dc LOG4 LOG5 LOG6 and WCO2 Input terminal variable MX2 X 00 to X 07 8 points Note X 07 is for the Pulse Train Input RP Selection enabled only when P003 02 RX X 00 to X 07 8 points Output terminal vari MX2 Y 00 to Y 02 3 points RX Y 00 to Y 05 6 points UB 0 to UB 7 8 points TD 0 to TD 7 8 points TC 0 to TC 7 8 points Analog input terminal MX2 XA 0 and XA 1 RX XA 0 to XA 2 Analog output termi MX2 YA 0 and YA 1 nal variable RX YA 0 to YA 2 2 4 Drive Programming User s Manual 1580 E2 Operation Procedure for Drive Programming SSS This section describes the operation procedure of the Drive Programming related parameters and program structures 3 1 Operation Procedure 4x uda x CEDERE EC ETE Cae we ee eee es 3 2 3 2 Parameters Related to Drive Programming 3 5 3 3 Program Structure ob jeg cae FRE SUR Gre etn RR SCARE SER R AC o See a 3 13 IMEEM OCTMPERETCLTEEPCIEPMDU Er 3 13 93 9 2 SSUDFIOULULOS s irt cds cease uates bees Bae ee dn RUE aS EE b 3 13 Sasa Task PROCESSING sq meresan fex uh he Oma dans Aca b o ucaen ELu in ar i 3 13 3 3 4 Drive Programming Start Stop and Task Operation 3 15 3 3 5 Drive Programming Restart 0 0 ccc eee 3 17 3 3 6 Task Operation on Trip 0 0 ee ee ee 3 18 Drive Programming User s
21. Precautions for Safe Use When execution of the Drive Programming program is stopped the status before the program stop is retained for multi function outputs controlled by the Drive Programming For this reason configure the system so that the stop of the Drive Programming program in the inverter can be detected by the Drive Programming start signal and the alarm trip signal and the inverter s peripheral devices can be stopped safely la Precautions for Correct Use The following are the status of function variables when the Drive Programming program is stopped Take necessary measures in consideration of each status For the multi function outputs the inverter s actual output terminals the status before the program stop is retained However the output terminals that are not set to MO1 to MO6 general purpose outputs of the Drive Programming operate as the inverter s normal multi function outputs e When the Drive Programming function is selected for the frequency reference accelera tion deceleration time or analog outputs the set values for these functions before the pro gram stop are retained The data of the user parameter variables internal user variables and internal user contacts before the program stop is retained The status of the inverter s actual input terminals such as the multi function and analog input terminals is not retained but always updated The data of the multi function output variables fun
22. Version 2 7 or higher for 3G3RX Series Inverter The CX Drive is included in the FA Integrated Tool Package CX One Prepare the following PC inverter connection cable MX2 Commercially available USB cable mini B RX USB to RJ 45 Converter Cable Model 3G3AX PCACN2 Commercially available USB cable mini B Remove the Digital Operator WARNING z A and the connector B e BARU A oD Read m Wait 10 CX Drive ALARM USB RS422 Converter cable 3G3AX PCACN2 RJ45 connector Connector for the Digital Operator L Version Information e Only the 3G3MX2 3G3RX Series Inverters have the Drive Programming function Be sure to check the version Ver 2 0 or later printed on the nameplate of the inverter because the conventional models of 3G3MX2 3G3RX Series Inverters do not have the func tion The Drive Programming function is included in the following or higher versions of the CX Drive If the version of your CX Drive is lower you need to upgrade the version MX2 Version 2 8 or higher with version 2 7 or lower operation is not possible RX Version 2 7 or higher with version 2 6 or lower operation is not possible Drive Programming User s Manual 1580 E2 1 Overview EN Additional Information For how to install or upgrade the CX Drive refer to the CX Drive Operation Manual W453 EtherCAT CompoNet DeviceNet Com
23. the following message will be displayed in the final step The program is running so it cannot be transferred to the drive If you click OK here the program is started forcibly regardless of the operation status of the inverter Before you start the program check the status of the equipment and ensure safety A A e m x o O c gt Q U o Q Q 3 o OQ ES lt D y Oo Q Q 3 3 gt Co Tl c gt O zm o gt o o o O e o gt Drive Programming User s Manual 1580 E2 4 27 4 Drive Programming Editor 4 11 Other Useful Functions Converting Flowchart to Text There are two ways to convert flowchart programs to text programs Command don Description Convert Flowchart to Text Converts current flowchart task or subroutine to text Convert Whole Program r Converts whole program to text to Text sal P Precautions for Correct Use e When a flowchart program is converted to a text program the program is once compiled If a compilation error occurs the conversion fails e On the upper left of each block in the flowchart program the block number will appear after the compilation is finished Block numbers are the consecutive numbers starting with 0 A block number is given to each block of the whole program Block numbers do not match the line numbers of the program converted to text I Converting Text to Flowchart There are two ways to
24. value eds Eres fecase syniax for variable lt start value gt end value incremental Starts a loop from value start value until end value with incremental value command set The command set that is executed repeatedly next Goes to for loop p eo O Oo 3 3 D 2 a r a e while condition Executes command set while the condi tion is met command set The command set that is executed while condition is met wn 1 LL ses te Wie loop until condition Executes command set until condition is met command set The command set that is executed while lt condition gt is not met cp LLL sse wii teop wait waittime time wait time Waits for wait time x OG 01 seconds wait condition aits until condi tion is met ES Additional Information For the format of condition refer to Conditions on page 6 6 Drive Programming User s Manual 1580 E2 6 5 Command Condition Command Arithmetic operation 6 Drive Programming C Conditions ommands variable 1 constant variable 1 constant variable 1 constant variable 1 constant variable 1 constant variable 1 constant variable 2 constant variable 2 constant variable 2 constant variable 2 constant variable 2 constan
25. you can delete or rename a task or a subroutine a Rename Current Task X Delete Current Task Drive Programming User s Manual 1580 E2 4 9 gt N y t9 o o UO lt D U o e 9 3 3 gt a m Q o eeJy DBuruueJ60Jd SAU e z v 4 Drive Programming Editor i Flowchart Program In the flowchart program method a unit of display is called Block You create a program by placing more than one block in the area and setting interaction between them In a flowchart program when a program is compiled successfully an icon with a white arrow in a green circle highlights the starting point of each flowchart task Also after the program is compiled successfully the block number will appear on the upper left of each block Block numbers are the consecutive numbers starting with 0 A block number is given to each block of the whole program The numbers do not match the line numbers of the program converted to text The Output window will indicate if the program is compiled successfully For programs compiled with errors a red icon with an exclamation mark identifies the erroneous blocks in the flowchart program Placing the mouse on the error icon displays the compile error which you can see in the Error List in the Output window If you right click on a blank area in the flowchart a popup menu will be displayed It allows you to paste blocks that you copied last or to select all the bl
26. 2 RX only 10 000 to 10 000 Analog input terminal variable between FE and FC termi nals 10 to 10 V input he analog input terminal variables XA 0 and XA 1 are unsigned 1 word variables and XA 2 is a signed 1 word variable This variable is read only The variables are displayed in increments of 0 01 as a percentage of the maximum analog input 10 V or 20 mA You can allocate inverter functions to the analog input terminals with the inverter parameters as shown below Select a function in each parameter If you use the analog input terminals only for the Drive Programming do not select the analog input terminal in the following parameters MX2 A001 A201 A005 A076 A079 A141 A142 b040 and P033 RX A001 A005 A006 A076 A079 A141 A142 b040 and P033 e To adjust the analog inputs use the following inverter parameters FV A011 to A016 Fl A101 to A105 and FE A111 to A114 P Precautions for Correct Use When the Drive Programming program is stopped the status of the analog input terminal vari ables is not retained but updated according to the status of actual input terminals p Analog Output Terminal Variables YA 0 to YA 2 You can use the inverter s multi function digital output PWM output MP terminal and the multi function analog output voltage output AM terminal as the analog output terminal variables YA 0 and YA 1 of the Drive Programming function For the 3G3RX Series Inverters it is also
27. 483 647 to 2 147 483 647 Format Flowchart method Text language method lt result gt abs lt value gt V Note 1 If an overflow or underflow occurs the Drive Programming detects it as an error Take necessary mea sures in the application so that they do not occur 2 If the variable or the constant is the maximum negative value 2 147 483 648 it is not possible to convert it to an absolute value The value 2 147 483 648 is recognized as a negative number as it is rk ch gt 3 D et o O o D R et O M 5 o r O e o m O o D D et o 5 O O 3 3 D 2 a e Example Flowchart Text entry UL 1 abs UL 08 j end 4 Block number Operation 1 Assigns 200 to UL 00 2 Assigns the absolute value of UL 00 to UL 01 Drive Programming User s Manual 1580 E2 6 29 6 Drive Programming Commands And Logical AND Command Argument Logical AND on value 1 gt and value 2 gt in Result any variable binary format Value 1 any variable or constant And and Logical AND range 128 to 127 Value 2 any variable or constant range 2 147 483 648 to 2 147 483 647 Format Flowchart method Text language method result value 1 and value 2 result value 1 and value 2 Note If an overflow or underflow occurs the Drive Programming detects it as an error Take neces sary measures in the application so that they do not occur
28. 5 depending on the variable value Executes com condition value n any variable or constant mand set n gt when condition variable matches range 128 to 127 Select TE condition value n of any case command Command set n one or more commands until Executes command set for others case next case or endselect command It can con lt gt else when lt condition variable gt does not tain nested commands up to eight levels z match any of condition values of the case dig commands a This command is useful when you need to select among multiple options based on a con dition variable CaseElse This command is also useful to organize pro grams when it is used with the call commands oc that calls subroutines EndS elect Format Flowchart method Text language method select lt condition variable gt case condition value 1 command set 1 gt rk IN U Oo e o 3 O Oo 3 e 2 O Oo 3 3 D 5 a on case lt condition value n gt command set n gt case else command set for others endselect Note A select is counted as nesting level 1 A set of select to endselect used in a subroutine is counted as nesting level 2 e Example Flowchart Text loop entry select U aa m m case 1 1 loop ha u i 188 U 8G1 280 m U 81 See endselect goto loop_ 3 T up 100 T end 4 Li H 5 Ld un 200
29. 59 X 11 MI12 function No 60 e Example Flowchart Text entry loop _ UMon 8 X 81 goto loop end Go to loop Hest Block In the above example the status of the input terminal X 01 is monitored with the parameter UMon 0 d025 Block number Operation 1 Assigns X 01 to UMon 0 2 Jumps to the block 1 loop unconditionally 9 12 Drive Programming User s Manual 1580 E2 9 LX inverter var Xw Command Argument Assigns the status of the input terminal variable Variable any variable to lt variable gt in units of words var AW Format Flowchart method Text language method lt variable gt Xw V Note The input terminal variable is a variable that detects the status of the inverter s input terminal The following settings are required The numerical order of input terminal variables follows the numerical order of the set general input numbers Set the Multi function Input S1 to S7 Selection C001 to C007 to 49 to 60 MI1 to MI12 General purpose input When the data is assigned in units of words zero is read out for the upper byte data and unset input terminal variables Assignment example X 00 MI1 function No 01 MI2 function No MI3 function No to Xw 1 bit 0 to Xw 2 bit 1 to Xw 4 bit 2 49 X 01 50 X 02 51 X 03 MIA function No 52 to Xw 8 bit 3 X 04 MI5 function No 53 to Xw 16 bit 4 on X 05 MI6
30. 7 6 Drive Programming User s Manual 1580 E2 9 7 9 LX inverter Precautions for Safe Use When the Drive Programming program is stopped the status before the program stop is retained for multi function outputs controlled by the Drive Programming For this reason configure the system so that the stop of the Drive Programming program in the inverter can be detected by the Drive Programming start signal and the alarm trip signal and the inverter s peripheral devices can be stopped safely Precautions for Correct Use When the Drive Programming program is stopped the data of the output terminal variables before the program stop is retained When the program execution is started again the pro cess begins with the retained data However the outputs with MO1 to MO7 General purpose output not set for the Drive Programming are controlled as the inverter s multi function outputs independently of the program e If multiple tasks use the same multi function terminal the output status of the task which is executed last will be effective Considering safe control we recommend you to avoid using multiple tasks for control e Even if you select MO1 to MO7 General purpose output 1 to 7 for the Multi function Output Selection 11 to 13 or for the Multi function Relay Output RY Function Selection you can select NO NO contact or NC NC contact for the Multi function Output Operation Selection C031 and C033 or for the Multi fun
31. 8 x 88 UB 1 X 81 UB 2 X 82 UMon 8 ubw Yv 88 UB 2 Beto loop end 3 UB 1 X 01 4 LIB 2 02 x UMon 0 UBs E 00 UB 7 Hest Black Go to leap In the above example the status of X 00 to X 02 is monitored with the parameter UMon 0 d025 and X 02 is output to Y 00 Block number Operation 1 Assigns 0 to UBw 2to4 Assigns the variables X 00 to X 02 to the variables UB O to UB 2 5 Assigns UBw to UMon 0 6 Assigns UB 2 to Y 00 T Jumps to the block 1 loop unconditionally 6 44 Drive Programming User s Manual 1580 E2 6 Drive Programming Commands UBw value Command Argument Assigns lt value gt to the internal user contactin Value any variable or constant iwe units of words UBw value Format Flowchart method Text language method UBw lt value gt Y Note When the data is assigned in units of words zero is read out for the unused upper byte If there is any setting the setting is ignored UBw 1 bit 0 to UB 0 UBw 2 bit 1 to UB 1 UBw 4 bit 2 to UB 2 UBw 8 bit 3 to UB 3 UBw 16 bit 4 to UB 4 UBw 32 bit 5 to UB 5 UBw 64 bit 6 to UB 6 UBw 128 bit 7 to UB 7 4 e Example Flowchart Text entry loop _ ubw z UB UB 1 x 1 UB 2 x 82 UMon 8 ubw Y 88 UB 2 goto loop end x 88 io n c 2 U BID x00 3 UB 1 X 01 4 UB 2
32. Frequency Monitor 0 to 3 999 600 Unsigned After Conversion d007 2 words Use this function to monitor the output frequency after conversion The monitored data is equivalent to the data of the Output Frequency Monitor After Conversion d007 This variable is read only Drive Programming User s Manual 1580 E2 o Drive Programming User Variables Function LATE Default Tmon Output Torque Monitor 200 to 200 Unsigned d012 1 word Use this function to monitor the output torque The monitored data is equivalent to the data of the Out put Torque Monitor d012 This variable is read only Function T Default Vout Output Voltage Monitor 0 to 6 000 0 1 V Unsigned d013 1 word Use this function to monitor the output voltage The monitored data is equivalent to the data of the Out put Voltage Monitor d013 This variable is read only Function S Default Power Input Power Monitor 0 to 9 999 0 1 kW Unsigned d014 1 word Use this function to monitor the input power The monitored data is equivalent to the data of the Input Power Monitor d014 This variable is read only Function Default RUN Time Total RUN Time Monitor 0 to 999 999 Time Unsigned d016 2 words Use this function to monitor the total operation time The monitored data is equivalent to the data of the Total RUN Time Monitor d016 This variable is read only Function e Default ON Time Total Power ON Time 0 to 999 999 Time Unsigned M
33. Manual 1580 E2 3 1 3 Operation Procedure for Drive Programming 3 1 Operation Procedure The following figure shows the flow of procedure from programming to executing programs with the Drive Programming Reference Programming P 3 3 Compiling Programs P 3 3 Downloading Programs P 3 4 Selecting Drive Programming Functions P 3 4 P 3 4 Create Drive Programming programs by the Drive Programming Editor in the Inverter Servo support tool CX Drive The following figure shows the flow of procedure from programming to transferring downloading to the inverter Starting Programs For details on operation and other information refer to Section 4 Drive Programming Editor Saving user programs e Saving as CX Drive project file Flowchart method Text language eri d 3 e Saving as exported file Note Saved programs are the CX Drive Drive Programming Editor same as that created with the CX Drive Editor compilation Text language method Compilation P The compiler performs following operations Converts flowchart programs to text programs Converts label names automatically to the following names label 1 label 2 Deletes comments Deletes alias definitions and converts specified names to the same ones as before definition Deletes region definitions and con verts forms to the same ones as before definition Deletes all spaces and blank lines Performs validity checks Progra
34. Programming 3 3 4 Drive Programming Start Stop and Task Operation You set the start stop method of the Drive Programming programs in the Drive Programming Function selection A017 e Start When the Drive Programming Function Selection A017 is set to 01 Enabled Start stop via multi function input PRG terminal The program starts when the multi function input terminal set to PRG is turned ON e When the Drive Programming Function Selection A017 is set to 02 Enabled Start stop at power on off The program starts when the power supply for the inverter is turned ON e do U amp D 3 o e c O e D e Stop When the Drive Programming Function Selection A017 is set to 01 Enabled Start stop via multi function input PRG terminal The program stops when the multi function input terminal set to PRG is turned OFF e When the Drive Programming Function Selection A017 is set to 02 Enabled Start stop at power on off The program stops when the power supply for the inverter is turned OFF Also regardless of the A017 setting the Drive Programming program stops if any of E43 to E45 trips is detected due to a program error or when the end command is executed in all tasks Precautions for Safe Use When the Drive Programming program is stopped the status before the program stop is retained for multi function outputs controlled by the Drive Programming For this reason configure the syste
35. Programming YA 0 YA 01 Set the AM Selection C028 to 15 Drive Programming YA 1 YA 02 Set the AMI Selection C029 to 16 Drive Programming YA 2 Use the inverter parameters C105 to C107 C109 and C110 to adjust analog output Drive Programming User s Manual 1580 E2 9 9 e A Og 3 lt D U O amp 9 3 3 5 c n D S D 9 D 5 se qeueA jeuruue 1ndjno indu 1 7 6 9 LX inverter l Precautions for Correct Use e When the Drive Programming program is stopped the data of the analog output terminal variables before the program stop is retained When the program execution is started again the process begins with the retained data However the outputs with the Drive Programming not set are controlled as the inverter s analog outputs independently of the program The multi function digital output PWM output FM terminal provides PWM signal outputs The terminal outputs the value of 0 00 to 100 00 variable as the pulse width duty ratio t T in a 6 4 ms cycle PWM output Cycle T Constant 6 4 ms Duty ratio t T Variable 9 4 2 Multi function Input Variables Function variable Reference UP R W C001 to C007 00 DWN RW CO01 to C007 07 SPD C001 to C007 02 SPD2 C001 to C007 03 SPD3 C001 to C007 04 SET RW C001 to C007 08 FRS C001 to C007 71 EXT C001 to CO07 12 SFT RW C001 to C007 15 RS RW C001 to C007 18 OLR RW C001 to C007 32 TL C001 to C
36. Thermal Frequency 2 Free electronic Thermal Frequency 1 to Free elec tronic Thermal Frequency 3 Free electronic Thermal Frequency 3 Free electronic Thermal Frequency 2 to 400 Starting Voltage on Power Interruption Deceleration Hold Level on Power Interruption Window Comparator FV Upper Limit Level Window Comparator FV Lower Limit Level Window Comparator FV Hysteresis Width 0 0 to 999 9 1000 0 0 to 999 9 1000 Set an upper limit level Setting range 0 to 100 Lower limit Lower limit level 0061 Hysteresis width b062 x 2 Set a lower limit level Setting range 0 to 100 Upper limit Upper limit level b060 Hysteresis width b062 x 2 Set a hysteresis width for the upper and lower limit levels Setting range 0 to 10 Upper limit Upper limit level b060 Lower limit level b061 2 Drive Programming User s Manual 1580 E2 Precautions for Use of Parameters for Drive Programming parameter Description Data No b063 Window Comparator Fl Upper Limit Level Set an upper limit level Setting range 0 to 100 Lower limit Lower limit level D064 Hysteresis width b065 x 2 b064 Window Comparator Fl Lower Limit Level Set a lower limit level Setting range 0 to 100 Upper limit Upper limit level D063 Hysteresis width b065 x 2 b065 Window Comparator FI Hysteresis Width Set a hysteresis width for the upper and lower limit levels Setting range 0 to 10 Upper limi
37. U 01 waits for 1 00 second with the wait command and jumps to the while command If X 00 is not 1 it executes the next command after the wend command 5 Jumps to the block 1 loop unconditionally Drive Programming User s Manual 1580 E2 rk IN U Oo e o 3 O Oo 3 e 2 O Oo 3 3 D 5 a on 6 Drive Programming Commands Until Loop Command Argument Executes lt command set gt until lt condition gt is Condition a comparison between two variables Le met or constants with the format lt left hand value gt T comparison operator right hand value ATH e Left hand value any variable or constant range 128 to 127 e Comparison operator lt gt lt gt or lt gt 2 Until Right hand value any variable or constant range 128 to 127 Command set one or more commands until O4 the loop command It can contain nested com Loop mands up to eight levels Format Flowchart method Text language method until lt condition gt T aisn command set loop e Example Flowchart Text entry Es again until x 88 1 wait 1808 1 again loop inc U 81 goto again end 6 Hest Black SES Block number Operation 1 to 3 If X 00 is not 1 it waits for 1 00 second with the wait command and jumps to the until com mand If X 00 is 1 it executes the loop command and goes to the next command 4 to 5 Adds 1 to U 00 and jumps to the bl
38. access 1 ON e The timer output contacts TD 0 to TD 7 are bit size variables This variable is read only e When the program is started the values of the timer output contacts TD 0 to TD 7 are cleared to Zero e The timer output contacts TD O to TD 7 start their operation after they are specified in the delay on off command or the timer set command TD 0 to TD 7 are set to 0 OFF when the corre sponding timer counter variables are cleared to zero When the timer counter variable reaches the specified value the contact is set to 1 ON and the status is retained If the timer off command is executed the status of TD 0 to TD 7 are cleared to zero e When the timer counter variables TC 0 to TC 7 operate as free running counters the status of cor responding timer output contacts TD O to TD 7 do not change 5 10 Drive Programming User s Manual 1580 E2 o Drive Programming User Variables Function Default TDw WI output contact 0 to 255 0 01 Hz Unsigned word access 1 word e The timer output contact word access TDw is a function to use the timer output contacts TD 0 to TD 7 as a word size variable This variable is read only e The timer output contacts TD 0 to TD 7 are set in the lower byte Zero is read out for upper byte data Br swim 7 6 5 4 3 2 3 9 Function TOC TD la Precautions for Correct Use If the Drive Programming program is stopped the data of
39. control command delay on off or timer set the timer counter variable corresponding to the specified contact starts counting When the counter reaches the specified value the timer output contact is turned ON When the variables are not used in the timer control commands they acts as the free running counters Function em Default TC 0 to Timer counter variable 0 to 2 147 483 647 10 ms Unsigned TC 7 2 words e The timer counter variables TC 0 to TC 7 are unsigned 2 word variables This variable is read only e The timer counter variables TC 0 to TC 7 correspond to the timer output contacts TD O to TD 7 respectively e The timer counter variables TC O to TC 7 act as the 31 bit free running counters They start count ing with zero when the program is started and count up every 10 ms When the timer output contact is specified in the delay on off command or the timer set command the corresponding timer counter variable among TC 0 to TC 7 acts as the counter for timer control When the command is executed the variable TC 0 to TC 7 is cleared to zero and count up every 10 ms When they reach the specified values the counting stops e When the timer off command is executed the corresponding timer counter variable is cleared to zero and it starts the operation as the 31 bit free running counter and counts up every 10 ms Function Default TD O to Timer output contact 0 OFF TD 7 bit
40. create a loop program so that the program does not reach end command If the Drive Programming function is stopped while the Motor is running the Motor will be stopped according to the setting for the Stop Selection b091 deceleration stop or free run stop P A017 Drive Programming 00 Disabled default setting Disables the Drive Programming function Function Selection Programs are not executed If you change the setting to 00 Disabled during program execution the program will be stopped 01 Enabled Start stop via The Drive Programming program is multi function input PRG started when the multi function input ter terminal minal set to 82 PRG is turned ON Enabled Starts the Drive Programming program Start stop at power on off automatically after the inverter power sup ply is turned on If you change the setting to 02 Enabled while the program is stopped the program will be started Drive Programming User s Manual 1580 E2 4 25 4 Drive Programming Editor C001 to MX2 and RX 82 PRG When the Drive Programming Function C007 Multi function Input S1 Drive Programming start Selection A017 is set to 01 Enabled to S7 Selection Start stop via multi function input PRG termi C008 RX only nal the program is started via the Multi function Input S8 multi function input terminal with this setting Selection 1 Multi function input terminals for MX2 are S1 to S7 and for RX are S1 to S8
41. deceleration time through the Type Drive Programming Drive Programming User s Manual 1580 E2 3 Operation Procedure for Drive Programming la Precautions for Correct Use Even if you select MI1 to MI8 General purpose input 1 to 8 for the Multi function Input S1 to S8 Selection you can select NO NO contact or NC NC contact for the Multi function Input S1 to S8 Operation Selection C011 to C018 Even if you select MO1 to MO6 General purpose output 1 to 6 for the Multi function Output P1 to P5 Selection or for the Multi function Relay Output MA MB Function Selection you can select NO NO contact or NC NC contact for the Multi function Output P1 to P5 Opera tion Selection CO31 to C035 or for the Multi function Relay Output MA MB Operation selection C036 f you enable the emergency shutoff function of the 3G3RX Series Inverter SW1 ON the Multi function Input S1 Selection C001 will be set to 18 RS and the Multi function Input S3 Selection C003 will be set to 64 EMR automatically In this condition the Multi function Input S3 S4 Operation Selection CO11 C013 are fixed to NO NO contact and NC NC con tact respectively and you cannot change them To allocate general purpose inputs to Multi function Input S1 S3 Selection disable the emer gency shutoff function In the Drive Programming the analog I O functions are allocated to XA 0 to XA 2 and YA 0 to YA 2 You can monitor the analog I
42. detects a trip during the Drive Programming operation the operation is continued However if any of E43 to E45 trips related to the Drive Programming is detected the opera tion is stopped Or with the on trip goto command the program can jump to other process after a trip Occurred Error status With without User trip Drive Programming t t 73 uds 2 E50 to E59 related trip E43 to E45 Piet tips Without Operation is continued Program is stopped Operation is continued With After the on trip goto Program is stopped After the on trip goto command is executed the command is executed the program jumps to the specified label and the operation is continued program jumps to the specified label and the operation is continued Precautions for Safe Use When the Drive Programming program is stopped the status before the program stop is retained for multi function outputs controlled by the Drive Programming For this reason configure the system so that the stop of the Drive Programming program in the inverter can be detected by the Drive Programming start signal and the alarm trip signal and the inverter s peripheral devices can be stopped safely Drive Programming User s Manual 1580 E2 8 Errors and Remedies 8 1 2 Drive Programming Operation on Error Reset The Drive Programming operation on error reset varies with the reset input method and the setting for the Reset Selection C102 The follo
43. e OMRON SHALL HAVE NO LIABILITY FOR SOFTWARE DEVELOPED BY THE USER OR ANY THIRD PARTY BASED ON THE SOFTWARE OR ANY CONSEQUENCE THEREOF e APPLICABLE CONDITIONS USER SHALL NOT USE THE SOFTWARE FOR THE PURPOSE THAT IS NOT PROVIDED IN THE ATTACHED USER MANUAL CHANGE IN SPECIFICATION The software specifications and accessories may be changed at any time based on improvements and other reasons e ERRORS AND OMISSIONS The information in this manual has been carefully checked and is believed to be accurate however no responsibility is assumed for clerical typographical or proofreading errors or omissions Drive Programming User s Manual 1580 E2 9 oafety Precautions Safety Precautions Indications and Meanings of Safety Information In this manual the following precautions and signal words are used to provide information to ensure the safe use of the Drive Programming The information provided here is vital to safety Strictly observe the precautions provided Meanings of Signal Words Indicates a potentially hazardous situation which if not avoided could WARN N G result in death or serious injury Additionally there may be severe property damage Indicates a potentially hazardous situation which if not avoided may result C a Thate n in minor or moderate injury or property damage Alert Symbols in this Document This symbol indicates a prohibited item an item you must not do The specifi
44. input variables function bits such as FW RV and CF 1 and timer variables are cleared at the same time as the program stop and all data are changed to zero Drive Programming User s Manual 1580 E2 3 15 3 Operation Procedure for Drive Programming When the Drive Programming function is started stopped through the CX Drive the value of the inverter parameter Drive Programming Function Selection A017 is temporarily changed to 02 start or 00 stop only in the RAM data Take the following measures after you started stopped the Drive Programming function through the CX Drive e Turn ON the power supply for the inverter again and return the value of A017 to that saved in the EEPROM Do not perform the following EEPROM saving operations before you turn ON the power sup ply for the inverter Transferring downloading a part of parameters from the CX Drive Issuing the enter command via the Modbus communication or a communication option When the Drive Programming program is started five tasks are started simultaneously If you create a loop construction in a task by using commands such as the goto the task will repeat the loop after it is started When the Drive Programming program is stopped five tasks are stopped simultaneously If the program is stopped while the Motor is running the Motor will be stopped according to the setting for the Stop Selection b091 deceleration stop or free run stop The
45. is 0 to 7 until it reaches value When value is Dion Value any variable or constant TimerSet i reached the timer contact TD k changes to specified time x40 ms ON Format Flowchart method Text language method oco V Note 1 The timer k is started when the timer set command is executed If TD k is ON itis changed to OFF Coepangan few rmnasehing EE TB if when the timer k is started After the timer k is started the program goes to the next command When the timer set command is executed the data of TD k and value are saved internally Even if the variable values set to value is changed after the timer set command is executed the opera tion of the command does not change After the timer set command is executed if the same timer k is restarted before its processing is completed the ongoing processing is canceled and the timer k is started with the new settings Therefore create a program so that the timer k which is started once is not restarted until its pro cessing is completed You can monitor the data of the started timer k with the timer counter variable TC k Check the com pletion of the timer processing with the timer output contact TD k changes ON at completion e Timing chart 1 The timer is in a free run state ff 2 The timer set command is started 3 The delay operation is in progress 4 The time elapsed 6 The delay operation
46. is in progress 7 The time elapsed K 8 The timer off command is started r lina it TD Jk 1000 tera d TD fk 1800 Gre eT TD ki 1 9 2 3 4 gt 5 6 gt 7 89 gt 1 2 3 4 5 The timer set command is started 6 7 8 9 The timer is in a free run state Drive Programming User s Manual 1580 E2 6 Drive Programming Commands e Example Flowchart Text a a entry loop inc U 801 timer set TD 8 U 81 L Bee U 82 TC if TC 8 lt U 81 goto LB8e goto loop end 1 loop ini U1 e timer set TD o U1 Uiz TCqU if TC 0 Uf gota Goto LEGO Goto loop Hest Black P 3 D O O e 9 O O 3 3 D 2 0 In the above example the set value of TD 0 is incremented by 1 every time the timer execution is com pleted and the time required for each loop gets longer every execution The current value of the timer is reflected in U 02 Block number Operation 1 Adds 1 to U 01 2 Starts the timer 0 for the timer set command with the set value U 01 3 Assigns the current value TC 0 of the timer 0 to U 02 4 Jumps to the block 3 LBOO if the current value TC 0 of the timer 0 is less than the set value U 01 In other cases the program goes to the next step 5 Jumps to the block 1 loop unconditionally Drive Programming User s Manual 1580 E2 6 49 6 Drive Programming Command
47. monitor the inverter s total number of faults The monitored data is equivalent to the data of the Fault Counter d080 This variable is read only Function her Default ERR 1 to Fault Monitor 1 to 6 d081 0 to 127 Unsigned ERR 6 to 086 1 word Use this function to monitor the data of the last six trips of the inverter The monitored data is equivalent to the data of the Fault Monitor 1 to 6 d081 to 086 This variable is read only The trip data is displayed with a code which is the same as that in the Inverter Fault Monitor Factor List used in the inverter s Modbus communications Pune d Description Data range perau Data size R W variable data DCV DC Voltage Monitor O to 10 000 0 1 V Unsigned R d102 1 word Use this function to monitor the inverter s internal DC voltage The monitored data is equivalent to the data of the DC Voltage Monitor d102 This variable is read only Function ee Default STATUS Inverter status monitor Unsigned 1 word Use this function to monitor the inverter s status Each bit corresponds to the following status This variables is read only 15 Q starus lI gd tt tt bit 0 Run bit 1 Trip bit 2 Reserve bit 3 Retry bit 4 Overload suppression bit 5 Overcurrent suppression bit 6 Overvoltage suppression bit 7 Reset bit 8 Undervoltage bit 9 to 15 Reserve Drive Programming User s Manual 1580 E2 o Drive Programming User Variables 5 6 Multi f
48. possible to use the multi function analog output current output AMI terminal as the analog output terminal variables YA 2 of the Drive Programming function You can continuously monitor the status of the analog outputs regardless of the parameter settings To control the analog outputs via the Drive Programming function select Drive Programming for the setting of the inverter parameters MP Selection C027 AM Selection C028 and AMI Selection C029 Drive Programming User s Manual 1580 E2 o Drive Programming User Variables Function Default YA 0 MX2 and RX O to 10 000 0 01 Unsigned Analog output terminal 1 word variable MP terminal 6 4 ms cycle PWM output YA 1 MX2 and RX Analog output terminal variable AM terminal 0 to 10 V output YA 2 RX only Analog output terminal variable AMI terminal 4 to 20 mA output e The analog output terminal variables YA 0 to YA 2 are unsigned 1 word variables e Set the variables in increments of 0 01 as a percentage of the maximum output duty 10 V or 20 mA e Select Drive Programming for the setting of the inverter parameters MP Selection C027 AM Selec tion C028 and AMI Selection C029 to control the analog output terminals via the Drive Program ming function Even if you do not select Drive Programming for the parameters it is possible to monitor the status of the analog output terminals rd N 3 c ct O c e c e D 3 2 D S
49. restarted To repeat the program create a loop program so that the program does not reach end command P F025 Drive Programming 00 Disabled default setting Disables the Drive Programming function Function Selection Programs are not executed If you change the setting to 00 Disabled during program execution the program will be stopped 01 Enabled Starts the Drive Programming program Start stop at power on off automatically after the inverter power sup ply is turned on If you change the setting to 01 Enabled while the program is stopped the program will be started F026 Drive Programming 00 TRM PRG terminal Drive Programming program will run by RUN Trigger Selection terminal Set terminal to PRG function 01 PARAM setting F025 Drive Programming program will run if enable F025 enable C001 to Multi function Input S1 76 PRG When the Drive Programming Function eo UO a lt D U Oo e e 3 3 5 a m Q Oo C007 to S7 Selection Drive Programming start Selection F025 is set to 01 Enabled Start stop at power on off the program is started via the multi function input terminal with this setting wejboidg e Bulnoexy 1 6 Drive Programming User s Manual 1580 E2 9 5 9 LX inverter 9 4 Drive Programming User Variables 9 4 1 Input Output Terminal Variables I Input Terminal Variables X 00 to X 11 You can use the inverter s multi function inp
50. reversal data size Not not Negation Value any variable except variables and con stants with bit data size range 2 147 483 648 to 2 147 483 647 Format Flowchart method Text language method result not value result not value Y 1 You cannot obtain a correct result with commands such as UB 1 not UB 0 Use xor command to reverse variables with bit data size as shown in the following examples e Example 1 UB 1 UB 0 xor 1 e Example 2 UB 2 X 00 xor 1 Note If an overflow or underflow occurs the Drive Programming detects it as an error Take neces sary measures in the application so that they do not occur e Example Flowchart Text ey entry U 83 12 U 84 not U 83 l goto loop 2 loop 4 Next Block ARAR pp Block number Operation 1 Assigns 12 to U 03 2 Assigns 65523 binary 111110011 which is the result of negation bit reversal on 12 U 03 binary 00000110 to U 04 3 Jumps to the block 3 loop unconditionally Drive Programming User s Manual 1580 E2 6 33 rk ch gt 3 D et o O o D R et O M 5 o r O e o m O o D D et o 5 O O 3 3 D 2 a 6 Drive Programming Commands Inc Increment by 1 Command Argument Increments lt value gt by 1 Value any variable Inc Format Flowchart method Text language method inc value Y Note If an overflow or underflow occurs the Drive Programmi
51. ros ih ri P P107 MTT P106 Description Drive Programming User Para Drive Programming User Para Drive Programming User Para Drive Programming User Para Drive Programming User Para Drive Programming User Para Drive Programming User Para Drive Programming User Para Drive Programming User s Manual 1580 E2 4 Drive Programming Editor e Saving Dive Programming program by export You can save a Drive Programming program separately Click Drive in the Menu bar select Program Export Program and enter the file name CX Drive separates the program from other drive information and saves the program only To import the exported program files into the CX Drive click Drive in the Menu bar select Program Import Program and select the file name El Workspace CX Drive Drivel Drivel 3G3RX A4015 E1F PRG4445 Param S File Edit view Drive Tools Window Help DAS dg Dove si aee s dx autodetect Ctrl D A x gt 4 Autodetect Options Drivel Off amp Work Online aoa P100 Drive P1 S Graphs ng Status Tm Monitor B Intialze ing User parameters Set rang g Settings Drive Pro 4 Para Ti Task ff Parameter Editor gt oo o D 5 e U Oo e e 3 o I E EE Reset Selection cription 7X Reset All fe Programming User Parameter LIO1 Transfer ie Programming User Parameter UOZ Import Program a AG Alarms Export Program p Uog R
52. s Manual 1580 E2 6 31 rk Ol gt gt 3 D e Oo O Ke D ie o 3 f gt Q r o a Oo D O D ie Oo 3 O Oo 3 3 Q Q o 6 Drive Programming Commands XOr Logical exclusive OR Command Argument Logical exclusive OR on value 1 and value Result any variable 2 in binary format Value 1 any variable or constant sn XOr Logical exclusive OR range 128 to 127 Value 2 any variable or constant range 2 147 483 648 to 2 147 483 647 Format Flowchart method Text language method result value 1 xor value 2 result value 1 xor value 2 Note If an overflow or underflow occurs the Drive Programming detects it as an error Take neces sary measures in the application so that they do not occur e Example Flowchart Text entry u a2 6 U 83 12 loop U 84 U 802 xor U 83 goto loop gt end 5 Next Block idis Block number Operation 1 Assigns 6 to U 02 2 Assigns 12 to U 03 3 Assigns 10 binary 00001010 which is the result of logical exclusive OR on 6 U 02 binary 00000110 and 12 U 03 binary 00001100 to U 04 4 Jumps to the block 3 loop unconditionally 6 32 Drive Programming User s Manual 1580 E2 6 Drive Programming Commands Not Negation in binary format Command Argument Negation on lt value 1 gt in binary format bit Result any variable except variables with bit
53. set according to the 1st 2nd 3rd con trol selection e The data set in the acceleration time variable ACCEL and deceleration time variable DECEL are not saved in the EEPROM If you want to save the data use the eepwrt command to save it in the user parameter variables or in the EEPROM for the inverter s acceleration deceleration time parameters The internal processing for the acceleration deceleration time is performed in 40 ms cycles Even if the value of the acceleration time variable ACCEL or the deceleration time variable DECEL is changed in the program it takes up to 40 ms until the change is reflected in operation e In the following cases the data that is set in the program is not reflected and the previously set data is used for operation the data set for the acceleration time variable ACCEL or the deceleration time variable DECEL is out of range or O is set for the 3G3RX Series Inverter la Precautions for Correct Use When the Drive Programming program is stopped the data of the acceleration time variable ACCEL and deceleration time variable DECEL before the program stop is retained When the program execution is started again the process begins with the retained data Drive Programming User s Manual 1580 E2 5 13 5 Drive Programming User Variables 9 9 Inverter Monitor Variables You can use the inverter s internal monitor function and status monitor function as the variables of the Drive Programming f
54. subroutines into each task They cannot be shared among the tasks It is possible to call a subroutine from another subroutine nesting However the maximum nesting of subroutines is eight levels 3 3 3 Task Processing UP to five tasks are started simultaneously and one command of each task one line of the program after compilation is executed in 2 ms processing time The following figure Programs After Compila tion Example shows the flow of the program processing All tasks are started simultaneously e In the order of task from 1 to 5 one command of each task one line of the program after compila tion is executed in 2 ms processing time All function variables such as user parameters are shared among the tasks e At the end of 2 ms processing time the operation result of each task is reflected to the inverter oper ation external output etc At the same time the status of the inverter and external input terminals etc are read in As shown in Task 1 if a subroutine is called by the call command the statement of the subroutine Will be executed from the next step of processing Drive Programming User s Manual 1580 E2 3 13 3 Operation Procedure for Drive Programming As shown in Task 2 if the end command is executed the task will be finished and wait for the next start As shown in Task 3 if the wait command is executed the task will be repeatedly executed until a certain cond
55. text program You cannot define aliases in a subroutine or flowchart program Alias definition refers to specifying names for parameters variables commands and numeric con stants By using the alias definition you can handle these names specified in the program in the same way as parameters variables commands and numeric values This is useful for enhancing program readability e Local alias you can use this definition with currently selected task or subroutine You cannot use it with other tasks or subroutines in the program The format of the local alias definition in a task is shown below alias local alias as replacement e Example Halias local ON as 1 alias local OFF as 8 Halias local Monitor 1 as UMon Halias local MaxFrequency as A884 Halias local Count as U 868 Salias local Dummy 1 as UL G8 entry Global alias you can use this definition with all tasks and subroutines in the program You can set alias definitions in any of up to five tasks The format of the global alias definition is shown below Halias global alias as replacement e Example Halias global const 1880 as 188 Halias global Acceleration as FOZ alias global Deceleration as F883 Halias global Time as U 18 Halias global AppTimer as TD G8 Halias global Temp as UL 85 entry Lal Precautions for Correct Use The alias definition created in the text program is deleted when the program is compiled for transferring downloading t
56. the first time Please contact your OMRON representative i CX Drive and Drive Programming Editor Screen Layout The Drive Programming Editor is included as one of the functions of the support tool for the Inverter Servomotor CX Drive When the Drive Programming Editor is started the screen layout of the CX Drive will be changed as shown below Workspace Drive Programming area E Workspace CX Drive Drive Drivel 1G3RX A4015 1I PRG4445 Program citar PA Eie Fill wea Die Teds Wisi He NA sig 1 2A een Toolbar 3 Drivel Offline User Paromcters E Paareter Edtcr IUU ul Ba rin Block Parameters p q Seting window lt lt Properties window xl P epim C am arule Fe Fel P Cotiol Cemnmands v so sace mand Y Tool box wi ndow 7 nar Cortol Zomma cs P nicl Corm and Irseitzr Cortol Cemnan d B l 1 2 FPN 317155 d AM hun PD ulpul Eror Lst cr Help F1 FERK Ad0 5 ELF Fh c71 45 Status bar Error List tab Output window 4 2 Drive Programming User s Manual 1580 E2 4 Drive Programming Editor I Starting CX Drive Use the following method to start the CX Drive from the Windows Start Menu select All Programs OMRON CX One CX Drive Click the CX Drive icon in the CX Drive folder After the CX Drive is started select File from the CX Drive Menu and click New to create a new CX Drive file The New Drive dialog box will appear Select
57. to 1 80 x Rated current 75 to 132 kW Light load 0 00 to 1 50 x Rated current 7 4 Drive Programming User s Manual 1580 E2 Precautions for Use of Parameters for Drive Programming 7 3 Parameters Affected by PID Enabled Disabled The set values are scaled by the settings for A071 A075 Parameter Data Description A011 Converted value set value x A075 Set value A012 Converted value set value x A075 Set value A020 Converted value set value x A075 Set value A021 Converted value set value x A075 Set value A022 Converted value set value x A075 Set value A023 Converted value set value x A075 Set value A024 Converted value set value x A075 Set value A025 Converted value set value x A075 Set value A026 Converted value set value x A075 Set value A027 Converted value set value x A075 Set value A028 Converted value set value x A075 Set value A029 Converted value set value x A075 Set value A030 Converted value set value x A075 Set value A031 Converted value set value x A075 Set value A032 Converted value set value x A075 Set value A033 Converted value set value x A075 Set value A034 Converted value set value x A075 Set value A035 Converted value set value x A075 Set value A101 Converted value set value x A075 Set value A102 Converted value set value x A075 Set value A145 Converted value set value
58. to Drive or Transfer from Drive icon in the CX Drive toolbar In this case you need to select programs when a message dialog appears and asks you whether to transfer the parameters pro grams or both Drive Programming User s Manual 1580 E2 4 21 4 Drive Programming Editor 4 8 Saving Programs There are two ways to save programs created with the Drive Programming function as described below Select a way suitable for your purpose e Saving whole CX Drive project By saving the whole project created with the CX Drive you can save all drive data including the Drive Programming program Click File in the Menu bar select Save As and enter the file name When a saved project is opened the Drive Programming program included in the project is automati cally loaded You can display the program by double clicking the Drive Programming in the Workspace and start the Drive Programming Editor Workspace CX Drive Drive Drive 3G3RX A4015 F1F PRG44 AE File Edit View Drive Tools Window Help op D tew i G Open e Close Open Workspace Close Workspace Save Workspace Save As Workspace Tl Save ae mjmm amp m aee Ckr o n Crh P100 Dr Drive Programming User parameters Chrl 5 lata Save Bs Gil Save All e Print a Print Preview Page Setup Import Export Recent Workspaces Exit Ctrl P z Index rini Pioz P P103 P Fic
59. unconditionally 6 38 Drive Programming User s Manual 1580 E2 6 Drive Programming Commands Yw value Command Argument Outputs data to the output terminal variable in Value any variable or constant units of words Reflect each bit in corresponding output Yiw value Format Flowchart method Text language method Yw lt value gt Y Note The output terminal variable is a variable that controls the status of the inverter s output termi nal The following settings are required The numerical order of the output terminal variables follows the numerical order of the set general output numbers MX2 Setthe Multi function Output P1 and P2 Selection C021 and C022 and the Multi function Relay Output MA MB Function Selection C026 to 44 to 46 MO1 to MO3 General purpose output RX Set the Multi function Output P1 to P5 Selection C021 to C025 and the Multi function Relay Out put MA MB Function Selection C026 to 44 to 49 MO1 to MO6 General purpose output When the data is assigned in units of words zero is read out for the upper byte data and unset input termi nal variables If there is any setting the setting is ignored Assignment example Yw 1 bit 0 to Y 00 MO1 multi function No 44 Yw 2 bit 1 to Y 01 MO2 multi function No 45 Yw 4 bit 2 to Y 02 MO3 multi function No 46 Yw 8 bit 3 to Y 03 MO4 RX only multi function No 47 Yw 16 bit 4 to Y 04 MO5 RX only mult
60. x A075 Set value A220 2nd Multi step 2nd Multi step Speed Reference 0 2nd Multi step Speed Reference 0 0 Converted value set value x A075 Set value A320 RX only 3rd Multi step Speed Converted value set value x A075 Set value Reference 0 F001 Output Frequency Setting Monitor Converted value set value x A075 Set value d004 PID Feedback Value Monitor Converted value feedback value x Feedback value A075 peiqesiq peiqeua aid Aq pej29jjv sJejeurejed E Z 7 Drive Programming User s Manual 1580 E2 7 5 Precautions for Use of Parameters for Drive Programming Drive Programming User s Manual 1580 E2 Errors and Remedies b This section describes the program operation at the time of error occurrence the errors that are specific to the Drive Programming as well as the causes and remedies 90 1 JFOUDIESNOOUNG ax x x ele ardt erae e bree da webnews t exa ees 8 2 8 1 1 Drive Programming Operation on Error 0 00 cc eee eee 8 2 8 1 2 Drive Programming Operation on Error Reset 0 00 cee 8 3 8 1 3 Alarm Code List 0 0 eee nes 8 4 Drive Programming User s Manual 1580 E2 8 Errors and Remedies 8 1 Troubleshooting 8 1 1 This section describes the program operation at the time of error occurrence the error codes that are specific to the Drive Programming and the remedies for them Drive Programming Operation on Error Basically even if the inverter
61. 007 33 TRQ1 R W C001 to C007 34 TRQ2 R W C001 to C007 35 PCLR C001 to C007 40 KHC RW COO to C007 46 X 00 to X 11 R W C001 to C007 49 to 60 EMP RW C001 to C007 61 INSP R W C001 to C007 62 RL RW C001 to C007 63 COK C001 to C007 64 BOK RW C001 to C007 66 FP1 to FP6 R W C001 to C007 66 to 71 PAL RW _ CO0T to CO07 72 TCL RW C001 to CO07 73 vs RW C001 to C007 74 9 10 Drive Programming User s Manual 1580 E2 9 LX inverter Function variable Description RW Reference NFS RIW C001 to C007 75 PRG RW 0001 to C007 76 CMC RIW 0001 o C007 77 GS RIW C001 to 0007 78 G52 RW C001 to C007 79 Note The LX inverter functions are available for the digital multifunction input terminals P140 to P144 Multi Input ExIN 1 5 with the 3G3AX EIO E extra I O board 9 4 3 Multi function Output Variables Function variable Description RW Reference RUN Signal duringRUN R CO21toCO23 CO26 00 FAT Constant speed arrival signal R C021 to C023 C026 07 FA2 Set frequency exceeded signal R C021 to C023 C026 02 OL Overload warning R C021to C023 C026 03 AL Alarm signal R C021 to C023 C026 05 FA3 Set frequency only signal R C021 to C023 C026 06 OTG Overtorque Undertorque signal R C021 to C023 C026 07 P Signal during momentary power interruption R C021 to C023 C026 08 5 UV Signal during undervoltage R C021 to C023 C026 09 3
62. 1 to C023 C026 56 MPS Magnet pole position search R C021 to C023 C026 57 SEQ SEQemr R C02 toC023 CO26 58 Note The LX inverter functions are available for the digital multifunction output terminals P145 to P147 Multi Output ExOUT1 3 with the 3G3AX EIO E extra I O board Drive Programming User s Manual 1580 E2 9 11 9 LX inverter 9 5 Drive Programming Commands 9 5 1 I O Control Commands var X i Command Argument Assigns one bit of the status of the input termi variable any variable the variable value is 0 or 1 Led nal variable to variable i input terminal variable range 00 to 11 vari Format Flowchart method Text language method variable X i SWEIISDIgE DN 4 Note The input terminal variable is a variable that detects the status of the inverter s input terminal The following settings are required The numerical order of input terminal variables follows the numerical order of the set general input numbers Set the Multi function Input S1 to S7 Selection C001 to C007 to 49 to 60 MI1 to MI12 General purpose input Assignment example X 00 MI1 function No 49 X 01 MI2 function No 50 X 02 MI3 function No 51 X 03 MIA function No 52 X 04 MI5 function No 53 X 05 MI6 function No 54 X 06 MI7 function No 55 X 07 MI8 function No 56 X 08 MI9 function No 57 X 09 MI10 function No 58 X 10 MI11 function No
63. 10 points Frequency reference and acceleration deceleration time settings Function variable U 00 to U 31 32 points able Internal user variable UL 00 to UL 07 8 points Frequency reference SET Freq Acceleration time vari ACCEL Deceleration time vari DECEL Inverter monitor vari The monitor functions d001 to d102 for the inverter are available as vari able ables MX2 and RX FM lout Dir PID FB F CNV Tmon Vout Power RUN Time ON Time POS STATUS DCV ERR CNT ERR 1 to ERR 6 and UMon 0 to UMon 2 Multi function input The function options of the Multi function Input S1 Selection C001 for the variable inverter are available MX2 and RX FW RV CF1 CF2 CF3 CF4 JG DB SET TCH FRS EXT USP CS SFT AT RS STA STP F R PID PIDC UP DWN UDC OPE SF1 SF2 SF3 SF4 SF5 SF6 SF7 OLR TL TRQ1 TRQ2 BOK LAC PCLR ADD F TM ATR KHC AHD CP1 CP2 CP3 ORL ORG and SPD MX2 only RS485 HLD ROK and DISP RX only SET3 CAS PPI ORT STAT SON FOC FOT ROT PCNT and PCC Drive Programming User s Manual 1580 E2 2 3 2 Specifications Item Specifications Function variable Multi function output The function options of the Multi function Output P1 Selection C021 for the variable inverter are available MX2 and RX RUN FA1 FA2 OL OD AL FA3 OTQ UV TRQ RNT ONT THM BRK BER ZS DSE POK FAM FA5 OL2 ODc OIDc FBV NDc LOG1 LOG2 LOGS WAC WAF FR
64. 16 Precautions for Use of Parameters for Drive Programming 9 18 9 6 1 Parameters Affected by Rated Current 00 c eee eee 9 18 Drive Programming User s Manual 1580 E2 9 1 9 LX inverter 9 1 Preparation and System Configuration You must prepare the following items to create user programs with functions of the Drive Programming in CX Drive and execute the programs in the 3G3LX Series Inverter e 3G3LX Series Inverter Personal computer PC Windows system 32 bit PC 64 bit PC Windows XP SP3 Windows Vista and Windows 7 Windows Vista and Windows 7 The CX Drive requires the version 2 5 or higher for 3G3LX Series Inverter The CX Drive is included in the FA Integrated Tool Package CX One Prepare the following PC inverter connection cable USB to RJ 45 Converter Cable Model 3G3AX PCACN2 or USB CONVERTERCABLE Remove the Digital Operator A and the connector B CX Drive USB RS422 Converter cable 3G3AX PCACN2 RJ45 connector Connector for the Digital Operator L Version Information The Drive Programming function is included in the following or higher versions of the CX Drive If the version of your CX Drive is lower you need to upgrade the version LX Version 2 5 or higher with version 2 4 or lower operation is not possible ES Additional Information For how to install or upgrade the CX
65. 3G3MX2 or 3G3RX series from the pull down list under the Drive Type Click the Settings but ton to the right In the Drive Type Settings dialog box set Installation Type Option Voltage Class and Maximum Motor Capacity After setting these items click the OK button to close the Drive Type Settings dialog box Drive Tools Help kdg se 5mxm IserIjajeuw iam id sag BEES a 4 4 B S B x x E Bode i is Be amp 08 gt E oD km Joyipy Burwwesboig aAug Hues p p 4 3G3RX A4015 E1F PRG4553 Drive Type Installation type Option Voltage Class Maximum Motor Capacity 3G3RX A2055 E 1F PRG4445 Connection Type Ta Special Specifications Comments Software Number Type your own comment in here Show Special Softwares vr Option Board Type M Option Boards Software Number Drive Programming User s Manual 1580 E2 4 3 4 Drive Programming Editor In the New Drive dialog box you set the connection type for the CX Drive and the inverter Under the Connection Type select Direct and click the Settings button to the right On the Driver tab page set the Port Selection to the port name of the computer on which the CX Drive is installed Drive Tools Help ug osejoimmm sna ejee m csi me u aos tro B Type your own comment in here o J cme we J After setting these items click the OK button and close all dialog bo
66. Assigns the internal user contact informa tion to variable 0 off 1 on Assigns the internal user contact informa tion to variable in units of words Outputs data to the internal user contact in units of bits 0 off 1 on Outputs data to the internal user contact in units of words Command delay timer set timer off Argument 1 Argument2 Argument3 Argument 4 Arguments on off variable 1 gt TD i lt variable 2 constant TD variable constant LEE qoo E Description Sets variable 2 con stant for the specified timer and starts the timer Changes variable 1 to ON or OFF after the time of variable 2 constant gt elapsed At the same time it changes TD i to ON Sets lt variable con stant gt for the specified timer and starts the timer Changes TD i to ON after the time of lt vari able constant gt elapsed Stops the specified timer Drive Programming User s Manual 1580 E2 6 Drive Programming Commands Parameter Control Commands Command Argument1 Argument2 Argument3 Argument4 Arguments Description ChgParam parameter variable Replaces the content constant of parameter with lt variable constant gt MonParam lt variable gt lt parameter gt Assigns the content of UT m op mE variable eepwrt Issues a request for writing to the inverter s EEPROM when the following parameter writing command is exe
67. CX Drive Function Description Programming Supports the creation editing saving reading and printing of user programs Compilation Performs check of user programs and generates intermediate codes Transfer Downloads a user program to the inverter Uploads a user program from the inverter Debugging support Starts and stops the execution of a program The user can check the inverter status monitor etc Drive Programming User s Manual 1580 E2 1 Overview 3G3MX2 Series Inverter Monitoring software CX Drive Ver 2 7 or higher WeIBO1g 8ALIG JO M8IAJ9AQ L L Pulu Connect directly Drive Programming or via communications Programming Creation editing and saving of user programs Upload Compilation Download Transmission User Programs Debugging support Program execution Monitor Parameter changed Ver 2 0 or later Drive Programming User s Manual 1580 E2 1 3 1 Overview 1 2 Preparation and System Configuration You must prepare the following items to create user programs with functions of the Drive Programming in CX Drive and execute the programs in the 3G3MX2 3G3RX Series Inverter e 3G3MX2 3G3RX Series Inverter Ver 2 0 or later Personal computer PC Windows system 32 bit PC 64 bit PC Windows XP SP3 Windows Vista and Windows 7 Windows Vista and Windows 7 The CX Drive requires the following versions MX2 Version 2 8 or higher for 3G3MX2 Series Inverter RX
68. Drive refer to the CX Drive Operation Manual W453 9 2 Drive Programming User s Manual 1580 E2 9 LX inverter 9 2 Specifications The following table shows the specifications related to the Drive Programming Item Specifications Program specifica Programming lan Flowchart and text language method Input device Windows personal computer OS Windows XP SP3 Windows Vista or Windows 7 Program capacity 1 024 steps max 6 KB 1 024 steps max for a total of 5 tasks Programming support Functions supported in CX Drive function Program editing and display Program compilation Program syntax check e Program downloading uploading and all clear Execution format Execution by interpreter Execution cycle 2 ms step 5 commands executable through 5 task paral lel processing e Subroutine call supported Nesting in 8 levels max Input output func External input Multi function Input X 00 to X 06 7 points tions Multi function input S1 to S7 terminals Frequency reference XA 0 Oto 10 V O terminal input XA 1 4 to 20 mA OI terminal Multi function analog XA 2 10 to 10 V O2 terminal input V External output Multi function out Y 00 to Y 03 4 points o put multi function relay e Multi function output P1 and P3 terminals 2 output Multi function relay output terminal RY o Monitor output YA 0 y PWM output in 6 4 ms cycle FM termi i Multi function digital nal out
69. Editor The Drive Programming auxiliary windows Toolbox Block Parameters and Properties are dis played automatically 2 Go online with the CX Drive From the Menu select Drive Work Online Or click the Work Online icon in the CX Drive toolbar 3 Click the Transfer from Drive icon in the toolbar of the Drive Programming Editor A program is transferred from the drive inverter and automatically displayed in the Drive Programming area of the Drive Programming Editor P m Q et gt e 9 gt o D D Q c 9 o f Q D Q U O Q ie 3 o 4 Edit the transferred uploaded program Programs after compilation are downloaded to the inverter Therefore the transferred uploaded program will be displayed as a text program To display it as a flowchart program click Convert whole program to Flowchart in the toolbar of the Drive Programming Editor and convert the program to flowchart 5 Perform operations such as program compilation transferring to the inverter and data saving Execute compilation and check for any compilation errors in the program You can transfer the program to the inverter when the compilation is finished successfully To save the program save the whole project Or you can save the program separately by using the function that exports programs When the Drive Programming programs exist you can transfer them to from the inverter by using Transfer
70. I5 function No 60 to Xw 16 bit 4 X 05 MI6 function No 61 to Xw 32 bit 5 X 06 MI7 function No 62 to Xw 64 bit 6 X 07 MI8 MX2 P003 02 RX function No 63 to Xw 128 bit 7 For details refer to 5 2 Input Output Terminal Variables on page 5 5 e Example Flowchart Text Ex entry loop _ uU ae u ee u aa 4 U U and 15 yw U 88 goto loop end e Go to loop Hest Block E In the above example the status of the input terminals X 02 to X 05 is captured and output to the output terminals Y 00 to Y 03 Block number Operation 1 Assigns the value of Xw value of input terminal to U 00 2 Divides the value of U 00 by 4 2 bit right shift to assign X 02 to bit O 3 Performs a logical AND operation on U 00 and 15 binary 00001111 and changes the bits higher than X 06 to zero 4 Assigns U 00 to Yw 5 Jumps to the block 1 loop unconditionally Drive Programming User s Manual 1580 E2 6 37 p O O O e 9 O O 3 3 D 2 0 6 Drive Programming Commands Y i value Command Argument Outputs data to the output terminal variable in I output terminal variable units of bits range 0 to 6 Yizvalue Value any variable or constant Format Flowchart method Text language method bed Y Note The output terminal variable is a variable that controls the status of the inverter s output termi nal The following settings are re
71. Manual 1580 E2 o Drive Programming User Variables e RX only Function variable Description RW Reference SET3 R W C001 to C008 17 CAS RAW C001 to CO08 26 PPI RW CO01 to C008 43 ORT RW _ CO01 to C008 45 STAT R W C001 to C008 48 SON R W C001 to C008 54 FOC RW C001 to C008 55 FOT RW C001 to C008 71 ROT RW C001 to C008 72 PCNT R W C001 to C008 74 PCC RW C007 to C008 75 r c et 1 h c 3 o ct o 5 3 o c e gt af D Z D o Drive Programming User s Manual 1580 E2 5 19 o Drive Programming User Variables 5 7 Multi function Output Variables You can execute the functions which can be allocated to the multi function output terminals by using the Drive Programming program The following variables correspond to the functions which can be allo cated to the multi function output terminals Setting each variable to 1 ON or 0 OFF causes the same operation as when the multi function out put function turns the multi function output terminal ON OFF You can monitor the status on the pro gram even if you do not set each function in the parameters Multi function Output Selection MX2 C021 and C022 RX C021 to C025 or Multi function Relay Output MA MB Function Selection C026 The Reference column in the following table shows the function setting data for the inverter For details on each function refer to the MX2 User s Manual 1570 E2 or the RX User s Man
72. New Subroutine text There are three ways to edit text program codes e Manual typing Calling the text command list Ctrl space Dragging and dropping commands from Toolbox window Set arguments of each command The required arguments are displayed with a green background for the commands that are dragged and dropped from the Toolbox window and the commands selected from the text com mand list Ctrl space oet each argument to complete the command Each time you edit a command by manual typing the popup support will appear to help you complete the command For details on each command refer to Section 6 Drive Programming Commands You need not care about unnecessary lines and spaces when creating a program because they Will be deleted by program compilation Perform operations such as program compilation transferring to the inverter and data saving Execute compilation and check for any compilation errors in the program You can transfer the program to the inverter when the compilation is finished successfully To save the program save the whole project Or you can save the program separately by using the function that exports programs Drive Programming User s Manual 1580 E2 4 Drive Programming Editor 4 7 Editing Transferred Uploaded Programs You can edit the program which is transferred uploaded from the inverter Follow the steps described below to edit the program 1 Open the Drive Programming
73. No 35 multi function No 36 nm m A A Flowchart Text ba Og 3 lt D U amp D 3 3 5 ro O 3 3 D 5 o o D gt entry loop U 08 xw U ae u e0 4 U 88 U G8 and 15 yw U 88 goto loop end e Go to loop Heut Black In the above example the status of the input terminals X 02 to X 05 is captured and output to the output terminals Y 00 to Y 03 SPUBWIWOD JOJJUOD O I 1 S 6 Block number Operation 1 Assigns the value of Xw value of input terminal to U 00 2 Divides the value of U 00 by 4 2 bit right shift to assign X 02 to bit O 3 Performs a logical AND operation on U 00 and 15 binary 00001111 and changes the bits higher than X 06 to zero 4 Assigns U 00 to Yw 5 Jumps to the block 1 loop unconditionally Drive Programming User s Manual 1580 E2 9 15 9 LX inverter 9 5 2 Inverter Control Commands UP Command Argument Makes the inverter start a forward operation 9 This command is a shortcut of the func value command which is previously set as UP 1 Format Flowchart method Text language method DWN Command Argument Makes the inverter start a reverse operation This command is a shortcut of the func value B nRv command which is previously set as DWN 1 Format Flowchart method Text language method uM Y Accel Command Argument Sets the inverter acceleration time Val
74. O status in the programs by using these func tion variables regardless of the settings for A001 C027 to C029 In the Drive Programming programs you cannot monitor the status of multi function I O ter minals for which the general purpose l Os are not set in C001 to C008 and C021 to C026 M N U D e 3 D e D o A 2 D e D a e O UO Z lt v o tel e 3 3 j e Drive Programming User s Manual 1580 E2 3 9 3 Operation Procedure for Drive Programming I Monitor Function of Drive Programming The following functions are provided to monitor the status of the Drive Programming P Precautions for Correct Use e For the data that exceeds four digits the upper four digits of the data is displayed on the Dig ital Operator as shown below A dot at the end of number represents the decimal point position You can use this to figure out the number of digits Display for data 0 to 9 999 0 to 9999 Display for data 10 000 to 65 535 1000 to 6553 Display for data 1 230 000 and 1 230 000 123 and 1230 Since the Digital Operator displays only upper four digits you cannot check or set lower digits of data Use the CX Drive to check or set the data that exceeds four digits d023 Program Counter 0 to 1 024 Displays the line number of the program during the Drive Programming Drive Programming execution The numbers that are displayed are the line numbers of task 1 the leftmost tab on the Drive Pr
75. OMRON Inverter MX2 RX LX Series Drive Programming User s Manual 3G3MX2 Series 3G3RX Series 3G3LX Series CX Drive 1580 E2 01A OMRON 2014 All rights reserved No part of this publication may be reproduced stored in a retrieval system or transmitted in any form or by any means mechanical electronic photocopying recording or otherwise without the prior written permission of OMRON No patent liability is assumed with respect to the use of the information contained herein Moreover because OMRON is constantly striving to improve its high quality products the information contained in this manual is subject to change without notice Every precaution has been taken in the preparation of this manual Nevertheless OMRON assumes no responsibility for errors or omissions Neither is any liability assumed for damages resulting from the use of the information contained in this publication Trademarks e Sysmac and SYSMAC are trademarks or registered trademarks of OMRON Corporation in Japan and other countries for OMRON factory automation products Windows Windows XP Windows Vista Windows 7 Windows 8 and Excel are registered trademarks of Microsoft Corporation in the USA and other countries e EtherCAT is registered trademark and patented technology licensed by Beckhoff Automation GmbH Germany ODVA CIP CompoNet DeviceNet and EtherNet IP are trademarks of ODVA Other company names and products name
76. ON Any data saving measure like EEPROM is not provided e To set initial data create a program in which the initial data is set to SET Freq he range of frequency that the inverter can actually output is from the Starting Frequency b082 to the maximum frequency If the set data is out of range the inverter operates as follows Less than Starting Frequency b082 MX2 and RX Operates at the frequency of 0 00 Hz RX only When the 1st Control Method A044 is set to 04 OSLV 0 Hz sensorless vector control or 05 V2 Sensor vector control the Starting Frequency b082 is disabled and the specified frequency is output More than maximum frequency MX2 Limits the frequency reference to the value set in the 1st 2nd Maximum Frequency A004 A204 RX Limits the frequency reference to the value set in the 1st 2nd 3rd Maximum Frequency A004 A204 A304 You can monitor the frequency reference set in the frequency reference variable SET Freq by using the inverter s parameter Output Frequency Setting Monitor F001 la Precautions for Correct Use When the Drive Programming program is stopped the data of the frequency reference variable before the program stop is retained When the program execution is started again the process begins with the retained data Drive Programming User s Manual 1580 E2 o Drive Programming User Variables I Acceleration deceleration Time Variables ACCEL and DECEL When you directly control
77. Program In the text program method you create a program by using text language For text programs that were not compiled successfully the program errors will be displayed in the Out put window The statement with errors will be highlighted with a red line DUMMY ULOL A638 eee Right click the selected text to display a popup menu call goto Top Monitor pB w Undo Help The following table shows the menu commands available in the text program Command Description Find Looks for the selected text on the program code Replace Replaces the selected text on the program code Cut Deletes the selected text and saves it in the clipboard for further pasting Copy Saves the selected text in the clipboard for further pasting Paste Puts the contents previously copied in the clipboard into the design area Note that you can also paste them as images in other applications Go to Subroutine Jumps to the selected text subroutine Go to Label Jumps to the selected text label Undo Undoes the latest change Redo Redoes the undone operation Help Displays the CX Drive help 4 12 Drive Programming User s Manual 1580 E2 4 Drive Programming Editor 4 2 4 Toolbox Window The Toolbox window allows you to add blocks to the Drive Programming area by drag and drop It dis plays the blocks supported for a particular command organized in categories The Toolbox is displayed when the Drive Programming Editor i
78. T key of the Digital Operator or the LCD Digital Operator optional Set one of the Multi function input terminals MX2 S1 to S7 RX S1 to S8 to 18 RS Reset and turn ON that terminal e To restart the Drive Programming by reset input set the Reset Selection C102 to the value other than 03 Trip reset only You cannot restart the Drive Programming when 03 Trip reset only is set e When the Reset Selection C102 is set to 00 Trip reset at power on or 01 Trip reset at power off the Drive Programming can be restarted by a reset input even when there is no trip Restart when the Drive Programming Function Selection A017 is set to 01 Enabled Power ON Power OFF 1 CU MENENEERBRRNK Multi function input terminal PRG terminal 4 PRG terminal OFF PRG terminal PRG terminal OFF weysey Buiuuej6oJd 9 Auq 9 c e MX2 S1 to S7 di di RX S1 to S8 Start IStop Start Stop Task1 i i Task2 PIT Task4 Tasks xd Emm m Restart after trip when the Drive Programming Function Selection A017 is set to 02 Enabled without on trip goto command Power ON Trip Tripreset Power OFF Power supply Start IStop Start Stop Task1 Task2 Task3 Task4 mT i eb was a Drive Programming User s Manual 1580 E2 3 17 3 Operation Procedure for Drive Programming 3 3 6 Task Operation on Trip Basically even if the inverter detects a trip during the Drive Programming operation the oper
79. TRG Homueimt R C02loC023 CO26 10 3 RNT RUN meovr R C021toC023 C026 17 3 ONT Power ON timeovr R C0 1 to C023 C026 12 THM Electronic thermal warning R C021 to C023 C026 13 F ZS 0 Hz detection signal R C021 to C023 C026 14 lt POK Postonreajy R C021to C023 C026 16 FA4 Set frequency exceeded signal R C021 to C023 C026 17 FAS Set frequency only signal R C021to C023 C026 18 OL2 Oveloadwaming2 R C021to C023 C026 19 THC Thermal alarm signal R C02to C023 C026 20 NDc Communications disconnection detection R C021to C023 CO26 23 WAC Capacitor life warning signal R C021 to C023 CO26 30 WAF Cooling fan life waring signal R CO21 to C023 C026 31 FR Starting contact signal R C021 to C023 C026 32 z OHF Cooling fin overheatwaming R C021 to C023 C026 33 z LOC Low current signal R C021to C023 C026 34 Y 00 to Y 06 Drive Programming MO1 to MO7 R CO21to C023 C026 35 to 41 sj IRDY Operation reay R C0 1 to CO23 CO26 44 2 FWR Forward run signal R C021to C023 C026 45 E RWR Reverse run signaal R C02to C023 CO26 46 5 MJA Fatal fault signal R C021to C023 CO26 47 3 CON Contactor control signal R C021 to C023 C026 51 3 BRK Brake controlsignal R CO21to C023 C026 52 UPS UPS protect direction search status R C021 to C023 C026 54 UPD UPS protect direction R C021 to C023 C026 55 GMON Gate suppress monitor R C02
80. To move the upper word data of the internal user variables UL 00 to UL 07 to the 1 word size user parameter variables U 00 to U 31 use the following operation Assign the positive upper word data U 00 UL 00 65536 Assign the negative upper word data U 00 UL 00 65535 The lower word data will move to U 00 when U 00 UL 00 is executed P Precautions for Correct Use When the Drive Programming program is stopped the data of internal user variables before the program stop is retained When the program execution is started again the process begins with the retained data I Internal User Contacts UB 0 to UB 7 The Drive Programming s internal user contacts UB 0 to UB 7 are the bit access variables Use these variables for saving data during bit operations You can also use the variable UBw as a word access data which contains the internal user contacts UB 0 to UB 7 in its lower byte Vamabie Description Description Data range Data range E MNT E Data size UB 0 to Internal user contact 0 OFF You can use she a user contacts UB 0 to UB 7 as bit size variables e UB 0 to UB 7 are cleared to zero when the power supply is turned ON Any data saving measure like EEPROM is not provided e To set initial data create a program in which the initial data is set to UB 0 to UB 7 Drive Programming User s Manual 1580 E2 5 3 e LN c 0 D Ss D D 0 9 2 a c a D U o e 3 D
81. ab Find and Replace window Find and Replace window Find Replace Find Replace Find what Find what Look in All text tabs Replace with w Find options Find options Replace All Replace Find Replace I Adding Comments Text Program You can add comments to text tasks or subroutines You cannot add comments to flowchart programs To add a comment in a text line type the comment after putting a single quote mark Comments are displayed in green e Example Halias global Time as U 18 Timer time Halias global AppTimer as TD 8 Timer TD 6 Halias global Temp as UL 85 Internal use i Precautions for Correct Use he comments created in a text program are deleted when the program is transferred down loaded to the inverter or compiled for program conversion To save the created comments save the program before you execute program compilation You can save the program by saving the whole project in the CX Drive or export file of the program e n the verification process the program after compilation is compared with the program inside the inverter Therefore the comments alias definitions region definitions etc are not verified Drive Programming User s Manual 1580 E2 4 29 gt O e 3 D c o h E Tl c o o o 4 Drive Programming Editor i Alias Definition Text Program You can define aliases before the entry command in a task of the
82. able of value 1 does not change from its original value After the timer k is started the program goes to the next command 2 When the delay on off command is executed the data of value 1 TD k and value 2 are saved internally Even if the variable values set to value 1 and value 2 are changed after the delay on off command is executed the operation of the command does not change 3 After the delay on off command is executed if the same timer k is restarted before its processing is completed the ongoing processing is canceled and the timer k is started with the new settings Therefore create a program so that the timer k which is started once is not restarted until its pro cessing is completed 4 You can monitor the data of the started timer k with the timer counter variable TC k Check the com pletion of the timer processing with the timer output contact TD k changes ON at completion e Timing chart 1 The timer is in a free run state 2 The delay on command is started 3 The delay operation is in progress 1 3 4 The time elapsed TC b MW PO ul 5 The delay off command is started u a Y 6 6 The delay operation is in progress Conan 7 The time elapsed delay on Y D Y 00 Th 12200 mer off TD 0 1 gt 203 4 gt 5 6 7 6 46 Drive Programming User s Manual 1580 E2 6 Drive Programming Commands e Example Flow
83. al W453 EN Additional Information For the inverter operation refer to the MX2 User s Manual I570 E2 or the RX User s Manual I560 E2 14 Drive Programming User s Manual 1580 E2 Revision History Revision History The manual revision code is a number appended to the end of the catalog number found on the front and back covers Example Cat No 1580 E2 01 4 Revision code Revision code Revised Content 01 August 2014 Original production 01A February 2015 Small correction Drive Programming User s Manual 1580 E2 15 Revision History 16 Drive Programming User s Manual 1580 E2 Overview o This section describes an overview and the system configuration of the Drive Programming 1 1 Overview of Drive Programming reser 1 2 1 2 Preparation and System Configuration 1 4 Drive Programming User s Manual 1580 E2 1 1 1 Overview 1 1 Overview of Drive Programming The Drive Programming is the simple sequence function built into the inverter To create sequence programs and check their status you use the Inverter Servo supporting tool CX Drive Transfer download the created programs to the 3G3MX2 3G3RX Series Inverter so that the stand alone inverter can perform simple sequence control I Features of Drive Programming The Drive Programming has the following features The Drive Programming supports both flowchart and t
84. ansferred Uploaded Programs eceeeeeeeeeee esee nene nnn 4 21 Saving Progtrallils cete pes creie inta ribus vade Ue eU E EV e EiwaV E a E CORP EA RE E DUES 4 22 Transferring and Verifying Programs eeeseeeseeesieen seen enne n nnn nnn nnn nnn nnns 4 24 Executing Programs Drive Programming Function Selection 4 25 Other Useful FUNCUO S 225 1m uoc o bent ce Gl Sexo SE xau Revise a cosa ce qe I Sa QM Ease aei rR a 4 28 Drive Programming User Variables User Variables and User Parameters 1 eeceeeeeeeeeeeeeeee eene nennen nnn nnn 5 2 Input Output Terminal Variables eeeeeeseees eese eene nennen nnne nnn nnn nn nnn nnns 5 5 lum rucirigee ncm 5 10 inverter Selt rid VarTaDIGS a corio ivie bea Yee das te xo coegi eL a cod va acia seda Cr tol dus EAT RE E ERR TED ROVER EXE Edda 5 12 Inverter Monitor Variables ioo c reo eee rota oce sans oo euo uada ov asd prunas e VEr Ee E YF HE EEE T dor Eel us T a OF ecu EDR E OOs 5 14 Multi function Input Variables eeseeeeeeeeeeeelieeiee nennen nennen nnn nnn nnn nnns 5 17 Multi function Output Variables eeeseeseeeieeniee nennen nnne nnn nnn nn nnn anna nnn 5 20 Drive Programming Commands Command Cat gories eee Em 6 2 Command Format MN RU T MU 6 3 Command EIS oe T 6 4 Program C
85. ata when the power supply is turned off 6 When it is necessary to save consecutively more than one parameter in the EEPROM with the Eep Wrt command at least 30 ms or more may be required as the interval of execution between each EepWrt command The next page shows a possible example 6 54 Drive Programming User s Manual 1580 E2 6 Drive Programming Commands e Example when you save only F002 in the EEPROM Flowchart Text Eh entry loop eepwrt F082 U 82 Faa3 U 83 goto loop end Goto loop L Hest Block d J i In the above example the parameter F002 is changed to the value of U 02 and saved in the EEPROM F003 is changed to the value of U 03 however it is not saved in the EEPROM p co U 9 o j D e D O O e 9 O O 3 3 D 5 o O Block number Operation 1 Sets to save the data in the EEPROM for the following ChgParam command 2 Assigns U 02 to the parameter F002 The data is also saved in the EEPROM because the eep wrt command is executed immediately before this command 3 Assigns U 03 to the parameter F003 This value is not saved in the EEPROM 4 Jumps to the block 1 loop unconditionally Drive Programming User s Manual 1580 E2 6 55 6 Drive Programming Commands RX only RtcSet Command Argument AtcSet Note 1 Sets a 6 byte clock data sent from the LCD Dig On off continuous once ital Operator in the variable This data corr
86. ation is continued However if any of E43 to E45 trips related to the Drive Programming is detected the opera tion is stopped Or with the on trip goto command the program can jump to other process after a trip occurred Error status With without E50 to E59 related trip E43 to E45 Without Operation is continued With After the on trip goto Program is stopped After the on trip goto command is executed the command is executed the program jumps to the program jumps to the specified label and the specified label and the operation is continued operation is continued For details on the trips E43 to E59 refer to Section 8 Errors and Remedies 3 18 Drive Programming User s Manual 1580 E2 Drive Programming Editor E This section describes how to start the Drive Programming Editor saving and loading data and details on parts of the Editor 4 1 Starting Drive Programming Editor 4 2 4 2 Parts of Drive Programming Editor 4 6 4 2 1 Drive Programming Editor 0 0 ccc eee eee 4 6 AL TOODI dite rre pcm 4 6 4 2 3 Drive Programming Area ele 4 9 4 2 4 Toolbox Window eer 4 13 4 2 5 Block Parameters Window leeren 4 14 4 2 6 Properties Window eee I Ie 4 15 4 2 7 Error List Tab in Output Window ellen 4 16 4 3 Adding Deleting and Renaming Tasks
87. c instruction is indicated using an illustration or text inside or near The symbol shown to the left indicates disassembly prohibited N This symbol indicates danger and caution The specific instruction is indicated using an illustration or text inside or near The symbol shown to the left indicates beware of electric shock This symbol indicates danger and caution The specific instruction is indicated using an illustration or text inside or near The symbol shown to the left indicates non specific general danger Z This symbol indicates caution warnings included The specific instruction is indicated using an illustration or text inside or near The symbol shown to the left indicates risk of hot surface Q This symbol indicates a compulsory item an item that must be done The specific instruction is indicated using an illustration or text inside or near The symbol shown to the left indicates general compulsory items Q This symbol indicates a compulsory item an item that must be done The specific instruction is indicated using an illustration or text inside or near Sbe The symbol shown to the left indicates grounding required 10 Drive Programming User s Manual 1580 E2 oafety Precautions lt T gt WARNING Turn off the power supply and implement wiring correctly Not doing so may result in a serious injury due to an electric shock Wiring work must be carried out only by
88. cal Align Bottom Aligns vertically the bottoms of the currently selected blocks 1 Orientation Selects an orientation for connecting the blocks Auto arrange E Arranges the blocks of the flowchart automatically in the cur rently selected orientation Show Contacts Switches display hide of the contacts of the blocks Enables to select a display style of the program from options below Show Text only Icon only Icon and text Name icon and arguments 1 A unit of display on the flowchart is called Block A block consists of a command or a command and a label attached to the command Commands for the text program Command Description Find Looks for a text in the Drive Programming Editor Replace Replaces a text in the Drive Programming Editor Increment Indentation Increases the indentation of the selected text Decrement Indentation Decreases the indentation of the selected text Format selected text Formats automatically the selected text D Comment selected text Transforms the selected lines of text to comments Uncomment selected text Uncomments the selected lines of text e Program conversion You can convert a flowchart program to a text program and vice versa When a conversion is performed the program is once compiled Note that if a compilation error occurs the conversion will not be completed Also comments alias definition region definition etc are deleted wh
89. chart Text 0 gt entry aury U GB 288 T uei z 388 1 loop_ if X 0 goto GTeel i delay on FW TD 8 Uleg MS MS MI loop delay off FW TD 8 U e1 8 until FW to roo delay off Fw TD 0 U01 U 82 FW loop 3 t GTO81 goto loop end ril N m 3 T o 11 C O O 3 e False o o 1 o l pum True S on 5 Go to loop S 4 w Next Block a 13 7 o In the above example when X 00 is not 0 a forward operation is started with the delay on command and the operation is stopped with the delay off command Block number Operation 1 Assigns 200 to U 00 2 Assigns 300 to U 01 3 Jumps to the block 8 GT001 if X 00 is O Goes to the next step if X 00 is not O 4 Starts the timer 0 for the set value U 00 with the delay on command 5 to 7 Assigns the status of FW to U 02 until FW changes to 1 Goes to the next step when FW changes to 1 8 Starts the timer 0 for the set value U 01 with the delay off command 9 to 11 Assigns the status of FW to U 02 until FW changes to 0 Goes to the next step when FW changes to 0 12 Jumps to the block 3 loop unconditionally Drive Programming User s Manual 1580 E2 6 47 6 Drive Programming Commands Timer set Command Argument Starts the timer k The the timer counter TC k TD k the timer output contact of the timer that is started with O and incremented every 10 ms you use range of k
90. city 1 024 steps max 6 KB oer 1 024 steps max for a total of 5 tasks Programming support Functions supported in Inverter Servo support tool CX Drive function Program editing and display Program compilation Program syntax check Program downloading uploading and all clear Execution by interpreter Execution format Execution cycle 2 ms step 5 commands executable through 5 task paral lel processing Subroutine call supported Nesting in 8 levels max Input output func External input Drive Programming Select in the Drive Programming Function Selection tions start A017 e Start stop via multi function input PRG terminal A017 01 MX2 Allocate to the Multi function Input S1 to S7 Selection C001 to C007 RX Allocate to the Multi function Input S1 to S8 Selection C001 to C008 e Start stop at power on off A017 02 Multi function Input MX2 X 00 to X 07 8 points e Multi function input S1 to S7 terminals e X 07 is for the pulse train input RP terminal enabled only when P003 02 RX X 00 to X 07 8 points e Multi function input S1 to S8 terminals Frequency reference XA 0 Oto 10 V FV terminal input XA 1 4to 20 mA FI terminal Multi function analog XA 2 MX2 No applicable function input RX 10 to 10 V FE terminal External output Multi function out MX2 Y 00 to Y 02 3 points put multi function relay e Multi function output P1 and P2 terminals output e Multi function relay out
91. convert text programs to flowchart programs Command Description Convert Text to Flowchart Converts current text task or subroutine to flowchart Convert Whole Program Converts whole program to flowchart to Flowchart la Precautions for Correct Use When a text program is converted to a flowchart program the program is once compiled If a compilation error occurs the conversion fails On the upper left of each block in the flowchart program the block number will appear after the compilation is finished Block numbers are the consecutive numbers starting with 0 A block number is given to each block of the whole program Block numbers do not match the line numbers of the program converted to text Comments alias definition region definition etc created in the text program are deleted when a compilation is performed for conversion The operation does not change however the forms and contents of the program are partially changed 4 28 Drive Programming User s Manual 1580 E2 4 Drive Programming Editor Find and Replace Functions Find and replace functions are only available in text programs You can look for or replace any charac ter strings inside the text program by using the find and replace functions To use the Find function click icon or press the shortcut keys Ctrl F and select Find tab To use the Replace function click fe icon or press the shortcut keys Ctrl F and select Replace t
92. ction Relay Output RY Operation Selection C036 Analog Input Terminal Variables XA 0 to XA 2 You can use the inverter s frequency reference input analog voltage input O terminal the frequency reference input analog current input Ol terminal and the frequency reference auxiliary input analog volt age input O2 terminal as the analog input terminal variables XA 0 to XA 2 of the Drive Programming function You can continuously monitor the status of the analog inputs regardless of the parameter settings Function XA 0 Pris died terminal ect E to 10 000 0 01 Unsigned XA 1 x input terminal iie XA 2 m oput terminal ao 10 000 to 10 000 O2 terminal 10 to 10 V input The analog input terminal variables XA 0 and XA 1 are unsigned 1 word variables and XA 2 is a signed 1 word variable This variable is read only The variables are displayed in increments of 0 01 as a percentage of the maximum analog input 10 V or 20 mA To adjust the analog inputs use the following inverter parameters O A150 to A154 Ol A155 to A159 and O2 A160 to A163 Drive Programming User s Manual 1580 E2 9 LX inverter la Precautions for Correct Use When the Drive Programming program is stopped the status of the analog input terminal vari ables is not retained but updated according to the status of actual input terminals I Analog Output Terminal Variables YA 0 to YA 2 You can use the inverter s multi functi
93. ction bits such as RUN FA1 and AL and inverter monitor variables is not retained but always updated according to the status of the inverter e Only the Drive Programming s multi function input variables function bits such as FW RV and CF 1 and timer variables are cleared at the same time as the program stop and all data are changed to zero When the Drive Programming function is started stopped through the CX Drive the value of the inverter parameter Drive Programming Function Selection A017 is temporarily changed to 02 start or 00 stop only in the RAM data Take the following measures after you started stopped the Drive Programming function through the CX Drive e Turn ON the power supply for the inverter again and return the value of A017 to that saved in the EEPROM Do not perform the following EEPROM saving operations before you turn ON the power sup ply for the inverter Transferring downloading a part of parameters from the CX Drive ssuing the enter command via the Modbus communication or a communication option Drive Programming User s Manual 1580 E2 4 Drive Programming Editor When A017 is set to 02 stop the running program that was started at power ON before you restart the program via the CX Drive If any program that was started at power ON is running the CX Drive cannot restart the program In the CX Drive if you click the button to start the program when inverter is already in opera tion
94. ction input terminals for MX2 are S1 to S7 and for RX are S1 to S8 Starting Programs When the Drive Programming Function Selection A017 is set to 01 Enabled Start stop via multi func tion input PRG terminal set one of Multi function Input S1 to S7 S8 Selection to 82 PRG The pro gram is started when the multi function input terminal set to PRG is turned ON The program execution continues while the PRG terminal is ON and stops when the terminal is turned OFF When the Drive Programming Function Selection A017 is set to 02 the program is started right after the setting is completed The program will also be started automatically at next power on Once the program reaches end command after it was started and a series of processes was com pleted the program is not executed unless it is restarted To repeat the program create a loop program so that the program does not reach end command The downloaded Drive Programming program is saved in the EEPROM of the inverter Therefore after downloading you can start the program without using the support tool P C001 to MX2 and RX 82 PRG When the Drive Programming Function C007 Multi function Input S1 Drive Programming start Selection A017 is set to 01 Enabled to S7 Selection Start stop via multi function input PRG C008 RX only terminal the program is started via the Multi function Input S8 multi function input terminal with this setting Selection D
95. cuted only once ChgParam parameter variable Replaces the content of constant parameter with lt vari able constant gt and save it in the EEPROM simultaneously rtcset on off lt variable gt Assigns clock informa tion of the LCD Digital Operator to lt variable gt 1 The rtcset command is provided only for the 3G3RX Series Inverter p eo O O 3 3 D 5 a E a e Inverter Control Commands Command Argument Argument2 Argument3 Argumenta ArgumentS Description FW 1 Operates the inverter Operates the inverter in the reverse direction Decelerates the inverter to a stop Note This command acts as a reset when the inverter is in a trip state variable Issues a user trip constant according to variable constant variable Assigns variable con constant stant x 0 01 Hz to the inverter frequency reference variable ACCEL variable Assigns variable con constant stant x 10 ms to the inverter acceleration time variable SET Freq DECEL variable Assigns variable con constant stant x 10 ms to the inverter deceleration time variable Drive Programming User s Manual 1580 E2 6 9 6 Drive Programming Commands 6 4 Program Control Commands Entry Command Argument Indicates the beginning of the task um Format Flowchart method Text language method m 4 Note Itis necessary to have this command at the begg
96. d what not to do to ensure safe usage of the product P Precautions for Correct Use Precautions on what to do and what not to do to ensure proper operation and performance EN Additional Information Additional information to read as required This information is provided to increase understanding or make operation easier L Version Information Information on differences in specifications and functionality for inverters with different unit ver sions and for different versions of the CX Drive is given Drive Programming User s Manual 1580 E2 Sections in this Manual Sections in this Manual Overview Specifications Operation Procedure for Drive Programming Drive Programming Editor Drive Programming User Variables Drive Programming Commands Precautions for Use of Parameters for Drive Programming Errors and Remedies LX inverter Drive Programming User s Manual 1580 E2 5 CONTENTS CONTENTS n MUOQUCHOM m 1 Manual ORTMGQULANON c S EEE t 2 Manual SEU CtONG tm 3 Tren fent NNS MANU AN ee 5 CONTENT Scere ER 6 Terms and Conditions Agreement ccccceseeceseeeeeeeceeeeeeeseneeeneseeseenecenesenesenenes 9 DAlELY PrECAUTIOINS eet REN 10 Precautions TOF Sale USO eovsescescocsbu suras ecwe oe ve oca Ru sixvi Cosa aUe uq Uca cou x resur ocu aai US 12 Regulations and Standards
97. e D e o Drive Programming User Variables Function Variable Description Datarange DEM unit Data size R W UBw Internal user contact 0 to 255 Unsigned R W s e The T user ar word access UBw is a function to use the internal user contacts UB 0 to UB 7 as a word size variable he internal user contacts UB 0 to UB 7 are set in the lower byte For the upper byte data zero is read out If any data is written to the upper byte the data is ignored Br 851 7 5 4 3 2 3 9 Function UBT UBQ la Precautions for Correct Use When the Drive Programming program is stopped the data of internal user contacts before the program stop is retained When the program execution is started again the process begins with the retained data Drive Programming User s Manual 1580 E2 o Drive Programming User Variables 5 2 Input Output Terminal Variables This section describes the variables provided for using the following inverter terminals for the Drive Programming function Multi function input terminals multi function output terminals multi function relay outputs analog input terminals and analog output terminals Use these variables as the interface between the inverter s peripheral devices and the Drive Programming function I Input Terminal Variables X 00 to X 07 You can use the inverter s multi function input terminals as the input terminal variables X 00 to X 07 for the Drive Programm
98. e User variable any user parameter variable or sponds to year month day day of the week internal user variable U xx or UL xx hour and minute The hexadecimal variable value corresponds to year month day day of the week hour and minute decimal rtcset on continuously updates the 6 byte data rtcset off updates the 6 byte data only once Format Flowchart method Text language method ricset on off lt user variable gt rtcset on off lt user variable gt Y This function uses the clock function of the LCD Digital Operator optional If you execute the rtcset on off command when the LCD Digital Operator is not connected its processing does not finish and the whole program enters a waiting state for the command Therefore we recommend you to create a program in which the rtcset on command is started only once right after the start of the program and the clock data is always output to the specified variable When the LCD Digital Operator is shipped its clock time is set to the default data 2009 1 1 THU 00 00 Set the clock time accurately before you use the rtcset on off command Also remember that the clock function has a time error per month 1 5 to 1 5 minutes when you use this command The BCD data is output in units of bytes when the rtcset on off command is executed The days of the week Sunday to Saturday are represented as 00 to 06 respectively However you cannot detect the BCD data using the use
99. e frequency reference and you can use them as the analog inputs XA 00 to XA 02 for the Drive Programming C001 to Multi function Input 56to 63 MI1 to MI8 Set 56 to 63 MI1 to MI8 to use the termi C008 S1 to S8 Selection General purpose nals for the general purpose inputs for the input 1 to 8 Drive Programming The parameter settings correspond to the function variables X 00 to X 07 Set 44 to 49 MO1 to MO6 to use the ter C021 to Multi function Output 44 to 49 MO1 to MO6 C025 P1 to P5 Selection General purpose minals for the general purpose outputs for output 1 to 6 the Drive Programming C026 Multi function Relay You can control the multi function output Output MA MB terminals by changing the corresponding Function Selection function variables Y 00 to Y 05 to ON OFF C027 MP Selection Drive Programming Set 12 Drive Programming to use the ter YA 0 minal for the general purpose pulse output YA 0 for the Drive Programming C028 AM Selection Drive Programming Set 13 Drive Programming to use the ter YA 1 minal for the general purpose analog output voltage YA 1 for the Drive Programming C029 AMI Selection Drive Programming Set 14 Drive Programming to use the termi YA 2 nal for the general purpose pulse analog out put current YA 2 for the Drive Programming P031 Acceleration Decel Drive Programming Set this parameter to control the eration Time Input acceleration
100. e method result value 1 value 2 result value 1 gt value 2 Y Note If an overflow or underflow occurs the Drive Programming detects it as an error Take neces sary measures in the application so that they do not occur e Example Flowchart Text entry u e 288 U 81 588 A end 3 4 Block number Operation 1 Assigns 200 to U 00 2 Assigns 500 to U 01 3 Assigns the sum of U 00 and U 01 to U 02 Drive Programming User s Manual 1580 E2 6 Drive Programming Commands Subtraction Command Argument Subtracts lt value 2 gt from lt value 1 gt Result any variable Value 1 any variable or constant range 128 to 127 Value 2 any variable or constant range 2 147 483 648 to 2 147 483 647 Format Flowchart method Text language method result lt value 1 value 2 gt result value 1 value 2 Y Note If an overflow or underflow occurs the Drive Programming detects it as an error Take neces sary measures in the application so that they do not occur rk Ol gt gt 3 D e Oo O Ke D ie o 3 f gt Q r o a Oo D O D ie Oo 3 O Oo 3 3 Q Q o e Example Flowchart Text entry u e 288 U 81 588 U 82 U 1 U ee end e 4 Block number Operation 1 Assigns 200 to U 00 2 Assigns 500 to U 01 3 Assigns the difference between U 01 and U 00 to U 02 D
101. e multi function input terminal set to 00 FW Forward RX The program s RUN command and the forward RUN command terminal FW and the multi function input terminal set to 01 RV Reverse MX2 ird Function name Description A002 1st 2nd RUN Com Control circuit terminal Select 01 Control circuit terminal block to A202 mand Selection block control the RUN command through the pro Drive Programming gram with FW or RV variable Digital Operator If you select other setting FW and RV vari Modbus communication able are disabled Option 1 Option 2 C001 to Multi function Input FW Forward The relationship between the program s C007 S1 to S7 Selection RV Reverse RUN command and the RUN command via the control circuit terminal block is OR RX Forward RUN command the forward RUN command terminal FW the relationship between the pro gram s RUN command and the RUN command via the control circuit terminal block is OR P A002 RUN Command Control circuit terminal Select 01 Control circuit terminal block to Selection block control the RUN command through the pro Drive Programming gram with FW or RV variable Digital Operator If you select other setting FW and RV vari Modbus communication able are disabled Option 1 Option 2 C001 to Multi function Input RV Reverse The relationship between the program s C008 1 to S8 Selection RUN command and the RUN command via the control circuit terminal block is OR
102. e wiring must be made so that the stop of the DriveProgramming program in the inverter can be detected by the DriveProgramming start signal and the alarm trip signal and the inverter s peripheral devices can be stopped safely DriveProgramming User s Manual 1580 E2 4 DriveProgramming Editor 4 7 Editing Transferred Uploaded Programs Editing Transferred Uploaded Programs You can edit the program which is saved in the inverter after transferring uploading it from the inverter Follow the steps described below to edit the program 1 Open the DriveProgramming Editor The DriveProgramming auxiliary windows Command box User Parameters and Properties are displayed automatically 2 Go online with the CX Drive From the Menu select Drive Work Online Or click the Work Online icon in the CX Drive toolbar 3 Click the Transfer from Drive icon in the toolbar of the DriveProgramming Editor A program is transferred from the drive inverter and automatically displayed in the designer area of the DriveProgramming Editor Edit the transferred uploaded program The programs that exist in the inverter are the downloaded programs after compilation Therefore the transferred uploaded program will be displayed as a text program To display it as a flowchart program click Convert whole program to Flowchart in the toolbar of the DriveProgramming Editor and convert the program to flowchart E Precautions for Safe Use P
103. eal Time Trace Compile LIO LoS ugg te Programming User Parameter Wid fe Programming User Parameter U11 Drive Programming User s Manual 1580 E2 4 23 4 Drive Programming Editor 4 9 Transferring and Verifying Programs Program transfer and verification are possible between the inverter and the Drive Programming func tion of the CX Drive At the same time you can also execute parameter transfer and verification I Transfer from PC to Inverter The created programs are compiled program checked and transferred downloaded to the inverter if there is no error From the Drive Menu select Transfer To Drive to transfer download data I Transfer from Inverter to PC The programs and parameters in the inverter are transferred uploaded to the Drive Programming From the Drive Menu select Transfer From Drive to transfer upload data I Verification between PC and Inverter The Drive Programming programs and parameters are compared with the data in the inverter From the Drive Menu select Transfer Compare with Drive to execute verification i Partial Transfer from PC to Inverter From the Drive Menu select Transfer Selection To Drive to transfer download the selected data I Partial Transfer from Inverter to PC From the Drive Menu select Transfer Selection From Drive to transfer upload the selected data Drive Programming User s Manual 1580 E2 4 Drive Pro
104. ee 5 20 Drive Programming User s Manual 1580 E2 5 1 o Drive Programming User Variables 5 1 User Variables and User Parameters The following variables are provided for creating programs User parameter variables internal user variables and internal user contacts Use these variables for the program user interface initial data for calculation data saving during calcu lation data saving etc I User Parameter Variables U 00 to U 31 The Drive Programming user parameter variables U 00 to U 31 are the unsigned 1 word variables The Drive Programming user parameters UOO to U31 P100 to 131 for the inverter correspond to the Drive Programming user parameter variables U 00 to U 31 respectively Use these variables for the following applications Application Description User interface Use the variables as parameters to adjust calculation results You can adjust them using the inverter parameters P100 to P131 according to the status of application Initial data for calculation You can use the user parameter variables U 00 to U 31 as the variables for calculation The data of parameters P100 to P131 saved in the EEPROM can be used as the initial data for calculation Data saving during calculation You can use the variables for saving data temporarily while the calculation is in progress Data saving By using the eepwrt command you can store the calculation result in the EEPROM to save it after turning off the power sup
105. eesaaaeees 9 18 Drive Programming User s Manual 1580 E2 Terms and Conditions Agreement Terms and Conditions Agreement e WARRANTY The warranty period for the Software is one year from the date of purchase unless otherwise spe cifically agreed e If the User discovers defect of the Software substantial non conformity with the manual and return it to OMRON within the above warranty period OMRON will replace the Software without charge by offering media or download from OMRON s website And if the User discovers defect of media which is attributable to OMRON and return it to OMRON within the above warranty period OMRON will replace defective media without charge If OMRON is unable to replace defective media or correct the Software the liability of OMRON and the User s remedy shall be limited to the refund of the license fee paid to OMRON for the Software LIMITATION OF LIABILITY THE ABOVE WARRANTY SHALL CONSTITUTE THE USER S SOLE AND EXCLUSIVE REME DIES AGAINST OMRON AND THERE ARE NO OTHER WARRANTIES EXPRESSED OR IMPLIED INCLUDING BUT NOT LIMITED TO WARRANTY OF MERCHANTABILITY OR FIT NESS FOR PARTICULAR PURPOSE IN NO EVENT OMRON WILL BE LIABLE FOR ANY LOST PROFITS OR OTHER INDIRECT INCIDENTAL SPECIAL OR CONSEQUENTIAL DAM AGES ARISING OUT OF USE OF THE SOFTWARE e OMRON SHALL HAVE NO LIABILITY FOR DEFECT OF THE SOFTWARE BASED ON MODIFI CATION OR ALTERNATION TO THE SOFTWARE BY THE USER OR ANY THIRD PARTY
106. el gt if lt condition gt goto abel Jumps to label when if lt condition gt then Starts the if structure If condition is met it executes command set 1 right after this command until the else command and goes to the next step after the endif If condition is not met it executes com mand set 2 right after the else command until the endif com mand and goes to the next step after the endif lt command set 1 gt The command set that is executed when lt condition gt is met else Starts the commands when condition is not met command set 2 The command set that is executed when condition is not met 6 4 Drive Programming User s Manual 1580 E2 6 Drive Programming Commands Command Argument 1 Argument Argument3 Argument4 Arguments Description select condition Executes the com variable mands after the case command when con dition variable is equal to condition value case condition Starts the commands value 1 assigned to the condi tion value command set 1 The command set assigned to condi tion value 1 gt case condition value n You can set one or command set n gt more conditions with case case else Starts the commands assigned to the values other than the condi tion value command set The command set assigned to the values other than condition
107. election A017 is set to 01 Enabled Start stop via multi function input PRG ter minal the program is started via the multi function input terminal with this set ting 1 Multi function input terminals for MX2 are S1 to S7 and for RX are S1 to S8 Initializing Programs To initialize the Drive Programming program downloaded to the inverter select 04 Clear fault monitor initialize data Clear Drive Programming for the Initialization Selection D084 and execute initializa tion by Initialization Execution b180 Parameter No Function name b084 Initialization Selec 04 Clear fault monitor initialize tion data Clear Drive Program Description Select 04 to initialize the Drive Program ming program as well ming b180 Initialization Execu 01 Execute initialization tion Executes initialization of the selected data Drive Programming User s Manual 1580 E2 Operation Procedure for Drive Programming i RUN Command Selection Setting Use FW forward and RV reverse variables to control RUN commands through the Drive Programming program Be sure to set the RUN Command Selection A002 A202 to 01 Control circuit terminal block when you use FW or RV variable You can control through the program regardless of the setting 00 FW Forward for MX2 only or 01 RV Reverse in Multi function Input Selection The relationship between the following items is OR MX2 The program s RUN command and th
108. en a compilation is performed for conversion The operation does not change however the forms and contents of the program are partially changed Description Converts current text task subroutine to flowchart Command Convert Text to Flowchart a EN Convert whole program to T Converts whole program to flowchart Flowchart uj Drive Programming User s Manual 1580 E2 4 Drive Programming Editor Description Converts current flowchart task subroutine to text Command Convert Flowchart to Text Convert whole program to Converts whole program to text Text u e Shortcut keys You can use the following keyboard shortcuts in the Drive Programming area Shortcut Description Ctrl X Cut Ctrl C Copy Ctrl V Paste Ctrl Z Undo Ctrl Y Redo Ctrl A Select all Ctrl F Find and replace Ctrl space Command list Tab Select next flowchart only Arrow Keys Move selected block Home Scroll to top flowchart only End Scroll to bottom flowchart only Page Up Move the cursor to line head Page Down Move the cursor to end of the line 4 Zoom in Zoom out 4 2 3 Drive Programming Area The Drive Programming area displays the current design of the program New Tab w ib 3 e Q Q Sk M I gt amp Sl Tt il Orientation S I Show v T Task01 This area may have different pages organized in tabs Each tab is either a task or a subroutine in flow chart or text By right clicking the tab title
109. entry for U 1 1 to 8 step 1 nes u U 1 wait 188 1 next end for Uf01 1 ra 8 step 1 zi 3 4 True d False Block number Operation 1 to 4 Assigns 1 to U 01 and the value of U 01 to U 00 Waits for 1 00 second with the wait com mand If U 01 is less than 8 1 is added to U 01 and the next command after for is executed Goes to the next step after the next command if U 01 is equal to or greater than 8 6 18 Drive Programming User s Manual 1580 E2 While Wend Command Executes lt command set gt while a condition is Format Flowchart method while Uo0 LI 0 e Example Flowchart entry 1 loop while 00 1 Hent Block Block number 1 to 4 Go to loop 6 Drive Programming Commands Argument Condition a comparison between two variables or constants with the format lt left hand value gt lt comparison operator gt lt right hand value gt e Left hand value any variable or constant range 128 to 127 e Comparison operator lt gt lt gt or lt gt e Right hand value any variable or constant range 128 to 127 Command set one or more commands until the wend command It can contain nested commands up to eight levels Text language method while condition command set wend Text entry loop _ while x 1 inc U 81 wait 100 wend goto loop end Operation If X 00 is 1 it adds 1 to
110. erform operations such as program compilation transferring to the inverter and data saving Execute compilation and check for any compilation errors in the program You can transfer the program to the inverter when the compilation is finished successfully To save the program save the whole project Or you can save the program separately by using the function that exports programs When the DriveProgramming programs exist you can transfer them to from the inverter by using Transfer to Drive or Transfer from Drive icon in the CX Drive toolbar In this case you need to select programs when a message dialog appears and asks you whether to transfer the parameters pro grams or both DriveProgramming User s Manual I580 E2 suie16o4g papeojdn peuiejsuejj Bunip3 Z Y surej amp o1qd pepeoidn peuejsueij Bupa 1 2 7 Manual Name Level 2 heading Shows which sub section the content of the current page belongs to Section Number of Level 1 heading Shows which section the content of the current page belongs to Level 3 heading Shows which paragraph the content of the current page belongs to Note The above page is only a sample for illustrative purposes It is not the actual content of the manual Drive Programming User s Manual 1580 E2 Manual Structure Special Information opecial information in this user s manual is classified as follows Precautions for Safe Use Precautions on what to do an
111. error occurred between the parameter to set and relevant parameters e A function which is not available with the selected mode was set The parameter that cannot be changed during operation was changed during operation e A parameter was set while parameter data change is prohibited with the Soft Lock Selection b031 2 Even if you change the set parameter data by using the ChgParam command the data of the corre sponding parameter is not changed in the EEPROM To change the data both in the program and in the EEPROM execute the ChgParam command immediately after the eepwrt command parameter value e Example Text Flowchart entry loop _ inc U 2 F882 U 82 wait 100 goto loop end Goto loop Heut Black In the above example the value of F002 1st Acceleration Time 1 is incremented by 1 every second Block number Operation 1 Adds 1 to U 02 2 Assigns U 02 to the parameter F002 3 Waits for 1 00 second with the wait command 4 Jumps to the block 1 loop unconditionally Drive Programming User s Manual 1580 E2 6 Drive Programming Commands MonParam Command Argument Assigns the content of the inverter parameter Parameter parameter code Be specified in lt parameter gt to lt variable gt Fxxx Axxx bxxx Cxxx dxxx Hxxx or Pxxx ManParam Variable any variable Format Flowchart method Text language method variable parameter variable
112. es Function variable Reference CS RIW C001 to C008 14 SFT RW C007 to C008 15 AT Analog input switching C001 to C008 16 RS C001 to C008 18 STA R W _ CO01 to C008 20 STP R W C001 to C008 21 F R F R 3 wire forward reverse C001 to C008 22 PID C001 to C008 23 PIDC C001 to C008 24 UP C001 to C008 27 DWN C001 to C008 28 UDC C001 to C008 29 OPE RW C001 to C008 31 SF1 to SF7 C001 to C008 32 to 38 OLR RW C001 to C008 39 TL C001 to C008 40 TRQ1 and 2 C001 to C008 41 and 42 BOK C001 to C008 44 LAC RW CO01 to C008 46 PCLR R W C001 to C008 47 ADD RAW _ C001 to C008 50 FTM RW C001 to CO08 51 ATR C001 to C008 52 KHC R W C001 to C008 53 AHD RW C001 to C008 65 CP1 to 3 R W C001 to C008 66 to 68 ORL C001 to C008 69 ORG C001 to C008 70 SPD RAW CO01 to C008 73 1 The shortened name of the function option for multi function input is different from the function variable name The shortened name of the function option for multi function input is shown in e MX2 only Function variable RS485 485 HLD ROK DISP Description Reference C001 to C007 81 R W C001 to C007 83 C001 to C007 84 C001 to C007 86 1 The shortened name of the function option for multi function input is different from the function variable name The shortened name of the function option for multi function input is shown in Drive Programming User s
113. ext language method programming You can create a program divided into up to five tasks Five tasks can be processed in parallel It is possible to execute user programs externally by settings of multi function input terminals You can use the multi function I O terminals by allocating them to the parameters The Digital Operator enables you to change the settings of the frequency acceleration deceleration time and other parameters variables that require on site adjustment by specifying the user parame ters P100 to P131 without connecting the computer Because user programs are stored in the internal EEPROM of the inverter you can start a program immediately after the inverter power supply is turned on The optional LCD Digital Operator Model 3G3AX OP05 has a built in clock function By purchasing and connecting the LCD Digital Operator you can create programs that use the LCD Digital Opera tor s clock function Precautions for Safe Use If the clock command is used in the Drive Programming an unexpected operation may occur due to weak battery of the LCD Digital Operator Take measures such as detecting a weak battery by a check that the clock data returns to the initial setting and stopping the inverter or programs When the LCD Digital Operator is removed or disconnected Drive Programming is in a waiting status by the clock command The following table shows the main functions of the Drive Programming Editor available in
114. function No 54 to Xw 32 bit 5 Jg X 06 MI7 function No 55 to Xw 64 bit 6 s X 07 MI8 function No 56 to Xw 128 bit 7 U X 08 MI9 function No 57 to Xw 256 bit 8 only if expanded I O for LX is used 8 X 09 MI10 function No 58 to Xw 512 bit 9 only if expanded I O for LX is used o X 10 MI11 function No 59 to Xw 1024 bit 10 only if expanded I O for LX is used 3 X 11 MI12 function No 60 to Xw 2048 bit 11 only if expanded I O for LX is used 2 e Example 3 Flowchart Text 3 a 0 gt entry v loop U xw U u e0 4 U aG8 U 88 and 15 yw U 88 goto loop E end Ufo quu 4 3 Ur LOO and 15 P 7 O O S O fe 3 3 D a a Go to loop Hest Block B In the above example the status of the input terminals X 02 to X 05 is captured and output to the output terminals Y 00 to Y 03 Block number Operation 1 Assigns the value of Xw value of input terminal to U 00 2 Divides the value of U 00 by 4 2 bit right shift to assign X 02 to bit O 3 Performs a logical AND operation on U 00 and 15 binary 00001111 and changes the bits higher than X 06 to zero 4 Assigns U 00 to Yw 9 Jumps to the block 1 loop unconditionally Drive Programming User s Manual 1580 E2 9 13 9 LX inverter Y i value Command Argument Outputs data to the output terminal variable in I output terminal variable units of bits range 0 to 6
115. goto command points to the next com mand that terminates the for or other loop The variable referenced through U i etc could not be found A four arithmetic operation results in the following error Overflow underflow or division by zero The ChgParam com mand results in the follow ing error Change to a parameter that does not exist The written value is out of the setting range Change of a parameter value that cannot be changed during inverter operation Change of a parameter value that is protected against change by the Soft Lock Selection when this setting is enabled Check Upload the program and check if it actually exists in the inverter Upload the program and check the number of nest ing levels Check if the jump destina tion of the goto com mand is an command that terminates a loop Check the numeric value specified for U i 00 lt i lt 31 Check the program and identify the command which causes overflow underflow or division by zero Check the parameter or the value to write to the parameter In the case that an error occurs during inverter operation check if the parameter can be changed during inverter operation Check the setting of the Soft Lock Selection b031 Remedy Create the program again and download it to the inverter Correct the program so that the number of nesting levels is eight or less Correct the jump dest
116. gram Program verification means a comparison between program after compilation and the pro gram inside the inverter Therefore comments alias definitions region definitions etc are not verified Drive Programming User s Manual 1580 E2 3 3 3 Operation Procedure for Drive Programming i Downloading Programs Download compiled programs to the inverter and save them in the EEPROM of the inverter You can start programs saved in the EEPROM after turning on the power supply without using the tool CX Drive Selecting Drive Programming Functions oet Drive Programming Function Selection A017 to Enabled 01 or 02 to use the Drive Programming function You can change the Drive Programming Function Selection A017 even when the operation is in progress P A017 Drive Programming 00 Disabled default Disables the Drive Programming function Function Selection setting Programs are not executed If you change the setting to 00 Disabled during program execution the program will be stopped Enabled Starts the Drive Programming program when the Start stop via multi function input terminal which is set to 82 multi function input PRG is turned ON PRG terminal Enabled Starts the Drive Programming program automati Start stop at cally after the inverter power supply is turned on power on off If you change the setting to 02 Enabled while the program is stopped the program will be started 1 Multi fun
117. gram The following are the representative examples For details refer to the MX2 User s Manual 1570 E2 or the RX User s Manual 1560 E2 alametce Description Data No b012 1st Electronic Thermal Level 0 20 to 1 00 x Rated current b212 2nd Electronic Thermal Level 0 20 to 1 00 x Rated current b312 RX only 3rd Electronic Thermal Level 0 20 to 1 00 x Rated current b022 1st Overload Limit Level lt Heavy load gt b222 MX2 only 2nd Overload Limit Level 0 20 to 2 00 x Rated current 0 4 to 55 kW b025 1st Overload Limit Level 2 0 20 to 1 80 x Rated current 75 to 132 kW b028 Frequency Pull in Restart Level lt Light load gt 0 20 to 1 50 x Rated current b126 Brake Release Current 0 20 to 2 00 x Rated current 0 4 to 55 kW 0 20 to 1 80 x Rated current 75 to 132 kW C030 Digital Current Monitor Reference Value Heavy load 0 20 to 2 00 x Rated current Light load 0 20 to 1 50 x Rated current C039 Low Current Detection Level Heavy load 0 00 to 2 00 x Rated current 0 4 to 55 kW 0 00 to 1 80 x Rated current 75 to 132 kW Light load 0 00 to 1 50 x Rated current C041 1st Overload Warning Level 0 0 Function not active Heavy load C241 MX2 only 2nd Overload Warning Level 9 00 to 2 00 x Rated current 0 4 to 55 kW 0 00 to 2 00 x Rated current 75 to 132 kW Light load 0 00 to 1 50 x Rated current C111 1st Overload Warning Level 2 Heavy load 0 00 to 2 00 x Rated current 0 4 to 55 kW 0 00
118. gramming Editor 4 10 Executing Programs Drive Program ming Function Selection There are two ways to execute programs after you transferred downloaded them to the inverter as described below I Executing Program via CX Drive Executing via CX Drive is a convenient way to debug the created program Use P icon in the toolbar of the Drive Programming Editor to start the program To stop the program use lil icon Note that executing program via the CX Drive is enabled only when the following condi tions are met e When the CX Drive is connected to the inverter Once the program is started it does not stop even if the CX Drive is disconnected Therefore when executing the program make sure that you can stop the inverter immediately by turning off the power supply etc When the program in the CX Drive matches the program in the inverter through verification after compilation A A e m x D O c gt Le U o Q Q 3 o w lt D U o Q fu 3 3 gt fe Tl c gt O e o gt o D D O ee o The program stop is executed regardless of the program in the CX Drive I Executing Program in Applications You execute the program by setting the inverter parameter the Drive Programming Function Selection A017 Once the program reaches end command after a series of processes was completed the program is not executed unless it is restarted To repeat the program
119. gramming User s Manual 1580 E2 9 LX inverter Yw value Command Argument Outputs data to the output terminal variable in Value any variable or constant units of words Reflect each bit in corresponding output Yw value Format Flowchart method Text language method Yw lt value gt Y Note The output terminal variable is a variable that controls the status of the inverter s output termi nal The following settings are required The numerical order of the output terminal variables follows the numerical order of the set general output numbers Set the Multi function Output 11 to 13 Selection C021 to C023 and the Multi function Relay Output RY Func tion Selection C026 to 35 to 41 MO1 to MO7 General purpose output When the data is assigned in units of words zero is read out for the upper byte data and unset input terminal variables If there is any setting the setting is ignored Assignment example Yw 1 bit 0 to Y 00 MO1 Yw 2 bit 1 to Y 01 MO2 Yw 4 bit 2 to Y 02 MO3 multi function No 37 Yw 8 bit 3 to Y 03 MO4 multi function No 38 only if expanded I O for LX is used Yw 16 bit 4 to Y 04 MO5 multi function No 39 only if expanded I O for LX is used Yw 32 bit 5 to Y 05 MO6 multi function No 40 only if expanded I O for LX is used Yw 64 bit 6 to Y 06 MO7 multi function No 41 only if expanded I O for LX is used e Example multi function
120. gt The Arguments Result any variable Value any variable or constant range 2147483648 to 214748364 7 To change one block command argument select the block in the flowchart and place the cursor on the section where you want to edit in the Properties window e f the block argument has options click on the current value to display icon at the rightmost side Click or double click the current value to unfold the available options in the pulldown menu e f the block argument does not have options click its current value and enter the new one to change the value A warning will be displayed if the entered value exceeds the valid range e f the block argument can have both an option and a custom value you can set a value directly by clicking the current value Also double clicking the current value will unfold the available options in the pulldown menu Drive Programming User s Manual 1580 E2 4 15 gt N U t9 o o h UO lt D U o e Q 3 3 gt a m Q o MODpUIM SeniedoJgd 9 2 7 4 Drive Programming Editor 4 2 Error List Tab in Output Window The list of errors related to the Drive Programming is displayed when you click the Error List tab in the Output window The error list shows the compilation errors and warnings of the program currently created with the Drive Programming Editor after it is compiled If any compilation errors is shown the program is not correctl
121. he data is assigned in units of words zero is read out for the unused upper byte If there is any setting the setting is ignored to UBw 1 bit 0 to UBw 2 bit 1 to UBw 4 bit 2 to UBw 8 bit 3 to UBw 16 bit 4 to UBw 32 bit 5 to UBw 64 bit 6 to UBw 128 bit 7 eua ON ON Ol Se UB 0 UB 1 UB 2 UB 3 UB 4 UB 5 UB 6 UB 7 e Example Flowchart Text 3 entry loop_ ubw 8 UB X 88 UB 1 X 81 UB 2 X 82 UMon 8 ubw UB 2 ROT XRO goto loop end 3 UB 1 101 4 LIB 2 02 x Ubon 0 UB i00 UEP 7 Hest Block Go to leap In the above example the status of X 00 to X 02 is monitored with the parameter UMon 0 d025 and X 02 is output to Y 00 Block number Operation 1 Assigns 0 to UBw 2to4 Assigns the variables X 00 to X 02 to the variables UB O to UB 2 5 Assigns UBw to UMon 0 6 Assigns UB 2 to Y 00 T Jumps to the block 1 loop unconditionally Drive Programming User s Manual 1580 E2 6 43 P O O O e 9 O O 3 3 D 2 0 6 Drive Programming Commands UB i value Command Argument Assigns lt value gt to the internal user contact I internal user contact number range 0 to 7 UBi value Value any variable or constant Format Flowchart method Text language method m Y e Example Flowchart Text 3 entry loop _ U Dw _ ae UB
122. hen it is called New Subroutine text Creates a new text subroutine A subroutine is a part of the program which is executed only when it is called Rename Current Task Renames the current task or subroutine Delete Current Task Deletes the current task or subroutine Undo ENTE Undoes the latest change kJ Redo Redoes the undone operation 4 6 Drive Programming User s Manual 1580 E2 4 Drive Programming Editor Description Compiles the program and if there are no errors transfers downloads it to the drive inverter Command Transfer to Drive Transfers uploads the program from the drive inverter to the Drive Programming Editor Transfer from Drive Compiles the program in the Drive Programming area Compile errors and warnings that occurred in the program will be displayed on the Error List tab page in the Output window m Start Starts the program in the inverter The CX Drive will first compare the program in the inverter with the program in the Drive Programming area The program will be started only when they are the same If they differ the program will not be started This starting method for the program is enabled only when the CX Drive is connected To start the program with a stand alone inverter be sure to set the Drive Programming Function Selection A017 Compile gt N y t9 o o UO lt D U o e 9 3 3 gt a m Q o Stop Stops the prog
123. i function No 48 Yw 32 bit 5 to Y 05 MO6 RX only multi function No 49 For details refer to 5 2 Input Output Terminal Variables on page 5 5 p O O O e 9 O O 3 3 D 2 0 e Example Flowchart Text 0 r entry loop u ee UT u ae u ea 4 U U G8 and 15 yw U 80 goto loop end Go to loop Hest Block In the above example the status of the input terminals X 02 to X 05 is captured and output to the output terminals Y 00 to Y 03 Block number Operation 1 Assigns the value of Xw value of input terminal to U 00 2 Divides the value of U 00 by 4 2 bit right shift to assign X 02 to bit O 3 Performs a logical AND operation on U 00 and 15 binary 00001111 and changes the bits higher than X 06 to zero 4 Assigns U 00 to Yw 5 Jumps to the block 1 loop unconditionally Drive Programming User s Manual 1580 E2 6 39 6 Drive Programming Commands func value Command Argument Assigns lt value gt to the multi function input Function any function bit of the multi function variable input variable refer to 5 6 Multi function Input Variables on page 5 17 for details on each bit func value i Value any variable or constant Format Flowchart method Text language method lt function gt lt value gt Y e Example Flowchart Text 0 zy entry T SET Freq 6000 loop F is wait X 81 1 wait RUN 6 PRIUS RV 1 wait X 82 1 RV 6
124. ime able POS STATUS DCV ERR CNT ERR 1 to ERR 6 and UMon 0 to UMon 2 Multi function input The function options of the Multi function Input S1 Selection C001 for the variable inverter are available UP DWN SPD1 SPD2 SPD3 SET FRS EXT SFT RS OLR TL TRQ1 TRQ2 PCLR EMP INSP RL COK BOK FP1 to FP6 PAL TCL LVS NFS PRG CMC GS1 and GS2 Multi function output The function options of the Multi function Output P1 Selection C021 for the variable inverter are available RUN FA1 FA2 OL AL FA3 OTQ IP UV TRQ RNT ONT THM ZS POK FA4 FA5 OL2 TH C NDc WAC WAF FR OHF LOC IRDY FWR RWR MJA CON BRK UPS UPD GMON MPS and SEQ X 00 to X 06 7 points Extended l O option 07 to X 11 5 points with 3G3AX EIO E expansion card input variable to Y X Output terminal vari Y 00 to Y 03 4 points Extended l O option Y 04 to Y 06 3 points with 3G3AX EIO E expansion card Internal user contact UB 0 to UB 7 8 points Timer output contact TD 0 to TD 7 8 points Timer counter variable TC 0 to TC 7 8 points Input terminal variable 9 4 Drive Programming User s Manual 1580 E2 9 LX inverter 9 3 Drive Programming Editor 9 3 1 Executing a Program You execute the program by setting the inverter parameter the Drive Programming Function Selection F025 Once the program reaches end command after a series of processes was completed the program is not executed unless it is
125. ina tion of the goto command Correct the variable value for U i or restrict the data range of the variable for U i Correct the program so that its four arithmetic operation does not cause overflow underflow or division by zero e Correct the parameter or the value to write to the parameter so that it is within the setting range e Disable the soft lock function If the parameter can be changed during opera tion change the setting of the Soft Lock Selec tion b031 to 10 to enable a parameter change during inverter operation Drive Programming User s Manual 1580 E2 LX inverter This section describes the LX inverter specific functions 9 5 9 6 Preparation and System Configuration 9 2 SBeCIIICallOllS s 3 3 Reed ERES REED LBPXQREEEECKREQRER QE ES RE 9 3 Drive Programming Editor eere 9 5 9 3 1 EXECUUNGta Programi 1 3 9 chee ite eo Vb dl tei dcr deo ede d 9 5 Drive Programming User Variables 9 6 9 4 1 Input Output Terminal Variables llle 9 6 9 4 2 Multi function Input Variables 0 0 00 ccc ee 9 10 9 4 3 Multi function Output Variables 0 0 0 0 eee 9 11 Drive Programming Commands 0 00 eee eee eee 9 12 g o I O Control Commands 2 3652 a Ta te uo ae sortes ba Glee wien od ei 9 12 9 5 2 Inverter Control Commands 0 0 00 eee 9
126. ine belongs All subroutines must begin with sub command and finish with endsub command Flowchart en T Proaram Program Test OE T Proaram a Program Test sub endsub 4 To execute a subroutine specify the subroutine name in the call command It is only possible to call a subroutine that belongs to the task Tasks cannot share the same subroutine To use a Subroutine with multiple tasks insert the same subroutine in each task Flowchart Text T L Program F Proaram Test a Program 1 Program Test entry call Test call Test end 4 18 Drive Programming User s Manual 1580 E2 4 Drive Programming Editor 4 5 Creating Flowchart Programs When you create a Drive Programming program you can select flowchart or text for each task or subrou tine Follow the steps described below to create a flowchart program 1 Open the Drive Programming Editor The Drive Programming auxiliary windows Toolbox Block Parameters Properties and Error List tab are displayed automatically 2 From New Tab in the toolbar select New Task flowchart or New Subroutine flowchart 3 oelect commands from the Toolbox window and move them to the Drive Programming Editor by drag and drop On the upper left of each block placed on the Editor the block number will appear after the com pilation is finished EN O D D et 5 amp a o z o gt D m U amp D 3 o Block
127. ing function by setting these multi function input terminals to the general pur pose input MI1 to MI8 You can also use the input terminal variables X 00 to X 07 as word access data which are set to the lower byte by using the variable Xw Function Default X 00 to WA terminal variable 0 OFF X 07 bit access 1 ON MX2 e The status of the multi function input terminals S1 to S7 and pulse train input RP terminal is captured and set as bit size variables T N D c ct O c e e o 3 5 S D S D 0 This variable is read only e When the Multi function Input S1 to S7 Selection C001 to C007 are set to 56 to 62 MI1 to MI7 General purpose input and the Pulse Train Input RP Selection P003 is set to 02 MI8 Gen eral purpose input 8 for Drive Programming the status of the input terminals S1 to S7 and the RP terminal is captured and set as the input terminal variables X 00 to X 07 of the Drive Programming Numbers are given to the input terminal variables X 00 to X 07 according to the numerical order of the set general purpose inputs MI1 to MI7 not the terminal numbers S1 to S7 RX The status of the multi function input terminals S1 to S8 is captured and set as bit size variables This variable is read only e When the Multi function Input S1 to S8 Selection C001 to C008 are set to 56 to 63 MI1 to MI8 General purpose input the status of the input terminals S1 to S8 is captured and se
128. ing of each task End Commana Argument Indicates the end of the task m End Format Flowchart method Text language method v end end Note It is necessary to have this command at the end of each task Call Command Argument Jumps to lt subroutine gt Subroutine subroutine is identified by a name or alias that you define Call Format Flowchart method Text language method uM Y Note 1 When execution of the subroutine is completed the next command line after the call command is executed 2 Toset the subroutine name for the call command in flowchart right click the command and select Set Subroutine from the menu Select from the displayed options 6 10 Drive Programming User s Manual 1580 E2 6 Drive Programming Commands Sub Command Argument Indicates the beginning of the subroutine Sub Format Flowchart method Text language method T sub 4 Note Itis necessary to have this command at the beginning of each subroutine End sub Command Argument Indicates the end of the subroutine EndSub Format Flowchart method Text language method i endsub Note lt is necessary to have this command at the end of each subroutine rk IN U Oo e o 3 O Oo 3 e 2 O Oo 3 3 LY a a Drive Programming User s Manual 1580 E2 6 11 6 Drive Programming Commands e Example Main RunFW 13 dj 5 16 1 1 Block number 1 and 2 3 to 7 8 to 11 13 t
129. inor injury A holding brake is not a stop motion device designed to ensure safety Be sure to use a specified type of braking resistor regenerative braking unit In case of a brak ing resistor install a thermal relay that monitors the temperature of the resistor Not doing so might result in a moderate burn due to the heat generated in the braking resistor regenerative braking unit Configure a sequence that enables the inverter power to turn off when unusual over eating is detected in the braking resistor regenerative braking unit The Inverter has high voltage parts inside which if short circuited might cause damage to itself or other property Place covers on the openings or take other precautions to make sure that no metal objects such as cutting bits or lead wire scraps go inside when installing and wiring Take safety precautions such as setting up a molded case circuit breaker MCCB that matches the Inverter capacity on the power supply side Not doing so might result in damage to property due to the short circuit of the load Do not dismantle repair or modify the product Doing so may result in an injury oeccoo g gGp Drive Programming User s Manual 1580 E2 11 Precautions for Safe Use Precautions for Safe Use Operation and Adjustment e If a parameter is set incorrectly when starting up adjusting maintaining or replacing an unexpected operation may occur Perform the operation after enough confirma
130. ion describes an overview and the system configuration Section 1 Overview of the Drive Programming Section 2 Specifications This section describes the specifications of the Drive Programming eaction a Operation Procedure for Drive This section describes the operation procedure of the Drive Programming Programming related parameters and program structures This section describes how to start the Drive Programming Section 4 Drive Programming Editor Editor saving and loading data and details on parts of the Editor Sections pnus Programming User Variables Iis section describes the user variables provided for Drive Programming Drive Programming Commands Precautions for Use of Section 7 Parameters for Drive Programming Section 6 This section describes the commands provided for Drive Programming This section describes the precautions for use of parameters for the Drive Programming This section describes the program operation at the time of error Section 8 Errors and Remedies occurrence the errors that are specific to the Drive Programming as well as the causes and remedies Section 9 LX inverter This section describes the LX inverter specific functions 2 Drive Programming User s Manual 1580 E2 Manual Structure Page Structure Manual Structure The following page structure and symbol icons are used in this user s manual Level 1 heading Level 2 heading Level 3 heading Operation Steps Describes the
131. iting state for the command When the connection with the LCD Digital Operator is restored the program goes to the next step To prevent the whole program from entering a waiting state create a program so that the rtcset on command is started only once when the program is started and the specified variable is always output to the clock data Do not execute the rtcset on off command for checking time in the program Instead use the specified variable When the time exceeds 1 minute and 45 seconds after disconnection an all zero data is output to the specified variable When the battery of the LCD Digital Operator gets weak the Operator cannot maintain the clock data any longer The data is maintained with the control circuit power supply while the power supply for the inverter is on How ever when the power supply is turned on again the clock data returns to the initial data 2009 1 1 THU 00 00 Drive Programming User s Manual 1580 E2 6 Drive Programming Commands Precautions for Safe Use If the clock command is used in the Drive Programming an unexpected operation may occur due to weak battery of the LCD Digital Operator Take measures such as detecting a weak battery by a check that the clock data returns to the initial setting and stopping the inverter or programs When the LCD Digital Operator is removed or disconnected Drive Programming is in a waiting status by the clock command e Example Flowchart Text gg e
132. ition is met As shown in Task 4 if you create a loop by using the goto command the task process will be con tinuously repeated e As shown in Task 5 if the on trip goto command is executed once the processing data will be stored in the inverter The program jumps to the goto destination immediately after a trip occurred e Programs After Compilation Example Task1 Task3 1 E 2 label 1 entry oss 2 wait 1 0 01s 4 call label2 Bleee Bleee 4 eee 6j e Bl eee ctc Gloeo 8 goto label1 9 jend 10 sub label2 1 1 k k k 12 k k k 13 end sub e Program Processing Flow Mee NE Task Task k2 Task3 k3 Tak4 k4 Task5 ms No No No No No 2 4 1 jemy 1 erty 1 emy 1 enty i ew 2 mei 2 2 watiQoi 2 eei 12 Tred see e watiQo 3 E NENEEN I ee I MENS TE IP EPI alee y label2 E E pe 2 wait 1 ois L5 eeu M Ut k ue r ea 3e 0 pi es A i Haee ee ee 18 20 22 EFE 3 1 a a a 24 8 gotolabelt TO 2 fean 10 26 2 jab 0 OA Yt 28 13 eee L Ale 30 iS acqua n Label2 is executed due to idueto A 5 5 1 10 fse eecwmenceoammeter Z 6 goto abet a tape ir EBEN x 12 p 1 T1 L l 1 1 3 peja 1 oo e Program Counter d023 display 3 14 Drive Programming User s Manual 1580 E2 3 Operation Procedure for Drive
133. ive to request the access code and enter it in the fol lowing dialog box The dive program is protected by a password Drive Programming functionality is restricted by an access code Please contact with your sales representative to request the access code Access Code cena Drive Programming User s Manual 1580 E2 4 5 4 Drive Programming Editor 4 2 Parts of Drive Programming Editor HERE This section provides the detailed information on each function of the Editor and windows related to the Drive Programming in the CX Drive 4 2 1 Drive Programming Editor The Drive Programming Editor is the main widow for the Drive Programming function Toolbar Drive Programming area RT MX2 Project This window consists of the toolbar in which common commands are included and the Drive Program ming area in which the program is displayed as text or flowchart 4 2 2 Toolbar The Drive Programming Editor provides the following commands Common commands Command New Task flowchart Description Creates a new flowchart task for the program Task is a unit of program executed in the Drive Programming New Task text ib T2 New Subroutine flow Creates a new flowchart subroutine A subroutine is a part of Creates a new text task for the program Task is a unit of pro gram executed in the Drive Programming chart the program which is executed only w
134. larify the program flow 2 Tosetthe label name in flowchart right click the command and select Set Label from the menu You can specify any name e Example Flowchart Text Pa entry Ini if U 08 1 goto Condit True rk U Oo e o 3 O Oo 3 e 2 O Oo 3 3 D 5 a on goto Ini Condit True inc U 81 if WOO 1 gato goto Ini end l Goto Ini 5 g Hest Block Block number Operation 1 If U 00 is 1 it jumps to the block 3 Condit True If U 00 is O it goes to the next block 2 2 Jumps to the block 1 Ini unconditionally 3 Adds 1 to U 01 4 Jumps to the block 1 Ini unconditionally Drive Programming User s Manual 1580 E2 6 13 6 Drive Programming Commands On Trip Command Argument Jumps to label when a trip occurs in the Label a name that is used to identify a particu ro inverter lar function block in the task Ont rip Format Flowchart method Text language method m on trip goto label Y Note 1 The on trip goto command branches the processing when a trip occurs in the inverter 2 Once the on trip goto command is executed the execution log is saved in the inverter and every scanned trip status is checked When the program reaches the next step after a trip occurred it jumps to the destination of goto command If there is no trip nothing is executed 3 Ifthe end command in the task is executed the on trip goto command is canceled and the prog
135. m so that the stop of the Drive Programming program in the inverter can be detected by the Drive Programming start signal and the alarm trip signal and the inverter s peripheral devices can be stopped safely uoneJedo ysel pue dois eis Buriuuue460Jd eAug p e e la Precautions for Correct Use The following are the status of function variables when the Drive Programming program is stopped Take necessary measures in consideration of each status Forthe multi function outputs the inverter s actual output terminals the status before the program stop is retained However the output terminals that are not set to MO1 to MO6 general purpose outputs of the Drive Programming operate as the inverter s normal multi function outputs e When the Drive Programming function is selected for the frequency reference accelera tion deceleration time or analog outputs the set values for these functions before the pro gram stop are retained The data of the user parameter variables internal user variables and internal user contacts before the program stop is retained The status of the inverter s actual input terminals such as the multi function and analog input terminals is not retained but always updated he data of the multi function output variables function bits such as RUN FA1 and AL and inverter monitor variables is not retained but always updated according to the status of the inverter e Only the Drive Programming s multi function
136. mands p eo O O 3 3 D 5 a E a e Sa a NUMEN Increment variable variables fof JAdds1to variable Decrement lt variable gt Subtracts 1 from lt variable gt I O control commands Command Argument 3 Argument 4 Argument 5 Description Input terminal Argument 1 Set current state of the variable input terminal X i to assignment lt variable gt 0 off 1 on lt variable gt Set the current state of the Xw to lt variable gt in units of words Drive Programming User s Manual 1580 E2 6 7 6 Drive Programming Commands Command Output termi nal variable output Multi function input variable output Multi function output variable assignment Internal user contact control Argument 1 Argument2 Argument3 Argument4 Argument Y variable constant YW lt variable constant gt lt Multi function lt variable constant gt input variable gt lt Multi function output variable gt lt variable gt lt variable gt lt variable gt UB variable constant UBw lt variable constant gt Timer Control Commands Description Outputs data to the output terminal Y in units of bits 0 off 1 on Outputs data to the output terminal in units of words Outputs data to the multi function input variable 0 off 1 on Assigns the status of the multi function output variable to variable 0 off 1 on
137. mming Operation on Error ReSet ccccceecccecseeeeeseeeeeeeeseceeeeseaeeeeeesseeeeeessaeeeeeeaas 8 3 Sel o Alarm COS LES sm 8 4 LX inverter Preparation and System Configuration ccccecseeeeeeeeeeeeeeeeeeneseseeeeeeeeeeeeneseeeeeeeseenseeneaees 9 2 SSC IE Gl OUNS pee ae P UU T can inne ER E ENEOUENN 9 3 Drive Programming EOI OF a ei ruso aaa E EEA EEE EEEa TuS 9 5 So NEME CUEING a MONA ee RETE r SESTO POTENT 9 5 Drive Programming User Variables 1 leeeeeeeeeeeeeeeee eene nennen nennen nnn nnn 9 6 9 4 1 Input Output Terminal Variables uueeesseeessseessssesseeeeneneenne nnne nnne nnn nnns 9 6 9 4 2 Multi function Input Variables 2lseeeesseessssessseeeeennenne nennen nnne nnne nnns 9 10 9 4 3 Multi function Output Variables dope eae Copa uncta dE boe copae eu E Peut eo aah des qut acest pt teneis 9 11 Drive Programming Comniands icone etie Lnd nena EE Pasa yk SaRe ue ya boys paa rin ky ED eL naEDa y Ven we sUVEDEERVE 9 12 9 5 1 VO Control COmMaNnGS 2s ore qu Rod Us ramp Id ventu ede ened ni ebat R ee nee 9 12 9 5 2 Inverter Control Commands sesessssssssssssssseeee enne ennn nnne nnne nnns nan rsen ese rsen senses 9 16 Precautions for Use of Parameters for Drive Programming 9 18 9 6 1 Parameters Affected by Rated Current 96 cccccsceececceseceeeseeseeeeeaeeeeeeseeeeeeesseeeeeeeaeeee
138. ms after compilation Transfer download upload o B Program verification Programs downloaded to Programs after compilation the inverter Drive Programming User s Manual 1580 E2 3 Operation Procedure for Drive Programming Programming You can create user programs in the flowchart method or the text language method It is also possible to select between two methods for each task or subroutine Use the Drive Programming Editor in CX Drive to input user programs Drive Programming Editor consists of the Drive Programming area Toolbox window Block Parameter window Properties window and Output window e In the Drive Programming area you can create programs in the flowchart method or text language method he Toolbox window displays the command blocks in categories Inthe Block Parameter window you can set parameters that are used when the program execution is started e n the Properties window you can edit the properties of a block which is currently selected in flow chart he Output window displays compilation errors and warnings after a compilation is finished I Compiling Programs Programs created in the Drive Programming area are compiled and converted into the final programs after compilation Then the programs are transferred downloaded to the inverter w I O Oo e c O 3 U o O D Q c The compiler performs checks for the items such as program validi
139. munications The CX Drive can be connected to the inverter via communication through the Position Control Unit Model CJ1W NCL 82 of EtherCAT master CompoNet Master Unit Model CJ1W CRM21 CS1W CRM21 or DeviceNet Unit Model CJ1W DRM21 CS 1W DRM21 V1 mounted to the programmable controller uiojs s pue uoneJjedajg Z uoneanBiuo To establish communication connection between the inverter and the CX Drive through the program mable controller you must configure the following settings in the CX Drive in advance e Select properties of the drive project and click Settings under Drive Type to set the option board type to the inverter communication unit e Select properties of the drive project and select the connection network under Connection type Then click Settings to set the network configuration under the Network and the connection method to connect CX Drive and PLC under Gateway PLC e Configuration Communication Unit EtherCAT Unit Model CJ1W NCL182 CompoNet Master Unit Model CJ1W CRM21 DeviceNet Unit Model CJ1W DRM21 CJ2 Series Power supply unit CPU Unit CX Drive Q g E mel O e I ee ee m ux lc i EtherCAT CompoNet DeviceNet RS 232C port connection Peripheral USB port connection
140. n Argument Condition a comparison between two variables or constants with the format left hand value comparison operator right hand value Left hand value any variable or constant range 128 to 127 e Comparison operator gt lt gt or lt gt e Right hand value any variable or constant range 128 to 127 Command set 1 one or more commands until the else command It can contain nested com mands up to eight levels Command set 2 one or more commands until the endif command It can contain nested commands up to eight levels Text language method if lt condition gt then lt command set 1 gt else command set 2 endif e Example Flowchart Text entry loop aii if U 68 gt U 81 then u 3 20 else 1 loop u 83 16 endif if LI Bor Unt then goto loop end 5 LLL B f EN REN 3 ae gp Ment Block 7 Block number Operation 1to5 If U 00 is greater than U 01 it assigns 20 to U 03 right after the if and jumps to the endif com mand If U 00 is not greater than U 01 it assigns 10 to U 03 right after the else command and goes to the endif command Jumps to the block 1 loop _ unconditionally Drive Programming User s Manual 1580 E2 6 Drive Programming Commands Select Case Case Else EndSelect Command Argument Allows the execution of multiple program sections Condition variable a condition variable you use
141. nal variable word access Xw is a function to use the input terminal variables X 00 to X 11 as a word size variable This variable is read only The input terminal variables X 00 to X 11 are set to the lower byte For the upper byte and unused input terminal variables zero is read out BE wes wIw Is s 7 5 4 3 2 3 Function X 01 X 00 9 6 Drive Programming User s Manual 1580 E2 9 LX inverter la Precautions for Correct Use When the Drive Programming program is stopped the status of the input terminal variables is not retained but updated according to the status of actual input terminals e Even when you set MI1 to MI12 general purpose input 1 to 12 for the Multi function Input ter minals you can select NO NO contact or NC NC contact for the Multi function Input S1 to S7 Operation Selection C011 to C017 I Output Terminal Variables Y 00 to Y 06 You can use the inverter s multi function output terminals as the output terminal variables Y 00 to Y 06 for the Drive Programming function by setting the multi function output terminals to the general purpose outputs MO1 to MO7 You can also use the input terminal variables Y 00 to Y 06 as word access data which are set to the lower byte by using the variable Yw nung OH Description Data range petault Data size R W variable data Y 00 to Y 06 Output terminal variable 0 OFF bit R bit access 1 ON You can control the status of the multi fu
142. nction output terminals 11 to 13 and the multi function relay output terminal RY as bit size variables e By setting the Multi function Output 11 to 13 Selection C021 to C023 or the Multi function Relay Output RY Function Selection C026 to 35 to 41 MO1 to MO7 General purpose output you can control the output terminals 11 to 13 or the relay output terminal RY as the output terminal variables Y 00 to Y 06 of the Drive Programming Numbers are given to the output terminal variables Y 00 to Y 06 according to the numerical order of the set general purpose outputs MO1 to MO not the ter minal numbers 11 to 13 RY e A Og 3 lt D U O amp 9 3 3 5 c n D S D 9 D 5 Setting for Multi function Output Selection Function variable C021 C022 C023 and C026 Y 00 35 MO1 Y 01 36 MO2 Y 02 37 MO3 Y 03 38 MO4 Y 04 39 MO5 Y 05 40 MO6 Y 06 41 MO7 variable data Yw Output terminal variable 0 to 255 Unsigned R Me mm o on o oen e The output terminal variables word access Yw is a function to use the output terminal variables Y 00 to Y 06 as a word size variable e The output terminal variables Y 00 to Y 06 are set in the lower byte For the upper byte and unused output terminal variables zero is read out If any data is written to the upper byte the data is ignored BE 71515 5 4 3 2 3 9 Function von vo se qeueA jeuruue 1ndjno indu 1
143. nd its arguments 0 up to 5 An example is shown below Command Argument3 Argument 4 Argument 5 Description entry Indicates the begin ning of the program If there is no argument the cell is blank Command Argument 3 Argument 4 Argument 5 Description wait EAEEREN time gt lt wait time gt Waits for wait time x 0 01 seconds There is one argument for the wait command In this argument input a wait time variable or constant Command Argument2 Argument3 Argument4 Argument 5 Description while condition Executes command set while condition is met command set The command set that is executed while lt condition gt is met wend Goes to the while loop For the while command set a condition in the argument For details refer to Conditions on page 6 6 Between while and wend write the command set that is executed while condition is met Drive Programming User s Manual 1580 E2 6 3 ci N O Oo 3 3 D 2 a Tl Oo 3 D e 6 Drive Programming Commands 6 3 Command List i Program Control Commands Command Argument3 Argument4 Argument 5 Description entry Indicates the begin end Indicates the end of call subroutine Jumps to subrou sub subroutine Indicates the begin end sub Indicates the end of goto abel Jumps to label on trip goto lt label gt Jumps to lt lab
144. ng detects it as an error Take neces sary measures in the application so that they do not occur e Example Flowchart Text entry loop inc U 82 wait 188 goto loop end 4 Next Block Mies Block number Operation 1 Adds 1 to U 02 2 Waits for 1 00 second with the wait command 3 Jumps to the block 1 loop unconditionally Drive Programming User s Manual 1580 E2 6 Drive Programming Commands Dec Decrement by 1 Command Argument Decrements lt value gt by 1 Value any variable Format Flowchart method Text language method J dec lt value gt Y Note If an overflow or underflow occurs the Drive Programming detects it as an error Take neces sary measures in the application so that they do not occur e Example Flowchart Text entry U 82 188 loop _ dec U 82 l wait 100 wr end rk Ol gt gt 3 D e Oo O Ke D ie o 3 f gt Q r o a Oo D O D ie Oo 3 O Oo 3 3 Q Q o dec LU Go to loop 5 Ment Black Block number Operation 1 Assigns 100 to U 02 2 Subtracts 1 from U 02 3 Waits for 1 00 second with the wait command 4 Jumps to the block 2 loop unconditionally Drive Programming User s Manual 1580 E2 6 35 6 Drive Programming Commands 6 6 I O Control Commands Use these I O control commands to control inputs and outputs Although you can control I Os with the Assignment command the I O cont
145. ns with the retained data Drive Programming User s Manual 1580 E2 6 63 6 Drive Programming Commands e Example Flowchart if M00 1 then DECEL 2000 Ment Block CLD Text entry loop if x 808 1 then accel 100 decel 2000 set freg 1880 fw else stop endif goto loop end In the above example the acceleration time is set to 1 00 second and the deceleration time is set to Block number 1to6 20 00 seconds when the input terminal variable X 00 is set to ON If X 00 is 1 the acceleration time is set to 1 00 second the deceleration time is set to 20 00 sec onds and the output frequency is set to 10 00 Hz The inverter is operated in the forward direction If X 00 is not 1 the program goes to the next step after the else command 7 to 8 Stops the inverter 9 Jumps to the block 1 loop unconditionally Drive Programming User s Manual 1580 E2 Precautions for Use of Parameters for Drive Programming E This section describes the precautions for use of parameters for the Drive Programming 7 1 Inverter Parameters Affected by Setting Order 7 2 7 2 Parameters Affected by Rated Current 7 4 7 3 Parameters Affected by PID Enabled Disabled 7 5 Drive Programming User s Manual 1580 E2 T 1 Precautions for Use of Parameters for Drive Programming 7 1 Inverter Parameters Affec
146. ntry rtcset off U 88 end entry 1 rtcset off LI OLI p co U 9 o j D e D O O e 9 O O 3 3 D 5 o O If you execute this program example on October 18th Thursday of 2012 at 2 29 P M then U 00 U 01 and U 02 will be displayed on the Drive Programming Editor and the Digital Operator as follows Display converts hexadecimal Meaning of clock function BCD data BCD data to decimal U 00 1210 4624 12 for year 2012 10 for October U 01 1804 6148 18 for 18th day 04 for Thursday U 02 1429 5161 14 for 2 p m 29 for 29 minutes User parameter Clock function BCD data variable actual hexadecimal data Drive Programming User s Manual 1580 E2 6 57 6 Drive Programming Commands 6 9 Inverter Control Commands Run FW Command Argument Makes the inverter start a forward operation 9 This command is a shortcut of the func value command which is previously set as FW 1 RunFw Format Flowchart method Text language method iiid V Run RV Command Argument Makes the inverter start a reverse operation This command is a shortcut of the func value PinBy command which is previously set as RV 1 Format Flowchart method Text language method wo d Stop FW Command Argument Makes the inverter decelerate to stop from a for 9 ward operation This command is a shortcut of the func value top F yy c
147. numbers are the consecutive numbers starting with 0 A block number is given to each block of the whole program Block numbers do not match the line numbers of the program converted to text 4 Click the block to edit its properties In the Properties window edit arguments that are associated with the block 5 Connect the blocks according to the program sequence You can connect a block with another by dragging from one s orange colored contact to another s green colored contact Edit user parameters in the Block Parameters window N O Perform operations such as program compilation transferring to the inverter and data saving Execute compilation and check for any compilation errors in the program You can transfer the program to the inverter when the compilation is finished successfully To save the program save the whole project Or you can save the program separately by using the function that exports programs Drive Programming User s Manual 1580 E2 4 19 4 Drive Programming Editor 4 6 Creating Text Programs When you create a Drive Programming program you can select flowchart or text for each task or subrou tine Follow the steps described below to create a text program 1 2 3 Open the Drive Programming Editor The Drive Programming auxiliary windows Toolbox Block Parameters Properties and Error List tab are displayed automatically From New Tab in the toolbar select New Task text or
148. o 16 17 to 20 wait X01 1 Flowchart Main Text Main entry set freg 6000 UB 1 Loop if UB 8 call else call endif stop wait RUM 8 UB 8 not UB G8 goto Loop end 1 then RunFW RunRV call Run Fr Main RunFW sub Fl i wait X 801 1 endsub call Run Eh Main RunRV sub RV 1 wait X 82 1 endsub Goto Loop Nest Black Main RunRV zub wait X 02 1 18 13 zl Operation Sets the inverter output frequency to 60 00 Hz and changes the internal user contact UB 0 to ON If UB 0 is ON it executes the subroutine RunFW If UB 0 is OFF it executes the subroutine RunRV When execution of the subroutine is completed it stops the inverter waits for RUN to change to OFF reverses UB 0 and returns to block 3 Operates the inverter in the forward direction and waits with the wait command until X 01 changes to ON subroutine RunFW Operates the inverter in the reverse direction and waits with the wait command until X 02 changes to ON subroutine RunRV Drive Programming User s Manual 1580 E2 6 Drive Programming Commands Go To Command Argument Jumps to lt label gt unconditionally Label a name that is used to identify a particu lar function block in the task 5 GoTo Format Flowchart method Text language method gt el Y Note 1 This command must be connected to the command that is executed next This is necessary to c
149. o the inverter or for program conversion The specified names are converted to the normal names and numeric values To save the created alias definition save the program before you execute program compilation You can save the program by saving the whole project in the CX Drive or export file of the program n the verification process the program after compilation is compared with the program inside the inverter Therefore the comments alias definitions region definitions etc are not verified e For alias definitions you cannot use the variables or commands that are already used If you do this a compile error will be displayed 4 30 Drive Programming User s Manual 1580 E2 4 Drive Programming Editor Region Definition Text Program You can define regions in tasks or subroutines of the text program You cannot define regions in flow chart programs Region definition refers to dividing a program into groups of lines by specifying their areas By using the region definition you can divide a program into parts and fold each of them in the display This helps the program look easy to read e Example amp region Alias Halias global const 100 as 188 Halias global Acceleration as FOZ Halias global Deceleration as FG83 Halias global Time as U 168 Halias global AppTimer as TD G8 Halias global Temp as UL 85 gt Oo e zy D c 0 D Tl c 5 O o 5 o amp endregion entry
150. ock 1 again unconditionally 6 20 Drive Programming User s Manual 1580 E2 6 Drive Programming Commands Wait Command Argument Makes the program wait for specified seconds Value any variable or constant specified time x or until a condition is met 10 ms Eg WaitTime Wait time value 0 to 32767 x 10 ms Condition a comparison between two variables 4 or constants with the format left hand value lt comparison operator gt lt right hand value gt WaitCond Left hand value any variable or constant range 0 to 127 Comparison operator lt gt lt gt or lt gt e Right hand value any variable or constant range 0 to 127 Format Flowchart method Text language method it lt gt lt ition gt wait lt value gt or lt condition gt wait lt value gt or lt condition Y Note 1 With the wait command the program does not go to next command and waits until the set wait time elapses or set condition is met Therefore the task processing is not executed during the wait time of the wait command If there is any processing which requires periodic monitoring separate it and assign it to another task so that it is executed periodically without using the wait command 2 Do not set a negative value for the constant used in the wait command Otherwise the program cannot check if the wait time elapsed or the condition is met and it continu ously stops at the wait command without perfo
151. ocks Select All 4 10 Drive Programming User s Manual 1580 E2 4 Drive Programming Editor If you right click on a flowchart block a popup menu with more options will appear Bring Ta Front Send To Back p Pin Lack Cut CErI4 x Copy CErI C Delete T N U e a o UO lt U o e o 3 3 j e m Q o Set Label The following table shows the menu commands available in the flowchart program I Command Description x Bring To Front Places the selected block graphically in front of other blocks 0 Send To Back Places the selected block graphically in back of other blocks 3 Pin Fixes the selected block to its current position in the graph It will not be moved in 3 drag operations S Lock Acts like Pin and besides sets the properties of the block as read only 3 Cut Deletes the selected block and saves it in the clipboard for further pasting F Copy Saves the selected block in the clipboard for further pasting P Paste Puts the contents previously copied in the clipboard into the design area Note that a you can also paste them as images in other applications Set Label Sets the label name for the selected block Set Subroutine Sets the subroutine name for the selected block This menu command is available only for blocks for which you can set subroutines Drive Programming User s Manual 1580 E2 4 11 4 Drive Programming Editor i Text
152. ogramming Editor The line numbers of the program after compila tion are displayed The number of line for which a subroutine execu tion is in progress is also displayed Note While program execution is stopped 0000 is displayed d024 Program Number Monitor 1 Displays the downloaded program number Drive Programming d025 User Monitor O 2 147 483 647 to This monitor function corresponds to the function Drive Programming 2 147 483 647 variable UMon 0 and can display any data in the program d026 User Monitor 1 2 147 483 647 to This monitor function corresponds to the function Drive Programming 2 147 483 647 variable UMon 1 and can display any data in the program d027 User Monitor 2 2 147 483 647 to This monitor function corresponds to the function Drive Programming 2 147 483 647 variable UMon 2 and can display any data in the program 3 10 Drive Programming User s Manual 1580 E2 3 Operation Procedure for Drive Programming I User Parameters of Drive Programming Up to 32 parameters are provided as the user parameters for the Drive Programming Use these parameters for various purposes such as program initial data setting parameter for adjust ment and saving calculation results la Precautions for Correct Use For the data that exceeds four digits the upper four digits of the data is displayed on the Dig ital Operator as shown below A dot at the end of number re
153. ogramming User s Manual 1580 E2 3 11 3 Operation Procedure for Drive Programming Parameter No P114 Drive Programming 0 to 65 535 These user parameters correspond to the function variables U 00 to U 28 P115 Drive Programming You can change the data by using the Digital Operator The changed data is saved in the EEPROM The set data will be saved in the Function name Description User Parameter U15 P116 Drive Programming User Parameter U16 EEPROM when the Write to P117 Drive Programming EEPROM command is executed in User Parameter U17 the Drive Programming P118 Drive Programming User Parameter U18 P119 Drive Programming User Parameter U19 P120 Drive Programming User Parameter U20 P121 Drive Programming User Parameter U21 P122 Drive Programming User Parameter U22 P123 Drive Programming User Parameter U23 P124 Drive Programming User Parameter U24 P125 Drive Programming User Parameter U25 P126 Drive Programming User Parameter U26 P127 Drive Programming User Parameter U27 P128 Drive Programming User Parameter U28 P129 Drive Programming User Parameter U29 P130 Drive Programming User Parameter U30 P131 Drive Programming User Parameter U31 3 12 Drive Programming User s Manual 1580 E2 3 Operation Procedure for Drive Programming 3 3 Program Structure In the Drive Programming for 3G3MX2 3G3RX Series Inverter you can create a maximum of five tasks The created tasks a
154. ommand which is previously set as FW 0 Format Flowchart method Text language method UT 4 Stop RV Command Argument Makes the inverter decelerate to stop from a 9 reverse operation StopRv This command is a shortcut of the func value command which is previously set as RV 0 Format Flowchart method Text language method RV 0 J 6 58 Drive Programming User s Manual 1580 E2 6 Drive Programming Commands L Version Information The Stop FW and Stop RV command are added to CX Drive version 2 9 or higher Either update the CX Drive software or use the following I O control command func value as a substitute Stop func value Command Argument Makes the operating inverter decelerate to stop function select either of the following vari by using the func value command ables funcevalue Refer to func value in 6 6 I O Control Com FW In a forward operation by the Run FW mands on page 6 40 RV In a reverse operation by the Run RV value set 0 stop for deceleration to stop the value is assigned to the selected function inverter variable Format Flowchart method Text language method Forward operation Reverse Operation Forward operation Reverse Operation RV 0 or Y Y gt lt t c D O O e 9 O O 3 3 D 2 0 la Precautions for Correct Use e f the Drive Programming program is s
155. on digital output PWM output FM terminal the multi function analog output voltage output AM terminal and the multi function analog output current output AMI ter minal as the analog output terminal variables YA O to YA 2 of the Drive Programming function You can continuously monitor the status of the analog outputs regardless of the parameter settings To control the analog outputs via the Drive Programming function select Drive Programming for the setting of the inverter parameters FM Selection C027 AM Selection C028 and AMI Selection C029 Function Default YA 0 Analog output terminal KE to 10 000 0 01 Unsigned variable 1 word FM terminal 6 4 ms cycle PWM output YA 1 Analog output terminal variable AM terminal 0 to 10 V output YA 2 Analog output terminal variable AMI terminal 4 to 20 mA output e The analog output terminal variables YA O to YA 2 are unsigned 1 word variables e Set the variables in increments of 0 01 as a percentage of the maximum output duty 10 V or 20 mA e Select Drive Programming for the setting of the inverter parameters FM Selection C027 AM Selec tion C028 and AMI Selection C029 to control the analog output terminals via the Drive Program ming function Even if you do not select Drive Programming for the parameters it is possible to monitor the status of the analog output terminals Function variable Parameter Setting YA 00 Set the FM Selection C027 to 14 Drive
156. on signal is OFF Block number Operation 1 Assigns the status of ZS to U 00 2 Jumps to the block 1 loop unconditionally Drive Programming User s Manual 1580 E2 6 41 6 Drive Programming Commands var UB i Command Argument Assigns one bit of the value of the internal user Variable any variable contact to variable value of the variable is O or 1 var LlBi I internal user contact number range O to 7 Format Flowchart method Text language method variable UB i suadent 4 e Example Flowchart Text a entry loop _ ubw 8 UB B8 X 88 UB 1 X 81 UB 2 X 82 UMon 8 ubw e io z 0 UB 2 Boto loup end 3 UB 1 01 4 LIB 2 02 x UMon 0 UB E 00 UB 3 Hest Black Go to leop In the above example the status of X 00 to X 02 is monitored with the parameter UMon 0 d025 and X 02 is output to Y 00O Block number Operation 1 Assigns 0 to UBw 2to4 Assigns the variables X 00 to X 02 to the variables UB O to UB 2 5 Assigns UBw to UMon 0 6 Assigns UB 2 to Y 00 T Jumps to block 1 loop unconditionally 6 42 Drive Programming User s Manual 1580 E2 6 Drive Programming Commands var UBw Command Argument Assigns the value of the internal user contact to Variable any variable lt variable gt in units of words var UBuy Format Flowchart method Text language method Y Note When t
157. onitor dO17 2 words Use this function to monitor the total power ON time The monitored data is equivalent to the data of the Total Power ON Time Monitor d017 This variable is read only Function O Default i UMon 0 to User Monitor O to 2 2 147 483 647 to Signed UMon 2 d025 to d027 2 147 483 647 2 words The Drive Programming s user monitor variables UMon 0 to UMon 2 are the signed 2 word variables If any data is set in the user monitor variables UMon 0 E UMon 2 in the Drive Programming program the data can be displayed through the inverter s user monitor parameters d025 d026 and d027 Use this function to externally display the calculation status of the program Function Default POS Current Position Monitor 268 435 455 to 1 Signed d030 268 435 455 2 words 1 073 741 823 to 1 073 741 823 Use this function to monitor the current position The monitored data is equivalent to the data of the Current Position Monitor d030 1 The range of display shown in is for RX only This range of display is used when the V2 Control Mode Selection P012 is set to 03 HAPR High resolution absolute position control mode SO QeLIeA 103IUOJN 19319AU G G Drive Programming User s Manual 1580 E2 5 15 o Drive Programming User Variables Ad on Description Data range perau Data size R W variable data ERR CNT Fault Counter d080 0 to 65 535 ae as 1 R 1 word Use this function to
158. ontact for the Multi function Input S1 to S7 Operation Selection MX2 C011 to C017 RX C011 to C018 Output Terminal Variables MX2 Y 00 to Y 02 RX Y 00 to Y 05 You can use the inverter s multi function output terminals as the output terminal variables MX2 Y 00 to Y 02 RX Y 00 to Y 05 for the Drive Programming function by setting the multi function output termi nals to the general purpose outputs MX2 MO1 to MO3 RX MO1 to MO6 You can also use the input terminal variables Y 00 to Y 05 as word access data which are set to the lower byte by using the variable Yw Defaul Pied Description Data range Siau Data size variable data MX2 Output terminal variable 0 OFF bit Y 00 to Y 02 bit access RX Y 00 to Y 05 MX2 You can control the status of the multi function output terminals P1 and P2 and the multi function relay output terminals MA and MB as bit size variables By setting the Multi function Output P1 and P2 Selection C021 and C022 or the Multi function Relay Output MA MB Function Selection C026 to 44 to 46 MO1 to MO3 General purpose output you can control the output terminals P1 and P2 or the relay output terminals MA and MB as the output terminal variables Y 00 to Y 02 of the Drive Programming Numbers are given to the output terminal variables Y 00 to Y 02 according to the numerical order of the set general purpose inputs MO1 to MO3 not the terminal numbers P1 P2 MA or MB
159. ontrol Commands cote veu uas ga Tuta C S ps a0 COR oU ELE kv Td Fe DE ERE VrELEP ECbN oo TRE CURVE STD CY R 6 10 Arithmetic Operation and Logical Operation Commands 6 23 VO Control COMMANGS c deivEi ed cage eu vo rk abo d uaa 2o qud Ded cu ca esa qeaxa di S Vea Yee PDe sudo Riu oe ERa dU eU aEs 6 36 Timer Control Commands uei cunscis Eevak nes eo end ea FIOR US as ueRR T eA aaa cob cte aai 6 46 Parameter Control Commands 1 ancc iso tee aee aate pE revo aka aaO c o vaca va Ea a Peau Vosa EE EE ee Ya a DE rev Ear ERA 6 52 Inverter Control COMMIANGS mires eu tee quasi rua uU bah aub dx eaa qu saute qvis a KE Es Un Noob Kr ar Fa CO NR CEN E ERE nnna 6 58 Drive Programming User s Manual 1580 E2 r CONTENTS Section 7 7 1 7 2 7 3 Section 8 8 1 Section 9 9 1 9 2 9 3 9 4 9 5 Precautions for Use of Parameters for Drive Programming Inverter Parameters Affected by Setting Order eeeeee eere 7 2 Parameters Affected by Rated Current eere sees 7 4 Parameters Affected by PID Enabled Disabled 7 5 Errors and Remedies PFOUBDICSMOOUING Miet 8 2 8 1 1 Drive Programming Operation on Error ccccccceseecceeseeeeeeeeeeeeeeesaeeeeeseseeeeeeseeeeeeessaeeeeeaeeeeeeseas 8 2 8 1 2 Drive Progra
160. operation steps Note Supplementary Information Reference Target A note supplementary information reference target etc are provided with difference icons 8 Errors and Remedies Troubleshooting This section describes the program operation at the time of error occurrence the error codes that are specific to the DriveProgramming and the remedies for them DriveProgramming Operation on Error Basically even if the inverter detects a trip during the DriveProgramming operation the operation is continued However if any of E43 to E45 trips related to the DriveProgramming is detected the opera tion is stopped Or with the on trip goto command the program can jump to other process after a trip occurred Error status With without a DriveProgram m User trip x f on trip goto E50 to E59 ming related Other trips S Trip E43 to E45 Without Operation is continued Program is stopped With After the on trip goto Program is stopped Operation is continued After the on trip goto command is executed the program jumps to the specified label and the operation is continued amp Precautions for Safe Use command is executed the program jumps to the specified label and the operation is continued When execution of the DriveProgramming program is stopped the status before the program stop is retained for multi function outputs controlled by the DriveProgramming For this reason th
161. operator lt gt lt gt or lt gt e Right hand value any variable or constant range 128 to 127 Label a name that is used to identify a particu lar function block in the task Format Flowchart method Text language method if lt condition gt goto lt label gt loop_ it UDO 1 goto Note To set the label name in flowchart right click the command and select Set Label from the menu You can specify any name e Example Flowchart Text 8 entry bs loop _ if U 1 goto condit goto loop condit inc U 801 goto loop end if LI Di 1 goto True gt Go to andit Hent Block iio 5 Hent Block xd Block number Operation 1 If U 00 is 1 it jumps to the block 3 condit If U 00 is not 1 it goes to the next block 2 2 Jumps to the block 1 loop unconditionally 3 to 4 Adds 1 to U 01 and jumps to the block 1 loop_ unconditionally Drive Programming User s Manual 1580 E2 6 15 rk IN U Oo e o 3 O Oo 3 e 2 O Oo 3 3 D 5 a on 6 Drive Programming Commands Ifs Else End If Command If condition is met it executes command set 1 gt right after this command until the else com mand and goes to the next step after the endif command If condition is not met it executes command set 2 right after the else command until the endif command and goes to the next step after the endif command Format Flowchart method Ir U00 U0 The
162. ply With the parameters U 29 to U 31 the calculation result is stored in the EEPROM automatically during power interruption of the inverter The saved data can be used as the initial data when the power supply is turned on again eun Pon Description Data range Derault Data size R W variable data U 00 to User parameter variable 0 to 65 535 Unsigned R W U 31 corresponding to P100 to P131 1 word The data of the parameters P100 to P131 saved in the EEPROM are automatically set to the user parameter variables U 00 to U 31 when the power is turned on By monitoring the parameters P100 to P131 you can check the data of the user parameter variables U 00 to U 31 after the program execution is started Note that the data displayed on the Digital Operator is the data at the moment when it is displayed To update the data once display the param eter number and then display the data again When you change the parameters P100 to P131 by the Digital Operator and press the Enter key the changed data is saved in the EEPROM and reflected in the current user parameter variables U 00 to U 31 The data saved in the EEPROM is set to the variables U 00 to U 31 automatically when the power supply is turned on again Even if the data of the user parameter variables U 00 to U 31 is changed in the program the changed data is not saved in the EEPROM for the parameters P100 to P131 To save in the EEPROM the data set to the user parame
163. presents the decimal point position You can use this to figure out the number of digits Display for data 0 to 9 999 0 to 9999 Display for data 10 000 to 65 535 1000 to 6553 Display for data 1 230 000 and 1 230 000 123 and 1230 As the Digital Operator displays only upper four digits you cannot check or set lower digits of data Use the CX Drive to check or set the data that exceeds four digits P P100 Drive Programming 0 to 65 535 These user parameters correspond to the function variables U 00 to U 28 You can change the data by using the Digital Operator The changed data is saved in the EEPROM The set data will be saved in the M N U D e 3 D e D o A r D e D a e O UO Z lt v o tel e 3 3 j e User Parameter U00 P101 Drive Programming User Parameter U01 P102 Drive Programming peer meres EEPROM when the Write to P103 Drive Programming EEPROM command is executed in User Parameter U03 the Drive Programming P104 Drive Programming User Parameter U04 P105 Drive Programming User Parameter U05 P106 Drive Programming User Parameter U06 P107 Drive Programming User Parameter U07 P108 Drive Programming User Parameter U08 P109 Drive Programming User Parameter U09 P110 Drive Programming User Parameter U10 P111 Drive Programming User Parameter U11 P112 Drive Programming User Parameter U12 P113 Drive Programming User Parameter U13 Drive Pr
164. put Monitor output YA 1 Oto 10 V AM terminal Multi function analog YA 2 4 to 20 mA AMI terminal output Commands Program control com Loop for mands Unconditional branch goto Time control wait Conditional branch if then ifs then select case until while Subroutine call sub Others entry end inc dec Four arithmetic operations and Arithmetic commands Remainder mod and assignment 2 Absolute value abs Logical operations or and xor not Multi function I O bit input word input bit output and word output I O control Reads inverter input terminals Reads writes inverter output terminals Contacts control by timer and timer counter control Parameter control Changes setting data of specified parameter number e Saves parameter setting data in EEPROM Drive Programming User s Manual 1580 E2 9 3 9 LX inverter Item Specifications Commands Inverter control Executes and stops forward reverse operation Generates a trip by the Drive Programming E50 to E59 10 points Frequency reference and acceleration deceleration time settings Function variable U 00 to U 31 32 points able Internal user variable UL 00 to UL 07 8 points Frequency reference SET Freq Acceleration time vari ACCEL Deceleration time vari DECEL Inverter monitor vari FM lout Dir PID FB F CNV Tmon Vout Power RUN Time ON T
165. put terminals MA MB RX Y 00 to Y 05 6 points Multi function output P1 to P5 terminals e Multi function relay output terminals MA MB Monitor output YA 0 PWM output in 6 4 ms cycle MP termi Multi function digital nal output Monitor output YA 1 Oto 10 V AM terminal Multi function analog YA 2 MX2 No applicable function output RX 4 to 20 mA AMI terminal 2 2 Drive Programming User s Manual 1580 E2 2 Specifications Item Specifications Commands Program control com mands Loop for Unconditional branch goto Time control wait Conditional branch if then ifs then select case until while Subroutine call sub Others entry end inc dec Four arithmetic operations and Arithmetic commands N A o o e h O e et O o Remainder mod and assignment 2 Absolute value abs Logical operations or and xor not Multi function I O bit input word input bit output and word output I O control Reads inverter input terminals Reads writes inverter output terminals Contacts control by timer and timer counter control Parameter control Changes setting data of specified parameter number e Saves parameter setting data in EEPROM RX only current time reading once continuous Inverter control Executes and stops forward reverse operation Generates a trip by the Drive Programming E50 to E59
166. qualified personnel Not doing so may result in a serious injury due to an electric shock Do not change wiring and slide switches put on or take off Operator and optional devices replace cooling fans while the input power is being supplied Doing so may result in a serious injury due to an electric shock Be sure to ground the unit Not doing so may result in a serious injury due to an electric shock or fire 200 V class type D grounding 400 V class type C grounding Do not remove the terminal cover during the power supply and 10 minutes after the power shut off Doing so may result in a serious injury due to an electric shock Do not operate the Operator or switches with wet hands Doing so may result in a serious injury due to an electric shock Inspection of the inverter must be conducted after the power supply was turned off Not doing so may result in a serious injury due to an electric shock The main power supply is not necessarily shut off even if the emergency shut off function is activated Do not touch the inverter fins braking resistors and the motor which become too hot during the power supply and for some time after the power shut off Doing so may result in a burn A N Caution Do not connect resistors to the terminals 1 P 2 N directly Doing so might result in a small scale fire heat generation or damage to the unit Install a stop motion device to ensure safety Not doing so might result in a m
167. quired The numerical order of the output terminal variables follows the numerical order of the set general output numbers MX2 Setthe Multi function Output P1 and P2 Selection C021 and C022 and the Multi function Relay Out put MA MB Function Selection C026 to 44 to 46 MO1 to MO3 General purpose output RX Set the Multi function Output P1 to P5 Selection C021 to C025 and the Multi function Relay Out put MA MB Function Selection C026 to 44 to 49 MO1 to MO6 General purpose output Assignment example Y 00 MO1 multi function No 44 Y 01 MO2 multi function No 45 Y 02 MO3 multi function No 46 Y 03 MO4 RX only multi function No 47 Y 04 MO5 RX only multi function No 48 Y 05 MO6 RX only multi function No 49 For details refer to 5 2 Input Output Terminal Variables on page 5 5 e Example Flowchart Text B entry loop _ ubw 8 UB X UB 1 X 1 UB 2 X 82 2 UMon 8 ubw U BU 00 Y 88 UB 2 goto loop 3 end UB 1 01 4 LIB 2 02 x UMon 0 UBs E 00 UB 7 Hest Black Go to loop In the above example the status of X 00 to X 02 is monitored with the parameter UMon 0 d025 and X 02 is output to Y 00 Block number Operation 1 Assigns 0 to UBw 2to4 Assigns the variables X 00 to X 02 to the variables UB O to UB 2 5 Assigns UBw to UMon 0 6 Assigns UB 2 to Y 00 T Jumps to the block 1 loop
168. r parameter variable U k or the internal user variable When you create a program note that the BCD data is detected as hexadecimal data and converted to the decimal data in the Drive Programming Editor and the Digital Operator When the rtcset on off U k is executed the data is set in the following order from upper bytes You must ensure continuous three user parameter variables including U k User parameter variable Lower byte U k Month BCD data U k 1 Day of the week BCD data U k 2 Minute BCD data When the rtcset on off UL k is executed the data is set in the following order from upper bytes You must ensure continuous two internal user variables including UL k User parameter variable Upper word Lower word d Upper byte Lower byte Upper byte Lower byte UL k Year BCD data Month BCD data Day BCD data Day of the week BCD data UL k 1 Hour BCD data Minute BCD data 0 padding 0 padding You must perform the installation and removal of the Digital Operator with the inverter power supply shut off Otherwise a fault may occur If an error that causes disconnection from the LCD Digital Operator occurs the clock data is retained for at least 1 minute and 45 seconds Therefore it is possible to execute the rtcset on off command within 1 minute and 45 seconds after disconnection Although when the time exceeds 1 minute and 45 seconds the clock function processing does not finish and the whole program enters a wa
169. ram does not branch even if a trip occurs 4 Once the program branches with the on trip goto command it will not branch again under any condi tions Be sure to restart the program after the program branches once with the on trip goto command 5 Tosetthe label name in flowchart right click the command and select Set Label from the menu You can specify any name e Example Flowchart Text entry entry on trip goto count loop while 08 1 inc U 80 Go to count wait 100 md wend goto loop count inc U 3 False T Y goto loop end True Next Block iii 3 inc U 00 7 count inc LI 03 a Go to loop_ 9 x Nest Block Block number Operation 1 Executes the on trip goto command once so that the program jumps to the block 7 count if a trip occurs 2to6 If X 00 is 1 it adds 1 to U 00 waits for 1 00 second with the wait command and returns to the block 2 loop If X 00 is 0 jumps to the block 2 loop unconditionally 7 to 8 Adds 1 to U 03 and jumps to the block 2 loop unconditionally 4 J 6 14 Drive Programming User s Manual 1580 E2 6 Drive Programming Commands If Command Argument Jumps to label when condition is met Condition a comparison between two variables ad or constants with the format left hand value lt comparison operator gt lt right hand value gt Left hand value any variable or constant range 128 to 127 e Comparison
170. ram in the inverter This operation is performed independently of the program on the Drive Programming area in the CX Drive Sets a program number from 0 to 9 999 After the program is transferred downloaded to the drive inverter the program number is updated and you can see that by the Program Num ber Monitor Drive Programming d024 Enables to set change or delete the program password Set Program Number Set Password Jeqioo c c v Help Displays the CX Drive help Commands for the flowchart program Command don Description Zoom in Increases the zoom level Zoom out Decreases the zoom level Zoom Reset Restores the zoom to its initial value Select Mode k Selects one or more blocks of the program by dragging with the mouse cursor Pan Mode By dragging moves the field of the view in any direction while lly keeping the same scale Horizontal Align Left Aligns horizontally the left sides of the currently selected blocks Horizontal Align Middle Aligns horizontally the middles of the currently selected Horizontal Align Right 2 Aligns horizontally the right sides of the currently selected zl blocks Vertical Align Top Aligns vertically the top sides of the currently selected blocks Vertical Align Middle Aligns vertically the middles of the currently selected blocks Drive Programming User s Manual 1580 E2 4 7 4 Drive Programming Editor Command Description Verti
171. ratorFE R C02110C026 56 Drive Programming User s Manual 1580 E2 r c gt o et O gt O c e 9 c e S 2 f e D 0 o Drive Programming User Variables Drive Programming User s Manual 1580 E2 Drive Programming Commands E This section describes the commands provided for Drive Programming 6 1 Command Categories es 6 2 6 2 Command Format 3er 239 ERRUEC S RU AI RPRETUEQE aan I Be e e 6 3 6 3 Command LISt ges cies ew bonged opa E Iac es eal dar woke dos 6 4 6 4 Program Control Commands leeren 6 10 6 5 Arithmetic Operation and Logical Operation Commands 6 23 6 6 I O Control Commands eeeeereeere 6 36 6 7 Timer Control Commands eeee er eee 6 46 6 8 Parameter Control Commands lees 6 52 6 9 Inverter Control Commands lere 6 58 Drive Programming User s Manual 1580 E2 6 1 6 Drive Programming Commands 6 1 Command Categories The commands are divided into the following categories Program control commands Arithmetic operation and logical operation commands I O control commands Timer control commands Parameter control commands Inverter control commands Drive Programming User s Manual 1580 E2 6 Drive Programming Commands 6 2 Command Format Each command consists of the command a
172. re processed in parallel By dividing one application into several processes and allocating them to multiple tasks you can adjust execution condition execution order etc for each process Furthermore parallel task processing can provide shorter processing time 3 3 1 Tasks Task is a unit of program executed in the Drive Programming For 3G3MX2 3G3RX Series Inverter you can create a program which consists of up to five tasks All tasks are started simultaneously e n the order of task from 1 to 5 one command of each task one line of the program after compila tion is executed in 2 ms processing time All function variables such as user parameters are shared among the tasks For transmission of infor mation between tasks use the user parameters internal user contacts etc e At the end of 2 ms processing time the operation result of each task is reflected to the inverter oper ation external output etc At the same time the status of the inverter and external input terminals etc are read in When the end command is executed the task is completed and waits for the next start oJnjonuajs weibold 3 SYSEL 3 3 2 Subroutines Subroutine is a separated program processing executed only when it is called Subroutines are useful to organize your program into parts that you can execute multiple times in the same task or reuse in other programs In the Drive Programming it is necessary to insert
173. rent C039 Low Current Detection Level Heavy load 0 00 to 2 00 x Rated current Light load 0 00 to 1 50 x Rated current C041 1st Overload Warning Level 0 0 Function not active Heavy load 0 00 to 2 00 x Rated current Light load 0 00 to 1 50 x Rated current C111 1st Overload Warning Level 2 Heavy load 0 00 to 2 00 x Rated current Light load 0 00 to 1 50 x Rated current 9 18 Drive Programming User s Manual 1580 E2 Authorized Distributor
174. rive Programming User s Manual 1580 E2 3 Operation Procedure for Drive Programming 3 2 Parameters Related to Drive Program ming This section describes the inverter parameters that are related to the Drive Programming I Selecting Drive Programming Functions Set the Drive Programming Function Selection A017 to Enabled 01 or 02 to use the Drive Program ming function You can change the Drive Programming Function Selection A017 even when the opera tion is in progress DuiuiuieJ6o4d 3AA 0 payejay sJojouleJed z c Description 3 Parameter A No Function name 00 Disabled default setting A017 Disables the Drive Programming function Programs are not executed If you change the setting to 00 Disabled during program execution the program will be stopped Drive Programming Function Selection Enabled Start stop via multi function input PRG terminal Enabled Start stop at power on off PRG Drive Programming start C001 to C007 MX2 and RX Multi function Input S1 to S7 Selection RX only Multi function Input S8 Selection C008 Starts the Drive Programming program when the multi function input terminal which is set to 82 PRG is turned ON Starts the Drive Programming program automatically after the inverter power sup ply is turned on If you change the setting to 02 Enabled while the program is stopped the program will be started When the Drive Programming Function S
175. rive Programming User s Manual 1580 E2 6 25 6 Drive Programming Commands Multiplication Comman Argument Multiplies lt value 1 gt by lt value 2 gt Result any variable Value 1 any variable or constant range 128 to 127 Value 2 any variable or constant range 2 147 483 648 to 2 147 483 647 Format Flowchart method Text language method result value 1 gt value 2 result value 1 value 2 V Note If an overflow or underflow occurs the Drive Programming detects it as an error Take neces sary measures in the application so that they do not occur e Example Flowchart Text entry u e 2 U 01 588 U 82 u e8 u 8e1 end z 3 d Block number Operation 1 Assigns 2 to U 00 2 Assigns 500 to U 01 3 Assigns the product of U 00 and U 01 to U 02 6 26 Drive Programming User s Manual 1580 E2 6 Drive Programming Commands Division Command Argument Divides value 1 by value 2 Result any variable Value 1 any variable or constant range 128 to 127 Value 2 any variable or constant range 2 147 483 648 to 2 147 483 647 Format Flowchart method Text language method result value1 value2 result value1 value2 Y Note If an overflow underflow or division by zero occurs the Drive Programming detects it as an error lake necessary measures in the application so that they do not occur rk Ol
176. rming any operation 3 The wait command is not an accurate way to measure time To measure time accurately use the internal timer or the clock function of the LCD Digital Operator A program example in which the wait time is set with value the program waits at the wait command for the period of time set in value Flowchart Text entry loop wait 188 inc U 88 goto loop end 4 i Next Black atetik Block number Operation 1 Waits for 1 00 second with the wait command 2 to 3 Adds 1 to U 00 and unconditionally jumps to 1 loop to wait one more second Drive Programming User s Manual 1580 E2 6 21 rk IN U Oo e o 3 O Oo 3 e 2 O Oo 3 3 D 5 a on 6 Drive Programming Commands A program example in which the condition to end the wait state is set in condition the program waits until the condition is met Flowchart Goto loop 2 Hent Black Block number 1 Waits until X 00 changes to 1 2to3 Adds 1 to U 00 and jumps to the block 1 Text entry loop _ wait X 1 inc UG goto loop end Operation loop unconditionally Drive Programming User s Manual 1580 E2 6 Drive Programming Commands 6 5 Arithmetic Operation and Logical Operation Commands ee Substitution Command Argument Assigns lt value gt to lt result gt Result any variable Value any variable or constant range 2 147 483 648 to 2 147 483 647 Format Flo
177. rogram execution is started again the process begins with the retained data 6 60 Drive Programming User s Manual 1580 E2 O Drive Programming Commands e Example Flowchart Text gt entry entr Top Es select Mw T case 1 SP e SET Freq s 1888 zeje WIE 1 Ooo o olew FW 1 case 2 2 Y SET Freq 1588 T case else 3 o stop LII goto Top end T T L a Ld L gt lt t c D O O e 9 O O 3 3 D 2 0 1 Ld LLI 11 Ld s Nent Black Go to To F r2 Fr i In the above example if the general input contact Xw is 1 the motor runs at 10 Hz in the forward direc tion If the general input contact Xw is 2 the motor runs at 15 Hz in the reverse direction With other val ues the motor stops Block number Operation 1 After the select command the program branches to the following case commands depending on the value of Xw Branches to the case 1 if Xw 1 to the case 2 if Xw 2 and to the case else if Xw a value other than 1 and 2 2 to 4 Executes if Xw 1 Sets the frequency reference variable to 10 00 Hz operates the inverter in the forward direction and executes the next steps after the endselect command 5 to 7 Executes if Xw 2 Sets the frequency reference variable to 15 00 Hz operates the inverter in reverse direction and executes the next steps after endselect command 8 to 10 Executes if Xw a
178. rol commands can efficiently use the program capacity because their arguments require smaller data size var X i Command Argument Assigns one bit of the status of the input termi variable any variable the variable value is O or 1 nal variable to lt variable gt i input terminal variable range 00 to 07 vari Format Flowchart method Text language method lt variable gt X i wanes ci Y Note The input terminal variable is a variable that detects the status of the inverter s input terminal The following settings are required The numerical order of input terminal variables follows the numerical order of the set general input numbers MX2 Set the Multi function Input S1 to S7 Selection C001 to C007 to 56 to 62 MI1 to MI7 General purpose input Set the Pulse Train Input RP Selection P003 to 02 MI8 General purpose input 8 for Drive Programming RX Set the Multi function Input S1 to S8 Selection C001 to C008 to 56 to 63 MI1 to MI8 Gen eral purpose input Assignment example X 00 MI1 function No 56 X 01 MI2 function No 57 X 02 MI3 function No 58 X 03 MIA function No 59 X 04 MI5 function No 60 X 05 MI6 function No 61 X 06 MI7 function No 62 X 07 MI8 MX2 P003 02 RX function No 63 Note For details refer to 5 2 Input Output Terminal Variables on page 5 5 e Example Flowchart Text d entry n loop goto loop end Go to loop Hes
179. rter does not operate with other setting options e Even if you set the variable FW forward or RV reverse to 1 immediately after turning on the power supply the setting is ignored and neither forward or reverse operation is per formed Set 0 and then set 1 again To avoid this operation create a program that has one second of wait time after turning on the power supply with such as wait command Only for the variable AT Analog input switching it is required to set the Multi function Input Selection MX2 C001 to C007 RX C001 to C008 To use the variable AT Analog input switching set one of the Multi function Input Selection parameters to 16 AT Analog input switching If you do not set it the expected operation is not performed even if the variable AT Analog input switching is set to 1 in the program he relationship between the inverter s multi function input function set in the Multi function Input Selection and the multi function input variable is logical OR e MX2 and RX Function variable Description Description Reference FW Forward E M MX2 C001 to C007 00 RX FW terminal RV Reverse R W C001 to C008 01 CF1 to CF4 R W C001 to C008 02 to 05 JG RW C001 to C008 06 DB C001 to C008 07 SET RW C001 to C008 08 FRS Rw C001 to CO08 71 EXT C001 to C008 12 USP RW C001 to C008 13 Drive Programming User s Manual 1580 E2 5 17 o Drive Programming User Variabl
180. s Timer Off Command Description Resets the timer counter TC k to O and starts Dorr the timer in free run mode Timer tlf Format Flowchart method timer off TD k Y e Timing chart IEEE Caoenpardom for mashing TE k th 1000 tera e TD Ok 1800 neuer cT TO kl 1 m Q3 m 4 5X6 gt 7 a B 9 gt Argument TD k the timer output contact of the timer that you use range of k is O to 7 Text language method timer off TD k 1 The timer is in a free run state 2 The timer set command is started 3 The delay operation is in progress 4 The time elapsed 6 The delay operation is in progress 7 The time elapsed 8 The timer off command is started 1 2 3 4 5 The timer set command is started 6 7 8 9 The timer is in a free run state Drive Programming User s Manual 1580 E2 6 Drive Programming Commands e Example Flowchart Text 0 entry i loop u e1 26 if X 1 8B goto loop timer set TD 8 U 81 LBaes if A 1 then timer off TD 68 else if TD 8 1 goto LBeael goto LBa8B endif LBaeonl goto loop end if X01 gota if TE 0 1 gota Go te loo p Hent Black In the above example the start end operation of the timer 0 is repeated when X 01 is not O If X 01 changes to O the timer is stopped and X 01 is monitored Block number Operation 1 Assigns 20 to U 01
181. s lt variable 2 constant gt by lt vari able 3 constant gt and assigns the result to lt variable 1 gt Drive Programming User s Manual 1580 E2 6 Drive Programming Commands Command Argument 1 Argument2 Argument3 Argument4 Arguments Description Remainder for variable 1 variable 2 variable 3 Divides variable division constant constant 2 constant gt by vari able 3 constant gt and assigns the remainder to lt variable 1 gt Absolute value lt variable 1 gt lt variable 2 Assigns the absolute constant gt value of lt variable 2 con stant to variable 1 gt Logical operation variable 1 gt variable 2 variable 3 Performs a logical constant constant AND operation on variable 2 constant gt and variable 3 con stant and assigns the result to variable 1 gt variable 1 gt variable 2 variable 3 Performs a logical OR constant constant operation on variable 2 constant gt and vari able 3 constant gt and assigns the result to lt variable 1 gt lt variable 1 gt lt variable 2 lt variable 3 Performs a logical constant gt constant gt exclusive OR opera tion on lt variable 2 constant gt and lt vari able 3 constant gt and assigns the result to lt variable 1 gt lt variable 1 gt lt variable 2 Reverses the bit of constant gt lt variable 2 constant gt and assigns the result to lt variable 1 gt I Increment and Decrement Com
182. s displayed by default at the right side of the CX Drive You can separate the window by double clicking the title bar wide frame of the window Block Parameters User Parameters Lu Fi l Pilz Elis Pid P105 Pi06 Pi Fia 0 t t t 0 0 0 0 0 ES Drive Programming User parameters Set range is 0 ta 65535 Note Saving this parameter will save all Drive Programming data To change the value of a parameter place the cursor at its row and click on the edition box to the right of its number Enter the new value A warning will be displayed if the entered value exceeds the valid range At the lower part of the window a help text for the user parameters is displayed Drive Programming User s Manual 1580 E2 4 Drive Programming Editor 4 2 6 Properties Window The Properties window allows you to edit the properties of the block which is currently selected in the flowchart program The Properties is displayed when the Drive Programming Editor is started You can also show or hide it by clicking Drive Programming Properties in the View Menu The Properties window is displayed by default at the right side of the CX Drive You can separate the window by double clicking the title bar wide frame of the window Properties Command Arguments variable to be assigned LI OO User parameter Value LI QO User parameter Substitution The format af this instruction 1s lt result gt lt value
183. s in this document are the trademarks or registered trademarks of their respective companies Introduction Introduction Thank you for purchasing the Inverter Servo support tool CX Drive and 3G3MX2 3G3RX 3G3LX Series Inverter This manual describes the specifications and operating methods of the Drive Programming for the inverter When you use this product refer to the MX2 Series User s Manual 1570 E2 or the RX User s Manual I560 E2 besides the CX Drive Operation Manual W453 Intended Readers This manual is intended for the following personnel who must also have knowledge of electrical sys tems an electrical engineer or the equivalent Personnel in charge of introducing FA systems Personnel in charge of designing FA systems Personnel in charge of installing and connecting FA systems Personnel in charge of managing FA systems and facilities Notice This manual contains information you need to know to use the Drive Programming Before using this product read this manual and gain a full understanding of the information provided herein After you finished reading this manual keep it in a convenient place so that it can be referenced at any time Make sure this manual is delivered to the end user Drive Programming User s Manual 1580 E2 1 Manual Configuration Manual Configuration This manual is compiled section by section for user s convenience as follows Section Overview This sect
184. s started You can also show or hide it by clicking Drive Programming Toolbox in the View Menu The Toolbox window is displayed by default at the right side of the CX Drive You can separate the window by double clicking the title bar wide frame of the window Preprocessor Commands Program Control Commands gt N U t9 o o h UO lt D U o e Q 3 3 gt a m Q o End Ay Golo gt Its EN Select Select CaseElse MOpUIM XOQ OOL f Z b Arithmetic Commands Input Output Control Commands Timer Control Commands Parameter Control Commands Inverter Control Commands You can also select its display style by right clicking on it with the mouse Three styles are available large icons small icons and list In any style a short help text will be shown when you place the mouse cursor on a block Click on any category title to display the blocks which belong to that category Drive Programming User s Manual 1580 E2 4 13 4 Drive Programming Editor 4 2 5 Block Parameters Window The Block Parameters window allows you to edit Drive Programming user parameters which act as variables of the program The displayed parameters are organized in categories The Block Parameters is displayed when the Drive Programming Editor is started You can also show or hide it by clicking Drive Programming Block Parameters in the View Menu The Block Parameters window i
185. set in the lower byte For the upper byte and unused output terminal variables zero is read out If any data is written to the upper byte the data is ignored Bit 8to15 7 6 5 4 3 2 4 Function Not Not Not Not Not Not Y 02 Y 01 CUT used uses usod uses used uses RX Function Not Not Not Y 05 Y 04 Y 03 Y 02 Y 01 M seo usa me O O ME Precautions for Safe Use When the Drive Programming program is stopped the status before the program stop is retained for multi function outputs controlled by the Drive Programming Model MX2 e N 5 D ct O c e c e o 3 3 S D S D on For this reason configure the system so that the stop of the Drive Programming program in the inverter can be detected by the Drive Programming start signal and the alarm trip signal and the inverter s peripheral devices can be stopped safely la Precautions for Correct Use When the Drive Programming program is stopped the data of the output terminal variables before the program stop is retained When the program execution is started again the pro cess begins with the retained data However the outputs with MO1 to MO6 General purpose output not set for the Drive Programming are controlled as the inverter s multi function outputs independently of the program e f multiple tasks use the same multi function terminal the output status of the task which is executed last will be effecti
186. t variable 2 constant Argument 1 Argument2 Argument3 Argument4 Arguments Description TRUE if variable 1 constant gt is equal to variable 2 constant gt TRUE if variable 1 constant gt is less than variable 2 constant TRUE if variable 1 constant gt is equal to or less than variable 2 constant gt TRUE if lt variable 1 constant gt is greater than lt variable 2 constant gt TRUE if lt variable 1 constant gt is equal to or greater than lt vari able 2 constant gt TRUE if lt variable 1 constant gt is not equal to lt variable 2 constant gt Arithmetic Operation and Logical Operation Commands lt variable 1 gt lt variable 2 constant gt lt variable 2 constant gt lt variable 2 constant gt lt variable 2 constant gt lt variable 2 constant gt L Argument3 Argument 4 Arguments lt variable 3 constant gt lt variable 3 constant gt lt variable 3 constant gt lt variable 3 constant gt Description Assigns lt variable 2 constant gt to lt vari able 1 gt Adds lt variable 2 con stant gt and lt variable 3 constant gt and assigns the result to lt variable 1 gt Subtracts lt variable 3 constant gt from lt variable 2 constant gt and assigns the result to lt variable 1 gt Multiplies lt variable 2 constant gt by lt vari able 3 constant gt and assigns the result to lt variable 1 gt Divide
187. t Upper limit level b063 Lower limit level b064 2 b066 RX only Window Comparator FE Upper Limit Set an upper limit level Level Setting range 100 to 100 Minimum value Lower limit level 0067 Hystere sis width b068 x 2 b067 RX only Window Comparator FE Lower Limit Set a lower limit level Level Setting range 100 to 100 Maximum value Upper limit level D066 Hystere sis width b068 x 2 b068 RX only Window Comparator FE Hysteresis Set a hysteresis width for the upper and lower limit Width levels Setting range 0 to 10 Jopuo Dunes Aq payday sJojouleJed 191J9AU Z Maximum value Upper limit level 0066 Lower limit level b067 2 b100 0 to Free V f Frequency 2 b102 b102 to Free V f Frequency 3 b104 b104 to Free V f Frequency 4 b106 b106 to Free V f Frequency 5 b108 7 b108 Free V f Frequency 5 to Free V f Frequency 6 b110 b110 Free V f Frequency 6 to Free V f Frequency 7 b112 b112 Free V f Frequency 7 to 400 O Oojojolo o Drive Programming User s Manual 1580 E2 7 3 Precautions for Use of Parameters for Drive Programming 7 2 Parameters Affected by Rated Current In the case of parameters for which a current value is set the parameter s default data and setting range are restricted by the rated current of the inverter When you set those parameters set a percentage 96 of the inverter rated current in the Drive Program ming pro
188. t Block In the above example the status of the input terminal X 01 is monitored with the parameter UMon 0 d025 Block number Operation 1 Assigns X 01 to UMon 0 2 Jumps to the block 1 loop unconditionally 6 36 Drive Programming User s Manual 1580 E2 6 Drive Programming Commands var Xw Command Argument Assigns the status of the input terminal variable Variable any variable to lt variable gt in units of words var AW Format Flowchart method Text language method lt variable gt Xw Y Note The input terminal variable is a variable that detects the status of the inverter s input terminal The following settings are required The numerical order of input terminal variables follows the numerical order of the set general input numbers MX2 Set the Multi function Input S1 to S7 Selection C001 to C007 to 56 to 62 MI1 to MI7 General purpose input Set the Pulse Train Input RP Selection P003 to 02 MI8 General purpose input 8 for Drive Programming RX Set the Multi function Input S1 to S8 Selection C001 to C008 to 56 to 63 MI1 to MI8 General purpose input When the data is assigned in units of words zero is read out for the upper byte data and unset input terminal variables Assignment example X 00 MI1 function No 56 to Xw 1 bit 0 X 01 MI2 function No 57 to Xw 2 bit 1 X 02 MI3 function No 58 to Xw 4 bit 2 X 03 MI4 function No 59 to Xw 8 bit 3 X 04 M
189. t as the input ter minal variables X 00 to X 07 of the Drive Programming Numbers are given to the input terminal variables X 00 to X 07 according to the numerical order of the set general purpose inputs MI1 to MI8 not the terminal numbers S1 to S8 Setting for Multi function Input Selection and Function variable Pulse Train Input RP Selection MX2 C001 to C007 and P003 RX C001 to C008 X 00 56 MI1 X 01 57 MI2 X 02 58 MI3 X 03 59 MIA X 04 60 MI5 X 05 61 MI6 X 06 62 MI7 X 07 MX2 P003 02 RX 63 MI8 Drive Programming User s Manual 1580 E2 5 5 o Drive Programming User Variables Function Default Xw Input terminal variable 0 to 255 Unsigned word access 1 word he input terminal variable word access Xw is a function to use the input terminal variables X 00 to X 07 as a word size This variable is read only The input terminal variables X 00 to X 07 are set to the lower byte For the upper byte and unused input terminal variables zero is read out Br 8151 7 6 5 4 3 2 3 9 Function X01 x00 la Precautions for Correct Use When the Drive Programming program is stopped the status of the input terminal variables is not retained but updated according to the status of actual input terminals Even when you set MI1 to MI8 genera purpose input 1 to 8 for the Multi function Input termi nals MX2 S1 to S7 RX S1 to S8 you can select NO NO contact or NC NC c
190. tal Operator s STOP RESET key will be disabled 3 Since the stop command may act as a reset and cause the Digital Operator s STOP RESET key to be disabled we recommend you to use the previously mentioned Stop func value command to stop the inverter Set Freq Command Argument Sets the frequency of the Inverter Value any variable or constant A This command is a Assign command whose range 0 to 40 000 left hand side is set to the frequency reference SetFreq variable SET Freq Unit 0 01 Hz Format Flowchart method Text language method lide il V Note 1 The range of frequency that the inverter can actually output is from the Starting Frequency b082 to the maximum frequency If the set data is out of range the inverter operates as follows Less than Starting Frequency b082 MX2 and RX Operates at the frequency of 0 00 Hz RX only When the 1st Control Method A044 is set to 04 OSLV 0 Hz sensorless vector con trol or 05 V2 Sensor vector control the Starting Frequency b082 is disabled and the specified frequency is output More than maximum frequency MX2 Limits the frequency reference to the value set in the 1st 2nd Maximum Frequency A004 A204 RX Limits the frequency reference to the value set in the 1st 2nd 3rd Maximum Frequency A004 A204 A304 2 When the Drive Programming program is stopped the data of the frequency reference variable before the program stop is retained When the p
191. task operations for different settings are shown below e When the Drive Programming Function Selection A017 is set to 01 Enabled Power ON Power OFF i Power supply Multi function input terminal PRG terminal ON PRG terminal OFF Meca EM ll eel RX S1 to S8 Ti sor TT Tesk2 son J Task son esp ESESESH i Taste nap ET TS semp e When the Drive Programming Function Selection A017 is set to 02 Enabled Power ON 4 Power OFF Power supply Task son RA Tes RR Task3 ss Ris Task4 se sc pies Task5 i sor E ie Drive Programming User s Manual 1580 E2 3 Operation Procedure for Drive Programming 3 3 5 Drive Programming Restart You can restart the stopped program by performing the following operations When the program is restarted all tasks are started simultaneously from the beginning e When the Drive Programming Function Selection A017 is set to 01 Enabled Start stop via multi function input PRG terminal a reset input via the control circuit terminal while the PRG terminal is ON or turning ON the PRG terminal again e When the Drive Programming Function Selection A017 is set to 02 Enabled Start stop at power on off a reset input via the control circuit terminal or turning ON the power supply for the inverter again la Precautions for Correct Use e do U amp D 3 o e c O e D e You cannot restart the Drive Programming by pressing the STOP RESE
192. ted by Setting Order In some cases the setting range of the parameters are restricted by the setting data of other parameters The following are the representative examples For details refer to the MX2 User s Manual 1570 E2 or the RX User s Manual 1560 E2 Parameter No A003 A004 A203 A204 A303 A304 A013 A014 A103 A104 A113 A114 A020 A220 A320 A021 to A035 b015 b017 b019 b051 b052 b060 b061 b062 Description Data 30 to 1st Maximum Frequency A004 1st Maximum Frequency MX2 1st Base Frequency A003 to 400 RX 30 to 400 30 to 2nd Maximum Frequency A204 2nd Maximum Frequency MX2 2nd Base Frequency A203 to 400 RX 30 to 400 30 to 3rd Maximum Frequency A304 RX only 3rd Maximum Frequency 30 to 400 FV Start Ratio 0 to FV End Ratio A014 FV Start Ratio A013 to 100 FI Start Ratio 0 to FI End Ratio A104 FI Start Ratio A103 to 100 100 to FE End Ratio A114 FE Start Ratio A113 to 100 i 0 00 Starting Frequency to 1st Maximum Fre 1st Multi step Speed Reference 0 2nd Multi step Speed Reference 0 RX only 3rd Multi step Speed Reference 0 Multi step Speed Reference 1 to 15 quency A004 0 00 Starting Frequency to 2nd Maximum Fre quency A204 0 00 Starting Frequency to 3rd Maximum Fre quency A304 0 00 Starting Frequency to 1st Maximum Fre quency A004 Free electronic Thermal Frequency 1 0 to Free electronic Thermal Frequency 2 Free electronic
193. ter variables U 00 to U 31 in the program execute the eepwrt command and then the ChgParam command and specify the data you want to save The data is saved in the EEPROM area that is allocated to the parameters P100 to P131 Only for the user parameter variables U 29 to U 31 the data is saved automatically during power interruptions The data is saved in the EEPROM for the corresponding parameters P129 to P131 The data of the user parameter variables U 00 to U 28 is not saved during the power interruption Drive Programming User s Manual 1580 E2 o Drive Programming User Variables la Precautions for Correct Use When the Drive Programming program is stopped the data of the user parameter variables before the program stop is retained When the program execution is started again the process begins with the retained data I Internal User Variables UL 00 to UL 07 The Drive Programming s internal user variables UL 00 to UL 07 are the signed 2 word variables Use these variables for saving data during calculations such as four arithmetic operations Function Default UL 0O to Internal user variable 2 147 483 648 to Signed UL 07 2 147 483 647 2 words e The internal user variables UL 00 to UL 07 are cleared to zero when the power supply is turned on Any data saving measure like EEPROM is not provided To set initial data create a program in which the initial data is set to UL 00 to UL 07 e
194. the acceleration deceleration time of the frequency reference by the Drive Programming function set the inverter s parameter Acceleration Deceleration Time Input Type P031 to 03 Drive Programming to enable the acceleration time variable ACCEL and the deceleration time variable DECEL Function Default ACCEL Acceleration time variable time variable I 0 to 360 000 Parameter 0 01 E DECEL n tme varionie time variable RX 1 to 360 000 Setting second 2 words e The acceleration time variable ACCEL and the deceleration time variable DECEL are unsigned 2 word variables e The acceleration time variable ACCEL and the deceleration time variable DECEL are enabled only when you set the Acceleration Deceleration Time Input Type P031 to 03 Drive Programming e Only when the program is started for the first time after the power supply is turned ON the value set in the inverter s acceleration deceleration time parameters are set for the Drive Programming s accel eration time variable ACCEL and deceleration time variable DECEL rd 5 lt t m D o D 23 3 gt D S D on MX2 The acceleration deceleration time for the 1st 2nd Acceleration Time 1 F002 F202 and the 1st 2nd Deceleration Time 1 F003 F203 are set according to the 1st 2nd control selection RX The acceleration deceleration time for the 1st 2nd 3rd Acceleration Time 1 F002 F202 F302 and 1st 2nd 3rd Deceleration Time 1 F003 F203 F303 are
195. the timer counter variables and the timer output contacts is not retained but cleared to zero p do z 3 D gt D o D on Drive Programming User s Manual 1580 E2 5 11 o Drive Programming User Variables 9 4 Inverter Setting Variables This section describes the variables provided for setting inverter s frequency reference and accelera tion deceleration time Use these variables to control the inverter via the Drive Programming program I Frequency Reference Variable SET Freq When you directly control the frequency reference by the Drive Programming function set the inverter s parameter Frequency Reference Selection to 07 Drive Programming to enable the frequency refer ence variable SET Freq Bune On Description Data range petautt Data size R W variable data SET Freq Frequency reference variable 0 to 40 000 ME 0 01 Hz R W 1 word The frequency reference variable SET Freq is an unsigned 1 word variable e The variable is enabled only when you set the Frequency Reference Selection to 07 Drive Programming MX2 oet in the 1st 2nd Frequency Reference Selection A001 A201 Allocate one of the Multi function Input S1 to S7 Selection C001 to C007 to 08 SET 2nd control to switch the control RX Set in the Frequency Reference Selection A001 Switching between 1st 2nd 3rd controls is not allowed The frequency reference variable SET Freq is cleared to zero when the power supply is turned
196. tion e If the Drive Programming stops during multi function output the output status is held Take safety precautions such as stopping peripheral devices e If the clock command is used in the Drive Programming an unexpected operation may occur due to weak battery of the LCD Digital Operator Take measures such as detecting a weak battery by a check that the clock data returns to the initial setting and stopping the inverter or programs When the LCD Digital Operator is removed or disconnected Drive Programming is in a waiting status by the clock command e When using the Drive Programming check that program data is downloaded successfully before starting operation 12 Drive Programming User s Manual 1580 E2 Regulations and Standards Regulations and Standards To export or provide to nonresident aliens any part of this product that falls under the category of goods or technologies for which an export certificate or license is mandatory according to the Foreign Exchange and Foreign Trade Control Law of Japan an export certificate or license or service transac tion approval according to this law is required Drive Programming User s Manual 1580 E2 13 Related Manuals Related Manuals You need information on the devices connected for operating this product Please see the manuals below for related product information Name Catalog number MX2 User s Manual 1570 E2 RX User s Manual I560 E2 CX Drive Operation Manu
197. topped the status of the variables FW forward and RV reverse is not retained but cleared to zero The variable FW forward and RV reverse are enabled only when the inverter s 1st RUN Command Selection A002 is set to 01 Control circuit terminal block The operation is not performed with other setting options e f you set the variable FW forward or RV reverse to 1 immediately after turning on the power supply the setting is ignored and neither forward nor reverse operation is performed Set 0 first and then set 1 again To avoid this operation create a program that has one sec ond of wait time with such as wait command after turning on the power supply Drive Programming User s Manual 1580 E2 6 59 6 Drive Programming Commands Stop Command Argument Makes the operating inverter decelerate and o stop Stop When a trip is detected by the inverter this com mand acts as a reset Format Flowchart method Text language method V Note 1 The stop command has the same function as the STOP RESET key of the Digital Operator This command makes the operating inverter decelerate and stop When a trip is detected by the inverter this command acts as a reset 2 To prevent the stop command from acting as a reset set the inverter s STOP Key Selection b087 to 01 Disabled With this setting while the stop command makes the inverter decelerate and stop a reset is not performed However note that the Digi
198. tor 4 3 Adding Deleting and Renaming Tasks The Drive Programming Editor will display an empty task by default when it is started from the CX Drive To add a new task select New Tab in the toolbar of the Drive Programming Editor and select New Task flowchart or New Task text A new task appears on the Drive Programming Editor Among the displayed tasks the task which is closer to the leftmost side takes higher priority in process ing in a 2 ms period All tasks must begin with entry command and finish with end command gt eo gt Q e e o o0 as Q C9 Q y 3 Flowchart Text D o o You can delete or rename the selected task by right clicking on its tab in the Drive Programming Editor T Tasko1 M Tas TaskU1 ail Rename Current Task x Delete Current Task entry end Drive Programming User s Manual 1580 E2 4 17 4 Drive Programming Editor 4 4 Inserting Deleting and Calling Subroutines To insert a subroutine select the tab of the task in which you want to insert a subroutine and select New Tab New Subroutine flowchart or New Subroutine text in the toolbar of the Drive Programming Editor A new subroutine appears on the Drive Programming Editor Similar to tasks you can delete or rename a subroutine by right clicking on its tab The subroutine name is displayed as Task name Subroutine name next to the task name to which the subrout
199. ty program syntax parameter input limitation and maximum number of steps If there is any input which is not permitted the compilation is stopped and an error message is displayed The compiler also performs the operations as shown below and creates the final programs after com pilation Therefore if you transfer upload the program once saved in the inverter to the CX Drive the program which is read out is the program after compilation While its operation is the same as before compilation its form and contents are partially different Converts flowchart programs to text programs Automatically converts the label names specified in the program to the following names label 1 label 2 Deletes comments entered in the program Deletes alias definitions and converts specified names to the same ones as before definition Deletes region definitions and converts forms to the same ones as before definition Deletes all spaces and blank lines in the program Performs validity checks la Precautions for Correct Use The specified comments alias definitions and region definitions are deleted when a compila tion is performed for program conversion or transferring downloading to the inverter To save those contents save the program before you execute program conversion or you transfer download the program to the inverter You can save the program by saving the whole project in the CX Drive or export file of the pro
200. ual 1560 E2 la Precautions for Correct Use When the Drive Programming program is stopped the status of the multi function output vari ables is not retained but updated according to the actual function status e MX2 and RX Function variable Description 1 RW Reference RUN SimalduingRUN R COZtoCO026 00 FAT Constant speed arrival signal R CO21to CO26 0i FA2 Set frequency exceeded signal R C021to C026 02 OL Overloadwaming R C02itoC026 03 OD Excessive PID deviation R C021to CO26 04 AL Nemsind o o R C02itoCO26 08 FAS Setfrequency only signal R CO21to C026 06 OTA Overtorque Undertorque signal R C021 to C026 07 UV Signal during undervoltage R C021 to CO26 09 TRO Homw mt R C02itoC026 10 RNT RUN meoer R C02toC026 11 ONT PowerONt meover R C021toC026 12 THM Electronic thermalwaming R C021toC026 13 BRK Brakerelease o R C021toCO26 i9 BER Bmkeemr R C02itoCO26 20 zs 0 Hz detection siga R CO021toC026 2i DSE Excessive speed deviation R C021to C026 22 POK Postonready R C02itoCO26 23 FA4 Set frequency exceeded signal R C021to C026 24 FAS SeHrequencyonlysignal2 R CO21to CO26 28 O12 Overioadwamning2 R C021toCO26 26 ODc Analog FV disconnection detection R CO21to C026 27 OlDc Analog FI disconnection detection R C021 to CO26 28 FBV PID feedback comparison signal R C021 to CO26
201. ue any variable or constant fac This command is a Assign command whose range 1 to 360 000 left hand side is set to the acceleration time Accel variable ACCEL Unit 10 ms Format Flowchart method Text language method Y Note The A052 parameter must be set to value 03 Drive Programming for the command to become effective 9 16 Drive Programming User s Manual 1580 E2 9 LX inverter Decel Command Argument Sets the inverter deceleration time Value any variable or constant fisa This command is a Assign command whose range 1 to 360 000 left hand side is set to the deceleration time variable DECEL Unit 10 ms Format Flowchart method Text language method a Y Note The A052 parameter must be set to value 03 Drive Programming for the command to become effective ba Og 3 lt D U amp d 3 3 5 ro O 3 3 D 5 o o spueuJuJo 0J1UO2 J9JJ9AU Z S 6 Drive Programming User s Manual 1580 E2 9 17 9 LX inverter 9 6 Precautions for Use of Parameters for Drive Programming 9 6 1 Parameters Affected by Rated Current Parameter Description Data No b012 1st Electronic Thermal Level 0 20 to 1 00 x Rated current b212 b016 Free Setting Electronic Thermal Current 1 0 0 to Rated current b018 b020 b022 1st Overload Limit Level Heavy load 0 20 to 2 00 x Rated current b025 1st Overload Limit Level 2 Light load 0 20 to 1 50 x Rated cur
202. umes that the PRG terminal is ON in the case that the Drive Programming Function Selection A017 is set to 01 If the PRG terminal is OFF the Keep stop operation applies to all cases because the pro gram does not run 2 To restart the program set the Drive Programming Function Selection to 00 Disabled first and then change it to 02 Enabled Start stop at power on off Also you can restart it by turning ON the PRG terminal again if A017 01 3 If C102 03 only the trip is cleared by the reset operation The internal calculation data such as current val ues are not initialized Operation status Co i ps d o c Z D o gt o oO e m Q jesoM JO uo uoneJedo BuriuueJ60Jd SAG Z L 9 Drive Programming User s Manual 1580 E2 8 3 8 Errors and Remedies 8 1 3 Alarm Code List This section describes the alarm codes that are specific to the Drive Programming as well as the causes and remedies For other errors refer to the MX2 User s Manual 1570 E2 or the RX User s Manual 1560 E2 Alarm Alarm ONIS cause of inverter trip E43 E44 Nesting count error E45 Command error 1 Invalid command The terminal PRG was Possible cause turned ON although no program was downloaded into the inverter A subroutine is nested over eight levels The for next command is nested over eight levels The if command is nested over eight levels The jump destination of the
203. unction For details on each monitor function refer to the MX2 User s Manual 1570 E2 or the RX User s Manual 1560 E2 Note that the data unit used for the inverter may be different from that for Drive Programming Be sure to use the following units e MX2 and RX Function m Default FM Output Frequency Monitor 0 to 40 000 0 01 Hz Unsigned d001 1 word Use this function to monitor the inverter output frequency The monitored data is equivalent to the data of the Output Frequency Monitor d001 This variable is read only Function Np Default lout Output Current Monitor 0 to 9 999 0 1 Unsigned d002 1 word Use this function to monitor the inverter output current The monitored data is equivalent to the data of the Output Current Monitor d002 The data is displayed in increments of 0 1 as a percentage of the rated current of the inverter This variable is read only JN S S ANE ALIE Dir RUN Direction Monitor 0 Stop Unsigned d003 1 Forward 4 Nora Use this function to monitor the operation direction of the inverter The monitored data is equivalent to the data of the RUN Direction Monitor d003 This variable is read only Function Se Default PID FB PID Feedback Value Monitor 0 to 133 333 0 01 Unsigned d004 2 words Use this function to monitor the PID feedback value The monitored data is equivalent to the data of the PID Feedback Value Monitor d004 This variable is read only Function Default F CNV Output
204. unction Input Variables You can execute the functions allocated to the multi function input terminals by the Drive Programming program The following variables correspond to the functions which can be allocated to the multi func tion input terminals If any of the variables is set to 1 ON the corresponding function is enabled in the same way as when the multi function input terminal is turned ON If any of the variables is set to O OFF the corresponding function is disabled You can execute the functions by the program even if you do not allocate the functions to the Multi function Input Selection MX2 C001 to C007 RX C001 to C008 The Reference column in the following table shows the func tion setting data for the inverter For details on each function refer to the MX2 User s Manual 1570 E2 or the RX User s Manual 1560 E2 e Example If you set FW forward to 1 the forward RUN command is executed FW 1 the inverter starts forward operation FW 0 the inverter stops forward operation and starts deceleration o c 1 c gt o ct o 3 z c e lt Q Z D z D 0 la Precautions for Correct Use e If the Drive Programming program is stopped the data of the multi function input variables is not retained but cleared to zero e he variable FW forward and RV reverse are enabled only when the inverter s RUN Com mand Selection A002 is set to 01 Control circuit terminal block The inve
205. ut terminals as the input terminal variables X 00 to X 11 for the Drive Programming function by setting these multi function input terminals to the general pur pose input MI1 to MI12 You can also use the input terminal variables X 00 to X 11 as word access data which are set to the lower byte by using the variable Xw pute EO Description Data range gorai Data size R W variable data X 00 to Input terminal variable 0 OFF bit R X 11 bit access 1 ON The status of the multi function input terminals S1 to S7 is captured and set as bit size variables This variable is read only e When the Multi function Input S1 to S7 Selection C001 to C007 are set to 49 to 60 MI1 to MI11 General purpose input the status of the input terminals S1 to S7 is captured and set as the input ter minal variables X 00 to X 11 of the Drive Programming Numbers are given to the input terminal variables X 00 to X 11 according to the numerical order of the set general purpose inputs MI1 to MI11 not the terminal numbers S1 to S7 Setting for Multi function Input Selection Function variable C001 to C007 X 00 49 MIT X 01 50 MI2 X 02 51 MI3 X 03 52 MIA X 04 53 MI5 X 05 54 MI6 X 06 55 MI7 X 07 56 MIB X 08 57 MIO X 09 58 MMO X 10 59 MI11 X 11 60 MI12 F i Defaul qs POR Description Data range Grani Data size R W variable data Xw Input terminal variable 0 to 255 Unsigned R word access 1 word The input termi
206. value other than 1 and 2 Stops the inverter and executes the next steps after the endselect command 11 Jumps to the block 1 Top unconditionally Drive Programming User s Manual 1580 E2 6 61 6 Drive Programming Commands Trip Command Argument Generates the inverter trip Value any variable or constant N The inverter stops when it detects a trip range 0 to 9 Trip 0 to 9 correspond to the alarm code E50 to E59 Format Flowchart method Text language method ME V Note 1 Even if an inverter trip occurs in one task the Drive Programming program does not stop the other possible tasks in the program and the processing is continued 2 You can set 10 or greater values by using any variable and constant up to 127 however even if a trip occurs the displayed error code will always be E59 e Example Flowchart Text entry loop am FW 1 if X 01 goto jmp loop te i FY 1 p goto loop end if 01 0 goto Goto jmp 3 4 1 jmp Go toloop Hent Block j In the above example a user trip occurs in the inverter when the input terminal variable X 01 is set to ON Block number Operation 1 Operates the inverter in the forward direction 2 If X 01 is 0 jumps to the block 5 jmp If X 01 is not 0 the program goes to the next step 3 Generates the user trip 1 in the inverter 4 Stops the inverter 5 Jumps to the block 1 loop unconditionally 6 62 Drive Programming User s Manual
207. ve Considering safe control we recommend you to avoid using multiple tasks for control Even if you select MO1 to MO6 General purpose output 1 to 6 for the Multi function Output Selection MX2 P1 and P2 RX P1 to P5 or for the Multi function Relay Output MA MB Function Selection you can select NO NO contact or NC NC contact for the Multi function Output Operation Selection MX2 C031 and CO32 RX C031 to C035 or for the Multi func tion Relay Output MA MB Operation Selection C036 Drive Programming User s Manual 1580 E2 5 7 o Drive Programming User Variables Analog Input Terminal Variables XA 0 to XA 2 You can use the inverter s frequency reference input analog voltage input FV terminal and the fre quency reference input analog current input Fl terminal as the analog input terminal variables XA 0 and XA 1 of the Drive Programming function For the 3G3RX Series Inverter it is also possible to use the frequency reference auxiliary input analog volt age input FE terminal as the analog input terminal variable XA 2 of the Drive Programming function You can continuously monitor the status of the analog inputs regardless of the parameter settings Function Wen Default XA 0 MX2 and RX 0 to 10 000 0 01 Unsigned Analog input terminal variable 1 word between FV and FC termi nals O to 10 V input XA 1 MX2 and RX Analog input terminal variable between Fl and FC termi nals 4 to 20 mA input XA
208. wchart method Text language method lt result gt lt value gt Y Note If an overflow or underflow occurs the Drive Programming detects it as an error Take neces sary measures in the application so that they do not occur 2 7 u rae Ho ura O G 17 mod U D5 u a7 end 17 mod U 5 abs UL 87 e Example Flowchart Text E entry entry s u ee 280 U04 Umar 2 U 1 u ee U 82 U uU 81 E u 3 u ea 180 jos uio z ua U 4 z U 3 2 u 85 z u e8 u e3 3 9 Upo2 uo up U 07 abs UL O7 4 3 Block number Operation 1 Assigns 200 to U 00 Assigns the value of U 00 to U 01 Assigns the sum of U 00 and U 01 to U 02 Assigns the difference between U 00 and 100 to U 03 Assigns the product of U 03 and 2 to U 04 Assigns the quotient of U 00 and U 03 to U 05 Assigns the remainder after dividing 17 by U 05 to U 06 Assigns the absolute value of UL 07 to U 07 CO Ni O1 BY GW DO Drive Programming User s Manual 1580 E2 6 23 o gt 2 3 D et o O o D R et O M 5 o r O e o m O o D D et o 5 O O 3 3 D 2 a 6 Drive Programming Commands Addition Command Argument Adds value 1 and value 2 gt Result any variable Value 1 any variable or constant range 128 to 127 Value 2 any variable or constant range 2 147 483 648 to 2 147 483 647 Format Flowchart method Text languag
209. wing table shows the operation for each case e Reset input method e To restart the Drive Programming set the Multi function Input Selection MX2 C001 to COO7 RX C001 to C008 to 18 RS Reset and turn ON the corresponding input terminal You cannot restart the Drive Programming by pressing the STOP RESET key of the Digital Oper ator or the LCD Digital Operator optional e Reset Selection C102 Torestart the Drive Programming by reset input it is necessary to set the Reset Selection C102 to the value other than 03 Trip reset only You cannot restart the Drive Programming when 03 Trip reset only is set When the Reset Selection C102 is set to 00 Trip reset at power on or 01 Trip reset at power off the Drive Programming can be restarted by a reset input even when there is no trip When the Reset Selection C102 is set to 02 Enabled only during trip the Drive Programming can be restarted only when there is a trip detected by the inverter It does not restart with a reset input when there is no trip in the inverter Reset with Operator s Program Trip STOP RESET key or 01 or 01 ming operation status During Restart Restart Keep run Keep run Keep run Keep run oie em Beet Meee iene ee During Normal Restart Keep Keep Keep Keep Keep During Restart Restart Keep Keep Keep Keep Inverter s reset operation Normal Reset Disabled Disabled Reset Disabled Disabled Tous Pee nomen ee trip 1 The table ass
210. xecuted waits until the eepwrt command is completed and then goes to the next command 3 Avoid executing the eepwrt commands simultaneously in multiple tasks or executing them in a row Each eepwrt command requires up to 10 ms processing time If you execute the eepwrt commands in a row the second command is executed after the first one is completed During that time the task which executed the eepwrt commands in a row does not goes to the next command and enters a waiting state If multiple eepwrt commands are executed in a row processing for other tasks may be delayed or an error may be detected due to insufficient processing time 4 f you execute the eepwrt command within a second after turning on the power supply the process ing is not performed correctly Create a program that has one second of wait time with such as the wait command after turning on the power supply 5 The inverter s built in EEPROM has a limit on the number of writing approximately 100 000 times Therefore if you use the eepwrt command frequently the inverter s service life may be shortened Consider taking the following measures in the program Create a program so that the latest data before turning off the power supply is written to the EEPROM Create a program so that writing to the EEPROM is performed only when the data such as parameters are changed Use the user parameter variables U 29 to U 31 to save the d
211. xes The new project is registered in the workspace S Workspace1 CX Drive Drive1 File Edit View Drive Tools Window Hel Z xl g 2 Drivel Offline Ez Parameter Editor Ez i Graphs Cl m Status Monitor gal Settings x Drive Programming Drive Programming User s Manual 1580 E2 4 Drive Programming Editor Starting Drive Programming Editor There are three ways to display the Drive Programming Editor Double click the Drive Programming in the workspace e Click E button on the CX Drive toolbar From the Drive Menu select Program Program Editor el Workspace CX Drive Drive Drivel 1G3RX A4015 T1I PRG4445 Program ditar PA Fie Fill wea Deve lids Wiese Hel ox NA sd LBA pR SR mM eH een Drivel Offline Ef Paareter Edtcr y Bap rg Slats a Mi niin Eg Seting 2 X Dive rxeraniring 1 Paamrchers T Tass l Joyipy BuruueJ604d 9Aug Hues v P equis am arule e le Prog ar Co tiol Ccrimands Y athiretic Command Irput O tp t Cotiol Commands 7 net Cortol Commas Parameter Con rcl Commands Irveitec Cortol Commands A 2D Ga VF 201 337272 M nli 24D ive ulpul Erior Lst cr Help press F1 SGER A1015 EIF Th0 45 Precautions for Correct Use To start the Drive Programming Editor for the first time after you started the CX Drive a pass word is required Please contact with your sales representat
212. y compiled In this case transferring to the inverter or converting between flowchart and text is not performed Even in the case of successful compilation warnings may be displayed to show points to correct in the program The error list is updated automatically every time a compilation is completed and fixed errors and warn ings are cleared The Output window is displayed by default at the bottom of the CX Drive You can separate the window by double clicking the title bar wide frame of the window 9 3 Errors 1 0 Warnings i 0 Messages Date Component Description N 0032013 15 36 25 Program Editor o 08 03 2013 15 35 25 Program Editor Bl Flowchart element not properly connected Jump connectors should lead to already connected blacks o 08032013 15 35 25 Program Editor Bl All elements in this flowchart must be fully connected Output Error List l3 3 Errors Errors button switches the display of errors in the list I U Warnings Warnings button switches the display of warnings in the list i Messages Messages button switches the display of informative messages in the list The messages in the list contain the following information Information Description Date Shows the date and time when the error occurred Component Identifies the block with an error Name Shows names or descriptions of the error or warning message Drive Programming User s Manual 1580 E2 4 Drive Programming Edi
213. zi D c D o Function variable Parameter Setting YA 00 Set the MP Selection C027 to 12 Drive Programming YA 0 YA 01 Set the AM Selection C028 to 13 Drive Programming YA 1 YA 02 Set the AMI Selection C029 to 14 Drive Programming YA 2 Use the inverter parameters C105 to C107 C109 and C110 to adjust analog output la Precautions for Correct Use When the Drive Programming program is stopped the data of the analog output terminal variables before the program stop is retained When the program execution is started again the process begins with the retained data However the outputs with the Drive Programming not set are controlled as the inverter s analog outputs independently of the program he multi function digital output PWM output MP terminal provides PWM signal outputs The terminal outputs the value of 0 00 to 100 00 variable as the pulse width duty ratio t T in a 6 4 ms cycle PWM output Cycle T Constant 6 4 ms Duty ratio t T Variable Drive Programming User s Manual 1580 E2 5 9 5 Drive Programming User Variables 5 3 Timer Variables This section describes the timer variables provided for the Drive Programming s timer control com mands I Timer Variables TC 0 to TC 7 and TD 0 to TD 7 These are the timer counter variables and the timer output contacts used in the timer control com mands of the Drive Programming When the timer output contact is specified in the timer
Download Pdf Manuals
Related Search
Related Contents
SureTrack Quick Start Guide for MODIS Ultra and SOLUS - Snap-on SD-2 IT METRAPHASE 1 Indicateur d`ordre de phases - GMC Remote User`s Guide - ENGLISH - Pro-Lite Guía del usuario de Lexmark Z2300 Series Sony TC-WE825S User's Manual Notice d`instruction Samsung HT-TP75 Kullanıcı Klavuzu Manual Opel Movano 2012 Copyright © All rights reserved.
Failed to retrieve file