Home
Logic Programming Guide - Pro
Contents
1. In a conventional PLC the area used to store data is called a device address These addresses are given specific names by each PLC manufacturer PLC Manufacturer External I O eima Timer Bata Relay Register Mitsubishi X001 M 100 T200 D00001 omon o im Tmo DN 0000 Corporation Time et With the LT Editor you can assign names to these device addresses and use them as variables in the logic program PLC LT Editor switch Off Timer Timerstart TON IN i Ott FOIPT ETO Manuafacturer s Device Address Variable Name User defined name LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 7 1 Chapter 7 Variables Sr In LT Editor Ver 1 03 or later the preprogrammed variables listed below Note are registered in the following files in the LogiTouch SAMPLE folder Variable Sample I TypeA Ite Variable Sample II TypeA Ite and Variable Sample III TypeA Ite Variable Sample I TypeA Ite Timer Variable Sample II TypeA Ite ounter 0 to C31 Counter imer 0toT31 imer egister 0 to D 255 Integer etentive relay 0 to L 255 iscrete R etentive Non global Internal ink relay 0 to B 127 iscrete ink register 0 to W 127 Integer nput relay 0 to L 15 iscrete utput relay Y 0 to Y 15 iscrete i J i gt lt O J Variable Sample III TypeA lte wice We eae ounter ounter on retentive G lobal Internal me FIMO WTSI Time n etentive re
2. cccccccsssssscsssssssscccssccssossccsssescoscccssssssosscesscsess 8 3 Beal BeOS LOGIC TIMMS pipes tare E E EE 8 3 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 13 C AV e TS Serene wrasse ecerconceamesaninrarsenon anes T eneiaos states 8 3 i HAG e E donucentadaepapedsdipoets deusoveadaucestasaanesties 8 4 Dar 2 0 0 amp 7 10 E E On ce eee ee 8 4 Fee OS a E E ere en eer en ey 8 5 02 0 FLOSC MG areec E RERA 8 5 oad AMON E E E E I S 8 6 WMA ARF VA ON EE E E T 8 6 oR ate E 6 1 1B 6 10 E E E T ee E ET 8 6 l E a A AAR 8 7 ol A eE E E EEE E 8 8 Sa a NN enaa AE E E ETE 8 9 BV O E E EE EE E EE 8 9 eh PYCA canes does pak En ESEESE 8 9 0 Fa le ME a 2101 5 G0 d caer A EN eon ary eT Tenn meen Oren ee ny 8 10 Ze Fe AU URC e anosensescasaanaceosen seaeataestemecwsterwasageawosesoats 8 11 Ol MORIO ee E 8 12 Ora FOE r EE A EE EEEE 8 12 G19 FCO oee E SE EE R 8 13 8 2 20 DisableAutoStart scessccrscsetctnsedsartosctolanssevanecascsets toeederstesciblacsadeates 8 13 ee OU a E E sasencteseiyerasiayecad 8 13 8 2 22 Fe UO OE sierisisesninisnnni nini 8 14 Oo A CLC CIE oera E E A 8 14 DA CW E E E E E eid 8 14 Bie E el SCAM E E A E 8 15 6 220 F Wat hdo TINE sen Vossen enon aesieeelonnGucteseention 8 15 21 noman LI ioir EE E EEEE 9 1 922 Tnsmucon Detalls serrer rein erea 9 5 92 1 NO Normally Open ssssisisissidsssrsssisincssiissssncndsisieridossssisdaieiorid ssns 9 5 922 NC Normally Close smisresseisendir ren E EN EAE 9 6
3. LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 9 33 Chapter 9 Instructions are NE Compare lt gt A Data NE EN E B Data A B The NE instruction passes power 1f A is not equal to B The following table lists the combinations of A and B in which NE instructions can be executed Integer Constant Integer Constant Real Constant Real Constant Ste Real values need to be compared very carefully For example a calculation might result in 1 99999999999 which is not equal to 2 Example After Start is turned ON Run mode is triggered when the values of Data A and Data B are not equal exe TON Timer ON Delay IN Timer starting bit Variable PT Preset time of timer a ail Q Time up flag PTET ET Present value of timer When the timer input bit IN receives power the TON instruction adds the preset time PT in milliseconds and the timer output bit Q turns ON Overview Special Variable Variable Type Timing Bi 9 34 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 9 Instructions When power is passed to the timer starting bit IN the TON instruction starts and e Variable ET the elapsed time begins to increment in milliseconds e Variable TI the timing bit turns ON e Variable Q the timer output bit turns OFF When the elapsed time Variable ET increments and equals the preset time Variable PT e Variab
4. E To use the Cut command 1 Click on rung 4 The entire Rung 4 is selected 2 From the Edit menu select Cut The rung is now taken from the ladder logic program and placed on the clipboard 3 Click anywhere on rung 8 4 From the Edit menu select Paste Rung 4 is now appended to below rung 8 The end of the program now appears as follows Fill Timer noda valve TON g _1P IH A OFF 4000 PT a ae 10 END GX re To move an entire rung to another part of the program first select the rung and drag NY it using the middle of the rung to the new location lt Summary gt In this section you have learned how to copy cut and paste rungs 1 32 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program IWA Subroutines and Labels When a JSR jump to subroutine or JMP Gump instruction is inserted in a rung it tells the Controller to resume scanning starting at that subroutine or label The main difference between a subroutine and a label is that Editor executes a subroutine and then returns to the point in the ladder logic directly after the JSR instruction If Editor jumps to a label through the use of the JMP instruction it continues executing the ladder logic program at that point and does not return to the JMP instruction during that scan For more information on the JMP and JSR instructions see the 9 2 41 JMP jump 9 2 42 JSR Gump to s
5. C LogiTouch SAMPLE All examples used here assume that the ladder colors and preferences use the system default lt m E Before Editing E To execute the example program 1 Open Soda lte file It is included as an LT Editor sample program and is located in C LogiTouch SAMPLE 2 Write this program to the Controller 3 Go On Line to the Controller 4 Start the Controller For Controller operation refer to Chapter 2 Running the Ladder Logic Program E LT Online Program Change Features On Line editing features are restricted for the LT platform however the following changes can be made to a program while it is running On Line in the Controller e Turning ON OFF discrete variables e Integer value changes LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide c Chapter 3 On Line Editing waa Using Colors for On Line Editing The Logic Program Editor uses default colors to indicate specific aspects and changes to a ladder logic program while running On Line The default colors are coor earning ndicates circuitis charged Red ndicates an error has occurred ndicates online edit feature is being used E To Change the Color Defaults in the Logic Program Editor 1 From the View menu select Colors and the Colors dialog box appears Element treet Anew on Parameter Value Powered State Program Description Rung Description
6. Above the TON instruction a black highlighted area will appear This is where you enter the variable to be assigned to the TON instruction Next to the Preset PT element is another black highlighted area This is where you enter the preset time in milliseconds 1 22 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program 2 Double click on the black highlighted area above the TON instruction to select the Instruction Parameter Box Here you can assign a timer variable to the instruction a Enter a variable name here Instruction Parameter Box n Q DFT ETIO 3 Next double click on the area immediately to the left of the PT element in the TON instruction The Data Value dialog box opens Here enter the preset time in milliseconds that will elapse before output Q is turned ON Assigning variables and other operands to instructions will be discussed in the next sec tion 4 Close the Data Value dialog box IWY Entering Variables One method of entering a variable into an Instruction Parameter Box is to type directly into the box E To enter text in the Instruction Parameter Box 1 Double click on the OUT instruction s Instruction Parameter Box on rung 3 2 Type Light in the box 3 Press the ENTER key The following dialog box appears asking you to confirm the creation of the variable Ladder Editor Okay to create the variable Light of typ
7. Chapter 7 Variables E Variable Attributes Variables have the following attributes in addition to the variable type Internal Used internally by the LT It cannot be used for external input output Internal variables are equivalent to PLC internal relays internal registers Input Output External input output 1s available Assign variables to I O in the Configure I O window This feature is equivalent to the input output relays of the PLC For I O configuration details refer to 1 9 I O Configuration Retentive Retentive type variables use the LT unit s SRAM which preserves data values in the case of a power failure The initial values for these variables are set via Pro gramming mode When the LT unit is powered down or reset all current data is retained However when the LT unit s Controller is reset in Monitoring mode or by using the Command or when logic programs are downloaded all data is initialized using Programming mode preset values In addition reading the LT unit s lte files will save the execution results to the Editor However be careful when using retentive type variables as initial values If these variables are designed to vary while the logic program is being executed the predetermined initial values will be lost when the data is loaded into the Editor Non retentive variables are either cleared to O or set to OFF Global These variables can be designated as either global or non glob
8. LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide MANUAL SYMBOLS AND TERMINOLOGY This manual uses the following symbols and terminology E Safety Symbols and Terms This manual uses the following symbols and terms to identify important informa tion related to the correct and safe operation of this product Symbol Indicates a potentially hazardous situation that could result in serious injury A or death WARNING Indicates a potentially hazardous situation that could result in minor injury or equipment damage a Indicates a potentially damaging action or dangerous situation that could result in abnormal equipment operation or data loss ak Indicates instructions or procedures that must be performed to ensure ret correct product use Caan E General Information Symbols and Terms This manual uses the following symbols and terms for general information Symbol Provides hints on correct product use or supplementary information Indicates an item s related information manual name chapter WUE section sub section Refers to keys on the computer keyboard E Keyboard Compatibility List Indicates peripheral devices such as temperature controllers inverters etc Itdoes notinclude devices connected via the F lex Network or DIO Generic name for the LogiT ouch Series Graphic Logic Controller made by Digital Electronics Corporation ETEA Indicates Digital Electronics Corporation s L
9. To set a Bookmark you must signify the exact point where you wish to return to Anything you can select or highlight can be a Bookmark For this demon stration the NORMALLY CLOSED CONTACT NC instruction on rung 3 is set as a Bookmark E To set a Bookmark 1 Click on the NC instruction on rung 3 2 From the Search menu select Bookmark The Bookmarks dialog box appears Bookmarks Bookmark name Power ott Close ASMA f 3 Type Power Off in the Bookmark name field then click on ADD The Bookmark has now been set Thus whenever you select Power Off and click on Go To to return to your Bookmark you will return to the NC instruction on rung 3 If you wish to set a new Bookmark simply select a new point on the ladder logic and repeat steps through 3 The Logic Program Editor supports the use of multiple Bookmarks E To go to a Bookmark 1 From the Search menu select Bookmarks The Bookmarks dialog box appears 43 Bookmarks Bookmark name Power off Close Delete Go To ato Ea Help 2 Select a Bookmark Name from the list then click on Go To Wherever you are in your ladder logic program the LogiTouch Editor automatically takes you back to where you placed the Bookmark Note You can use the CTRL M keys to open the Bookmarks dialog box LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 39 Chapter
10. i 6 wl se Ce o ae re feo oa se a A a New Value 3 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 9 25 Chapter 9 Instructions WIE ADD Add A Data ADD B Data m C Destination Variable B When the ADD instruction 1s executed A and B are added and the result is placed in C If both A and B are Integers or Integer constants the ADD instruction performs an Integer addition Otherwise the instruction performs a floating point instruction which may reduce the processing speed The ADD instruction always passes power The following table lists the combina tions of A B and C in which ADD instructions can be executed B J i Integer or Real Integer Constant Integer Constant Integer or Real Real IntegerorReal Real Constant Real Constant Integer or Real ote Ifthe result C exceeds the range expressed with the variable data type in C Over as flow turns ON and the result of ADD is undefined 8 2 15 Overflow e If either A or B are Real both are converted to Real prior to the addition How ever if C is an Integer the number is truncated after the decimal point since the result is placed in C Example When Start is turned ON Data A and Data B are added and the result of the operation is stored in Data C Start aa SUB Subtract A Data SUB EN ON B Data A r C Destination Variable B When the SUB instruction 1s executed B
11. 1 0 Operation Manual Logic Programming Guide 12 3 Chapter 12 Error Messages E Program Errors S The following table explains the LT Editor s logic program operation errors Error Type Possible Problem Solution Control Memorypoweris Battery Alarm Change Battery cutand Hold Area data is not preserved Memory Alarm Exchange Unit Download the projectfile again Program Malfunction Program transfer mistake om l ihe eae with LT Editor Data is output from I O even When output data performs RUN ST OP Disable this feature inSTOP mode Switchover I O outputhold is enabled Modify the program Check the contents of the F aultCode data Also check ifthe System variable Command has been written to LT Editor cannot enter Monitoring mode The data transfer cable used to send Check whether the data The logic program files data from the screen creation software transfer cable is unplugged or Cannotbe downloaded from to the LT unit may be loose or if there is noise interference If LT Editor disconnected the problem continues please The project prw file Also the PC or LT S powermayhave contactyour local Pro face Cannotbe downloaded from dropped causing excessive noise distributor for assistance theLT Editor Data cannotbe read from or Po Enable 1 0 is notselected Setthe Enable 1 0 written to the I O I Enable I O is used to input and output data between the LT and I O units After down
12. 34S NNN Start Motor l l A B A When the Start variable turns ON the Motor variable turns OFF B When the Start variable turns OFF the Motor variable turns ON 9 6 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 9 Instructions ee OUT M Output Coil Variable The OUT instruction is used to turn ON OFF the variables mapped to the I O or the Discrete variables in the internal memory Since this instruction is a coil type output instruction only one instruction can be used for each rung Other instructions cannot be used on the right side of the output instruction The output instruction should be placed immediately left of the right hand power line When the variable mapped to the OUT instruction is retentive the following symbol is displayed in the logic program i The following diagram is an example of the OUT instruction s function Start L Motor l l l l l l l l A B A When the Start variable turns ON the Motor variable turns ON B When the Start variable turns OFF the Motor variable turns OFF Note The OUT instruction can be used only with non retentive variables With retentive XV variables use the M Retention Coil instruction LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 9 7 Chapter 9 Instructions ye NEG Negated Coil Si Ne 9 8 ote Variable When the NEG instruction is execut
13. 923 OUT M Output Coil srssssssimissirsisrnpiisrsn ganant 9 7 Deka NEG Nerad CO oessa nR e 9 8 Paa LTO O D N E E 9 9 9 2 6 RSF Reset Coil cesicccrcnciscnpucensusesecswasencatvesedeoivenscecabaneccbecweacaceasts 9 10 9 27 PT Positive Transition Contaci aserria a 9 11 9 2 8 NT Negative Transition Contact ssseessssssssseeessssssssseerrsssss 9 12 TO ANDAN ea E E E EAS 9 13 14 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide ze UO me a O ene ee ener ce rrr ee ee 9 14 9 2 11 XOR Exclusive ORD sicsenccccose cacavcoeacessenenecercessdacdese disawesencpeboonteseees 9 15 a Wp aa NORD DY ol ge eee ae re E 9 16 Dao MON Saco ich io op cee nee oe ee Ere en E Ene eee ee ee 9 16 9 2 14 BMOV Block Transfer oo ceccceecceeecceccessseeeseessseeeees 9 18 9213 FMOV Ti Tans ei el ee E 9 19 9216 ROL Rotate Lei srren EE nE 9 20 92 17 ROR Rotate Right or geccrpcudunsstoncdalespoesunscrsegeierocutansdsentslesentumueciacees 9 21 ae SA Go E e E AEE 9 22 92 19 SHR SMER ODi sae i r 9 24 ee ADD A a E EE arene 9 26 922k SUB SUDU AC eea EEE E eias 9 26 9 2 22 MUL MUH pIY coctscsucsssedesturscacaceatacacnosteasmessadennodnanestneaneosesesie 9 27 Tao DNDI a A E IA IAE OE AA EA 9 28 DeLee MOD MOdUl sS cc cancesccresosnaranrexcenoseapesaniecs n E Erai 9 29 9 2 25 INC Increment sseessessenssenssesssesssssssesssesssesssesssrsserssersserssersse 9 29 9220 DEC De re NEn eaa EE 9 30 gaal EO COMI O eer
14. Close Setup Remove Wma ppa Export I ie h Help LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 43 Chapter 1 Creating a Program E To set up the Flex Network driver When assigning the B unit s built in I O setup the following driver first The DIO built into the LT Type B is treated as a single Flex Network station Model Code FN XY 16SK S No Select a number that will not overlap with other connected devices In this lesson select 1 1 Select S No 1 FN XY16SK 2 Click on Setup The I O Unit Setup dialog box appears 140 Unit Setup 7x Model Code 170 Setup FMV ORTS EN oy Teoh aE Input Points 16 Change 70 Setup 3 Select FN XY16SK from the Model Code field 4 Click on OK The Configure I O window appears as follows Configure 1 0 O Displayed underneath S No 1 FN XY16SK are 16 input terminals and one output terminal for a 16 bit word associated with the Flex Network module displayed You will assign variables to them later in this tutorial FI F 6 Up to 63 units when 2 lines are used can be connected with the Flex Network driver Use the same method for selecting a module for another unit 1 44 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program E To click and drag variables to the I O terminals follows You can use the f
15. If constant scan time is set to 5Oms and logic executing time is 20ms Graphic processing time 50ms 20ms 30ms The longer the logic time the shorter the graphic processing time will become Though LogiTouch display response will be slower the logic program will ex ecute constantly value for constant scan mode the scan time is automatically Important adjusted so that it is twice as long as the logic time Example When the logic time is 30 ms and the constant scan mode is 50 ms the scan time is 60 ms ura When the logic time exceeds 50 of the designated setting iin e Make sure to enter the setting value for the scan time in 10 ms increments D e When determining the value for the setting time use the AvgScanTime value obtained from a test run of the LT 8 2 2 AvgScanTime 6 6 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 6 Controller Features E Percent Scan Mode This mode varies the scan time according to the percentage set by the logic time This feature sets the priority to screen operation speed and screen switching speed required during Logic Program execution Scan Time Logic set time screen processing time 100 variable I O Input Data Read Logic Time Processing time for logic program Set by percent age variable Stop Operation Logic Program Execution I O Output Data Write Graphic pro cessing time Total sca
16. Logic Programming Guide 1 53 Chapter 1 Creating a Program Variable List This option allows you to print a variable list Click on Options to select the items you wish to include in that variable list Yarnable List Options fll 1 0 Address hil Value J Attribute Jri Description Cancel Hh Help Type Displays the variable type O Address Displays the I O addresses of all assigned variables Displays the data value of all variables Attribute Displays the Retentive and Global settings Descriptions Displays any descriptions given to the variables I O Configuration This option allows you to print your I O configuration References This option allows you to print a cross reference report showing all instances of all variables Cian You can also print your program by clicking on in the tool bar D lt Summary gt This section explained how to select which aspects of your ladder logic program you wish to print 1 54 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program IAPA Importing Exporting a Logic Program The Logic Program Editor allows you to export a logic program exclusively for use with the GLC wll Conversely a logic program file wll can be imported for use as a project file for another LogiTouch lte E To Export a Logic Program 1 Select the Export command from the File menu E Logic Pr
17. This creates the Run variable Namen o m faena l Cancel i 17 Input Spplly Nat Assigned i Output Create Tanjay kL Em Clary Se Til Retentive Til Global 24 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Setup Guide Tutorial 4 Create the Logic Program A logic program can be created by simply inserting instructions in a rung 1 Click on START Rung 1 and then click on the Tool Bar s Ps icon Be sure to select START when creating the first rung Tt Logic Program Editor noname File Edit View Search Insert Data Controller Help Program Description imo TART 2 END 3 PEND 2 Click the Tool Bar s HF icon to insert a Normally Open contact in Rung 2 Next on the same rung click fF twice to create two 2 Normally Closed contacts Last click fo to create a Coil 1 START 2a gg e 3j END 3 From the Menu Bar s Data menu click Variable List Select Run from the list of variables that appear and without releasing your mouse button drag and drop Run to the far left side Normally Open contact 44 Variable List File Edit View Data Help 1J START Internal atchdogT ime Integer HWCLS car Integer Internal Run PWCL Status Integer Internal 2 Ham O Integer Internal Discrete Output Discrete Internal Sensor Discrete Input 11 0 3 a Off 3j END LogiTouch Edito
18. me Watchdog timer mg w Disable controller auto start T Enable 170 T Stop on minor fault When you set parameters on the Tuning tab you are setting the parameters the ladder logic program uses when it is written to the LT Controller From this point onward whenever this particular program is run the LT Controller uses these settings unless they are changed These settings are unique to this program Controller Tuning options are explained below LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 21 Chapter 2 Running the Ladder Logic Program Option O O Desnipion OO O O Target Scan In Target Scan Time System Variable TargetScan enter the amount of Time time in milliseconds you would like each scan of your program to take Note If the logic time exceeds the 50 of the scan time the Scan operation is not guaranteed Specify the setting in 10 ms increments In Percent allocation System Variable PercentAlloc enter a value in to designate the scan time by the percentage of the whole dealing time The 1 ms place of the calculated scan time is round up Watchdog When a logic program alarm occurs that delays the scan so that the value Timer entered here is exceeded a Major Fault alert occurs The system variable WatchdogTime also can be used for this setting 8 2 26 Watchdog Time Disable Only when the LT OFFLINE mode s MODE WHEN POWER IS ON selection Controller Auto is
19. the instruction performs a floating point instruction which may reduce the processing speed The MUL instruction always passes power The following table lists the combina tions of A B and C in which MUL instructions can be executed A S OSB i OSO Integer or Real Integer Constant Integer Constant Integer or Real Real Integeror Real Real Constant Real Constant Integer or Real ote If the result C exceeds the range expressed by the variable data type in C Over Ned flow turns ON and the result of MUL is undefined 8 2 18 Overflow e If either A or B are Real both are converted to Real prior to the multiplication However if C is an Integer the number is truncated after the decimal point since the result is placed in C LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 9 27 Chapter 9 Instructions Example When Start is turned ON Data A is multiplied by Data B and then the result of the operation is stored in Data C Start ware DIV Divide A Data Dry EN DN B Data i r C Destination variable B When the DIV instruction is executed A is divided by B and the quotient is placed in C If both A and B are Integers or Integer constants the DIV instruction performs an Integer multiplication Otherwise the instruction performs a floating point in struction which may reduce the processing speed The DIV instruction always passes power The following table lis
20. 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program ieee Copying and Pasting Instructions Here you will copy the instruction inserted into a rung and paste this instruction into another rung E To copy an instruction 1 Click on the instruction you wish to copy 2 Right click and select Copy Instruction or select the Editor menu s Copy Edit View Search Insert Data Contre gi Undo Changes to Rung3 Ctrl Edit Instruction Undo Changes to Rung 2 Cut Ctrl LUOU Copy Ctrl C Cut Instruction Paste Ctra Copy Instruction Delete Del Paste Instruction Select Range Delete Instruction Edit Instruction Enter Description Ctrl D E To paste an instruction 1 Click on the place you wish to insert the copied instruction 2 Right click on the Paste Instruction or click on the Edit menu s Paste a Logic Program Editor noname _ File Edit View Search Insert Data Undo Changes to Rung 3 Eannak li L Cannat Upda Delete Branch Insert Instruction Paste Instruction Light AM G m g Belete Select Range Description Ctrl D Power On pushbutton 3 p Of 3 Now the copied instruction is pasted inserted into the desired rung 5 l JE Gf LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 17 FowerOfButton Chapter 1 Creating a Program ULA Inserting Branches This section explains ho
21. 1 Creating a Program E To change the position of a Bookmark 1 Select the new position in the ladder logic program 2 Select the Bookmark name you wish to reposition 3 Click on Update in the Bookmarks dialog box Reems Using the Go To Rung Command The Go To Rung command allows you to move the focus to a specified rung in your ladder logic program E To use the Go to Rung command 1 From the Search menu select Go To Rung and the following dialog box will appear 4 Go To Rung Rung Number pennies om 2 Enter a Rung Number 3 Click on OK You are now positioned at the specified rung IE A W Using the Go To Label Command The Go to Label command allows you to jump to a specific label in your ladder logic program E To use the Go to Label command 1 From the Search menu select Go TO Label The Go To Label dialog box appears Go To Label Labels START END Reset_Counters Ok Cancel PEND Help 4 aE 2 Select the label to go to 3 Click on OK You are now positioned at the specified label lt Summary gt This section has explained how to use Find References Bookmark Go To Rung and Go To Label commands 1 40 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program L amp E I O Configuration Once you have finished constructing a ladder logic progra
22. 1 1 0 0 0 0 0 1 0 Entering 386 8 Point p v yy vy Output Unit 1 0 0 0 0 0 1 0 Outputs 130 lt For FN AD04AH FN DA04A H gt I O Monitor Channel Setting The system switches successively through the selectable settings when the channel area is pressed 0 MONITOR SETUP nex CH When the NEXT button is pressed the system switches to the next I O MONI TOR screen The screen is different for FN AD04AH and FN DAO4AH LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 11 7 Chapter 11 I O Drivers lt For FN AD04AH gt I O Monitor This displays input data 0 MONITOR CH SNe 4 INPUT RANGE 0 44 air 0 4095 gt EEEN EE Pressing the RET URN button returns control to the I O MONITOR screen A D Conversion Table input Range Setting 1 405 1 105 0 10V 0 4095 B 2047 10 10V 2048 2047 0 20mA 0 4095 4 20mA 0 4095 m Important The filter type A D conversion sampling counts and maxi mum minimum elimination settings will operate under the settings saved in the I O unit To change the settings saved in the I O unit change the settings via the LT Editor first then download the ladder logic program to the LT The changed settings will become effective when the ladder logic program is set to RUN mode The setting for the Range Selector switch is loaded into the unit o
23. 14 15 E 6 PowerOff_pushbutton 11 0 6 1 Click the Export button on the Configure I O window Save the variables assigned to the I O of the LT Type A in a CSV format file i Save As Save irr E database F i A ae l 2 In the New LT Type in the Project Manager change the model type from Type A to Type B 1 1 How to Start the LT Editor 3 Open the Configure I O window via the Logic Program Editor Select S No 1 FN X Y16SK and then click the Import button Select the previously saved CSV file and click on Open PAJ GLC Example cev File name GLC Example Files of type 120 Info file cev H EA LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 49 Chapter 1 Creating a Program 4 The variables are imported from the CSV file and assigned to the LT Type B unit s I O FN XY16SK gt Configure 1 0 lex Network Driver ID 41 Speed 6M bpa E 0 PowerOn_pushbutton 11 1 0 E ele41 1 2 zi Ez E 21 1 6 E I7 Hiap E 18 g 19 110 111 112 113 E 114 WF 116 lt Summary gt This section explained how to e select an I O driver e configure the Flex Network driver e use variables assigned to I O 1 50 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program WALI Checking the Validity of a Program Before running a ladder logic program online use a va
24. 2 etc LogiTouch Editor creates an appropriate type of variable automatically as soon as a new variable name is entered either in Parameter Box or the Configure I O window E Watchdog Timer Detects an error if the program did not finish running up to the END rung within a certain length of time To set Watchdog Timer select Setup from the Con troller menu and enter time in millisecond in the Watchdog Timer box in the Tuning tab E Word A storage element containing 16 bits of information A word may be assigned values ranging from 0 to 65535 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Controller Features mi Operating the LogiTouch The LT contains both screen display and I O control features These features and their respective modes are described below LT Features Operation Controller Features RUN Mode Constant Scan Mode Mode Control Features Logic Program Runs the Logic Program Read Write I O RUN Mode at the designated time Display Mode Percent Scan Mode Screen Display Designates the percent of Data Transfer with a single scan used by the PLC temperature controller s program OFFLINE Mode controllers inverters Initial Settings etc STOP Mode Screen Data Transfer Halt Logic Program Mode Self Diagnosis Allows the editing writing etc of the Logic Program e Understanding the LT s operation modes is critical for design ing a system Ple
25. 5 7 END 6 PEND ie You can also insert a rung by selecting Rung from the Insert menu or by clicking N on Ml in the toolbar Iera Deleting a Rung E To delete a rung 1 Select the rung you want to delete In this example click on the number 2 the rung number on the left side of rung 2 2 Press the DELETE key or right click on the rung and click on the Delete Rung selection The Delete dialog box will appear 3 Click on OK an As with other Windows applications the LogiTouch Editor has an Undo command NY From the Edit menu select Undo Changes to XX or click on ey in the toolbar 1 12 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program wee Inserting Instructions There are many ways to insert instructions into a ladder logic program and assign variables to them As you create the ladder logic program in the tutorial these methods are described and used E Selecting a rung to insert instructions 1 Here you are inserting instructions on rung 2 Click on anywhere on the rung 2 line to select it but not on the number 2 itself The selected rung will then be highlighted as shown below 2 Once you have selected this rung you can insert instructions One way to do that is from the toolbar The Logic Program Editor toolbar contains the following buttons Click on these buttons to insert instructions into a sele
26. 62nd Bit First Element s 29th Bit As a result since Water_Sales X 61 Water_Sales 1 X 29 both can be used to access the 62nd bit of the Integer array Water_Sales e To access the 6th byte of the Integer array variable Water_Sales both Water_Sales B 5 and Water_Sales 1 B 1 can be used e To access the 5th word of the Integer array variable Water_Sales both Water_Sales W 4 and Water_Sales 2 W 0 can be used Note Water_Sales X 61 and Water_Sales 0 X 61 have the same meaning In the following example the 3rd bit of the system variable Status is used as a NO instruction variable The third bit of Status identifies whether the GLC unit has an I O error or not Therefore when the third bit is turned ON the output coul s IO_Error is turned ON which provides notification that an I O error has occurred Status a2 O_ Error LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 7 9 Chapter 7 Variables E Accessing a Real Array Real Arrays can be accessed using array elements To access the elements of a Real array the modifier n must be attached to each element which represents the element number Also 0 is used for the first element in the array E g To access the 5th element in the Real array SolutionTemperature you would use SolutionTemperature 4 GS The LT Editor can handle up to 2048 GLC variables The elements of the array become single variables Thus an array
27. CTU UP Counter DOWN Counter Piy See 9 2 37 CTD DOWN Counter UP DOWN Counter See 9 2 38 CTUD UP DOWN Counter LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 9 3 Chapter 9 Instructions E Convert Instructions insiuction Type Symboi Function SS BCD BCD KAN A BCD conversion B Conversion EN DN Normal Continuity Binary A 5 A Binary conversion B Conversion Normal Continuity E Program Control Instructions insiuction Type Symbol Function SSS MP Jumps oa eb ump to gt gt S ubroutine oa J umps to subroutine J SR RET Acum rom lt RETURN gt Returns to called SR command Subroutine 9 4 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 9 Instructions Variable ao The NO instruction allows power to pass when the variable is ON The following diagram is an example of the NO instruction s function Start Motor __ Ml Start Motor A When the Start variable turns ON the Motor variable turns ON B When the Start variable turns OFF the Motor variable turns OFF LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide vewa instruction Details 9 5 Chapter 9 Instructions Waa NC Normally Closed Variable yt The NC instruction allows power to pass when the variable is OFF The following diagram is an example of the NC instruction s function Start Motor
28. CV is smaller than Preset value Variable PV When the current value Variable CV is equal to the preset value Variable PV the counter output bit Variable Q is turned ON and the instruction passes power When the counter reset bit Variable R is ON the current value Variable CV is reset to zero The counter output bit Variable Q is also turned OFF Example The following diagram is an example of the CTU instruction notifying the Error_Detection output when five errors have been counted during a one minute period Minute_Timer_ Start OperationError_Counter_Reset i Operation_Error_Counter Operation_Error_Occur Error Detection F he counter is reset every scan To count an event like the example above be sure that the PT instruction is positioned before the CTU instruction s position The CTU in struction is a level input LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 9 Instructions AYA CTD DOWN Counter CE Counter starting bit Variable CTD R Counter reset bit cE o PV Preset value of counter R PY CY Q Counter output CV Present value of counter Overview When the counter input bit CE passes power the current value Variable CV is decremented by one if the counter reset bit Variable R 1s OFF When the current value Variable CV becomes equal to or less than zero after decrementing the counter output bit Variable Q is turned
29. Editor You can also insert in structions from the Insert Instruction dialog box using the following two methods LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program E Method 2 Insert instructions from the Insert Instruction dialog box 1 Right click anywhere on rung 3 and a shortcut menu will appear 2 Select Insert Instruction The Insert Instruction dialog box appears The instruction s explanation appears here Aen o Help _ This dialog box contains all instructions available to create a ladder logic program with the Logic Program Editor As you type or click each instruction a descriptor of the instruction appears at the bottom of the dialog box Note You can also bring up the Insert Instruction dialog box by selecting Instruction from the Insert menu or by pressing INSERT Key after you have selected a rung To view detailed information on each instruction click the Help button while selecting the desired instruction 3 Select the on delay timer here Scroll through the instruction list in the Insert Instruction dialog box until you locate the Timer On Delay TON 4 Select TON As with the Variable Type dialog box you have a choice of clicking on either OK or Apply to register your selection Since you are entering other instruc tions in your ladder logic program in this tutorial the Insert Instruction dialog box needs to rema
30. Exporting a Logic Program 4 Develop a screen program Use the Drawing Board and create a screen linked to the logic program 1 13 Developing a Screen Program 1 6 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program IAS How to Start the LT Editor Activate the Project Manager prior to creating a logic program with the Logic Program Editor 1 Click the Start button on the Window s screen and point to Programs LogiTouch and then click Project Manager 2 The Project Manager starts up IT Soda lte Soda Project Manager Project Control ScreernSetup Utility Help Pro face Type B B 3 In the Project Manager screen select New from the Project menu or click the icon Input the settings as follows and press the OK button Description Soft Drink Server Display Type LogiTouch Type A External Device Type None Description Soft Drink Server l LogiT ouch Type F External Device Type 4 A window appears asking whether you will create a Logic Program or Screen Click Edit LogicProgram to activate the Logic Program Editor Logi ouch Editor Edit Screen LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 7 Chapter 1 Creating a Program ya Creating Variables This section describes how to designate the functions of the Logic Program Editor as well as how to create and delete var
31. Find command 2 From the Search menu select Find The Find Text dialog box appears 3 Find Text Text to find Options Hl Case sensitive Close Eja Hl Whole words only l Continue from top Direction e Forward i Backward cope Origin it Global fe From cursor ii Selbetiony any i Entire scope ote The Find Text dialog box can also be opened by clicking EY in the tool bar Specifying the type of matching to apply to the search e You can specify the type of matching to apply to the search If you were trying to find the word Fill the Logic Program Editor would find all instances of that word even if it found it as a lower case fill or as part of another word such as Fillet e If you selected Case sensitive the Logic Program Editor would find Fill but not fill If you selected Whole words only the Logic Program Editor would find Fill but not Fillet Specifying the scope and direction of the search e You can specify the scope and direction of the search If Selection only is selected the scope is limited to the highlighted portion of your program Selecting Global includes the entire program You can begin the search from the top of the selected scope by selecting Entire scope or from a given posi tion by selecting From cursor This tutorial starts the search from the begin ning of the program oS Sele
32. Instructions and Branches LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 5 Chapter 1 Creating a Program 3 Assign variables to the logic program This section describes how to assign variables to the instructions in the logic program 1 4 Assigning Variables to Instructions 4 Insert descriptions This section describes how to label the logic program with descriptions The description instructions include procedures for documenting the entire program specific rungs and individual instructions 1 5 Documenting a Ladder Logic Program 5 Edit This section describes how to copy cut and paste rungs 1 6 Copying Cutting and Pasting Rungs 6 Subroutine This section describes how to insert subroutines and labels in the logic program 1 7 Subroutines and Labels 7 Search This section describes how to search and go to the desired circuit quickly in the logic program 1 8 Navigating a Ladder Logic Program 8 Assign I O This section describes how to assign the logical variables in the logic program to the actual I O terminals 1 9 I O Configuration 9 Error check This section describes how to check for errors in the logic program 1 10 Checking the Validity of a Program 10 Print This section describes how to print out the logic program 1 11 Printing Your Ladder Logic Program 11 Import and export This section describes how to read and write the logic program 1 12 Importing
33. Manual Logic Programming Guide Chapter 1 Creating a Program ihe Printing Your Ladder Logic Program With the Logic Program Editor you can print different aspects of your ladder logic program E To print a ladder logic program From the File menu select Print and the following dialog box is displayed You can view the logic program on the screen before it is printed using the Pre view function om Print Options Pere s OKI MICROLINE 303PSI1 F on Ok hy SERRE ELSES Cancel Reports MMi Logic Preview Options Ji Variable List Preview T Options Ji 1 0 Configuration Preview Ml References Preview Printer did Help Columns Ira Irr You can select the number of columns 1 to 4 into which your report will be formatted Under the Reports section there are four check boxes labelled Logic Variable List I O Configuration and References These check boxes provide the following options when printing your ladder logic program Logic This option allows you to print the rungs of your ladder logic program If you click on Options next to it the following dialog box appears Logic Options Select All to print all the rungs of the program or click on Selected and type in the range of rungs you wish to print Use the View menu to adjust the logic program s printout size LogiTouch Editor Ver 1 0 Operation Manual
34. Switch TP Lamp A The timer input bit IN turns ON the timer starts timing TI turns ON and the timer output bit Q turns ON B When the elapsed time ET equals the preset time PT the timer output bit Q turns OFF the timer stops timing TI turns OFF and the elapsed time stays fixed at the preset time ET PT The timer input bit IN turns OFF and the elapsed time ET is reset to 0 D The timer input bit IN turns ON the timer starts timing TI turns ON and the timer output bit Q turns ON Q E The timer input bit IN turns OFF the timer continues timing TI remains ON and the timer output bit Q remains ON F When the elapsed time ET equals the preset time PT the timer output bit Q turns OFF the timer stops timing TI turns OFF and since the timer input bit IN is OFF the elapsed time ET is reset to 0 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 9 39 Chapter 9 Instructions 9 40 9 2 36 Se te T CTU UP Counter CE Counter starting bit Variable R Counter reset bit CE Q R PV Preset value of counter py Cy Q Counter output CV Present value of counter Overview Variable QU UP Counter Output Variable QD Down Counter Output vara Q Coun ue When the counter input bit CE passes power the current value Variable CV is incremented by one if the counter reset bit Variable R is OFF and the current value Variable
35. TERMINALS of Word and touched the screen s upper right corner RUN button the I O MONITOR screen would appear 10 MONITOR INPUT af_of tof anf ve af MODULE No 065535 When the INPUT TERMINALS is DISCRETE the input terminal S No will appear in reverse color When the OUTPUT TERMINALS is WORD use the ten key keypad to enter the data When using a LT unit touch the data entry field and the ten key keypad will appear After entering data touch the OUT key to output the data Data will be displayed in the decimal format 11 14 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 11 I O Drivers mee DIO Unit Troubleshooting This area explains how to solve possible DIO unit problems E DIO Unit Input Errors Error Type Possible Caus sowon Inputmonitor DIO Unitis defective Contact your local P ro face distributor lamp is ON but Enable I O box is notselected S etthe E nable 1 0 no inputcan be _ performed Program is incorrect Correct program DIO Unitis defective Contact your local P ro face distributor Input monitor Common line wiring check lamp is OFF Inoutcommon line is incorrectly wired Common line breakage check and no inputcan Common terminal looseness check be performed External imput power is incorrect P rovide the correctvoltage Connector is notsecurely attached Attach the connector securely eae DIO Unitis defective Cont
36. Wher powered 3 za pixels When modified On Line 3 pixels 2 Select the Element and then the Color you want associated with that ele ment then click on Apply 3 9 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 3 On Line Editing eee Turning a Discrete ON and OFF Discrete variables can be manually turned ON or OFF while the logic program is running A discrete that has been turned ON is not the same as a discrete that has been forced ON since its state can be affected by the program as it is scanned E To Turn a Discrete ON or OFF 1 Right click on the variable Light assigned to the output coil on rung 2 2 Select Turn ON from the short cut menu The Light variable turns ON and the power flow indicates that power is flowing through the rung Power _Om_puahbuttort Power Off _puahbutten Light Ct Ct On Light On 3 Right click on the variable Light assigned to the output coil on rung 2 4 Select Turn OFF from the short cut menu The Light variable now turns OFF and the power flow disappears indicating that power no longer flows through the rung Ee Note Power flow is not displayed in your logic if the Power Flow check box is not selected X in the Monitoring section of the Preferences dialog box Chapter I Preference Area Settings Prior to Creating a Logic Pro gram LogiTouch Editor Ver 1 0 Operation Manual Logic Programmin
37. ar LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program Preference Area Settings Prior to Creating a Logic Program Prior to creating a logic program using the Logic Program Editor you can desig nate the general settings used in order to customize your program creation opera tion E Designating Settings 1 Select Preferences from the File menu and the Preferences dialog box will appear Preferences Editor Monitoring Confirmation Clipboard w Keep window settings between sessions F Append new rungs and instructions after existing ones rather than inserting them before T Clear logic when going Programming Mode 2 Click on each check box to select or deselect a setting The followings page s data explains each tab setting Editor Tab If selected the Instruction Pa rameter box is automatically opened for any new instructions Editor Monitoring Confirmation Clipboard inserted in your program eee Default selected w Keep window settings between sessions i If selected the Logic Progr am Editor Append new rungs and instructions after existing ones a all windows that Wee open at leha a a ent aTe the end of the last session Settings such as window size and position for any windows open during your editing session are retained This also applies to the Data Watch window which retains its contents when the current program
38. are array variables and B is not an integer array AND opera tions are performed for each element of A and B and the results are stored the corresponding elements of C Make sure that the size of A and C arrays are the same 3 When the three variables are arrays of the same size AND operations of array A and array B are performed The results are stored in array C The AND instruction always passes power The following table lists the combinations of A B and C that can be used with an AND instruction CB O Integer Array Integer Array Integer Array Integer Constant Integer Array Integer Constant Integer Array Operation Example When Start is ON the 3rd digit of the 4 digit BCD data of Data A is masked to 0 and the result is stored in Data C Example When Data A is 16 5678 5678 in hexadecimal system 16 5078 is stored in Data C St t 5 T s ar Data A EPA XR EY A F 0 F Oti clData C ie FoFF ijififojojojop pnn i 16 F0FF B 5 0 7 g Data C 0 ijojifojojojofoliliflififojojo LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 9 13 Chapter 9 Instructions 9 2 10 OR Or OR EN DON When the OR instruction is executed the bit in C turns ON if the corresponding bit in A and or B is ON Otherwise the bit in C is turned OFF A Operator B C IntegerA O 1 1 0 E 1100 IntegerB 1 1 0 0 m 0 0 0 1 There are three types of OR instructions 1 When both v
39. box 1 From the Data menu select Variable List 2 Move this dialog box to the lower left corner of your screen If the Insert Instruction dialog box is still open close it by clicking on Cancel See instruction Parameter Box In the previous section a field appeared with a flashing cursor inside it when you first inserted an instruction on a rung This is the Instruction Parameter Box and is where you enter the variables you want associated with the instruction E To access the Instruction Parameter Box of a basic level instruction 1 Double click on rung 3 s OUT instruction A text field will open above the instruction with a flashing cursor inside of it This is the Instruction Parameter 99 Box Ee Note The Instruction Parameter Box can also be accessed by clicking on the instruction Nel and pressing the ENTER key or by right clicking on the instruction and selecting Edit Instruction from the shortcut menu General instructions non basic level instruction have more than one Instruction Parameter Box For example a TIMER ON DELAY TON instruction has two 2 One is where you assign a variable and the other is where you enter the preset time in milliseconds E To access the Instruction Parameter Boxes of general instructions 1 Click on rung 4 s TON instruction The TON instruction then changes as follows a Mm Enter the variable name Enter the setting time D
40. consists of 31 Integer type elements which correspond to each of a month s days 31 Day 27 Day28 Day29 Day30 The following diagram is an example of the Integer Array Pressure using three elements e Pressure 0 represents the current pressure of the boiler e Pressure 1 represents the pressure upper limit value e Pressure 2 represents the pressure lower limit value When the pressure is higher or lower than the pressure limit an alarm turns ON CurrentPressure Pressure 0 Pressure Upper Limit Value Pressure 1 Pressure Lower Limit Value Pressure 2 GT High Pressure Alarm LT Low Pressure Alarm Pressure O amp Pressure 2 B 7 8 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 7 Variables Accessing an Integer Array using bits As is the case with the discrete array variables integer arrays can be accessed via bits bytes and words To access the m I1th bit of the n 1th element in the Integer_Array_Variable_ Drink Sales enter Drink_Sales n X m E g To access the Integer array Alarm s seventh bit type Alarm X 6 32nd Bit First Bit af m def 7th Bit e To access the 62nd bit of the Integer array variable Water_Sales type Water_Sales X 61 32nd Bit First Bit 64th Bit 33rd Bit 62nd Bit Also for Water_Sales 1 X 29 32nd Bit First Bit 1 0 First Element Element No 0 10 Second Element Element No 1 64th Bit 33rd Bit
41. dialog box and insert it using any of the previously described methods Rung 2 will appear like this ie To delete a branch containing instructions you must first select and delete each in struction LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 19 Chapter 1 Creating a Program 1 20 wae Initialization Logic Logic inserted above the START rung 1s called initialization logic It is executed only once when the Controller is started E To insert initialization logic 1 Right click on Program Description field located above the START rung If it is not visible select Descriptions from the View menu and then select Program 2 Select Insert Rung from the shortcut menu and a rung is inserted above the START rung In the following examples the rungs have been moved down one position i e the rung which was previously number 2 is now rung 3 3 Right click on the initialization rung rung1 4 Select Insert Instruction from the shortcut menu 5 Select the SET instruction from the Insert Instruction window and click on OK e sS o E This rung is used to turn the soda machine s ice maker ON It remains ON while the soda machine is started up and only needs to be set once If you do not have Append New Rungs and Instructions selected in the Preferences dialog box you must select the START rung to insert any initialization rungs These rungs will appear below the prog
42. instructions and functions of logic programs as well screen as how to seteach driver ZEN e Address settings described in these manuals are for explanatory purposes Note only Appropriate addresses must be set according to your requirements External Device Connection Manual e If you have any questions about the contents of this manual please contact your local LT distributor LT distributors will answer to your technical inquiries and provide you with technical consultation Screen Creation Guide App 4 Software Trouble Report If you have any question about your personal computer or Microsoft Windows please contact your PC distributor or manufacturer LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 3 E Chapter Breakdown This manual consists of three sections Installation Programming and Features The following is a general description of each chapter Setup Section The Setup Section uses an example application program to describe the basic steps involved in creating a logic program with the LT Editor software For detailed information about LT Editor operating procedures or variables instruc tions please refer to the Programming or Features sections Programming Section The Programming Section uses a tutorial to explain how to operate the Logic Program Editor software In this section you will create a complete ladder logic program CHAPTER 1 CREATING A PROGRAM This
43. local Proface dealer Reset the Watchdog time so that itis longer than the ConstantScan Time If doing so exceeds the Watchdog Timer s limit then the Constant Scan Time program should be changed 12 1 Chapter 12 Error Messages Error Message Cause solution Unable to find variable XXX Either the logic program file has not Bad Var Xxx been downloaded ora variable that Download the projectfile again does notexistin the logic program file on the screen is used The number of elements used in the screen file s array variables and those used in the logic program file s array variables are different The Logic program variable XXX s Bad T ype Xxx type is differentfrom the screen s Download the projectfile again variable type Unknown register type This variable type does notexist Register is missing Cannotfind variable used for Writing S100 file index is Cannotfind variable used for Reading omens Download the projectfile again Bad Array xxx Download the projectfile again Too many entries Too many variables are being used in the S100 file Limitis 2048 tfind S1 le st S100 fle is missing Cannot find S100 variable storage file Over Compile countM AX Too many Parts are being used Reduce the PUMDErO Fal and ue download the projectto the LT again Exception 65532 xxxx xxx LT heap memoryis insufficient Setup the LT unitagain with the LT Exception 65533 Xxxx xxx Memory f
44. m aal4 rje amj oas gt xz e Zi Pi o 8 ey E E _ w i a Leg ironch A Hew Screen Type Ooo Base Screen Cancel 3 Click on the Logic Program Editor screen to activate it and drag Run Rung 2 Normally open contact to the Drawing Board s base screen Be sure to drag select the entire command not just the variable _ You must save your logic program before dragging and dropping an Important instruction BY Untitled 1 START l1 0 3 sensor Run s Of oX1 0 3 Fan Of 30 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Setup Guide Tutorial 4 In the Bit Switch Settings dialog box s General Settings tab select Momen tary in the Function area This function turns a bit switch ON only while the touch panel switch is touched Next click Place and position the bit switch on the base screen The switch s label text displayed on the switch and shape can also be set Bit Switch Settings B5_001 General Settings Shape Color Label Description Operation Bit Address i ey Furi FIE State on fon Fi Monitor Monitor Bit Address Elke FI Function Option x Pi Bit Set Fi Buzzer TOWEET Bit Reset gi One Shot Nenscstssnansjniiansernsnes 7 Bit Invert J Interlock Interlock Address fe fooo000 FE Tou
45. or screen creation software to access external devices Here we will assign sensor to a Normally Open contact or a Normally Closed contact instruction to receive input from the external input terminal Similarly output to the external output terminal can be performed by assigning fan to an OUT instruction 4 Configure 1 0 Tio el 0 3 Upma meet 20241 0 3 22 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Setup Guide Tutorial Tia When iX1 0 3 or similar characters appear in the I O Configuration window they indicate an I O address Each letter or symbol represents the following information IX1 0 3 Terminal No Module No Driver ID Data type I O type LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 23 Setup Guide Tutorial 3 Create Internal Variables Here we will create named variables to be used for internal relays registers timers and counters 1 Let s create the variable Run which will represent an internal relay First in the Logic Program Editor s Data menu click Variable Type to call up the Variable Type dialog box Variable Type Tl digay Sijpel Mi fetentiie Mi Gibbs 2 Enter Run in the Name field and select Discrete from the left side Variable type menu which processes data in bit units Select Internal to specify an internal variable and click OK
46. or the I O are Fault 1OFault 1OStatus and ScanCount FaultCode FaultCode identifies the most recent fault condition It is reset to O when the first scan operates after the Controller started Faultrung _ Faultrung detects the rung number which has a fault lOFault is a discrete variable that is turned ON when a fault is detected in your I O system system An error is displayed in 1OStatus only if lOFault has been turned ON ScanCount ScanCount indicates the number of scans the Controller has executed since it was last started When monitored this variable should constantly be increasing If it is not the Controller is not running lOStatus is an array which displays I O specific errors These errors are indexed with a numeric code This code differs from driver to driver Reference For a detailed explanation of the error see the driver s Help MEAO For details on system variables please refer to Chapter 8 System Variables LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide a7 Chapter 2 Running the Ladder Logic Program 2 8 yee Viewing System Variables You can view the system variables to show information about I O status scan time and controller status Chapter 8 System Variables E To View System Variables 1 From the Data menu select Variable List and the Variable List window appears All LT Editor system variables variables which begin with should be disp
47. output bit Q for the duration of the preset time PT in milliseconds Overview Special Variable Description Variable Type Variable PT reset Value Variable ET resentValue Variable Q Timer output bit rab T Ting When power is passed to the timer starting bit IN the TP instruction starts and e Variable ET the elapsed time begins to increment in milliseconds e Variable TI the timing bit turns ON e Variable Q the timer output bit turns ON as the instruction passes power When the elapsed time Variable ET equals the preset time Variable PT e Variable ET the elapsed time stays fixed at the preset value if the TP instruction is still receiving power e Variable ET the elapsed time resets immediately to zero if the instruction stops receiving power e Variable TI the timing bit turns OFF e Variable Q the timer output bit turns OFF When the timer starting bit IN stops passing power to start the TP instruction the elapsed time Variable ET is reset to zero and the timer output bit Variable Q turns OFF only if it has already reached the value of the preset time Variable PT Otherwise it continues timing and the timer output bit Variable Q remains ON LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 9 Instructions Example The following diagram is an example of a lamp that lights up for three seconds when the switch is pressed Light_Up_ 3 Seconds
48. per scan LT unit s internal memory LS area backup function settings Error Display Reset settings Watch Dog Timer settings Communication Monitoring Period settings Designate transmis sion wait time LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 9 10 Logic Program Restrictions LT variables are handled in 32 bit device Low High order Parts used for display function cannot handle real numbers Values different from the input values may appear during monitoring due to the difference in the real number accuracy between a personal com puter and the LT If the LT s logic time scan time becomes too long the sampling time designated for the trend graph may not be accurately maintained When using the Memory Link Method a change in the value of a vari ables may not be completely displayed by a trend graph All LT Retentive Variable data is saved using a lithium battery in SRAM backup memory The battery can back up data for approximately 60 days in its initial condition fully charged and for approximately 6 days when the battery s life is almost finished If you need to back up data for a longer period you will need to either back up data to your host computer or configure your system so that data is backed up by LT Editor LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide TABLE OF CONTENTS BS res ea cesses cnet severe tn cucu tet seme vec case ceee vee cent
49. set to 276 words and the Read Area is set to 16 words Display Controller Processing External Function Function Device L3 0 System Data System Data 20 Words Area Area Leta te a 3 a i 16 Words 256 Words L amp 275 e When the controller s logic program tags used to update the L Display Processing feature and the logic program from an Important external I O unit attempt to change the same variable at same time priority is determined by the timing e When writing data to the LT unit s Read Area be sure that the Write Via Parts and Write Via Logic Program functions of the Controller do not conflict 10 4 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 10 LS Area Refresh ZEN Utilizing the Read Area to share data between the LT and external devices Note allows you to use the LT as the expansion unit of an external device as well N as for construction of POP machines for factory automation or an I O information terminal for production control Writes LT Data External Device l 1O Unit Reads Controller Data IEAS LS Area Refresh Cautions Use the LS Area Refresh feature to control the system area using the controller feature or to view Read Data from an external communication device Digital Electronics Corporation recommends that you use the data send receive related Initialize area or the Operation Designation Change parameter settings to cont
50. the LT Type B as the model environment LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 41 Chapter 1 Creating a Program E To open the Configure I O window From the Data menu choose Configure I O and the following window will appear For the DIO driver Configure I O imi J Module 0 E 10 E 11 E l2 E 13 E l4 E 15 E IE E I7 E 18 E 19 110 E 111 E 112 E 113 E 114 117 L te You can also open the Configure I O dialog box by clicking on on the tool bar or by clicking on Configure 1 0 in the Variable Type dialog box 1 42 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program E To set up the DIO driver 1 Select Module 0 2 Click on Setup The Module Setup dialog box appears 4 Module Setup a Module number Hl Hold output values after controller stops 16 Dieciete F Input Terminala 1 Oeae F Qutput Terminals OK Cancel Help Only 0 can be designated for a Module number 3 16 Discrete bit is factory set for both Input Output terminals 4 Click on OK The Configure I O window appears as follows gt Configure I O Displayed underneath Module 0 are 16 input terminals and one output terminal for a 16 bit word associated with the DIO module displayed You will assign variables to them later in this tutorial Configure 1 0
51. the LT Editor refer to Operation Manual Screen Creation Guide Chapter 7 Data Transfer E To Read from the Controller 1 If the Controller is online from the Controller menu select Programming Model important The Controller must be stopped before doing a read from controller if the program contains values that are not initialized 2 From the Controller menu select Read from Controller A copy of the program written to the Controller will be opened by the LT Editor You can now make changes to the program and or save it as a Ite T Select the Controller menu s Property The LT program s property informa tion list box will appear The Property box is shown below Property x Filg DAME n PANAME nmn Frogram memory pa 7160 124518 bytes Yarable memory 1 08 32626 bytes Platform LogiT ouch Type A Target scan 10 mes Watchdog timer FOO me Disable auto start ON Stop on minor Fault OFF COM port COMI COM speed 115200 bps LO driver 1 DIO Module Driver LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 2 9 2 10 Memo LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide lt a On Line Editing The LogiTouch Editor allows you to make On Line changes to a program running in the Controller and have these changes take effect immediately For the demon strations and examples in this chapter use the Soda lte file located in
52. those steps It is assumed that LT Editor is already installed 1 Start the LT Editor Start up the LT Editor software Select the type of LT and external devices you will use 2 Assign Variables to External I O and Enable I O Use the Logic Program Editor s I O Configuration feature to assign variable names device addresses to I O terminal numbers 3 Create Internal Variables Create the variables used for internal relays registers timers and counters 4 Create the Logic Program Use the Logic Program Editor software to create a logic program 5 Create LT Screens Use the LT Editor software s Screen Editor to create LT screens 6 Transfer Screens and Logic Programs to LT Unit Check Operation Transfer the screens and logic programs to the LT unit Check that the LT operates correctly 7 Start RUN Mode Operation LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 19 Setup Guide Tutorial 1 Start the LT Editor 1 Click the Windows desktop s Start button and point to Programs gt LogiTouch gt Project Manager ge Sr Project 2 Click the New icon When the New dialog box appears enter the following settings e Description New LT Program e Display Type LogiTouch Type A e External Device Type None Select only when using a Type C unit Description New LT OK Dispis Tipe Cancel LogiT ouch Type I External De
53. value Variable CV is equal to or greater than the preset value Variable PV the Counter Output and UP Counter Output Variable Q and Variable QU are turned ON e If the current value Variable CV is equal to or less than zero the Counter Output and Down Counter Output Variable Q and Variable QD are turned ON Example The following diagram is an example of the CTUD instruction continuously counting up from O to 10 and then down from 10 to 0 The SecondTimer outputs a pulse to the Up Down Counter every second The UP bit turns ON when the Up Down Counter reaches 0 and turns OFF when the Up Down counter reaches 10 the preset value LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 9 Instructions UpDown QD UpDown UP UpDown QU UpDown UP SecondTimer Q SecondTimer Q Se te If the counter reset bit Variable R turns ON when the Counter Up instruction DAN Variable UP is ON the current value Variable CV is set to zero If the counter reset bit Variable R turns ON when the Counter Up instruction Variable UP is OFF the preset value Variable PV is entered to the current value Variable CV LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 9 43 Chapter 9 Instructions Waste BCD BCD Conversion A Data BCD B Result to be stored A n When the BCD instruction is executed a binary number assigned to A is con verted to binary c
54. when the contactturns ON NC Normally Allows power to pass when the contactiurns Closed ku OFF x1 OutputCoil Turns physical outputdevices or internal discrete aau Retention Coil Or I ti variables and expressions ON or OFF Negated Coil NEG NM Negated Retention Coil Latch Coll Turns a variable ON ifthe coil receives power SET SM Latch Retention P ower remains ON untl itreceives another Coll explicitinstruction Unlatch Coil Turns a variable OFF ifthe coil receives power RST RM Unlatch Power remains OFF untl itreceives another Retention Coil explicitinstruction PT Positive Allows power to pass ifthe variable was OFF Transition JF during the previous scan butis currenty ON NT Negative Allows power to pass ifthe variable was ON Transition 4A during the previous scan butis currently OFF I For the instructions listed above when a variable is retentive it automatically changes to one of the right side instructions Therefore when entering data in this screen be sure to use one of the left side non retentive instructions Turns a variable OFF ifthe coil receives power and ON ifitdoes notreceive power In the following example when an OUT instruction s variable is retentive the screen icon changes to M Q C Apy ul Not Assigned Dutput Ott Designate a variable Variable is L Sej Sl converted to M Select Retentive LogiTouch Editor Ver 1 0 Operation Manual Logic Programm
55. with five elements becomes five variables An Real array can be used for numerical calculation tracking of repetitive infor mation and data logging E g To record the temperature of a solu Solution Temperature 0 tion every 24 hours in the Real array Solution Temperature 1 Solution_Temperature the structure Solutio a perature 2 of data is as follows S olution Temperature 3 The array consists of 24 Real type elements that correspond to each hour of a day Real element 0 corresponds to the temperature data at 0 00 E Array Indirect Access Array elements n can be indirectly accessed by an Integer variable Numbers in the square brackets of suffixes such as X m B m and W m can also be indirectly accessed The following example assumes that you press the switch In the INC instruction N increments by one with every single scan The result of the ADD instruction i e the sum of N and 1 is then assigned to A N After 5 scans have been performed 1 is assigned to A 0 2 to A 1 3 to A 2 4 to A 3 and 5 to A 4 Note that the initial value of N 1s 0 Switch INC N AIN 7 10 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide sa System Variables The following table provides a list of the Controller s predefined System Vari ables sm System Variable List System Variables are used to display the Controller s current condition and effect its operatio
56. z Reset Controller as l BB 8 Execute single scan Initial Value OFF All bits Bat E16 Writable Bi 22 Bit 128 Enable I O sways DisableAutoStart If the power is turned ON while DisableAutoStart is ON the controller starts up in the STOP mode If the power is turned ON while DisableAutoStart is OFF the controller starts up in the state it was in START or STOP prior to shutdown The above settings are enabled only when the Controller State setting is set to Default in the LT unit s initial settings Variable Type Discrete Set by User Initial Value OFF Writable Fault is referred to by the controller as to whether the logic program will stop or continue to execute at the completion of the ErrorHandler subroutine By turning Fault ON the controller will be able to stop executing the logic program For information about ErrorHandler subroutines refer to 8 2 18 Overflow Variable Type Discrete Set by User Initial Value OFF Writable ge te Fault has no meaning when there is no ErrorHandler subroutine D LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 8 13 Chapter 8 System Variables ewp HFaultOnMinor FaultOnMinor is checked by the controller to determine whether the logic pro gram will stop or continue to execute when a minor fault occurs and there 1s no ErrorHandler subroutine in the logic program Turning ON the FaultOnMinor allows you to p
57. 10 Power On pushbutton Power Off pushbutton Light 3 n of of Ort Light Ort E To click and drag variables to I O terminals from the Variable List dialog box 1 Open the Variable List dialog box The Configure I O window should still be open 2 Arrange the dialog boxes so that both can be viewed 3 From the Variable List dialog box click and drag the variable Cup_Present_for_Ice to terminal I2 in the Configure I O window 4 Release the mouse The variable Cup_Present_for_Ice is now assigned to l input terminal I2 ote ote You can also use the above procedure to assign variables to I O from the Description WA List dialog box gt Wariable List File Edit View Data Help Cup Present for lce N Discrete Input Fill_T imer N Tm Internal Ice Discrete Output NWlce_ Maker Discrete Internal lice pushbutton lIscrete Input Large _pushbutton Cigcrete Input iaht 20 1 0 0 When you assign click and drag a variable to Configure I O from the f Variable List or Description List window that I O attribute is enabled and any other variable attribute will be changed to Input Output 1 46 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program E To assign variables via text input 1 Click on terminal I6 2 Press the Enter key The terminal test field 1s activated gt Configure 1 0 Hl Module 0 0 PowerOn_pushb
58. Append new rungs and instructions is not selected in the Preferences dialog box the copied rung is inserted above the current rung A rung cut and pasted is loaded to the LogiTouch Editor s internal clip important hoard then copied to the program If you select an entire rung when pasting from the clipboard the Logic Program Editor replaces the rung you have selected with the rung in your clipboard E To paste a rung 1 Click anywhere on rung 6 2 From the Edit menu select Paste Rungs 6 and 7 are now identical 3 Click anywhere on rung 6 4 From the Edit menu select Paste Rungs 6 to 8 are now all alike LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 31 Chapter 1 Creating a Program Bre When pasting a rung all variables and descriptions associated with that rung are also pasted Be aware that you may have to edit the pasted rung The variables on rungs 7 and 8 should now be changed according to the following example Medium pushbutton MoM 7 F Off 6000 Large pushbutton MOs 8 _P EN DWN Ott BOOO IN OUT Fill Tirner PT 5 Change the variable name of the PT instruction on the rung as shown in the example above neem Cut Command The Logic Program Editor s Cut command allows you to take a rung or section of rungs out of one part of your program and move them to another In the following tutorial rung 4 is to be moved to the last rung of your program
59. BCD for mat Variable Type Integer Set by Controller Read Only Year Month Day and Time data are displayed using the following system vari ables E g July 14 2001 at 6 19 a m rear Month Bay time AK Version Version indicates the version number of the controller Version is displayed in hexadecimal format Variable Type Integer Set by Controller Read Only ayes Bye Wnorverson 0 syel Reseved o Byed Resened Year displays Year data as set in the controller using two digits in BCD format Variable Type Integer Set by Controller Read Only Year Month Day and Time data are displayed using the following system vari ables E g July 14 2001 at 6 19 a m rear Month Bay ime LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 8 9 Chapter 8 System Variables wae FaultCode FaultCode identifies the most recent fault status A controller resets all these values to 0 Refer to 12 2 Error Codes Variable Type Integer Set by Controller Read Only o ioma No uk 1 M inor Overflow resulting from a mathematical operation or a Real to Integer conversion Bitreference ofthe Integer 32 bits is outof bounds a ie Sack ete e i resenedtyfesysen i ie eene O OOOO S oftware error typically a malfunctioning custom function block may M ajor require a system reboot to recover C o f Reserved by he system n f Reserve
60. Counters the name of the subroutine in the Instruction Pa rameter Box of the JSR instruction The rung appears as follows Licht d F gt Reset _Counters lt OFF Whenever the JSR instruction Reset_Counters receives power it will jump to the subroutine Reset_Counters Execution will resume from rung 5 once the subroutine has finished execution To delete a subroutine you must first delete the individual rungs After that delete the SUB START rung The SUB END rung will then be automatically deleted when the SUB START rung is deleted LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program Wea Inserting Labels A label which is combined with a JMP Jump instruction can be inserted in any part of a ladder logic program When the Controller executes a JMP instruc tion it jumps to the designated label and begins executing the program at that point Labels are inserted above or below the selected rung depending if Append new rungs and instructions is selected in the Preference dialog box This tutorial does not use any labels However to insert one the following procedure is used E To assign a label to your ladder logic program 1 Click anywhere on the rung 2 From the Insert menu select Label The Insert Label dialog box appears prompting you to insert a name for your label Insert Label iLstart Mame
61. E EEE E 9 31 el GT COMPA gt ersen eie A SrA EAE ETERNE FIS 9 31 T22 ECTE OE am e A noet een nen ee te tren mer eee 9 32 9 230 GE Compare a corsccnsiasscspeiorccanneasaueveiamesempenusinisrerosmoinaoraianate 9 32 Iaol LECOMPTE 9 33 Tao DECODE a S ea E 9 34 9 2 33 TON Timer ON Delay seossesssssenessssssssssrrssssssssserresssssssseeerssssss 9 34 924 TOP Timer OEF Delay seisseen ER 9 36 Daoa TP Tr P e E E 9 38 920 CIU UP COUNIOI ecserin ene ea aeei 9 40 227 CD CO Na arcs secrete cscs EEEE 9 4 9 2 38 CTUD UP DOWN Counter 0 cecceecceeeceeeseeeseeeens 9 42 9 2 39 BCD BCD Conversion scissccscacesccsccesvesuoadendssctderssnsadnsecoecdpssneastes 9 44 9 2 40 BIN Binary Conversion sssseeeesssssssseeeersssssssseeersssssssseerrsssss 9 45 PA IMP JUD eena E R 9 46 9242 JOR Jump SUDroutMme F sessy 9 47 9 243 RET Ret rn SUDTOUUIIG sissersirisssssicesrersisroreiisisterrivrnsisieroiesaiiin 9 47 10 1 LS Area Refresh Overview ssssscccccccsssscceccoccsssssccecocosssssceecoccsssssceceesoo 10 1 10 2 LS Area Refresh Settings sssssseeccccccssssscccccccsssssccceocosssssseccoccssssssceeesso 10 2 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 15 10 3 LogiTouch and External Device Data Sharing ssssssssssssececccesosssoo 10 3 10 3 1 LS Area Refresh Cautions wrciccsovesasecesesdessovssicssevandnrsooottcarestsdactares 10 5 CHAPTER 11 1 O DRIVERS BE TOD OW CP VIC W e E S 11 1 WZ Flex Networ
62. Help In addition to these manuals data files containing supplemental information on updated functions are also provided To read these additional data files click on the Start button in your Windows OS main screen and select the Programs gt LogiTouch menu Then click on the Read Me selection For detailed information on LT series products please refer to LogiTouch Series User Manual Optionally available Operation Manual peccribes the operating procedures for the LT Editor and all Screen Creation _ functions exceptfor Logic Program development provided as a Guide P DF file Describes logic program development The manual consists of three sections Installation P rogramming and Features In the Installation Section you can learn the basic procedures to Logic create a logic program The Programming S ection explains how Included in Programming t operate the LT E ditor through a tutorial lesson while the CD Rom Guide this manual Features Section explains the sofware setings required for the combination of the LT main unitand the LT Editor This manual is provided as a PDF fie Operation Manual Describes the LT Editor s pre made P arts and symbols provided as PDF data Describes the methods for connecting the LT to external devices of various manufacturers provided as a PDF file Available in Describes the methods for setting the LT Editor s windows and the LT Editor Online Help dialog boxes
63. I O driver error code descriptions refer to Chapter 11 I O Drivers WA t Overflow Overflow turns ON when a mathematical fault occurs Overflow stays ON until the next mathematical instruction or conversion Mathematical faults include instruction overflows Real to Integer conversion overflows and divide by zero errors When a mathematical fault occurs a minor fault also occurs which executes an ErrorHandler subroutine 1f one exists Refer to 12 2 Error Codes The ErrorHandler subroutine is an error process subroutine and must first be created under the name ErrorHandler The value in the Fault system variable defined whether the controller will stop or continue execution of the logic program Refer to 8 2 21 Fault Variable Type Discrete Set by Controller Read Only In the following example the ErrorHandler subroutine detects BCD BIN conver sion errors and stops execution of the logic program S5 UB START ErrorHandler Et F au It Ge re If an overflow does not occur during Real to Integer conversion Over XY flow will not turn ON 8 12 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 8 System Variables Command is an Integer variable used as a controller command After the control ler reads Command it resets the value to 0 When multiple bits are ON the lowest bit takes precedence Stop Controller Variable Type Integer Run Controller Set by User B T
64. Integer Constant sd Integer Constant sd If A is not a valid BCD number FaultCode will be updated with the error code and Overflow will turn ON 8 2 15 Faultcode and 8 2 18 Overflow Note If the value cannot be converted the value in B is undefined Example When Start is turned ON Data A is converted to BIN and stored in Data B Start BIN EM ON Data A B Data B Example BIN data 99999999 is designated for data A and BCD conversion 1s performed Bit Position 21 30 29 26 27 26 25 24 23 22 21 20 19 16 17 16 15 14 13 12 11 10 43 Data A 0 lif lolojifi jolali fo ofa yt fo fo dt THOT ToT TTT Jl Bit Position 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 Data B bOI ENI NODo LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 9 45 Chapter 9 Instructions OWNER JMP Jump gt gt LabelName When the JMP instruction receives power control jumps to the specified label Unlike the JSR instruction control does not automatically return to the rung following the JMP rung A jump cannot be made over a START SUB START SUB END ACT START or ACT END label Jumping upward can create an infinite loop SP te Be sure that the time required to execute the entire program will not exceed the value Ne of the Watch Dog Timer 8 2 26 WatchDogTime Example If the Jump Instruction is ON rung 3 s instruction will be skipped and not ex ecuted Contr
65. LimitSwitch1 LimitSwitch1 Off Off 4f Skip This is the name that is designated in the JMP instruction in your ladder logic program The same rules that apply to naming variables apply to naming labels E To insert a JMP instruction 1 Right click on the right of the last instruction on the rung and select Insert Instruction from the shortcut menu 2 Double click the JMP instruction in the Insert Instruction dialog box The J MP instruction is inserted as the last instruction on the rung Whenever the Logic Program Editor sees this instruction in your program it jumps to the designated label lt Summary gt This section explained how to create subroutines and labels and insert JMP jump and JSR Gump to subroutine instructions LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 35 Chapter 1 Creating a Program LIE S Navigating a Ladder Logic Program If a logic program is large using the scroll bars to locate specific points in the program can take quite a bit of time The Logic Program Editor features com mands to help you find specific points in your program much more quickly These are the Find References Bookmark Go to Rung and Go to Label commands IR AR The Find Command The Find command allows you to locate specific textual references in your ladder logic E To use the Find command 1 If you have any windows open close them before you use the
66. Logic Programming Guide Chapter 1 Creating a Program seem Adding Descriptions to Variables Descriptions can also be added to each of the variables in your ladder logic pro gram You cannot however add descriptions to labels or constants E To add a description to a variable The Variable List dialog box should be open If it is not open it now by selecting Variable List from the Data menu 2 The Description dialog box should also be open If it is not open it now by selecting Description from the Edit menu 3 Click on any Instruction Parameter Box containing the variable Fill_Timer Note that not only does the Description dialog box contain the descriptor Fill Timer but that Fill_Timer is also highlighted in the Variable List dialog box Click on the text field of the Description dialog box Type The Fill Timer decides how long to keep the soda valve open The operating time depends on the set value 6 Click on Apply Se EX os You can also add descriptions to a variable by selecting the variable in the Variable XVX List dialog box instead of selecting it from the ladder logic program E To add a description Here you will add a description to the variable Power_On_pushbutton 1 Click on the variable Power_On_pushbutton in the Variable List dialog box The Description dialog box now contains the descriptor Power_On_pus
67. Manual Logic Programming Guide 8 1 Chapter 8 System Variables Initial Variable V l Expl A System Variable xplanation Value Name 7 F aultCode Displays the latesterror code F aul ung mtd the rung where the error 5 l0F ault Turns ON when an error occurs LLI Turns ON when an overflow occurs due to mathematical commands or 0 verflow Discrete conversion ofa variable from Real to Integer Changes he controler mode DisableAutoS tart Defines the mode entered when the Beee GLC starts up HF au Used to stop the performance ofan peace E rror Handler subroutne Controls the completion of the logic F aultO nM inor performed when a minor error Discrete occurs p Calculates the P ercentS can s p eean percentage Unit ooe PercentMemCheck Notcurrenty used by the LT Integer screen numbers S topS cans Notcurrenty used by the LT Integer Sets the ConstantS can Time WatchdogTime seb the Watchdog Timer s value Integer Unit ms Note Year Month and Day are saved as the LT unit s time data Time data changes are performed via the LT unit s Initial settings or the System Data Area s Write settings LogiTouch Series User Manual sold separately External Device Connection Manual cane How to Use System Variables This section uses a Screen to explain how to use system variables The following logic program switches the screen to base screen B100 which is screen numbe
68. ON and the instruction passes power When the counter reset bit Variable R is ON the preset value Variable PV is set to the current value Variable CV The counter output bit Variable Q is also turned OFF Example The following diagram is an example of the CTD instruction passing power and notifying the Error_Detection output when five errors have been counted during a one minute period The timer resets the counter every minute Minute_Timer_Start OperationError_Counter_Reset Operation_Error_Counter Operation_Error_Occur F Error Detection Stes The counter is reset every scan To count an event like the example above be sure that Ne the PT instruction is positioned before the CTU instruction s position The CTD in struction is a level input Logilouch Editor Ver 1 0 Operation Manual Logic Programming Guide 9 41 Chapter 9 Instructions 9 42 W amp I CTUD UP DOWN Counter CE Counter starting bit Variable UP Counter Up Instruction R Counter reset bit PV Preset value of counter Q Counter output QU UP Counter flag QD Down Counter flag CV Present value of counter Overview When executing the CTUD instruction while the counter up instruction Variable UP is ON the execution is similar with the CTU instruction up counter When Variable UP is OFF the execution is similar with the CTD down counter instruction After executing the CTUD instruction e If the current
69. PREFACE Thank you for purchasing LogiTouch Editor Ver 1 0 ladder logic programming software for use with Pro face LT Series displays To ensure correct use of this product be sure to read the included manuals care fully and keep them nearby so that you can refer to them when necessary NOTE 1 The copyrights to all programs and manuals included in the LogiTouch Editor Ver 1 0 hereinafter referred to as this product software are reserved by the Digital Electronics Corporation Digital grants the use of this product to its users as described in the Software Operating Conditions section Any actions violating the above mentioned conditions are prohibited by both Japa nese and foreign regulations 2 The contents of this manual have been thoroughly inspected However if you should find any errors or omissions in this manual contact your local representative by the user for any damages losses or third party claims arising from the uses of this product 4 Differences may occur between the descriptions found in this manual and the actual functioning of this product Therefore the latest information on this product is provided in data files 1 e Readme txt files etc and or separate documents Please consult these sources as well as this manual prior to use 5 Even though the information contained in and displayed by this product may be related to intangible or intellectual properties of Digital Elect
70. Programming Guide 9 47 Memo 9 48 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide LS Area Refresh tes LS Area Refresh Overview E LS Area Refresh Feature The LT unit uses the LS Area s System Data Area to control the changing of screens the sounding of buzzers etc These are processed as LT display features Therefore when using the functions assigned to the System Data Area such as the screen change and clock function via the Controller Feature the data in the LS Area should be shared between the Display Features and Controller Features through registering the LS Area as variables This is defined as the LS Area Refresh It is also possible to use an area outside of the System Data Area if the GLC controller features or display features need to share data Display Features Controller Features LS Area Variable Area l l l l System Data Area LS Area Refresh CONTROLLER l l l l l l QO 9D OT MEMORY For User Other Shared Area defined variables etc User Area System Data Area Other Shared Area Special Relays Special Relays Tocoud lt PpPruMVH vo Prwvaoao0odr wnw LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 10 1 Chapter 10 LS Area Refresh 04 LS Area Refresh Settings 10 2 When using the logic program to designate the LS Area the desired variable must first be registered in LT Editor This section describes this procedu
71. The I O unit s range changeover switch settings are read in when the logic program is switched to RUN mode To change these settings switch the logic program to STOP mode and then to RUN mode If the ranges do not match the data cannot be read correctly LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 11 9 Chapter 11 I O Drivers 11 10 bys Flex Network I F Unit Troubleshooting The following is a description of possible problems that may occur when using the Flex Network I F unit and their solutions E Flex Network I F unit I O Errors For a detailed explanation of Flex Network I F unit I O errors please refer to the Flex Network unit s Users Manual E Error Codes I O errors include those occurring during writing and reading When one of these errors occurs the controller writes an error code to OStatus Setting Errors Enor Code Problem Somon Internal variable error mapped to I O 501 terminal E xternal variable error mapped to 1 0 502 terminal 503 Output variable error mapped to 1 0 Baca hevansbeuced terminal Discrete variable error mapped to 504 analog terminal Integer variable error mapped to discrete terminal Variable type notsupported by driver Correctthe variable type Variable is not mapped to terminal M ap the variable to all terminals The LTE file may be damaged or a Terminal numbers are duplicated malfunction has occured during download
72. The following diagram is an example of the RST instruction s function Stop Motor Stop Motor A When the Stop variable turns ON the Motor variable resets B When the Stop variable turns OFF the Motor variable reset by the RST instruction will remain OFF until another instruction turns it ON e The RST instruction can be used only with non retentive variables With retentive variables use the RM Unlatch Retention Coil instruction e Real and Integer variables cannot be reset set to zero with an RST instruction LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 9 Instructions Yaa PT Positive Transition Contact Variable P When the PT instruction is executed if the variable was OFF during the previous scan but is currently ON power is allowed to pass for a single scan When starting up the program the state of positive transition contact during the previous scan is considered to have been OFF The following diagram is an example of the PT instruction s function Start Motor Oe faa Previous Current Next Next Scan Scan Scan Scan Start Motor PT Detected A s n A When the Start variable turns ON the Motor variable turns ON B After one scan the current scan the Motor variable turns OFF C Since the rising edge of the variable Start is not detected the variable Motor remains OFF LogiTouch Editor Ver 1 0 Operation Manual Logic Progr
73. The following table lists the types of A N and C in which ROR instructions can be executed ee OO Integer or Integer Constant Integer Array Integer or Integer Constant Integer Array is Same size as A Integer Constant Integer or Integer Constant Example The following example describes the operation of 1 bit rotation using the signal of product presence absence Start ROR product 7 EN DN roduct presence Product abeenee Signal presence absence signal a VANN N 5 y Y Rotated Right 1 4 bit position Ee A aral EREMEMCUCAL VCS CNERRSICU RN REED Most significant bit Least significant bit LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 9 21 Chapter 9 Instructions 9 22 9 2 18 SHL Shift Left A Variable name to be rotated SHL N Number of bit positions to shift A C Destination variable 7 The SHL instruction left shifts the bits in A by N positions Bits are dropped from the left end most significant bit of the element and O is inserted in the now vacant bit positions at the right end least significant bit The result is placed in C There are two types of SHL instruction 1 If neither A nor C is an array a simple 32 bit shift is performed N must range from 0 to 31 2 If both A and C arrays are the same size the A array is treated as a large Integer Bits are shifted from one element to the next rather than the most sign
74. When Using Bits The following diagram is an example of a one bit right shift used to track the position of a bit Each bit in the product presence absence signal represents the actual position of the product When Move_Cart is turned ON bit is shifted right to the next position When the bit reaches the final bit position in the variable 0 the Product Removal Completion Bit is turned ON indicating that the operation is completed 9 24 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 9 Instructions Product presence x 0 Product Removal Move_Cart absence signal Completion Bit f a T Product presence c Product presence absence signal 1 absence signal Bits 3i s0 29 28 27 26 28 a ee EE snitted right Product presence o o olofololo oliloj lolololo Sueed niont a absence signal Delete B a a absence signal The position after the operation e When Using Arrays The following diagram is an example an SHR instruction being used to transfer values of each element in an Integer array A 32 bit shift rotates the entire 32 bit Integer Every second the Table1 Integer array s values are moved up one position towards 0 and a new value is placed at the end of the elements Table1 99 in the iy EM ie IM OUT Table1 99 Tablel Integer array Timer2 Timer2_ Start New_Value Delete S 76 T7 Ha H Ce mAy a a y B
75. a Value dialog box appears 2 Click on the variable Number_of _Smalls in the ladder logic The Data Value dialog box appears as follows Data Value Value of oK Number of Smalls Change to To am eooo Apply Format Decimal F Hee 3 Select the 0 in the Change to field then type 5 4 Click on Apply The value of Number_of _Smalls is now 5 You can change other values or close the Data Value dialog box by clicking on Close Gis e You can enter data values in Decimal Hexadecimal Octal or Binary number for DAN mat Simply select one from the Format list e Use the Variable List or Data Watch List in conjunction with the Data Value dialog box to quickly find and set LogiTouch Editor variables 3 4 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 3 On Line Editing lt aem Changing Variable Attributes You can use the Data menu to change the variable attributes Retentive Global This menu is enabled only when you are in the programming mode E Changing a Variable Attribute Retentive Select the Data menu s Variable List The Variable List window will appear Select the variable you wish to change its attribute and change the attribute using this window as shown below However the system variable s retentive cannot be changed 4 Variable List File Edit View Datall Help Variable Type Ctr
76. a program Do not change the contents of this product s project files using a text editor software 8 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide E Restrictions The LT Editor has the following restrictions Drawing e The LT Editor s display screen uses your PC s character fonts and graphic functions As a result there may cause some differences in the appearance between the LT and PC after the screen is transferred to the LT e When an LT unit is vertically installed the panel s coordinates will differ from those used on the screen editor software Therefore when you enter screen coordinates using Parts or D Script be sure to consider the LT s orientation 0 0 on the screen editor software 0 0 on the LT series panel Functions and Settings e Certain functions and settings supported by the LT unit are not supported by the LT Editor and vice versa Settings and functions supported by the LT unit Not by LT Editor Language Font selection LT Date Time settings LT Self Diagnostics Function Functions and settings supported by the LT Editor Not by LT unit The following settings are included in the LT System Settings area Checksum Verification settings Screen Change Order in hierarchical display mode Screen Change according to standby mode time Shift to OFFLINE mode settings Setting the frequency of Keypad Display processing performed
77. act your local P ro face distributor notturn OFF DIO Unitis defective Contact your local P ro face distributor Correctthe program Check common line wiring Check common line breakage Check common terminal for looseness External unitis defective Replace the unit InputON period is too short Lengthen the InoutON tme Designated Input DIO Unitis defective Contact your local P ro face distributor lines do notturn OFF Designated Input lines do notturn Input wiring is incorrect ON Program is incorrect Correctthe program nutare randomly uns ON or OFF Reduce the noise level Noise is causing unitmis operation Attach a surge killer Use a shielded cable LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 11 15 Chapter 11 I O Drivers E DIO Unit Output Errors Possible Cause Solution DIO unitis defective Ouput monitor Output line wiring check lamp is ON but Outputcommon line is incorrectly wired Outputline breakage check no ouputcan be Outputterminal looseness check performed Load currentis incorrect Provide the correctcurrent Connector is notsecurely attached Attach the connector securely DIO unitis defective Contactyour local P ro face distributor O uput monitor a Program Is incorrect lamp is OFF and Outputarea is completely OFF Correctprogram no ouputcan be performed E nable I O box is notselected S etthe E nable 1 0 eupuines TO DIO unitis defective Contacty
78. al Specify global for variables that are used to display Drawing Board Parts Global variables are automatically registered as LT symbols in the Symbol Editor when you save the ladder logic program These variables can also be shared with the Drawing Board s display feature Global non global settings of multiple variables can be performed at one time by selecting the desired variables from the Variable List Up to 2048 global variables can be set 3 6 Changing Variable Attributes Ge ai Preprogrammed system variables are set to global in the LT unit s initial NS settings 7 6 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 7 Variables fem Accessing Variables This section explains how to access variable array elements bits bytes and words An array is a method of declaring and handling multiple elements with a single variable name Variables of the same type can be registered as one group using an array One analogy is the drawers of a cabinet The array variable Cabinet 10 has 10 drawers numbered from 0 to 9 These drawers are called Cabinet 0 Cabinet 1 Cabinet 9 Each drawer corresponds to an individual data register in the PLC When using 10 locations of Cabinet memory first declare the variable name of Cabinet and the array size number of elements of 10 The variable type settings are listed as follows Cabinet Output l Not Assigned iA ae O Deae Configu
79. always passes power The following table lists the combinations of A and C in which NOT instructions can be executed Integer Array Integer Array Operation Example When Start is ON the result of the NOT operation of Data A and Data B is stored in Data C Start HOT EN ON Data A C Data C SPAKE MOV Transfer MOY EN DOWN IN OUT When the MOV instruction is executed IN is copied to OUT If IN and OUT are different variable types the resulting type will be converted to the same type as OUT To transfer arrays both IN and OUT must be identical in type and size The MOV instruction normally passes power The following table lists the combi nations of IN and OUT in which MOV instructions can be executed LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 9 Instructions Real Variable or Array in IntegerorReal ote Overflow will turn ON if the operation involves a Real to Integer data type conver 2 sion and the value is too large to transfer In this case the result will be undefined The following examples illustrate how to use the MOV instruction Example 1 Clear a variable A variable can be cleared with the MOV instruction by transferring a 0 into the variable Clear_Sales Example 2 Block transfer an array A block transfer can be performed with the MOV instruction by specifying two arrays of the same type and size For example whe
80. amming Guide 9 11 Chapter 9 Instructions esa NT Negative Transition Contact Variable N When the NT instruction is executed if the variable was OFF during the previous scan but is currently ON power is allowed to pass for a single scan During the first scan the state of transition during the previous scan is considered to have been OFF Therefore the NT instruction does not pass power during the first scan The following diagram is an example of the NT instruction s function Start Motor mma fa Previous Current Next Next Scan Scan Scan Scan 1 i i Start n l 1 Motor i o NT Detected a A When the Start variable turns OFF the Motor variable turns ON B After one scan the Motor variable turns OFF C Since the rising edge of the variable Start is not detected the variable Motor remains OFF 9 12 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 9 Instructions 9 2 9 AND And AND EN DOWN A C B When the AND instruction is executed the bit in C turns ON 1f the corresponding bit in both A and B is ON Otherwise the bit in C is turned OFF A Operator B C IntegerA O 1 1 0 a 1100 Bh we E IntegerB 1 1 0 0 E 0 0 0 1 OFF OFF IntegerC O 1 0 0 7 0 0 0 0 There are three types of AND instructions 1 When all the variables are not array variables a simple 32 bit AND opera tion is performed 2 When A and C
81. aniinsarcuentatleeraneies 1 33 Di VS CU AG E A E 1 35 Navigating a Ladder Logic Program cccccccssssssssscccccsssssssssssccsoees 1 36 LST Tie Fmd Commn essa on ee 1 36 LS 2 The Relterences Command gaccscesce coseoces cotesccaceamesatsaccnteasecqasaa cece 1 37 1 8 3 References Dialog Box with Other Dialog Boxes 1 38 154 Usmge B okmarks cencioceee garrsaiececwm aeons smear a 1 39 1 8 5 Using the Go To Rung Command ccccccccessseeeeeeeeeees 1 40 1 8 6 Using the Go To Label Command ce eeeeeeeeeeeeees 1 40 VOC OMT Ura ON aeree E svssennsenisesasevesesssvesdenvsevstenscennes 1 41 1 9 1 Assigning Variables to I O eeeessssssssseessssssssssersssssssssceressssssseeeeees 1 41 1 9 2 Unassigning Variables from the Configure I O Dialog Box 1 48 Mee ANS STO VOTO VAR C8 apg ecco meins ares rd 1 48 1 9 4 Converting I O Configuration Data cccccccccccceeeeeeeeeeeeees 1 49 Checking the Validity Of a Program ssssscssccccccssssssssscccccsccseeees 1 51 Printing Your Ladder Logic Program ccccccccssssssssssccccccccsssssseees 1 53 Importing Exporting a Logic Program cccccssssssscccccsccssssssseees 1 55 Developing a Screen Program ccccccccccssssscsssscccccssssssccssssccccsccsssccssees 1 57 CHAPTER 2 RUNNING THE LADDER LOGIC PROGRAM 2 1 2 2 2 3 2 4 2 5 2 6 Configuring the LT Controller sssssssssesceceeccoccocoossssssssseseceeeesossssssssss
82. ariables A and B are integers simple 32 bit OR operation is performed 2 When A and C are array variables and B is not an integer array logical OR Operations are performed for each element of A and B and the results are stored the corresponding elements of C Make sure that the size of A and C arrays are the same 3 When the three variables are arrays of the same size logical OR operations of array A and array B are performed The results are stored in array C The OR instruction always passes power The following table lists the combinations of A B and C in which OR instructions can be executed PB JO Integer nteger Operation Example When Start is ON the result of the logical OR operation of Data A and Data B is stored in Data C Start _ 9 14 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 9 Instructions 9 2 11 XOR Exclusive OR AOR EN DON A C B When the XOR instruction is executed the bit in C turns ON 1f the corresponding bit in A or B is ON Otherwise the bit in C is turned OFF A Operator B C C InegerA O 1 1 0 oh 1 1 0O 0 By e IntegerB 1 1 0 0 m 000 1 OFF OFF IntegerC 1 O 1 0 a 1 1 0 1 There are three types of XOR instructions 1 When both variables A and B are integers simple 32 bit exclusive OR operations are performed 2 When A and C are array variables and B is not an integer array exclusive OR operations are
83. as A Integer Constant Integer or Integer Constant Example The following example describes the operation of a 1 bit rotation using a product presence absence signal Start Product presence C Product absence signal presence absence signal Bits f Product presence absence signa gt _ _ _ gt _ oi _ _ Rotate Left 1 bit position Product presence absence signal Most significant bit Least significant bit LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 9 Instructions awa ROR Rotate Right A Variable name to be rotated ROR N Number of bit positions to shift EN ON A C C Destination variable N The ROR instruction right shifts the bits in A by N positions Bits are rotated from the right end least significant bit to the left end most significant bit The result is placed in C The ROR instruction always passes power There are two types of ROR instruction 1 If neither A nor C is an array a simple 32 bit rotation is performed N must range from 0 to 31 2 If both A and C are Integer arrays of the same size the array is treated as a large Integer Bits are shifted from one element to the next rather than rotating only within each element N must range from 0 to 32 x array size 1 inclusive ote Overflow is turned ON if N is out of range The result is undefined 8 2 18 Overflow
84. ase read this chapter thoroughly to under Important Stand the operation and design the system in consideration of safety issues e When OFFLINE mode is entered the controller will stop Re entering RUN mode will reset the LT LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 6 1 Chapter 6 Controller Features mee Controller Feature Overview The Controller feature functions as follows The facing page provides detailed Initial Processing Loading descriptions of each step RESET RESET PAUSE RUN First Scan RESET Temporary Stop Perform 1 Scan First Scan Perform 1 Scan STOP Continue STOP STOP E Initial Processing This is the original state of the engine use to perform the Logic Program Once initialization is finished the Controller enters the Loading state E Loading Here the actual reading in from memory of the Logic Program is performed After a check 1s performed to determine whether the Logic Program is successfully loaded or not error processing is performed if an error has occurred If Loading 1s successful the program enters the STOP state If the Power ON Operation Mode is set to START the RUN instruction is automatically performed 6 2 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 6 Controller Features E STOP In this condition the Controller is waiting to receive an
85. ata B and the remainder is stored in Data C Start The following example is an Integer 27 divided by 5 and the result 2 is placed in C B z A 2F 5 27 A 5 25 Ep c 9 2 25 INC Increment A Data INC EN ON A When the INC instruction is executed one 1 is added to A and the result is then placed in A The INC instruction always passes power The following table lists the combinations of A in which INC instructions can be executed LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 9 29 Chapter 9 Instructions Se Overflow is set if A increments from 0x7FFFFFFF to 0x80000000 8 2 18 Overflow Example When Start is turned ON 1 1s added to Data A Start ING _ EN DH l Data A DEC Decrement 9 2 26 A Data DEC EN DN When the DEC instruction is executed one 1 is subtracted from A and the result is then placed in A The DEC instruction always passes power The following table lists the combinations of A in which DEC instructions can be executed Note Overflow is set if A decrements from 0x80000000 to Ox7FFFFFFF 8 2 18 Overflow Example When Start is turned ON 1 is subtracted from Data A Start DEC EN DN 4 Data A 9 30 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 9 Instructions awa EQ Compare A Data EQ EN 2 B Data A B The EQ instruction passes powe
86. ate Can be used only for debugging Controller Setup Tuning Memon if Fixed Target scan time i Percent Percent allocation il Disable controller auto start l Skop on minor fault ok E cma ew E e 2 To assign variable names Sensor and Fan to external I O click the Data menu s Configure I O button and the Configure I O window will appear 43 Configure 170 Tiol te setup LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 21 Setup Guide Tutorial 3 10 to 115 and QO to Q15 will appear below Module 0 which is under the DIO driver I represents input and Q represents the output signal s external I O Double click on I3 type Sensor in the text entry box and press ENTER Configure 1 0 Tios fa 10 fA I FA 2 E 14 5 E IE I7 18 fA 13 amp n0 6B 111 fA 12 fA 113 E 114 6B 115 Senso 4 When the following dialog box appears click the OK button This will create a variable name for I3 and allocates that variable to the input terminal 4 Logic Program Editor 2 Okay to create the variable Sensor of type Discrete fou can disable this message in Preferences ote Discrete indicates a variable type that uses bit units for processing 7 2 Variable Types 5 Next use the same procedure to assign the name Fan to Q3 Variable names allocated here are used by the logic program and
87. ause the execution of a ladder logic program Refer to 12 2 Error Codes For information about ErrorHandler subroutine refer to 8 2 18 Overflow Variable Type Discrete Set by User Initial Value OFF Writable Ss wael PercentAlloc PercentAlloc is used when the controller is set to the Percent Scan mode It sets the percentage of the LT unit s total CPU time available to the controller Set a scan time value in multiples of 10ms PercentAlloc can be set in the initial settings or the configuration settings when the controller is in RUN mode Usually PercentAlloc can be set up in the Setup dialog box Refer to 6 1 2 RUN Mode Variable Type Integer Set by User Range 0 to 50 Initial Value 50 Writable 8 2 24 The controller stores the screen number set by Screen Variable Type Integer Set by User Initial Value O Writable QR re The screen number set in Screen defines which base screen to display NY This number is not the currently displayed screen number 8 14 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 8 System Variables When changing screens use the Screen in the logic pro gram Do NOT write directly to the Screen using touch input Important Change screens using the logic program diagram below as an example Screen Switch MOS EN ON TOOuIN OUT 5creen 0 ewwa TargetScan TargetScan is used when the controller is set to the Consta
88. ave finished LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 9 Chapter 1 Creating a Program e If you typed a variable name incorrectly simply rename it using the Rename option in the Edit menu s Variable List window To create variables faster in the Vari able List window press the INSERT key iam Saving Your Program To ensure the safety of created data it is recommended that you save your logic program periodically When a logic program is saved global variables created with the Logic Program Editor are automatically registered to the Symbol Editor as Logic symbols and can be used in common with the display function of the Drawing Board E To Save the Program Select Save from the File menu on the Logic Program Editor screen e You can also save your program by clicking on the toolbar or by pressing the CTRL S keys Operation Manual Screen Creation Guide 4 2 5 Symbol Editor lt Summary gt In this section you have learned how to e create variables and use dialog boxes associated with the variables e determine variable types Save a program 1 10 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program ye Inserting Rungs Instructions and Branches The first step in creating a ladder logic program is to insert a rung The screen initially shows a blank program as illustrated below The completed sample of the tutoria
89. ble Type window Error 302 Label not found The Jump Subroutine instruction refers to a label that does not exist Error 303 Variable referenced should be a Timer or Counter You have specified an element of a Timer or Counter variable however the variable is actually of a different type Refer to the Variable Type window Error 304 Variable s referenced should be Integer type You have used a variable to specify an array element or modifier This variable must be an Integer Refer to the Variable Type window Error 305 Array reference to non array variable You have specified an element of an array however the variable is not designated as an array Refer to the Variable Type window Error 306 Array reference is beyond size of array You have specified an element of an array using a constant that is equal to or larger than the array s size Note that the valid elements are numbered 0 to size 1 You can change the size in the Variable Type window Error 308 Modifier reference is out of range You have specified a bit byte or word element that is out of range Error 309 Reference is invalid for the variable You have specified a timer reference for a counter variable or vice versa Warning 310 Already exists and will be replaced A variable by that name already exists The new one will replace the original one if you click on OK in the Variable Import Status windo
90. cabinet fans that are kept running for minute 60 000ms after the high voltage turns OFF Power_Supply High_Voltage_Power_OFF TOF High_Voltage_Cabinet_Fans TI FT y AB c DOE f A The timer input bit IN turns ON the timing bit TI remains OFF the timer output bit Q turns ON and the elapsed time ET is reset to 0 B The timer input bit IN turns OFF the timer starts timing TI turns ON and the timer output bit Q remains ON C When the elapsed time ET equals the preset time PT the timer output bit Q turns OFF the timer stops timing TI turns OFF and the elapsed time stays fixed at preset time ET PT D The timer input bit IN turns ON the timing bit TI remains OFF the timer output bit Q turns ON and the elapsed time ET is reset to 0 E The timer input bit IN turns OFF the timer starts timing TI turns ON and the timer output bit Q remains ON F Before the elapsed time ET equals the preset time PT the timer input bit IN turns ON and the timer stops timing TI turns OFF The timer output bit Q remains ON and the elapsed time ET 1s reset to 0 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 9 37 Chapter 9 Instructions 9 38 v ng TP Timer Pulse IN Timer starting bit Variable PT Preset time of timer Q Time up flag PT ET ET Present value of timer When the timer input bit IN receives power one time the TP instruction turns ON the
91. ch available condition i iinn BR so 5 Use the same procedure to drag the On delay Timer Rung 2 to the base screen The On delay timer is treated as a Keypad Input Display when it is placed on a base screen BY Untithed Run Time Timer LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 3 Setup Guide Tutorial 6 When the Keypad Input Display Settings dialog box appears click the Place button to place it on the screen The Keypad Input Display when touched displays a keypad on the LT screen allowing you to input numerical values Keypad Input Display Settings KD_O01 General Settings Display Format Shape Coler Description Wand Address E Run_Time_Time T Poa e 7 Next click the Tool Bar s icon to call up the Save As dialog box Enter 1 in the Screen field and click the OK button Setting the screen number to 1 designates that the screen will be used as the initial screen when the LT is started Project File noname K Screen Type Base Screen Cance Cancel Screer i Description Untitled Help LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Setup Guide Tutorial 6 Transfer Screens and Logic Programs to LT Unit Check Operation In this step we will transfer the logic program and project screens we created to the LT to confirm that they operate correctly Prior to
92. chapter s tutorial explains how to create a ladder logic program CHAPTER 2 RUNNING THE LADDER LOGIC PROGRAM This chapter explains how to transfer a completed ladder logic program to the LT and then run the program CHAPTER 3 ON LINE EDITING This chapter describes how to use On Line mode to confirm the execution of the ladder logic program CHAPTER 4 ERRORS AND WARNINGS This chapter describes error messages that may be displayed when checking errors with the Logic Program Editor CHAPTER 5 GLOSSARY OF TERMS This chapter explains many of the terms used in the Logic Program Editor Features Section The Features section describes how the LT unit operates and provides a list of instructions and variables used in the ladder logic program LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide CHAPTER 6 CONTROLLER FEATURES This chapter describes the operation of the LT unit s controller CHAPTER 7 VARIABLES This chapter provides definitions of the variables used in the ladder logic program and how to use them CHAPTER 8 SYSTEM VARIABLES This chapter lists variables that are predefined by the controller CHAPTER 9 INSTRUCTIONS This chapter lists instructions that the Logic Program Editor supports CHAPTER 10 LS AREA REFRESH This chapter describes how to use the LS area which is used for control as well as for sharing data with display features and external devic
93. ct A major system error has occurred your local P ro face distributor 11 18 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide WA Error Messages PAI Error Message List This chapter explains the error messages that can appear on the LT unit The error messages explained here are those related to the LT program only For further information concerning LT error messages refer to LogiTouch Series User Manual Sold separately Error Message cause Soton invalid ladder file Fatal Error Drive check Failed Global Data Area Too Small CantSetPriority Exception nnn mmm 000 Watchdog Error The LT s logic program file is notdownloaded or the file is damaged The LT s currentl O driver is incorrect The dowloaded file s data may be damaged The LT s system file is incorrect T he file may have been damaged during downloading A fatal error has occurred in the lader logic program The ConstantScan Time is longer than the Watchdog time LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Download another copy of the projectfile from the LogiT ouch Editor Check thatthe I O driver setin the logic program file and the driver installed in the LT are the same Download the projectfile again If this does notfix the problem contact your local Pro face dealer Download the projectfile again Write down the error message details and consult your
94. ct the START label in your program Click the Text to find field of the Field Text dialog box Type FILL v p 1 36 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program 6 Select Global Forward and From cursor 7 Click on the Find button The focus moves to the first match found a part of the Fill _ Timer variable 8 Click on the Find button again The focus moves to the next match found When you have reached a point in your program where there are no more La instances of the items you are trying to locate a beep sounds Note After the first Find operation You can locate subsequent occurrences of a text XV match by selecting Find Next from the Search menu IE 7 4 The References Command The References command allows you to locate all occurrences of a specific variable in your ladder logic program It identifies the rung numbers and the instructions the variable appears on For this tutorial you will select the START label However the References command can be implemented from any point in your program E To use the Reference command 1 Click on the START label 2 From the Search menu select References The References dialog box appears 4 References coe Hep JA Exact matches only 3 Re size and move the References dialog box to the lower right hand corner of your screen 4 Cl
95. cted rung The meaning of these buttons is as follows HE iomatyopenconscoy HF noray oioses conero Bio eis On Delay TON E Timer Off Delay TOF m Up Counter CTU p Down Counter CTD LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 13 Chapter 1 Creating a Program E Method 1 Insert instructions from the toolbar ot 1 Click on the WE button The following box will appear L The instruction now appears on the selected rung Also there is a box above it with a flashing cursor inside This is the Instruction Parameter Box and is where you enter a variable to associate with the instruction This will be ex plained in more detail later in this chapter 2 Click on the 1 button This places an output coil on the right side of rung 2 Though the Instruction Parameter Box is still flashing please ignore it for now GTI For Variable entry information refer to 1 4 Assigning Variables to Instructions 214 3 Click on rung 2 between the NO and OUT instructions 4 Click on the Normally Closed NC button TE and that symbol will appear 2144 o For a description of each toolbar button s feature place the cursor over the button and read information that appears in the status bar Though the toolbar offers an easy way to insert frequently used instructions it does not include all Logic Program Editor instructions available within Logic Program
96. culation might X result in 1 99999999999 which is less than 2 Example Run mode is triggered when the value of Data A is smaller than that of Data B after Start is turned ON Wali GE Compare gt A Data GE EN G B Data Ay B 9 32 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 9 Instructions The GE instruction passes power if A is greater than or equal to B The following table lists the combinations of A and B in which GE instructions can be executed Integer Constant Integer Constant Real Constant Real Constant Bre Real values need to be compared very carefully For example a calculation might Ne result in 1 99999999999 which is not greater than or equal to 2 Example Run mode is triggered when the value of Data A is equal to or greater than that of Data B after Start is turned ON ee LE Compare lt A Data LE EN E B Data A B The LE instruction passes power if A is less than or equal to B The following table lists the combinations of A and B in which LE instructions can be executed Integer Constant Integer Constant Real Constant Real Constant Note Real values need to be compared very carefully For example a calculation might Ne result in 2 000000000001 which is not less than or equal to 2 Example Run mode is triggered when the value of Data A is equal to or smaller than that of Data B after Start is turned ON
97. d by the system BCD BIN conversion error n Reserved by the system is Reserved by the system gip Data Watch List File Edit iew Help FaultCode In the Data Watch List window FaultCode 7 is displayed This indicates that the scan time has exceeded the watchdog time 8 10 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 8 System Variables wate FaultRung FaultRung stores the rung number where a fault occurred FaultRung is set to 0 if there are no faults The following example shows when an error occurred at Rung 3 This error is caused by subtracting the Integer by 0 when DIV Instruction is executed This error remains until the next error occurs or the controller is reset Variable Type Integer Set by Controller Read Only Switch Outputi 2 4 switch Di 4 END 5 PEND gip Data Watch List File Edit Miew Help FautRung 2 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 8 11 Chapter 8 System Variables 1OFault turns ON when an I O fault occurs with the I O driver This error re mains until the next error occurs or the controller is reset Check the 1OStatus variable for detailed status of the I O driver When 1OFault turns ON OFault is displayed in the Data Watch List window Variable Type Discrete Pa nara wei ick Set by Controller File Edit View Help Read Only l Status To 802 0 0 0 0 0 0 0 04 For
98. e References window to find the other instruction s Error 257 Last instruction on rung should be an output The instruction is not an output instruction 1 e it does not change the values of its parameters Error 258 Multiple outputs are not allowed An output instruction cannot have other instructions to the right of it Error 259 Last instruction on branch should be an output An output instruction cannot have other instructions to the right of it Error 260 Maximum level of nesting exceeded The rung has too many levels of branches the maximum number of levels is 25 Try dividing the rung into several smaller ones Error 262 Program is too large by xx see Controller Setup Memory The program size is larger than the LT Flash Memory Warning 263 The variable is used by more than one coil When the ladder logic program is executed the result of the last instruction to which the variable is assigned will be effective LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 4 3 Chapter 4 Errors and Warnings 300 399 Variable errors and warnings Warning 300 Variable has input or output type but no I O address assigned The variable is marked as an input or output refer to the Variable Type win dow however it is not mapped to any I O Error 301 Type not assigned The variable has not been assigned a variable type To assign a variable type use the Varia
99. e A Discrete variable e An element of a Discrete array or e A Discrete element of an Integer variable Error 201 Parameter should be a Counter The instruction requires a Counter variable Error 202 Parameter should be a Timer The instruction requires a Timer variable Error 203 Parameter should be an Integer or Real The instruction requires an Integer of Real either as a variable or a constant Error 204 Parameter should be a non constant Integer or Real The instruction requires an Integer or Real variable It cannot be a constant Error 205 Parameter should be an Integer The instruction requires an Integer as a variable or a constant Error 206 Parameter should be an Integer but not an array The instruction requires an Integer either as a variable or a constant It cannot be an array Error 207 Parameter should be a non constant Integer The instruction requires an Integer variable It cannot be a constant Error 208 Parameter should be a label The instruction requires a label name and a label with that name must exist Error 209 Parameter should be a subroutine The instruction requires a subroutine name Error 210 Label is out of scope The specified label exists but cannot be reached from here LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 4 1 Chapter 4 Errors and Warnings 4 2 Error 211 Subroutine cannot call itself The Jump Subro
100. e Discrete Mou can disable this message in Preferences 4 Click on OK In the Variable List dialog box the variable Light appears in the list The Logic Program Editor has automatically assigned it a variable type In this case it has assigned it as an internal discrete variable The Logic Program Editor automatically assigns variable types to any new in struction variables created You can also type a variable that already exists in your variable list directly into an Instruction Parameter Box The variable is assigned automatically when you finished entering it If you change the variables assigned to Coil instructions i e OUT SET RST NEG to Retentive the Coil instructions also automatically change to Re tentive type i e M SM RM NM LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 23 Chapter 1 Creating a Program 1 24 Rung 3 should look like this Power Off pushbutton Light 3 Ott Ott Assign the variable Ice_Maker to the SET coil on the first initialization rung This variable can be created by typing it directly into the Instruction Parameter Box After it is typed the initialization rung appears as follows lce_ Maker Ot Another method of assigning variables to instructions is to simply drag the vari able from the Variable List dialog box to the instruction itself This method is very convenient if there are many instruct
101. e Project Manager window click Draw Screen to activate the Drawing Board Screen Editor 2 Click Screen New on the Menu Bar Check that Base Screen is selected and click the OK button E To Draw using Drag and Drop Operations 1 Select the Ice pushbutton in the Logic Program and drag it to the Drawing Board Screen Editor DemMjajejeajs rej o s aele oasoxx weit xl OOGC amp A st a l ji Es Ox MI Pats File Edit View Searc vw alkeita 2 Hel eel ele e se EA eeano a Ice is dispensed for as long as the push button is pressed providing a cup is present OR EES PRO CHIOFOR GG Penner Cup Present_for_Ice Ice 5 ct H Lad Off Off Off t EE a Ready a Small_pushbutton MOS To amp P EN DW Off 4000 IN OUT Fill Tiemer PT 2000 a000 LogiTouch Type B B LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 57 Chapter 1 Creating a Program 2 The Bit Switch Settings dialog box appears on the screen Select Momen tary from the Function field Check that the Operation Bit Address is set to Add Ice and then click the Place button to place the pushbutton Bit Switch Settings E5_001 General Settings Shape Color Label Description Operation Bit Address State On or w Monitor Moni
102. e above windows display the maximum input output points of an I O unit in the Flex Network system The number of input output points will vary depending on each I O unit model Use each unit within the range of its I O points beginning from 0 When using an input only I O unit use only input area of the window and when using an output only I O unit use only the output area When using a unit with inputs and outputs use both the input and output area I O Monitor when the VARIABLE TYPE is set to WORD The input data will be displayed in the input section if any Enter the necessary data in the output section via the ten key pad When using the LogiTouch touch the data entry field and a ten key keypad will appear After entering data touch the OUT key to output the data Data will be displayed in the decimal format 1 0 MONITOR Faal S o INPUT oj 0 68838 ol o 65535 our 11 6 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 11 I O Drivers Enter data within the output range according to the number of m the I O points in each I O unit Important I O Points I O Range aooo a D0 655 Data will be output to the I O unit for the number of I O points according to the MODEL selected on the I O MONITOR SETUP window If data that cannot be expressed in the 8 bit system is entered in an 8 point output I O unit excess data will be ignored 15 0 VO Monitor 0 0 0 0 0 0
103. e attempted to assign too many variables Error 321 Too many variables You have attempted to assign too many variables Reduce the number of variables 400 499 Logic Program LogiTouch Editor I O errors and warnings Error 400 Variable Name has already been mapped The variable is mapped to more than one I O point Refer to the Configure I O window 900 549 Generic I O driver errors Error 501 Internal variable mapped to I O terminal The variable is marked as internal however it is mapped to an I O terminal Refer to the Variable Type window Error 502 Input variable mapped to output terminal The variable is marked as an input however it is mapped to an output terminal Refer to the Variable Type window Error 503 Output variable mapped to input terminal The variable is marked as an output however it is mapped to an input terminal Refer to the Variable Type window Error 504 Discrete variable mapped to analog terminal A Discrete variable cannot be mapped to an analog terminal Error 505 Integer variable mapped to discrete terminal An Integer variable cannot be mapped to a discrete terminal LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 4 5 Chapter 4 Errors and Warnings Error 506 Variable type not supported by I O driver The I O driver requires a different type of variable to be mapped to this terminal 800 899 Specific I O dri
104. e number of elements it contains 1s 65535 However the actual number of elements that can be used by any application is limited by the size of the LT unit s variable storage area The amount of memory available to the LT for variables is limited to 32KB Be sure to design your system so that the number of variables used does not exceed the LT unit s memory limit Use the following table to find the amount of memory used by each variable Variable Type Memory Used unit byte me ooo a Discrete Array 20 No of elements x 12 Integer Integer Array 20 No of elements x 8 16 Real Array 20 No of elements x 16 C E In the PLC the number of variables that can be used by each device is limited In the LT however variables can be registered regardless of type as long as the overall limit of 32 KB is not exceeded Conventional PLC LT Editor Variables E xternal InputContact X E xternal O utputContact Y Internal Relay M Data Register D moO WwW gt gt PLC Device and LT Variable Comparison E Discrete Variables These variables are used to define a discrete condition i e ON or OFF using a single bit and the values 0 or 1 E Integer Variables These variables use 32 bits to define integer values from 2147483648 to 2147483647 7 4 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 7 Variables E Real Variables These variables use 64 bits to def
105. e same time 4 Data Watch List File Edit View Help Tirill Binary Ctrl B Decimal Ctrl D Hexadecimal Ctrl H Octal Ctrl U E To Display Array Elements When creating an array via Data Watch List you can display array counter timer s values by element 1 Select the Data menu s Variable List and Data Watch List 2 Select the Data Watch List menu s Edit and select Add Elements from the Edit box Data Watch List File Edit view Help Delete Watch Del Add Watch Ing Add Elements Chrl E Value Chr Tum OH Tidit Tum OEF Ciee Fares DHI Fues nFF Frenne Fuge Force List LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide i Errors and Warnings Error or warning displays may appear in the Validity dialog box when a validity check is done on a program These errors and warnings may be related to a prob lem with the program s logic variables or I O The errors are indexed numerically with each numeral being part of a specific range Each range specifies a general area for you to focus on when determining why the error or warning has occurred 200 299 Logic errors and warnings For information on instruction for the logic program Select it in the main window and then from the Help menu select Context or press the F1 key Error 200 Parameter should be a Discrete The instruction requires a Discrete operand This can be
106. e types 7 2 Variable Types E Assigning Variable Types 1 Select Discrete from the Variable Type list 2 Select Input 3 Click on the Retentive box to deselect it Data will not be retained if the power supply is cut or the LT unit is reset 4 Click on Create Cup_Present_for_Ice has now been assigned as a dis crete input Note that the variable type change that you made to Cup_Present_for_Ice in the Variable Type dialog box has now taken effect in the Variable List window and that the Variable Type dialog box is still open If you had clicked on OK the changes would still have occurred in the Variable List window but the Variable Type dialog box would have closed The advantages of leaving these dialog boxes open becomes apparent as you begin inserting rungs and instructions as well as using LogiTouch Editor s drag amp drop click and insert l features R re You can select the variable types you want to view in the Variable List window by X selecting View then selecting the variable types you want displayed A check mark appears beside the selected variable types Now you have learned how to create a variable and assign a variable type to it create the list of variables shown in the following table Variables can be created directly in the Variable Type dialog box Variable Name Variable Type VO Type Hold Release Global Close the Variable Type dialog box when you h
107. ece oace tomcat gene roseeetoweautomeenigenanct 1 18 hee RAIMI ZAOM LOGIC e E T 1 20 1 4 Assigning Variables to Instructions sccccccccssssssssssssssccccccccsssssssees 1 22 1 4 1 Instruction Parameter BOX sessssssssoseesssssssssserrsssssseseerrssssssseeerees 1 22 1 4 2 Entering Variables iadascsoceassisasrtasecotneseusesetannaosnenieesianesedaaieeiasessness 1 23 1 4 3 Completing the Program essssssseeeesssssssseseresssssssseerrssssssseeeeees 1 25 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 11 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 Documenting a Ladder Logic Program ssssscssccccccsssssssssscccooees 1 27 1 5 1 Adding a Program Description sasicrssesscsrcrnsasesevsadasdevncciaxerrncaeroers 1 27 1 5 2 Adding a Rung Description ssseeeeesssssssecrressssssseceressssssseceeees 1 28 1 5 3 Adding Descriptions to Variables sssssssoeennsssssseseeerssssssseeeeees 1 29 1 5 4 Description List Dialog BOX sssssssseeesssssssseerssssssssseerrssssssseeerees 1 30 Copying Cutting and Pasting RUNgS ssescccssssseeeccococssssececocossssseceeooso 1 31 LOL Copying a RUNG sssrecsresrpreserasrsr fireoin rusras pote ssansasseiersoimanuess 1 31 Lo Pastine a Rin esner iira eE 1 31 TOS CE CONA eR E 1 32 Subroutines ANG LaDels cesscssiesassnecsscadiinteestacsdbansonsbsnsanenesendicatanstassteaeunnne 1 33 1 7 1 GETING AS UD COU LING xc cscs essaancaentagutusssannaensc
108. ed the variable turns OFF when the coil receives power and ON when the coil does not receive power Since this instruction is a coil type output instruction only one instruction can be used for each rung Other instructions cannot be used on the right side of the output instruction The output instruction should be placed immediately left of the right hand power line When the variable mapped to NEG instruction 1s retentive the following symbol is displayed in the logic program hte The following diagram is an example of the NEG instruction s function Start Motor fp _ pp Start Motor 1 A When the Start variable turns ON the Motor variable turns OFF B When the Start variable turns OFF the Motor variable turns ON The NEG instruction can be used only with non retentive variables LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 9 Instructions CWE SET Set Coil Variable 6 When the SET instruction is executed after the coil receives power the variable turns ON The variable will remain ON until explicitly turned OFF by another instruction such as an RST instruction Since this instruction is a coil type output instruction only one instruction can be used for each rung Other instructions cannot be used on the right side of the output instruction The output instruction should be placed immediately left of the right hand power line When the variable mapped to SET
109. en data and logic program via the Transfer window of the LT Editor e transfer the logic program exclusively via the Transfer window of the LT Editor Make sure to set up your LT before writing the logic program To set up an LT transfer the system along with a Project File via the Transfer window of the LT Editor For details on transferring data refer to Operation Manual Screen Cre ation Guide Chapter 7 Transferring Data This section describes how to transfer only a logic program using the LT Editor LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 2 3 Chapter 2 Running the Ladder Logic Program E To Write to the Controller 1 From the Controller menu select Write to Controller and the following dialog box appears prompting you for your OK before writing to the Controller Before a program is written to the Controller the LT Editor automatically runs a validity check A program containing errors cannot be written to the Controller Write to Controller 2D About to write the working copy of Untitled to the controller connected to CUM2 Please confirm JC i 2 Click on OK The Download Progress dialog box appears and displays the status of the download of data to the LT Download Progress WARNING Interrupting a logic download will leave the LogiT ouch Hardware in ar unuzable state Bytes sent 25058 of E5536 Average BPS 8362 Se te e The Flex Network drive
110. ered or debugged later on In the LogiTouch Editor you can document how the program performs how each rung operates and what specific variables are used for IEA Adding a Program Description The first description to add to your ladder logic program is a description explain ing the program s features E To add a program description 1 Double click on the Program Description field at the top of the screen and the Description dialog box will appear Message Field 2 Description mo Prograrri Text Field Program Description All LogiTouch Editor descriptions are entered here ae The word Program above the text field in the description dialog box indicates XN that the text field contains a description of the program 2 Click on the Program Description text 3 Type This program runs a typical fast food restaurant soft drink dispens ing machine 4 Click on OK This description now appears at the very top of the ladder logic program You may need to scroll up to see it 1 START This program runs atypical fast food restaurant soft drink dispensing machine Ice Maker 9 J mpm Ott Note You can also add or edit a Program Description by double clicking the lower left hand panel of the status bar LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 27 Chapter 1 Creating a Program ieee Adding a Rung Description Via the Logic Program Editor you can add de
111. es CHAPTER 11 I O DRIVERS This chapter describes each I O driver available It also explains self diagnostic and troubleshooting procedures CHAPTER 12 ERROR MESSAGES This chapter describes the error messages that may appear during LogiTouch Editor operation Note On line Help also provides detailed Logic Program Editor information Na LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 7 PRECAUTIONS E CD ROM Usage Precautions To prevent CD ROM damage please observe the following instructions e Do not turn your PC ON and OFF with the CD ROM in the drive 3 cy S Do not remove the CD ROM from the CD ROM drive while the drive s operation lamp is lit Do not touch the CD ROM recording surface Do not place CD ROMs in a place where they may be exposed to extremely high or low temperatures high humidity or dust Di E Product Usage Precautions To prevent a program malfunction or accident be sure to observe the fol lowing instructions Touch panel switches should NOT be used as a device s emergency stop switch Generally speak ing all industrial machinery systems including robots must be equipped with an emergency stop switch that only operates manually Also for other machinery systems similar manual switches must be provided to ensure safe operation gt Warning Do not turn off your personal computer s power switch during the execu tion of
112. g Guide 3 3 Chapter 3 On Line Editing lt w S Forcing Discrete ON and OFF A discrete can be forced ON or OFF while you are online in the Controller The difference between turning a discrete ON or OFF and forcing it ON or OFF 1s that if you force it the variable does not change its state until the force is manually changed The program logic and I O cannot change its state The discrete ON and OFF operation described in section 3 3 depends on the calculation result of the program however the force discrete ON and OFF operation does not depend on the calculation result E To Force a Discrete ON or OFF 1 Right click on the variable Soda_valve on the output coil on rung 9 2 Select Force ON from the short cut menu 3 Click on OK in the Force dialog box ee Indicates variable has been forced ON Of ON The variable turns ON and cannot be turned OFF by the ladder logic program EX te If you find that forced variables have no effect in your ladder logic program they XV have probably been disabled in the LogiTouch Editor To enable forces click on the Enable All Forces button in the Start Stop Controller dialog box or use the Con troller menu and the toolbar seem Changing Variable Values While you are online to the Controller you can set the value of any LogiTouch Editor variable included in your ladder logic program E Changing a Variable Value 1 From the Data menu select Value The Dat
113. g az the push button is pressed providing a cup is present 4 Variable List File Edit View Data Help Discrete Input Timer Internal Ice Discrete Output lce_ Maker Discrete Internal E lce_ pushbutton Discrete Input RAG Large _pushbuttorn Discrete put A linpi Diarree atat Ri RG MOY 4000 Fill Timer PT MOY 600 Fill_T imer FT 8 MOWY S000 Fill_T imer FT 3 ONC Fill Timer TON Fill Tirner close Heb Ji Exact matches only 1 38 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program Sr 3 Click on the variable Fill_Timer in the Variable List dialog box Note The displays of the Description List and References dialog box will change NX according to your selection The References dialog box now displays every instance of the variable Fill_Timer Also note that even though you change a dialog box s display the ladder logic program s display does not change The corresponding point in your logic will appear when you select any variable line in the References dialog box 4 Click on the first line in the References dialog box Your ladder logic pro gram now displays that variable highlighted on the rung and the instruction you specified IE S Using Bookmarks If you are constantly referring back to a specific point in your ladder logic pro gram using a Bookmark saves you repeatedly scrolling the screen
114. hbutton 2 Click on the text field of the Description dialog box 3 Type The Power On pushbutton starts the soft drink machine 4 Click on Apply In this tutorial descriptions are added to only the Fill_ Timer and Power_On_Pushbutton variables Descriptions for other variables can be cre ated by simply repeating the procedure described here LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 29 Chapter 1 Creating a Program ier Description List Dialog Box The Description List dialog box displays brief one line descriptions of all variables and rungs in the program E To bring up the Description List dialog box e From the View menu select Description List E To view a detailed description from the Description List dialog box Double click the Fill_Timer variable in the Description List dialog box The Description dialog box displays the detailed description of the Fill_Timer variable The Variable List Description and Description List dialog box displays change to reflect the rungs and variables selected in the ladder logic program However the opposite is not possible for example if a variable in the Variable List dialog box or a description from Description or Description List dialog boxes is selected the corresponding choice is not reflected in the ladder logic The search function of the Logic Program Editor allows you
115. his program runs a typical fast food restaurant soft drink dispensing machine a 7 File Edit View Search Insert Data Controller Hel CATA 4 2 BS_o0 oooo00 ooooo0 3 BS 002 000000 000000 4 g es5 003 oooo00 oooogo B5_004 000000 000000 5 amp 7 Caa Cow la I Link Select z Change Order A 2 ant Power_On_pushbutton Power _Off_pushbuttan 1 v 1 Off Off BEPRIACHEIOFHOERED OSOAIEFSIHIKRELIWNOD POURS TR hWUY YW pee Ra Read i roe ra YZ ii Ga share TEAGUE Example orw Until EBra LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 1 Chapter 1 Creating a Program 1 2 Soft Drink Machine LogiTouch Type A unit Light Power OFF button Power ON button Cup Available For Ice sensor Hardware Design LogiTouch Type A Power ON button Lamp etc Allocating I O Points The Ice_pushbutton Large_pushbutton Medium_pushbutton and Small_pushbutton are placed on the LT screen for touch panel input and are therefore not allocated to a terminal Power ON pushbutton mt 0 Power OFF pushbutton mt 6 om f o o a
116. i y cally when the Run Time Timer is created in step 10 This bit information contact information indicates that the time set in the Run Time Timer is elapsed 7 2 Variable Types Timer and Counter Voll 0 3 WQAT O S Sensor Fan Run_Time_T imer Aun_Time_Timer PT Run 2 s i Of Of Pun Time Tim Yale O35 Fan Crt Run Time Timer T oO 0 5 Run Time Timer SOOO PT ETIO 28 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Setup Guide Tutorial 14 Your logic program is now completed Click on the Tool Bar s E icon to save this program This program s variable information is imported to the Drawing Board when the program is saved Be sure to save your logic program before important trying to create an LT screen vol 0 3 01 0 3 Run Sensor Run Time Timer Q Fan 2 bb I_ ML Off Of Of Of wasa Fan Off oO 0 3 Run Time Timer Fan TON 3 IN a Df s000 PT ETIO LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 29 Setup Guide Tutorial 5 Create LT Screens In this step we will create an LT display screen Do not quit the Logic Program Editor when creating LT screens 1 After saving your logic program click on the Project Manager s Screen icon to call up the Drawing Board Next click on the Tool Bar s New icon to create a new screen TF Edt View Option paw Pars Special Library Window Help osa gt
117. i Electric 6 4 Movement Commands 9 3 O OFFLINE menu 11 9 p Program Errors 12 4 R Real 7 1 Real Variables 7 1 Run Time Errors 11 7 11 10 Running 6 3 S Scan Time Adjustment 6 4 Setting Errors 11 7 11 9 SIZING button 11 9 STOP 6 3 System Variable List 8 1 Temporary Stop 6 3 Timer and Counter Commands 9 3 V Variable Names 7 3 variable storage area 7 1 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Index LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide
118. iables and set the initial values used on the Logic Program Editor The completed sample of the tutorial program created in this lesson is located in the Soda lte file in the C LogiTouch SAMPLE folder Chapter 7 Variables mee Creating a Variable List You can add variables at any point while creating a ladder logic program For convenience create a list of the variables you will use in the tutorial now E Creating a List Please refer to the on line help for detailed descriptions of the menu items 1 From the Data menu select Variable List The Variable List window is displayed Variable List 10 File Edt View Data Help 2 From the Edit menu select Add Variable and the Variable Type dialog box will appear Yarable Type Input CA Output Mot Assigned AAN Contigyre WE i ra Size Jil Retentive i Global 3 Type Cup_Present_for_Ice in the Name field MEARI For details on variable name restrictions Chapter 7 Variables 1 8 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program eae Selecting Variable Types The variable Cup_Present_for_Ice is now displayed in the Variable Type dialog box The words Not Assigned are highlighted in the list below it There is no variable type assigned to Cup_Present_for_Ice Therefore it needs to be assigned as a discrete input SLEEK For the variabl
119. ick on the rung 6 s Fill_Timer PT variable and the References dialog box will appear as follows References Te Ops MOY 4000 Fill Timer PT MOY 6000 Fill Timer PT MOY S000 Fill Timer PT MC Fill Tirer 0 TON Fill Tirner MOY 4000 Fill Timner PT MOY 6000 Fill Tirner PT MOY S000 Fill Tirner PT LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 37 Chapter 1 Creating a Program In the References dialog box display e The number at the left of the line signifies the rung number the variable appears on This display tells you the Fill_ Timer variable appears on rung 6 7 8 9 and 10 When Exact matches only is selected the display shows that Fill_ Timer PT occurs on rung 6 7 and 8 e The next column on the line is the instruction type This is the instruction that this variable has been assigned to on this rung This display tells you the Fill_ Timer variables has been referred by three 3 MOV instructions one NC instruction and a TON instruction e The last column on the line lists the parameter that has been assigned to this instruction including the variable you initially referenced In this display you can see the integers 4000 6000 and 8000 assigned to the IN elements and Fill Timer PT assigned to OUT elements The References dialog box changes in accordance with your selection every time you click on a variable in your ladder logic program One advan
120. ificant bit being dropped from the left end of each element Only the most signifi cant bit of the highest numbered element within the array is dropped N must range from 0 to 32 x array size 1 inclusive Overflow is turned ON if N is out of range The result is undefined 8 2 18 Overflow The SHL instruction always passes power The following table lists the types of A N and C in which SHL instructions can be executed pA y C Integer or Integer Constant Integer Array Integer or Integer Constant Integer Array is same size as A Integer Constant Integer or Integer Constant Example The following diagram is an example of a one bit left shift used to track the position of a bit Each bit in the product presence absence signal represents the actual position of the product When Move_Cart is turned ON bit is shifted left to the next position When the bit reaches the final bit position in the variable 31 the Product Re moval Completion Bit is turned ON indicating that the operation is completed LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 9 Instructions Product presence i31 Product Removal absence signal Completion Bit Move_Cart Product presence i a Product presence absence signa absence signal absence signal Shift Left 1 bit position i iti Delete Product presence o o j o o ojo oji fo loje ofjo o o w 0 absence
121. ights the display of the live energized instruction while the Controller is in the RUN mode The Power flow and State flow can be displayed at one time Default not selected Specifies how often the Logic Pro gram Editor requests new data from the Controller to update power flow state flow data values and the status bar Default 500 msec If selected the Logic Program Editor accepts changes you make only when you click Apply If cleared the Logic Program Editor accepts changes immediately but asks for confirmation Default not selected If selected the Logic Program Editor asks for confirmation for all dele tions when you are creating your program Default selected If selected the Logic Program Editor asks you to confirm the creation of every new variable in your pro gram This applies only to the Programming Mode environment Default selected If selected the Logic Program Editor asks you to confirm any change in the Controller operation 1 e Start Stop Read Write Default selected If selected the Logic Program Editor asks you to confirm any undo action Default selected 1 4 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program Clipboard Tab i gt Preferences m If selected the fields copied from E ditor Monitoring Contirmatior Clipboard the variable list of the Logic Format for variab
122. in open To do this click on Apply TOW 3 H G PT ET 5 Click the left rung of the TON instruction 6 Scroll through the instruction list in the Insert Instruction dialog box until you locate the Normally Open contact NO 7 Double click on NO and that symbol will appear TON 34 IN d FT ET LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 15 Chapter 1 Creating a Program E Method 3 Insert instructions by typing in the Insert Instruc tion dialog box 1 Type out in the field above the instruction list e The instruction list automatically scrolls until the OUT instruction appears at the top of the list Also its name appears in the bottom left hand corner of the dialog box 2 Click on the rung section to the right of the TON instruction 3 Click on Apply and the TON box will appear TON 37 IH A i FT ET ULZ a Deleting Instructions Here you will delete the OUT instruction you just inserted into rung 3 E To delete an instruction 1 Right click on the rung 3 s OUT instruction and a shortcut menu will appear 2 Select Delete A dialog box will appear to confirm that the instruction is to be deleted Delete 2 Delete the instruction OUT 77 l 3 Click on OK J ber Si ote You can also delete an instruction by selecting it and pressing the DELETE key or Dz clicking on x in the toolbar 1 16 LogiTouch Editor Ver 1
123. ine floating decimal point values from 2 25e 308 to 1 79e 308 and 0 E Timer Counter The Timer and Counter consist of multiple special purpose variables Each dedicated variable s type is set up individually Timer The following four dedicated variables are used for Timer instructions For details refer to 9 2 Instruction Details Special Purpose D V le T Variables escription ariable Type Preset Value Current Value of Timer Output Timer Measuring Bi Any names can be used for these variables Ka Even when a timer is designated as non retentive the special purpose S variable Timer PT will retain data For a list of retentive non retentive variables refer to M Vari able Attributes Counter The following seven dedicated variables are used for the Counter instructions For details refer to 9 2 Instructions Details Special Purpose PresetValue CurentVai Roo ec o OON Courier ube Dice OO ooo Court iC o Any names can be used for these variables SP te e Even when a counter is designated as non retentive the special purpose 2 variable Counter PV will retain data e A scan update will not be performed for a counter when it is reset One scan is required for resetting the counter For retentive non retentive variable details refer to HM Variable Attributes LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 7 5
124. ing of the lte file Two or more areas are using the same area M ultiple S No exist number possibly causing transfer failure Download the projectfle again The LTE file may be damaged or a 803 S No is outside of accepted range malfunction has occured during downloading of the lte file Two or more I O units are using the same S S No range overlap atthe analog unit No The analog unituses S Nos for four Stations Resetso there is no S No overlap Two or more I O units are using the same S S No range overlap with high speed No The high speed counter unithas S Nos counter unit for eights tations Resetso there is no S No overlap Two or more I O units are using the same S No The positioning unitusesS Nos for four Stations Resetso there is no S No overlap S No range overlap with single axis positioning unit LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 11 I O Drivers Initialization Errors The ID Number loaded from the LT units builtin Flex Network I F is invalid The F lex Network I F unitmay be broken Write down the error code and contactyour local P ro face distributor Initalizaton Error Initialization failed to The Flex Network I F unitmay be broken 822 There is no Flex Network I F unit attached synchronize the Flex Network I F unit Write down the error code and contact your and the Flex Network driver local P ro face distributor There may be a brea
125. ing Guide 9 1 Chapter 9 Instructions E Arithmetic Operation Instructions instruction Type Symbol Function WHE A and B gt C EEA A Normal Continuity A or B gt C LOOC Normal Continuity Exclusive A xor B gt C Logical Add Normal Continuity NOT EN DN A gt C a piney k Normal Continuity E Movement Instructions Transfer N gt OUT Normal Contnuity BMOV Block Transfer Normal Contnuity File Transfer Normal Continuity Rotate Lett C Normal Continuity ESS Rotate Right C Normal Continuity S hittLett C Normal Contnui ma o gt Af S hiftR ight C Normal Contnui 9 2 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 9 Instructions E Mathematical Instructions Instruction Type Symbol Function _ AG DV ide jf A B C Normal Continuity neon A B gt C Normal Contnuity Processing ee La Increment EN oN A 1 A_ Normal Contnuity Decrement A 1 A_ Normal Contnulty E qual To When A B Continuity aream Than g XX WhenA gt B Continuity ae WhenA lt B Continuity ole Tan 7 When A gt or B Continuity E qual To gt Less Than When A lt or B Contnui w TATA lt gt When A lt gt B Continuity E Timer and Counter Instructions Tinsiruction Type Symbol Noea See 9 2 33 TON ON Delay Timer Timer cn Bea n 4 See 9 2 34 TOF OFF Delay Timer dui n 4 e UP Counter KARA See 9 2 36
126. instruction is retentive the following symbol is displayed in the logic program ED The following diagram is an example of the SET instruction s function Start Motor Ge e S S Stop Motor SS e Start 0 l 1 3 I Motor l l l l l Stop T l l l l l l A B C D A When the Start variable turns ON the Motor variable turns ON B The Start variable turns OFF but does not affect the Motor variable C The Stop variable turns ON the Motor variable resets D The Motor variable stays reset until the Start variable turns ON Tie The SET instruction can be used only with non retentive variables With retentive 2 variables use the SM Latch Retention Coil instruction LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 9 9 Chapter 9 Instructions Wao RST Reset Coil 9 10 Variable R When the coil receives power after the RST instruction is executed the variable turns OFF The variable remains OFF until explicitly turned ON by another in struction such as a SET instruction Since this instruction is a coil type output instruction only one instruction can be used for each rung Other instructions cannot be used on the right side of the output instruction The output instruction should be placed immediately left of the right hand power line When the variable mapped to the RST instruction is retentive the following symbol is displayed in the logic program RMD
127. ion dialog box appears click OK to create the variable name Run_Time_Timer The name variable assigned to the On Delay timer will be set to the Timer variable type Use the same process to assign variables to contacts and coils 4 Logic Program Editor Okay to create the variable Rum Tine Timer of type Timer fou can disable this message in Preferences ac LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 27 Setup Guide Tutorial 11 Double click the 0 field that appears in the lower left corner of the On Delay timer to call up the Data Value dialog box Enter 5000 milliseconds in the Change to field to set the operating time to five seconds and click OK 44 Data Yalue Value of OK Run_Time_T imer ox EE Change to 12 Drag the variable name Fan from Rung 2 and drop it on Rung 3 s Normally open contact Next drag Rung 3 s Run_Time_Timer to the second Normally closed contact in Rung 2 as shown S6K1 0 3 S601 0 3 Run Sensor Fan 2 _ Ot aff S601 O13 Far Off oO 0 5 Run Time Timer Fan TON 3 4 I al Ofi s000 PT ETO 13 After you drop Run_Time_Timer on Rung 2 a pop up variable window will appear Double click on the window s Run_Time_Timer Q variable which designates the output bit used for Run_Time_Timer R re The variable Run_Time_Timer Q is a dedicated variable and is created automat
128. ions which need to have the same vari ables assigned to them The advantages of using this method will be explained in Chapter 1 9 Assigning I O E To assign a variable using the Variable List dialog box 1 Call up the Variable List dialog box 2 Click on Light in the Variable List dialog box but do not release the mouse button 3 With the mouse button still pressed drag Light to the NO instruction located on the branch on rung 3 As when inserting branches note that your cursor initially becomes a Q When the cursor is in this state you cannot assign the variable to any instruction When you research the No instruction your cursor will change to a 4 mark Power Of pushbutton Light Ly ange pushbutto Discrete Iriput ight Discrete Output aU Tae Discrete Inpa Counter Internal GU Counter Internal Gu oe Counter Niscrete Intermal GUD gt The variable is then assigned when the cursor is released As long as the cursor appears as a 4 you can assign the variable to an instruction LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program 4 Click on and then drag the Power_On_pushbutton variable to the other NO instruction on rung 3 Rung 3 should now appear as follows Power On pushbutton Power Off pushbutton Light 3 ee Ort Ort Ort Light Ort Note In general variables which are expressions constants are as
129. ious scan Logic time does not include the display processing time allowed by the controller for other programs to execute Variable Type Integer PARENGA Set by Controller Read Only LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 8 5 Chapter 8 System Variables Month displays the Month data as set in the controller using two digits in BCD format Variable Type Integer Set by Controller Read Only Year Month Day and Time data are displayed using the following system vari ables E g July 14 2001 at 6 19 a m Vear Month Day Time swasee Platform Platform displays which platform the controller is running on Variable Type Integer Set by Controller 16 54 LogiTouch Type A Intal wale 1 16 64 LogiT ouch Type B Type B 16 74 LogiTouch Type C Read Only 8 2 9 ScanCount is a counter incremented by the controller at the end of each scan The value range of ScanCount is 0 16 FFFFFFFF When the counter value exceeds the maximum value 16 FFFFFFFF the value of ScanCount is set to zero functioning as a Rollover but without setting the Overflow variable Variable Type Integer Set by Controller Read Only Se Note Whether or not the logic program is running can be easily checked using ScanCount 8 6 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 8 System Variables 8 2 10 ScanTime ScanTime stores
130. irst 16 terminals for input with Module Q E 10 1 E 12 E 13 E 14 E 15 E IE E 17 E 18 E 13 6 10 111 6 12 6 12 E 114 14 2 Locate the variable Power_On_pushbutton on the NO instruction of rung 3 3 Click and drag Power_On_pushbutton toward terminal IO As well as when inserting branches note that your cursor initially becomes a G When the cursor is in this state you cannot assign the variable to any I O terminal The Light remains on until the Power_Off_pushbutton is pressed olX1 0 0 YolX1 0 7 A Power_On_pushbutton Power_Off_pushbutton Off Ov OX1 1 0 Light Off 4 Drag the cursor over terminal 0 and release the mouse The variable Power_On_pushbutton is now assigned to terminal IQ 2 Configure 170 E eee 21 0 0 amp l1 l2 E 13 E l4 15 amp IE I7 amp 16 E 15 E 110 E 111 E liz E 113 E 114 n 1E LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 45 Chapter 1 Creating a Program The variable Power_On_pushbutton on the NO instruction of rung 3 now has a series of digits and letters above it This is the IEC I O address of that variable SATE For more information about the IEC addressing format of your I O driver refer to your driver s Help system The Light remains on until the Power Off pushbutton is pressed The Power On pushbutton starts the soft drink machine Fol
131. is data transfer is performed as follows Start Source Destination Source 3 is copied to Destination 2 Source 4 is copied to Destination 3 Destination 2 Source 5 is copied to Destination 4 While the program is running the controller checks whether references to array A and E elements exist in the BMOV instruction If an invalid array is referred to a major error occurs and FaultCode is set to 2 8 2 15 Faultcode LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 9 Instructions Way FIMOV Fill Transfer A Source data FMO EN DN B Start from Array D B i D C Amount of data to be transferred B D Variable name of destination array C When the FMOV instruction is executed the C elements starting at index B of Integer array D are filled with value A The FMOV instruction is valid for Integer arrays only The FMOV instruction always passes power The following table lists the types of A B C and D in which FMOV instructions can be executed A B and C oT eget Integer Constant Example When copying the values are transfered to Destination 3 4 5 and 6 of the destination array s 7th element The transfer operates as follows Start Destination Destination 0 Transfer Value is copied to Destination 3 Transfer Value is copied to Destination 4 Destination 3 Transfer Value is copied to Destination 5 Tran
132. is subtracted from A and the difference is placed in C If both A and B are Integers or Integer constants the SUB instruction performs an Integer subtraction Otherwise the instruction performs a floating point instruc tion which may reduce the processing speed The SUB instruction always passes power The following table lists the types of A B and C in which SUB instructions can be executed 9 26 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 9 Instructions A O Ok i OSO Integer or Real Integer Constant Integer Constant Integer or Real Integer or Real La Real Constant Real Constant Integer or Real lt N ote Ifthe result C exceeds the range expressed with the variable data type in C Over D flow turns ON and the result of SUB is undefined 8 2 18 Overflow e If either A or B are Real both are converted to Real prior to the subtraction However if C is an Integer the number is truncated after the decimal point since the result is placed in C Example When Start is turned ON Data B is subtracted from Data A and the result of the operation is stored in Data C Start CE A MUL Multiply A Data MUL EN ON B Data Ay C B C Destination variable When the MUL instruction is executed A is multiplied by B and the result is placed in C If both A and B are Integers or Integer constants the MUL instruction performs an Integer multiplication Otherwise
133. ite However the logic program is not executed so the output state does not change When a command is received the system switches to the appropriate state The RESET instruction will change the program to the Loading condition The Perform 1 Scan instruction will perform the program once The STOP instruction will change the program to the STOP condition The Continue instruction will change the program to the Running condition I1 Mode used edit the program currently being executed by the controller 2 Mode used to create a program LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 6 3 Chapter 6 Controller Features mba RUN Mode RUN Mode uses the following steps Constant Scan Percent Scan No Perform Logic Program END Processing Renew System Variables etc lt a Scan Time Adjustment Scan Completed E Scan Time Adjustment This adjustment is performed every 64 scans The various types of adjustments are described below for Constant Scan Time and Percent Scan Time Constant Scan Time Mode LT scan time AvgLogicTime x 100 50 Percent Scan Time Mode LT scan time AvgLogicTime X 100 PercentAlloc For information about AvgLogicTime or PercentAlloc Chapter 8 System Variables The LT s Scan Time includes an error of approximately 0 02 Important 6 4 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 6 Co
134. ite ss ueedeuavnessvaxsecat end coessexecnucsesenestsaeecoues 1 TRADEMARK RIGHTS esc aa eect eg ese eee cence eens ENEE eE E EEEE 2 MANUAL SYMBOLS AND TERMINOLOGY 2 00 eeecceceeeeeeeeeeeeeeeeeeeeeneeeeeeeeeeneeeeeeeees 3 BO Cy LO 0 Oe SERIES ieeeeeeeete orem ie eee ene te a eee er eee eee 4 HOW TO USE THIS MANUAL 0 ccccccssssectsnsseccsnsssecennsseccnnessecennsseceensssesennssesennssens 5 PRECAUTIONS eere E 8 TABCE OF IN Nernst eta we ce sce setts tre ce we EE 11 Setup Guide TUTOPIAl sisisctscccasccisssctssscusessccasnccascsssnascssnsnsansnsasnscassccusasscaswesissnsasiwnnonss 17 Programming 1 1 How to Start the LT Editor ssssssceecstsscssteesescrssssssciasertirecssvesctesessserssoseeciasene 1 7 L2 Caan y ran eS one A ER AERA AAA R 1 8 1 2 1 Creating a Variable LAGU ssiaaairnctencet vieasuieesanaeh yesanatnetanouh ieaaetnrdanges 1 8 1 2 2 Selecting Variable Typos aicrencerenonsa tence bnan ania 1 9 1 2 3 Saving Your Program sssesesssssssssereesssssssscerressssssscerrsssssseseeeees 1 10 1 3 Inserting Rungs Instructions and Branches ccccccscssssssssssseees 1 11 EA T a TR A E E E l 11 b32 PI CICS a RUNE fcc snomzcanniasacueniorccannintaceresonurennteiueiniseeieunioiaersienete 1 12 Moos Mnserune TSE CTO ING ie cs rc sarsetetaten co sutiawncdrusn ce wmauangatwheiaceminansatens 1 13 hee LOUIS TINS UCHO esee S 1 16 1 3 5 Copying and Pasting Instructions 20 0 0 ceeccesccceeeceeeseeeeeeeeees 1 17 Lo SCT BANC S coe r
135. ivers sha Flex Network I F Driver This section describes the Flex Network driver menus in the LT unit s OFFLINE mode Prior to executing any Flex Network Driver menu instructions be sure to down load the Flex Network driver from LT Editor software in your PC The Flex Network Driver is used with the LT Type B Type B and Type C For the procedures on shifting to OFFLINE mode refer to the Logilouch Series User Manual sold separately UPA Flex Network I F Unit Self Diagnosis This section describes how to operate the self diagnostics of the Flex Network I F unit For details on the self diagnostics of the LT main unit LogiTouch Series User Manual sold separately Select FLEX NETWORK DRIVER in the CONTROLLER MENU The following window will then appear lt To select communication check gt MAIN INITIALIZE FlexNetwork MENU COM CHECK ERR S No DISPLAY 1 0 MONT TOR Ne The following diagram describes the action of the LT and I O I signal when the RUN mode of a ladder logic program is reset important or shifted to OFFLINE mode All I O unit output hold settings will be ignored Be sure you understand these actions before performing a reset or shifting to OFFLINE mode i LT Condition RUN OFFLINE RUN r Output from Logic Output from Logic I O Signal Baam OFF aa OFF e The RESET mode s I O signal OFF timing is NOT fixed Here the number of the Flex Network I O units
136. k VE DENY CP wsassaeesscerssesasesecentaseieexessacersceassussntsacentaseteumusenes 11 2 11 2 1 Flex Network I F Unit Self Diagnosis cc ceeeeeeeeeeeees 11 2 11 2 2 I O Monitor 1 O Connection Check ccc ceeecceeeseeeeeees 11 5 11 2 3 Flex Network I F Unit Troubleshooting eeeeeeeeees 11 10 ILS DIODO eea E EEE ENES 11 12 113 41 DIO Unit 56H DIIS NOSIS sissacanesacnscdssa sssauvnsinnaidsuvacanaiecnsedcialesdniene 11 12 11 3 2 I O Monitor 1 O Connection Check cseeesessesseessessesserssense 11 14 11 3 3 DIO Unit Troubleshooting ooesssssseenessssssssseressssssssserresssssssees 11 15 CHAPTER 12 ERROR MESSAGES I BETO WUCSSAGC DASE eian A NE 12 1 122 Error C Odes ooer ep E EEEE EEEE EE EEEE 12 3 DZS OSE AI Er OLS ennea 12 4 16 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Setup Guide Setup Guide Tutorial Setup Guide Tutorial This chapter provides step by step instructions for using the LT Editor software to create LT application programs For a detailed description of how to use the Logic Program Editor and the Drawing Board please refer to either Programming in this manual the Operation Manual s Screen Creation Guide section or Online Help Before Starting the Tutorial The lessons in this chapter describe the procedures for developing application programs with the LT Editor and explains the basic functions and operations through this step by step tutorial P
137. k in the Analog unitsetting error communication cable the I O unitis not turned on or the I O unitmay be broken Runtime Errors Check all related wiring Refer to the Flex Network User Manual sodsecaraaly Disconnected outputs ignal line of This is likely due to disconnection in the analog unitinputsensor A D Outoutsignal line Check the sensor s output conversion unit Signal line The High S peed Counter unit detected an error E rror in the high speed counter unit Refer to the Flex Network High S peed Counter User Manual Sod separately ones Check t see ifthe communication line is Initialization error in the high speed 844 disconnected power is notsupplied to the counter unit There is an I O uniterror loose connector malfunction et O unit or the I O unitis malfunctioning Check t see ifthe communication line is disconnected power is notsupplied to the O unit or the I O unitis malfunctioning The positioning unitdetected an error Refer tothe Flex Network Single Axis Positioning Unit User Manual sold seperately Check t see ifcommunication line is disconnected power is notsupplied to the O unit or the I O unitis malfunctioning Communication error with the high Speed counter unit Error in the single axis positioning unit Communication error with the single axis positioning unit LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 11 11 Chapter 11 I O D
138. l T Watch Chey Data watch List Valle Cre Tiaa EI Eilata Tupi alle Variable List On Turn Global File Edit View Datal Help Ice_pushbutton Variable Type Ctrl T Lange_pushbutton Watch Chia Light z im i Medium _pushbutto Data watch List Number of Larges Value Ctrl Humber of Mediur Tan TA Etel Tum LEF Eidel Turm Global E Changing a Variable Attribute Global Select the Data menv s Variable List The Variable List window will appear Select the variable you wish to change its attribute and change the attribute using this window as shown below Variable List File Edit view Data Help Ice_pushbutton Variable Type Ctrl T Large pushbutton watch Cirle Light Medium pushbutto Data Watch List Value Ctrl Cre Cie Thain TIH Tuma DEF Tum Aetentiwe Yarable List Variable Type Chrl T watch Ctrl Data Watch List Value Chri Chet Chee Tam DEF Tum Retentive LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 3 5 Chapter 3 On Line Editing wa Data Watch List 3 6 E To change the display mode of all selected variables at the same time Select the Data menu s Data Watch List and select a display mode in the View list box This allows you to change all of the selected variables display mode to the designated display mode at th
139. l program used in this lesson is located in the Soda Ite file in the C LogiTouch SAMPLE folder Program Description tee ART 2 END 34 PEND LILAR Inserting a Rung Create a new logic program Down the left side of each new program are three rungs labelled START END and PEND e The START rung indicates the start of the main program area e The END rung indicates the end of the main program area e The PEND rung indicates the end of the total program area No rungs can be inserted after the PEND rung The rungs between START and END are executed every scan Any rungs inserted in the area above START are for program initialization This area is executed only during the first scan after power up The area between the END and PEND rung is reserved for subroutines See the Programmer s Reference in the LogiTouch Editor Help area for a detailed explanation of the START END and PEND rungs E To insert a rung 1 Click on the rung number left of the word START Rung 1 is selected 2 Right click once A shortcut menu appears 3 Select Insert Rung Or select Rung from the Insert menu A new rung appears at number 2 below the START rung 4 Using the above method insert four more rungs below the START rung The screen will be like the picture shown below LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide ya Chapter 1 Creating a Program Program Description 2 3 4
140. lay iscrete etentive Non global Internal ink relay iscrete on retentive G lobal Internal nput relay iscrete on retentive G lobal Input utput relay OUT 0 to OUT 15 Discrete on retentive G lobal O utput 2 Z Z JJ Integer etentive G lobal Internal i i OO Variable names can be designated by the user When designating variable names be aware of the following limitations e Maximum Variable Name length is 20 characters 20 bytes e No differentiation is made between upper and lower case characters If dupli cates are created only the first word registered will be enabled valid E g If TANK was registered before tank tank will be invalid even though entering it will not create an error T2 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 7 Variables e Except for the first character variable names can use numbers e Variable names cannot contain spaces e The underscore _ 1s the only special character that can be used However underscores _ _ cannot be used consecutively OK tank_1 Not OK tank_ _1 e The sign cannot be used since it is a reserved character e LS and LSS are reserved names for use by the GLC unit s system in the System Data Area the Read Area and for Special Relays Therefore they cannot be used for variable names Chapter 10 LS Area Refresh When creating variable names Pro face recommends using
141. layed If they are not select System from the View menu Variable List File Edit View Data Help Integer Internal Integer Interal Discrete WEHE Integer 10 nternal Integer lnternal Discrete Internal Integer Internal Integer Internal Integer Internal Integer Internal 2 From the Data menu select Data Watch List The Data Watch List window appears 3 Click and drag the system variables you wish to monitor from the Variable List window to the Data Watch List window These monitored variables display the appropriate errors 1f they occur while the logic is being scanned In the following example I O error 821 has occurred with driver one The 1OFault is turned ON Data Watch List File Edit View He LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 2 Running the Ladder Logic Program yee Reading from the Controller To edit and save a logic program located in the LT unit read out the program from the Controller To read a logic program from the LT you can either e receive the screen data and logic program via the Transfer window of the LT Editor e receive a ladder logic program only in the LT Editor s Transfer window e receive only a logic program via the Logic Program Editor This section describes how to receive a logic program exclusively using the LT Editor LESTER For details on how to receive a logic program via the Transfer win dow in
142. le ET the elapsed time holds the current value e Variable TI the timing bit turns OFF e Variable Q the timer output bit turns ON and the instruction passes power When the timer starting bit IN stops passing power to start the TON instruction e Variable ET the elapsed time is reset to zero e Variable TI the timing bit turns OFF e Variable Q the timer output bit turns OFF Example In the following example the drive will be started 5 seconds after Enable_Drive is turned ON Charging Condenser Enable_ Drive TON Start_Drive No G SOOO FT ET TI T 3 A BOG D A When power is applied to the timer input bit IN the timing bit TT turns ON the timer begins timing and the elapsed time ET increments The timer output bit Q remains OFF B The elapsed time ET equals the preset time PT the timer output bit Q turns ON and the elapsed time ET stays fixed at the preset time The timing bit TI turns OFF C The timer input bit IN turns OFF the timer output bit Q turns OFF and the elapsed time ET is reset to Q D The timer input bit IN turns ON and the timing bit TT turns ON The timer begins timing and the elapsed time ET increments LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 9 35 Chapter 9 Instructions 9 36 E The timer input bit IN is turned OFF before the elapsed time ET equals preset time PT the timer output bit Q
143. les copied to the clipboard Program Editor to the clipboard are conmadeinied separated by commas c omma dent P sae Tes passcuaceVuraserfsansuureeeets f adescription I Use quotation marks Default not selected If selected the fields copied from the variable list of the Logic Program Editor to the clipboard are 2 7 separated by tabs Ex My_variable TAB JDiscrete TAB adescription Default selected If selected the fields copied from the variable list of the Logic Program Editor to the clipboard are separated by a delimiter and enclosed in double quotes Ex My_variable Discrete adescription Default selected In this tutorial be sure to use the default settings Click on Cancel to close the Preferences dialog box and preserve the default settings Exercise Overview 1 Start the LT Editor 1 1 How to Start the LT Editor 2 Select the LT and external device you use in the New dialog box 1 1 How to Start the LT Editor 3 Develop a logic program 1 Determine variables This section describes how to designate the functions of the logic program to that is created by the Logic Program Editor as well as how to create and delete variables and set the initial values 1 2 Creating and Variables 2 Create a logic program This section describes how to create rungs insert instructions and branches and how to delete rungs instructions and branches associated with the rungs 1 3 Inserting Rungs
144. lidity check to make sure the program is free of errors E To run a validity check From the File menu select Check Validity and the following dialog box will appear 3 Validity Warning 300 Large pushbutton YVarnable has input or output type Gut no lO address assigne Warning 300 Medium pushbutton Variable has input or output type but no l0 address assig Warming 300 Small pushbutton Variable has input or output type but no L O address assigner a The Validity dialog box lists all errors and possible trouble spots the Logic Program Editor can detect in your program Trouble spots are listed as warn ings In the lower right hand corner of the dialog box is a check box marked Errors only If this box is selected only the errors that the Logic Program Editor detects in your program are displayed the warnings are not The Logic Program Editor can run a program that contains warnings in the Controller however it cannot run a program that contains errors These errors must be corrected first Q te A validity check can also be performed by clicking on in the tool bar D The Validity dialog box displays errors and warnings in the order they appear in your ladder logic program In other words the errors in rung 1 are presented first then rung 2 and so on If you double click on the errors or warnings in the Validity dialog box you can go di
145. lights individual instructions based on their parameters Each contact is highlighted if it is able to pass power as opposed to whether it actually gets power based on the state of its parameter E Subroutine A group of rungs in a separate named area Subroutines are placed between the END and PEND Program End markers and cannot be placed within other subroutines When you click on Subroutine from the Insert menu both a Subroutine Start and a Subroutine End markers are created You can then insert logic between the two Subroutine are called with a Jump Subroutine JSR instruction The advantage is that they can be called from many places and the code only needs to be written once A subroutine name is required E Subroutine Name A Subroutine Name consists of up to 32 letters digits and or underscores It can only start with a letter E System Variables System Variables are special predefined variables that provide information about the controller s status or affect its operation They perform like ordinary variables except that they are created automatically and cannot be deleted E Variable Storage locations for data values are called variables Easy to understand names are recommended to use rather than using numbered addresses A variable name is up to 20 letters digits and or underscores It cannot start with a digit Some valid examples are Power_Off_pushbutton ResetButton and ALARM
146. loading the logic program to the LT unit the external I O devices cannot operate in RUN mode As a safety precaution the I O is not enabled in the default setting Be sure to set the Enable I O before trying to read write data to I O Soon after entering RUN A Command Execution Alarm has mode unit changes to occurred Or a major fault has STOP mode occurred For setup details refer to the Programming Guide 12 4 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Index A Accessing a Discrete Array 7 3 Accessing a Real Array 7 3 Accessing an Integer Integer Array 7 3 Arithmetic Operation Commands 9 3 B Bit Operation Commands 9 1 C Constant Scan Time Mode 6 4 Controller s current condition 8 1 Convert Commands 8 4 D DIO 11 2 DIO Input Errors 11 5 DIO Output Errors 11 5 Direct Access Method 10 3 10 5 Discrete 7 1 Discrete Variables 7 1 E Error Codes 11 7 11 9 12 3 Error Message List 12 1 F First Scan 6 3 Flex Network Self Diagnosis 11 8 G LogiTouch and External Device Data Sharing 10 5 I O Drivers 11 1 I O error 11 1 ID Terminal numbers data 11 9 Initial Processing 6 3 Initialization Errors 11 7 11 10 Integer 7 1 Integer Variables 7 1 Internal Errors 11 7 11 10 L L S Area Refresh Feature 10 1 limitations 7 3 Loading 6 3 Loopback Cable Creation 11 3 LS Area Refresh Cautions 10 6 Mathematical Commands 9 3 Memory Link Method 10 3 10 4 Mitsubish
147. m you must assign I O to selected variables In this tutorial variables were created first and I O assigned after the ladder logic program was completed This was done in order to present the various features of the LogiTouch Editor in a logical order If you know what your I O will be before beginning programing you can specify your I O first and then assign it to your variables as you create your program Both methods are demonstrated in this section IVA Assigning Variables to I O Once you have created variables in a ladder logic program there are a number of methods you can use to assign them to your I O The Ice_pushbutton Large_pushbutton Medium_pushbutton and Small_pushbutton will be placed on the LT screen for touch panel inputs These buttons are not assigned to the terminals Power ON pushbutton mt 0 Power OFF pushbutton mt 6 om o f om oo Due to the differences of the I O drivers the procedures for Opening the Config ure I O window and Setting up the driver on the LT Type A differ from the procedures used for LT Type B LT Type B and LT Type C When using a Type A unit please refer to To set up the DIO driver When using Type B Type B and Type C units please refer to To set up the Flex Network driver The explanations in the tutorial lessons so far used the LT Type A as the model environment However the To set up the Flex Network driver section uses
148. may cause the unit to be easily influenced by noise Normally set this speed to 6Mbps e S No Station no Select S No from 1 to 63 e MODEL CODE Select from FN X16TS FN X YO8TS FN YO8RL FN Y16SK FN Y16SC FN ADO4AH and FN DAO4AH When using the FN XY16SK or FN XY16SC select FN X16TS for input and select FN Y16SKS or FN Y16SC for output When using the FN X32TS select FN X16TS Use the S No configured via the I O unit to check the low 16 bits For the upper 16 bits set the value obtained by adding 1 to the I O unit s S No e VARIABLE TYPE Select VARIABLE TYPE from DISCRETE and WORD Only the Word can be used for FN ADO4AH and FN DAO4AH 3 Press the NEXT button and the next window will appear This window s items will vary depending on the selected VARIABLE TYPE Ge ie This I O monitor cannot be used with a High speed Counter or a Single axis Positioning Unit LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 11 5 Chapter 11 I O Drivers lt FN X16TS FN X YO38TS FN YO8RL FN Y16SK FN Y16SC FN XY16SK FN XY16SC FN X32TS gt I O Monitor when VARIABLE TYPE is set to DISCRETE The INPUT area terminal numbers where data has been entered will appear in reverse color Touching an Output area terminal number will output the data and reverse that number s color The I O MONITOR differs depending on the VARIABLE TYPE selected 1 0 MONITOR Pistol ls Th
149. n System variables have similar variable types as ordinary variables and perform similarly Since system variables are preprogrammed and defined they cannot be deleted and their names cannot be changed Initial Variable Perreo omen a me Displays the average Logic Time A vgLogTime Read Perform Write once every Integer 64 scans Unit ms Displays the latestLogic Time Read AvgS cantme Perform Write Display processing Integer Unit ms Sores boy eS BCD WOE ee ditC ount Currently notused by LT Integer F orceCount Counts the number oftmes a nieder variable is forced ON or OFF 9 10 Status Displays the I O Driver s condition Integer 10 Displays the latestLogic Scan Time poy chine Read Perform Write Unit ms efo o tmeger Stores Month daa as BCD wo dgis meger 6 P latF orm indicates the controller s platform Integer 9 5 canCount Excluding the currentscan counts Integer the number ofscans performed Displays the latestLogic Scan Time 5 canTime Read Perform Write Display Integer processing Unitms 5 btus Indicates the controller s current Integer Status Soppeng Curentyrotuwedbyit o Decree Tame Stores Tne datas BCD burdgs meger iersion Displays te contolers verson oaa meger Cwcis Curent otusedoy t meger WCS CurenlynotusedbytT meger Crear Stores Year das as BCD wo dgs meger LogiTouch Editor Ver 1 0 Operation
150. n window 3 Click Open The specified Logic Program is imported and the variables used in the Logic Program are registered to the Variable List Open File name GLE Factory will Files of type Programs wll H E 4 Saving the Logic Program will register a global variable in the Symbol Editor as a logic symbol 4 2 5 Symbol Editor in the Operation Manual Screen Creation Guide lt Summary gt In this section you have learned how to import and export a logic program 1 56 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program LAEI Developing a Screen Program Create the Ice_Pushbutton Large_Pushbutton Medium_Pushbutton and Small_Pushbutton with the Drawing Board Screen Editor The illustration below is the completed sample screen Screen Edit View Option Draw Tags Parts Special Libray Window Help enlla gt e els Balone KAA R A000 a a a a w w l a HE 2 Bs_001 000000 000000 3 BS_002 000000 000000 4 BS_003 O00000 000000 BS_004 000000 00000 5 amp i WM Pats I Tags J Objecte 3 a n Delete I Link Select Change Order ash HE PHOSBCAd2OR F OER 46 AMS SDAEFPSAPHIKKLUMNDPAaRS Te hWUY yW 238 aes Ready 8 MTOM SIO M g E To Start the Drawing Board 1 In th
151. n time Logic time set by Scan time Logic time Percent scan set time e g If percent scan time is set to 40 and logic executing time is 20ms Scan time 20 40 x 100 50ms Graphic processing time 50ms 20ms 30ms When logic time increases display processing time also increases resulting in longer scan times The longer the logic time the longer the time allocated to display processing Therefore the display is updated more quickly however the logic program processing cycle slows WK e There is no change in the processing time for one instruction E Important in the logic program e The scan setting cannot be set to more than 50 e When the percent scan setting is set to 50 the display and Si D logic program are processed at the same time The display process will not be given priority ote Set the percent scan value so that the scan time is set in 10 ms increments LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 6 7 Memo 6 8 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide r amp i Variables This chapter explains the different types of variables used by the LT software Using hardware independent variables enhances the reusability of your programs am Variable Names LT Editor uses variables to store I O and counter data Variables settings and names are user designated and are used as is in the logic program
152. n transferring Recipe A which consists of 100 elements to the Current_Recipe of the same type and size simply transfer Recipe A with a MOV instruction Transfer_Recipe_ A Moy EM OD Recipe _A _ UT Current_Recipe Recipe_A Current_Recipe Recipe_A 0 Current_Recipe 0 Recipe_A 1 Current_Recipe 1 Recipe_A 2 Current_Recipe 2 Recipe_A 99 Current_Recipe 99 Note When designating an entire array enter only the variable names Nl E g OK Recipe_A Not OK Recipe_A Not OK Recipe_A 100 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 9 17 Chapter 9 Instructions 9 18 a BMOV Block Transfer A Source variable B Start from Array A B C To Array E C D Amount of data to be transferred E Destination variable When the BMOV instruction is executed elements of one array can be copied into elements of another array Specifically the D elements are copied from index B in array A to index C in array E The BMOV instruction is valid for Integer arrays only When transferring arrays can be different sizes The BMOV instruction always passes power The following table lists the types of A B C D and E that can execute BMOV instructions Aane B Gand a Integer Constant Example When copying Source 3 4 and 5 of the source integer array s 7th element are copied to Destination 2 3 and 4 of the destination array s 6th element Th
153. nly upon power up of the I O unit When changing the setting for the Range Selector switch make sure to turn off the power to the I O unit and then turn on the power again The settings of the range changeover switch in the I O unit side are read in when the logic program is switched to RUN mode To change the settings of the range changeover switch switch the logic program to STOP mode and then to RUN mode If the ranges do not match the data cannot be read correctly LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 11 I O Drivers lt For FN DA04AH gt 1 O Monitor Enter data with the keypad With the LT unit touching the screen s data display will call up the keypad After entering all data push the OUT button to output the data All data is displayed in decimal format 1 0 MONITOR CH 1 OUTPUT RANGE O a S No 1 Fo O 4095 SET EEEIEE e Touch the up and down arrow to increase decrease the range _ value Each time the value is changed the new value is output Important to the I O unit e Pressing the RET URN button will clear the current data even if the output hold setting in the I O unit is ON D A Conversion Table xi The setting for the Range Selector switch is loaded into the a unit only when the I O unit s power is turned on When chang important ing the Range Selector switch s setting make sure to turn the VO unit s power off and then on e
154. nt Scan mode The TargetScan variable is designated in multiples of 10ms units When the logic time is constant increasing the value in TargetScan means that the display processing time will be longer Decreasing the value in TargetScan means that the display processing time will be shorter This is because most of the processing time is used by the controller TargetScan can be set in the initial settings or the configuration settings when the controller is in RUN mode Typically TargetScan can be set up in the Setup dialog box Refer to 6 1 2 RUN Mode Variable Type Integer Set by User Range 10 2000ms Initial Value 10ms Writable eww WatchdogTime WatchdogTime is used to set the value of the watchdog timer in milliseconds When ScanTime exceeds this value a major fault occurs Refer to 12 2 Error Codes WatchdogTime can be set in the initial settings or the configuration settings when the controller is in RUN mode Usually WatchdogTime is set in the Setup dialog box Variable Type Integer Set by User Initial Value 500ms Writable LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 8 15 8 16 Memo LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 9 mm Instruction List The Instructions supported by the LT Editor software are as follows E Bit Operation Instructions insiruction Type Symbol voo Normally Open anra Allows power to pass
155. ntroller Features meee LogiTouch Scan Overview LogiTouch Scan time has two modes Constant Scan time mode and Percent Scan time mode Their basic scan time includes two parts logic program execution controller and display screen touch panel processing time external device pro cessing time as follows Controller feature section 1 O Input Data Read 1 START Start Stop Operation Logic time Logic Program Execution Operation 4 END 5 PEND I O Output Data Write Display feature section Executes only during the set scan time minus the logic time when performing a constant scan Screen Display Touch Panel Processing Communication Processing Graphic processing time 6 1 2 RUN Mode LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 6 5 Chapter 6 Controller Features E Constant Scan Mode This mode constantly executes the program during the scan time set When this setting is used the screen is used mainly for data display and less for operation with control logic program being the priority Logic Time I O Input Data Read Processing time for logic program Logic Program Execution Stop Operation variable Scan time I O output Data Write edoa 2 eee period Graphic pro cessing time Scan time logic time Graphic processing time Setting time for constant scan time mode ms logic time variable e g
156. nual Screen Creation Guide For a detailed explana tion of each part of the Logic Program Editor please refer to the Features section and Online Help Before starting the tutorial Each lesson in this chapter describes the operating procedures of the Logic Program Editor using tutorial examples These practice examples are called tutorials This section describes how to use the Logic Program Editor to create a logic program that controls the operation of soft drink machines used in fast food restaurants The machine features the following functions e Pressing the button once will automatically load a large medium small cup and dispense the required amount of soft drink e The ability to dispense ice or soda only if a cup is present under the dispenser e The ability to count the number of cups filled by the machine since it was powered on Examples of Completed Logic Program and Screen The logic program and project file used in this lesson can be found in the Soda lte file in the C LogiTouch SAMPLE folder Refer to this file 1f you have problems with the procedure or wish to search for data items or simply want to study Logic Program Editor Online Help lt Logic Program gt lt Screen gt Th Pro Control Editor GLC Example E Help ci eae ne Tags Parts Special Library Window Help a olxis2 lel Plo 2 e elo emalea ee X81 e o KK Wel iF eerie emoa VOOG Mh is 8 8 ile w Roles Gof er A T
157. oded decimal format and the result is placed in B The BCD instruction does not pass power 1f an error occurs The following table lists the combinations of A and B in which BCD instructions can be executed The largest value of A that can be converted is 0 X SFSEOFF If A is too large FaultCode is updated with the error code and Overflow is turned ON 8 2 15 Faultcode and 8 2 18 Overflow Q re If the value cannot be converted the value in B is undefined D Example When Start is turned ON Data A is converted to BCD and stored in Data B Start ECO EM ON Data A j B Data B Example BIN data 99999999 is designated for data A and BCD conversion is performed Bit Position 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 4 Data A buo CRRA N CRC CC Jl Bit Position 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 Data Bl0 lolifijojojifijojojifilojojifi jolo AT ToT TT 9 44 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 9 Instructions 9 2 40 BIN Binary Conversion A Data BIN B Result to be stored EN DN When the BIN instruction is executed a binary coded decimal number assigned to A is converted to binary format and the result is placed in B The BIN instruction does not pass power if an error occurs The following table lists the combinations of A and B in which BIN instructions can be executed Integer
158. ogiT ouch integrated itor developmentsoftware LogiT ouch Editor Version 1 0 this product External Device LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 3 E Keyboard Compatibility List This manual uses the following symbols to indicate computer keyboard keys The key names used by your computer keyboard may differ Please use the chart below for reference stat veep 101 Keyboard a gt oe The LogiTouch Editor sini the following LT models Series Type T ype Al aa XY325K rar BG41 XY32SK 24V Type A2 GLC 150B XY32SC GLC150 BG41 xY32SC 24V LogiTouch Series T ype B GLC150B FLEX GLC150 BG41 F LEX 24V Type B GLC150B XY32KF GLC150 BG41 XY32KF 24V Type C GLC150B RSF L GLC150 BG41 RSFL 24V 7 For the types of external devices supported by LogiTouch Editor please refer Note NSS to External Device Connection Manual HOWTO USE THIS MANUAL 4 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide E Structure of the Manual The LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide is the first in a series of manuals for this product and explains how to use the LT Editor There are three other manuals in the series as well as online help Please refer to Chapter 1 LT EDITOR FUNDAMENTALS in Operation Manual Screen Creation Guide for an overview of this product Operation Manual Screen Creation Guide 1 6 LT Editor Manu als and
159. ogic Program Editor moni tors the controller in Monitoring Mode E Hexadecimal A base 16 representation of an integer value These can be entered with 16 in front For example 16 FF is 255 E IEC 61131 3 A standard developed by the International Electrotechnical Commission defining the printed and displayed representation of five control languages including Instruction List IL Ladder Logic Diagrams LD Function Block Diagrams FBD Structured Text ST and Sequential Function Charts SFC The smallest component in a rung which instructs the LogiTouch Editor Controller to perform a specific function 1 e Discrete Bit operand Data control Operand Timer Counter and Program control instructions Instructions in LogiTouch Editor are based on the IEC 61131 3 specification LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 5 Glossary of Terms E Instruction The smallest component in a rung which instructs the LT Controller to perform a specific function 1 e Discrete Bit operand Data control Operand Timer Counter and Program control instructions Instructions in Logic Program Editor are based on the IEC 61131 3 specification E Integer A storage element containing 32 bits of information An integer may be assigned values ranging form 2147483648 to 2147483647 16 0000000 to 16 FFFFFFF in hexadecimal Integers cannot contain decimal points E Internal Variable A variable that is n
160. ogram Editor noname File Edt View Search Insert Data Controller Help rt ne Ata o 2 o Sa r Print Ctrl F Frinter Setup a typical fast food restaurant soft dispensing machine Check Validity Preferences Exit e G Of 2 START The Light remains on until the Power Off pushbutton is pressed The Power On pushbutton starts the soft drink machine Power On pushbutton Power Off pushbutton Export WLL file 2 Enter a file name in the Save As window 3 Click Save The Logic Program is saved in WLL format Save As Save in Gal database icp eee File name GLC Factory a Save as type Programs vll H dt LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide F 1 55 Chapter 1 Creating a Program E To Import a Logic Program 1 Select the Import command from the File menu Ee Logic Program Editor noname File Edit View Search Insert Data Controller Help E LE a HHO 2 210 n Export Print Ctrl F Frinter Setup F a typical fast food restaurant soft dispensing machine Check Validity Preferences AlteFA lce_Maker Cit 2 START The Light remains on until the Power Off pushbutton is pressed The Power On pushbutton starts the soft drink machine P 5 hbutt P CHT hbutt Light 2 Select the WLL file you want to import in the Ope
161. ol will jump to rung 4 with the label Operation Disabled and instructions below rung 4 will be executed JMP gf ps Operation Disabled Start Operation a a S a D 4 Operation Disabled 9 46 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 9 Instructions al ra JSR Jump Subroutine gt gt SubroutineWlame lt lt When the JSR instruction receives power the control jumps to the specified subroutine After the subroutine executes control returns to the rung that follows the JSR instruction and continues to execute that rung s instruction A subroutine name can not be duplicated JSR must be the last instruction on a rung Restrictions e A maximum of 128 subroutine jumps from a subroutine can be executed aie Be sure that the time required to execute the entire program will not exceed the value of the Watch Dog Timer 8 2 26 WatchDogTime wee RET Return Subroutine RETURN When the RET instruction receives power control is forced from a subroutine and is returned to its original location Execution continues from the rung that follows the Jump Subroutine JSR instruction When a subroutine is completed the SUB END instruction forces the program to automatically return to the jump point As a result the RET instruction is not always needed to perform this function The RET instruction must be the last instruction on a rung LogiTouch Editor Ver 1 0 Operation Manual Logic
162. ontroller win dow is displayed Start Stop Controller Executio Forces Se Papes ao Stopped Forces are enabled The functionality of the Start Stop Controller window is explained below The Start button starts the Controller Once it starts it scans from the beginning of the program and executes all logic sequentially The first scan executes any initialization logic The Reset button causes the Controller to reload the LTE file initialize any I O and then stop Press this button to perform a single scan of logic This function is useful for troubleshooting or debugging an application Pause button stops the Controller from scanning logic but leaves the I O enabled The Continue option is available after the Pause button has Continue been pressed It allows the Controller to continue executing logic or a single scan with the current data values Enable All Forces Enables the forced variables Disable All Forces Disables the forced variables Forces _ Lists all forced variables in the ladder logic program This function enables the inputs outputs to the LT main unit and external I O of the I O unit In normal operations the input output of the external I O is disabled when the LT is Enable I O set to the RUN mode after performing a Logic Program download For safety reasons this function prevents the possibility of accidental startups of machines caused by erro
163. or storing programs and Editor after reducing the logic program Exception 65534 Xxxx xxx variables is sufficient however logic size or the number of variables and Exception 65535 Xxxx Xxx program memory is insufficient labels Also reduce the number of array variable elements or shorten the name of variables and labels 12 2 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 12 Error Messages IE Error Codes ooo The following table describes FaultCode errors Error Code Level Cause Normal No error The calculation result or the result of the conversion 1 Minor ofa Real variable to an Integer variable has resulted in an overflow A reference was used for an area outside the arrays 2 Major range A reference was used for a bitoutside the Integer s 32 3 Major l bit range 4 Major The stack has overflowed Incorrectcommand code is being used eS 7 Major _ The Scan time is now longer than the Watchdog time EF Wajor FResened irse S oftware Error Major Depending on type of problem system may need to be restarted i iResenedtorsem a Resenedtorsytem O O a _ iResenedtorsyem i _iResenediorsytem ine Major Faults and Minor Faults NG e When a major error occurs the controller immediately stops executing the logic program e When a minor error occurs the controller is able to continue executing the logic program LogiTouch Editor Ver
164. ot be retentive The variables assigned to the instruction parameter cannot be Hold type Warning 225 X should be an Integer Array The instruction requires Integer as a complete array Error 250 Duplicate labels are not allowed The same label is defined more than once This is not allowed even in different sections of the program Warning 251 Empty subroutines have no effect The subroutine contains no rungs If you do not alter the empty subroutine it will have no effect on your program LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 4 Errors and Warnings Warning 252 Empty rungs have no effect The rung contains no instructions If you do not alter the empty rung it will have no effect on your program Warning 253 Empty branches have no effect The branch contains no instructions If you do not alter the empty branch it will have no effect on your program Error 254 Control instruction should be last on rung The instruction cannot have any others to the right of it Warning 255 X is used by more than one timer instruction The timer variable is used by more than one timer instruction The results are indefinite You can use the References window to find the other instruction s Error 256 X is used by more than one counter instruction The Counter variable is used by more than one counter instruction The results are indefinite You can use th
165. ot mapped to an I O point E I O Input Output The LT Controller connects to physical real world devices through I O hardware supplied by third parties E I 0 Address An address assigned to a variable when it is mapped to an I O device The format of an I O address depends on the driver it is mapped to E Label Name A name containing up to 32 characters that identify or label a position within the ladder logic It cannot start with a digit E Ladder Logic The collection of rungs that make up your application So called because it looks vaguely like a ladder E Off Line When Off Line the LogiTouch Editor works with the disk file lte containing a ladder logic program This program 1s developed Off Line and then run On Line with the Controller E On Line The LogiTouch Editor monitors a program which is running live with the LT Controller For example Power_off pushbutton ResetButton ALARM2 etc E Parameter An input to or output from an instruction Parameters are entered into the Instruc tion Parameter Box E Power Flow The path power is taking through the ladder logic program LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 5 3 Chapter 5 Glossary of Terms 5 4 E Real Any number containing a decimal point or being represented in scientific notation The range for a real in Logic Program Editor is 2 25e to 1 79e It can have up to 15 significant digits E State Flow High
166. other instruction Once the RESET Perform 1 Scan Continue or PAUSE instructions are received the Controller changes to that condition The RESET instruction will change the program to the Loading condition At this time variables are initialized Retentive variables maintain data before the power shuts down or the LT resets However when triggering Controller reset in Monitoring mode 1 or when using the Command the value set in Program ming Mode 2 is used as the initial value Non retentive variables are cleared to Zero The RUN instruction will change the program to the Running condition The Perform 1 Scan instruction will perform the program once E First Scan Executes the I O Read performs any Logic Program that is higher the START level and executes the I O write E Running This is the Logic Program performance engine s continuous performance mode In this mode it executes I O Reads performs Logic Programs executes I O writes and updates System Variables AvglogicTime AvgscanTime etc The RESET instruction will change the program to the Loading condition The STOP instruction will change the program to the STOP condition The PAUSE instruction will change the program to the Temporary Stop condi tion E Temporary Stop The logic program execution engine is temporarily stopped in this state To avoid an I O watchdog timeout the system executes an I O read and I O wr
167. ouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 2 Running the Ladder Logic Program Memory The Memory tab shows the percentages of Estimate of controller memory required and Estimate of variable memory required with bar graphs Controller Setup T uning i Store entire program in controller 13 Remove descriptions before writing to save memory E stimate of controller memory required a Estimate of variable memory required Store entire program in controller Transmits the entire ladder logic program including comments Comments for the ladder logic program can be read when reading is done from the LT Remove descriptions before writing to save memory Reduces the size of the file you are downloading to the LT therefore when the file is uploaded from the LT there will not be any description data Estimate of controller memory required Shows the relationship of the current program s memory to the LT s usable memory as a percentage Estimate of variable memory required Shows the relationship of the total memory of all variables currently registered to the LT s usable memory as a percentage r m Writing to the Controller After you have completed creating a ladder logic program with the Logic Program Editor and it is free of errors you can write it to the LT and run it online To write a logic program to an LT you can either e transfer the scre
168. our local P ro face distributor notturn OFF DIO unitis defective Contactyour local P ro face distributor Designated output Check output line wiring lines do notturn Ouputwiring is incorrect Check outputline breakage ON Check outputterminal for looseness External unitis defective Replace unit Designated output __D O unitis defective Contact your local P ro face distributor lines do notgo Currentleakage residual voltage Change design of external device l e OFF Causes Causes incorrectrecurrence Atach dummy resistor et Load voltage Is incorrect Correctvoltage load Outputterminal screws are loose Tighten the terminal screws Outputarea Program is incorrect Outputcommands randomly turns are overlapping ON OFF Connector is notsecurely attached Attach the connector securely Reduce the noise level Noise is causing unitoperaton error Attach a surge Killer Use a shielded cable Correctthe program 11 16 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 11 I O Drivers E Error Codes I O errors are Read Write errors When I O errors occur the controller writes an error code to the IOStatus variable The logic program continues to operate The following explanation of possible error causes and solutions for when the DIO unit is attached to the LT Setting Errors Error Code Contents Solution Internal variable error allocated to I O 501 terminal E xternal variable e
169. performed for each element of A and B and the results are stored the corresponding elements of C Make sure that the size of A and C arrays are the same 3 When the three variables are arrays of the same size exclusive OR opera tions of array A and array B are performed The results are stored in array C The XOR instruction always passes power The following table lists the combinations of A B and C in which XOR instruc tions can be executed A i B i O Integer Array Integer Array Integer Array Integer Constant Integer Array Integer Constant Integer Array Operation Example When Start is ON the result of the exclusive OR operation of Data A and Data B is stored in Data C Start LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 9 15 Chapter 9 mrs NOT Bit Invert 9 16 Instructions NOT EN DON A C When the NOT instruction is executed the bit in C turns ON if the corresponding bit in A is OFF The NOT instruction turns OFF the bit in C if the corresponding bit in A is ON a oF IntegerA 0 1 1 0 E 1 1 0 0 OFF IntegerC 1 0 0 1 au 0 O 1 1 There are two types of NOT instruction 1 When the A variables are integers simple 32 bit bit conversion is per formed 2 When the A variables are an array bit conversion is performed for the entire A array The result is stored in C Make sure that the size of A and C arrays are the same The NOT instruction
170. r 73 Do NOT Perform Setup setup CFG file ie English pag Japanese I Selection EALOGITOUCH protocolhgpsetupe cfg EJUS a OF Cancel Help 4 Connect the data transfer cable to the LT and click on the Tool Bar s icon sends both the screen and control data to the LT I Transfer rameter setup Miew Options Help EEE Project File Jsamplelte OOOO Description NewLT ooo 5 After all data reaches the LT the unit is reset and the screen you created is displayed Check that the screen and the logic program operate correctly The logic program created in this exercise should operate as follows e The fan rotates when Run is touched and stops after five seconds e Touching the LT s Keypad Input Display displays a pop up keypad on the screen which allows you to change the stop time setting e If the sensor is activated while the fan is rotating the fan stops This completes the sample progam creation For detailed information on Logic Program Editor and Drawing Board operation please refer to their corresponding manuals and Help data 34 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Programming im Creating a Program This chapter provides step by step instructions on using the Logic Program Editor to create a logic program in Programming mode For details on starting the Logic Program Editor please refer to 1 2 Start to Finish in the Operation Ma
171. r 100 Pressing the switch changes the screen by substituting 100 in the Screen SCreen Switch Ott 100 H OUT 5creen 8 2 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 8 System Variables vwa System Variable Details This section describes each system variable in detail wa HAVGLogiclime AvgLogicTime stores the average logic time in ms units The average logic time refers to the average time required in one scan for reading I O executing the ladder logic program and reading I O Every 64 scans this system variable updates the average logic time since its last calculation Variable Type Integer Set by Controller Read Only ware AvgScanTime AvgLogicTime AvgScanTime stores the average amount of time in milliseconds that the con troller uses to read inputs execute logic write outputs and perform display processing in a single scan Every 64 scans this system variable updates the average scan time Variable Type Integer Set by Controller Read Only LogiTouch Editor Ver 1 0 Operation Manual l AvgScanTime ao a ail a a wo a 5a a 5 A ss a f X Q i Q amp i f 4 i i i l l i f L e s W aXe 7 Va 2 S f Q w e 4 va S A iaa Logic Programming Guide 8 3 Chapter 8 System Variables Day displays the Day data as set by the controller using two digit
172. r Ver 1 0 Operation Manual Logic Programming Guide 25 Setup Guide Tutorial 4 To create an automatic hold circuit drag the Run circuit s left side connection line to the right to create an OR circuit Run ot Tp 5 Click on the lower branch of the OR circuit to select it and click the fF icon to insert a Normally open contact 6 Next we ll assign previously configured I O variables to the logic program First click on Sensor and drag it to the left most Normally Closed contact Repeat the process with Fan and drag it to both the OP circuit s Normally Open contact and to the Coil 4 Configure 1 0 1x1 0 3 OX1 0 3 13 Sensor 2081 0 3 Close Run Sensor T fA l4 2 i O is Ort Ort Off 17 E He aa OX1 0 3 110 an i Bees On 113 A ETZ o0 opat N G1 We 02 Expt BaF z01 0 3 26 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Setup Guide Tutorial 7 To insert a new rung below Rung 2 click on the left side to select Rung 2 and then click on the Pg icon 6010 3 wa O03 Run Sensor Fan 2 I 4 _ _ Off Off Ott SoC 0 3 Fan Bii 8 Next click on the fF icon to create a Normally Open contact on Rung 3 see diagram 9 Click on the E icon and create an On Delay timer TON instruction Enter the name Run_Time_Timer and press Enter Run Time Timer IN 3 IN a OVPT ETIO 4 END 10 When the variable confirmat
173. r if A is equal to B The following table lists the combinations of A and B in which EQ instructions can be executed Integer Constant Integer Constant Real Constant Real Constant Note Real values need to be compared very carefully For example a calculation might Ne result in 1 99999999999 which is not equal to 2 00000000000 Example Run mode is triggered when the values of Data A and Data B are equal after Start is turned ON ares GT Compare gt A Data GT B Data E B The GT instruction passes power if A is greater than B The following table lists the combinations of A and B in which GT instructions can be executed Integer Constant Integer Constant Real Constant Real Constant Note Real values need to be compared very carefully For example a calculation might Ne result in 2 000000000001 which is greater than 2 Ee LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 9 31 Chapter 9 Instructions Example Run mode is triggered when the value of Data A is greater than that of Data B after Start is turned ON Waa LT Compare lt A Data LT B Data SUR A B The LT instruction passes power 1f A is less than B The following table lists the combinations of A and B in which LT instructions can be executed Integer Constant Integer Constant Real Constant Real Constant Ge Real values need to be compared very carefully For example a cal
174. r software etc will be downloaded if needed when you as write your LTE file to the controller If no changes in the driver have occurred since the last download the download of the driver is skipped e The size of the downloaded file can be reduced by removing descriptions before transferring 2 1 Configuring the LT Controller in The LT resets itself after the logic program write is completed Important rm m Going to Monitoring Mode E To Go to Monitoring Mode 1 From the Controller menu select Monitoring Mode A dialog box then appears asking if you wish to go online Go On Line 2 About to go On Line to the controller connected to COM1 Please confirm 2 Click on OK You are now online and can operate the program in the LT through the Monitoring Mode 2 4 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 2 Running the Ladder Logic Program yeas Starting and Stopping the Controller When the Controller is operating in Monitoring Mode the start stop of the Con troller can be controlled via the LT Editor From now we will use this feature to monitor the controller s mode As mentioned previously you must be online to the Controller before you can use the start stop or online editing functions E To Start Stop the Controller 1 From the Controller menu select Start Stop If you are in Programming Mode however this option is unavailable The Start Stop C
175. ram description You have now completed rungs 3 and 4 of the ladder logic program as well as one rung of initialization logic Please complete rungs 5 7 as shown on the following page Remember that the IPI instruction is a Positive Transition PT instruction LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program E To insert multiple branches into rung 7 1 Insert the first branch as previously described 2 Insert the next branch by starting to click and drag from the same point as the previous branch 3 Drag the cursor around the previous branch to the point on the rung where you want the branch to be inserted When the mouse is released a new branch will be inserted over the previous branch when is then pushed down In the example below instructions have been inserted on rungs 5 7 5 m lt Summary gt In this section you have learned how to e insert and delete rungs e insert and delete instructions e insert and delete branches LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 21 Chapter 1 Creating a Program ym Assigning Variables to Instructions This exercise shows how to assign variables to instructions In 1 2 Creating Variables you created a variable list which includes some of the variables used in the tutorial ladder logic program Please reopen the Variable List dialog box now E To open the Variable List dialog
176. re E Variable Registration In LT Editor s Data menu click Variable Type to open the Variable Type dialog box This section describes how to register a variable with a variable name LS as an internal integer array The size should be calculated by adding the number of words of data to be shared to the System Area s 20 words Example When sharing 16 words of data with the System Data Area enter 36 words 1 e 20 words for the System Data Area plus 16 words E Output Not Assigned bA ite Contioure Wa Help M Retentive W Global EN e The Special Relay Area is called the LSS area Note w The maximum LS size is 276 words The relationship between variables and addresses are listed in the following table Ls 0 0 f s LS 1 LS 0001 System Data Area ee es ee ee ee ee Sio 50019 ee LS 275 LS 0275 Other Shared Data rr re LSS 0 2032 LS 2032 LSS 1 2033 LS 2033 S pecial Relays O o E e A a LSS 15 2047 LS 2047 I Variable Name System Variables managed by the LT s ladder logic program For details on the LS Area and Special Relays refer to the External Device Connection Manual provided with the LT Editor LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 10 LS Area Refresh WES LogiTouch and External Device Data Sharing When using external communication device data with the controller features the data is shared via the LS A
177. re 70 Help Te Retentiwe JV Global E Accessing a Discrete Array To access the elements of a Discrete array a modifier n must be attached to each element To access the modifier it 1s assigned an element number however the first element number in an array must be 0 E g The Discrete array MotorSetting is a Discrete array of 10 elements The seventh element controls the output coil Fan When the seventh element is turned ON the output coil turns ON To access the seventh element of MotorSetting enter MotorSetting 6 MotorSetting 6 Fan k yM LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 7 7 Chapter 7 Variables E Accessing an Integer Integer Array Integers and Integer Arrays can be accessed via array elements bits bytes and words To access an array s element add n to the end of the variable name To access using bits bytes and words the following suffixes are used The modifier m is used to denote the position of the element in the array being accessed Access temoni Sux wooo To Access an Element with the Integer Array An Integer Array can be used for numerical calculation tracking of repetitive information and data logging Day 0 Water Sales 0 E g To record the number of sodas sold Day 1 Water Sales 1 in one month in the Integer Array Day 2 Water Sales 2 Water_Sales design your array as Day 3 Water Sales 3 follows The array
178. rea However if data sharing between the controller functions and the external device s data register exceeds 16 words the perfor mance of screen display functions may deteriorate Display processing External Controller function Device System Data System Data Top LS 0 Area Area Address 1 System Data Area LS 19 LS0019 nWord LS 20 Read Area LS0020 Read Area Read Area LS 35 Data mWord LS 275 Share Area Share Area LSS 0 Special Relay Special Relay LSS 15 LS Area refresh provides SIO Data Transfer data sharing provides data sharing 1 Start Address defined in Initial Settings 2 n 0 to 20 Depends on the System Data Area setting items selected in Initial Settings 3 m 0 to 16 Depends on size of Read Area designated in Initial Settings LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 10 3 Chapter 10 LS Area Refresh If you want set the Read Area and Variable LS to exceed 16 words the Read Area can be set up to 256 words and Variable LS can be set up to 276 words A maxi mum of 16 words is recommended when setting data that is shared between the controller display processing function and external devices E g When the Variable LS size is set to 36 words and the Read Area is set to 256 words Display Controller Processing External Function Function Device LS 0 System Data System Data Ls 35 _ _ 16 Words H 256 Words Le 275 E g When the Variable LS size is
179. rectly to the problem e If it is a logic problem that part of your program is displayed e If it is a problem with assigning I O the Configure I O dialog box is dis played As previously mentioned there can be a variety of error types displayed in the Validity dialog box Your validity check will show the following error Error 200 Rung 9 Parameter should be a Discrete LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 51 Chapter 1 Creating a Program E To fix an error 1 Double click on the error line in the Validity dialog box The Instruction Parameter Box of the instruction on rung 9 is highlighted indicating there is no variable assigned to it 2 Enter Soda_valve as the instruction variable For more information on specific errors and warnings refer to the Editor Help system or Chapter 4 Errors and Warnings in this manual When you have corrected the errors listed in the Validity dialog box run a validity check again Any errors that exist are displayed If they have all been corrected your program can be written to the Controller lt Summary gt In this section you have learned how to check the validity of an Editor ladder logic program The preparation for transferring a program to the LT for execution 1s complete The details of the procedures hereafter are explained in 2 1 Configuring the LT Controller 1 52 LogiTouch Editor Ver 1 0 Operation
180. remains OFF the elapsed time ET is reset to Q ware TOF Timer OFF Delay IN Timer starting bit Variable PT Preset time of timer ra Q Time up flag PT ET ET Present value of timer When the timer input bit IN stops receiving power the TOF instruction adds the preset time PT in milliseconds and the timer output bit Q turns OFF Overview Special Variable Variable Type Variable PT PresetValue Integer Variable ET PresentValue Integer Variable Q Timer outout bit Discrete Variable TI Timing bit Discrete When power is passed to the timer starting bit IN the TOF instruction starts and e Variable ET the elapsed time is reset to zero e Variable TI the timing bit turns OFF e Variable Q the timer output bit turns ON and the instruction passes power When the timer starting bit IN stops passing power to start the TOF instruction e Variable ET the elapsed time begins to increment in milliseconds e Variable TI the timing bit turns ON e Variable Q the timer output bit remains ON When the elapsed time Variable ET increments and equals the preset time Variable PT e Variable ET the elapsed time stays fixed at the preset value e Variable TI the timing bit turns OFF e Variable Q the timer output bit turns OFF LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 9 Instructions Example The following diagram is an example of high voltage
181. rivers Internal Errors Resetthe LT Ifan error code stll appears try to identify ifthe error is due to the LT Driver Error itself or to a related connected device A major system error has occurred Write don the error code and refer to your LT User s Manual Cortact your local Pro face dstri buor DIO Driver This section explains the LT OFFLINE mode s DIO menu The DIO driver should be downloaded from the LT Editor before executing the DIO menu The DIO driver is used with the LT Type A 11 3 For instructions on how to move to the OFFLINE mode screen refer to the LogiTouch Series User Manual sold separately meme DIO Unit Self Diagnosis This section explains how to use the DIO unit s Self Diagnosis feature For detailed information refer to the LogiTouch Series User Manual sold separately Touch the OFFLINE screen s Controller Menu to open the DIO Menu area lt When DIO Driver has been Selected gt MAIN CTRL MENU OO MENU por _ Touch the DIN DOUT key to open the following screen DIN DOUT CHECK Warning For testing purposes external output is produced Confirm that no external devices are connected to the GLC Insert the DIN DOUT loopback cable 11 12 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 11 I O Drivers Touch either the Set or Start key to start the self diagnosis This check sends an output signal from the output
182. ro face recommends that first time LT Editor users go through all of the tutorial prior to developing application programs This section describes the procedures for creating a sample application using the following devices Also the LT Editor software must be installed before starting logic programming E Equipment List LogiT ouch T ype A I O Unit Built in type T yoe A 16 point input 16 point output Data transfer cable TE DC24V proximity switch LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 17 Setup Guide Tutorial E System Diagram in Sensor Output from terminal No 3 LogiTouch Type A Fan Input to terminal No 3 E Example Application This example will create the following screen and logic program 11 0 3 Yo 0 3 Run sensor Run Time Timer Fan 2 es y C Off Off Off Off SoA 0 5 Fan Off S041 0 5 Run Tire Timer Fan TON 4 IN a I ot OF SOOO PT ETO E Explanation e The fan rotates for five seconds after the LT screen s switch is touched e The fan s stop time can be changed using the keypad displayed on the LT screen e The fan will stop rotating if a signal is received from the sensor 18 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Setup Guide Tutorial E Developing an Application Program The following steps are the usual flow for developing application programs with the LT Editor software This lesson will follow
183. rol the refreshing of data in this area rather than refreshing the data in addresses LS000 to LS0035 and LS2032 to LS2047 intermittently via the controller feature If the frequency of the LS Area s data refresh is increased the LS Area Refresh may not be executed within one scan As a result External Device communication errors May occur Variable LS is an integer variable and the length is 32 bits When the System Data Area is 16 bits long the low 16 bits are enabled LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 10 5 Memo 10 6 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide uhm I O Drivers iA S i O Driver Overview To perform external I O the LT unit s I O unit must be attached and its related I O drivers must be installed Se te NG When an I O error occurs and the controller stops create the following logic program There will be a delay of approximately one scan from the time the error is detected until the time the logic program stops In the following example an I O error is detected with lOFault and logic execution is stopped by assigning 1 to Command 1OF sult TIIN OUT Cormmand When an I O error occurs lOFault will turn ON Detailed in formation can be checked by lOStatus See 8 2 17 IO Fault and amp 2 19 Command LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 11 1 Chapter 11 I O Dr
184. ronics Cor 3 Please be aware that Digital Electronics Corporation shall not be held liable poration or third parties Digital Electronics Corporation shall not warrant or grant the use of said properties to any users or other third parties 2002 Digital Electronics Corporation All rights reserved Digital Electronics Corporation April 2002 For the rights to trademarks and trade names see TRADEMARK RIGHTS LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 S ee TRADEMARK RIGHTS The company names and product names used in this manual are the trade names trademarks including registered trademarks and service marks of their respec tive companies This product omits individual descriptions of each of these rights Microsoft MS MS DOS Windows Windows 95 Windows 98 Windows Me Windows NT Windows 2000 Windows Explorer MicrosoftExcel 95 Intel Pentium Intel Corporation USA Digital Electronics Corporation Pro face Flex Network P in J apan and other countries Ethernet Western Digital Electric Corporation USA IBM VGA PC AT E aA Business Machines Corporation IBM USA Microsoft Corporation USA The following terms used in this manual differ from the above mentioned formal trade names and trademarks Windows 3 Windows 3 Windows We Windows NT Windows 200 15 05
185. rors and warnings ssssssssseececcccssssceccccccosssccecoosossssceceoooo 4 4 400 499 Logic Program LogiTouch Editor I O errors and warnings 4 5 500 549 Generic I O driver errors ccccccccsccccccccccccccccccccccccccccccccccccccccccccscess 4 5 800 899 Specific I O driver errors ssssssscccccccsssssececcooossssececocoossssseceoossssssseee 4 6 900 1000 Specific I O driver warnings ssscsssssssseccecccssssseceeocosssssceeecoosssssseee 4 6 CHAPTER 5 GLOSSARY OF TERMS Features CHAPTER 6 CONTROLLER FEATURES 6 1 Operating the LogiTouch scsc cicscsnceescossdsvesssncescssecsvansesoceccscuedsvessvessecssscsevess 6 1 6 1 1 Controller Feature Overview cccccecccceccsceccscscecescecescecesceceees 6 2 6 1 2 RUN Mode 20 0 ccc cece cece cccececsececscceccccsccecsceccececsccecasceccscecensecersecs 6 4 Oks OCT OUCH Scan OW Ci rarer rscscs excsntuseorcascssacnetevnorusiasicsntuanees 6 5 CHAPTER 7 VARIABLES 7 1 Variable IN AICS sosicescacecncovexconacaescesuswevaecsveeswcsassexdetass0dcecseecsscsesaceteasvexsosisexs 7 1 r e E E DCS E O EO E OE E E EEA 7 4 Hed PROCESSING Variaples sasrccesnaniccaeecesceacwaecsstusabvscssenehctunsetdcaawaensdtuatiosensessi dines 7 7 CHAPTER 8 SYSTEM VARIABLES 8 1 System Variable List scsssitncccescesccncocswesesecevesesessutscescesssatocsussieesseusessssunseescesses 8 1 8 1 1 How to Use System Variables 20 0 0 cccccccccccccsessssseeeceeeeeeaeeeeess 8 2 8 2 System Variable Details
186. rror allocated to I O 502 terminal 503 Output variable error allocated to I O eene terminal Discrete variable error allocated to 504 analog terminal Integer variable error allocated to 505 discrete terminal Variable type notsupported by driver Correctthe variable type Two or more terminals are using the Same terminal number possibl Terminal numbers are duplicated P y causing data transfer failure Download the LTE file again Two DIO units are using the same M ultple modules are used module number Resetthese numbers so they do notoverlap M odule number has exceeded 1 Seta module number from 0 to 1 S etthe ae Unicheavest tl rear face of the LT to 0 added to the I O tree LTE file contains more modules than the a a The ID Number loaded from the builtin DIO unitis invalid The DIO unitmay be broken DIO No hardware unitexists or the type is invalid LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 11 17 Chapter 11 I O Drivers Runtime Errors Error Code Contents Solution Read outdata is incorrect After two successive read attempts the LT has Increase the tme ofthe Inputsignal s ON detected thatthe value read outirom the period DIO is incorrect Incorrect output data was detected by an DIO output data is incorrect internal loopback check Internal Errors Eror Code Contents J Soon SSS Driver Error Record the Error code and conta
187. rs in operation and logic programs ote When the setting is changed from Start Stop the system internally checks the status 2 for the Enable IO setting Therefore Enable IO setting changes made during the Start mode will not be reflected Be sure to change the setting to Stop before changing the Enable IO setting and then return to the Start mode LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 9 5 Chapter 2 Running the Ladder Logic Program You can also select these items from the Controller menu s Command Controller Go On Line Waite Chama Fa Wiadin Charges Skat y Skop Read from Controller write to Controller Command Go Command Mode Reset Start Continue Setup Property Stop Pause 1 Scan Enable forces Enable 0 Go Command Mode Write to controller Read from controller Re ote If you click on Reset all LogiTouch Editor variables will be reset except retentive 2 variables Use the MOV instruction etc if any values need special initialization 2 6 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 2 Running the Ladder Logic Program 2 3 Troubleshooting Using System Variables System variables can be used to help troubleshoot for an application if it does not perform as expected The system variables are the most useful for detecting problems with either the Controller
188. runs on line H Default selected If selected new instructions are appended to the right of the focus Objects including rungs labels and subroutines are appended below the focus If cleared new instructions are inserted to the left of the focus Objects are inserted above the focus If the focus is on a shunt new instructions are inserted on the shunt Default selected Preferences T Clear logic when going Programming Mode If selected the ladder logic screen will be cleared when going to Programming Mode from Monitor ing Mode Default not selected LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 3 Chapter 1 Creating a Program Monitoring Tab Preferences Editor Monitoring Confirmation Clipboard When Monitoring Mode update T state flow every millizeconds Confirmation Tab Preferences Editor Monitoring Confirmation Clipboard TE Confirm deletions TE Confirm creation of variables T Confirm controller operations T Confirm undo actions ee ab af e power flow is displayed while the Controller is in RUN mode The Power flow highlights the display of the live energized rung a vertical line used to describe instructions in logic programs while the Controller is in RUN mode Default clear The state flow is displayed while the Controller is in the RUN mode The state flow highl
189. s in BCD format Variable Type Integer Set by Controller Read Only Year Month Day and Time data are displayed using the following system vari ables E g July 14 2001 at 6 19 a m rear mom ooy time wae OrceCount ForceCount stores the number of variables that are forced ON or OFF in the current ladder program Refer to 2 2 Starting and Stopping the Controller Variable Type Integer Set by Controller Read Only The Data Watch List window indicates the five variables that are forced ON or OFF in the logic program gip Data Watch List Eile Edit Miew Help ForceCount 8 4 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 8 System Variables Day 1OStatus is set by the I O driver and stores the I O driver s current status in 1OStatus 1 A value of 0 indicates that the I O is normal The status indicated by a value other than O differs depending on the I O driver Variable Type Integer 10 Set by Controller Read Only The Data Watch List window shows that Error 802 occurred in the I O driver 1 gip Data Watch List File Edit Miew Help FO Status T0 802 0 0 0 0 0 0 0 04 For I O driver error code descriptions refer to Chapter 11 I O Drivers PA LogicTime LogicTime indicates the amount of time in milliseconds that the controller uses in a single scan to read inputs execute logic and write outputs of the prev
190. scriptions to each rung of your program In the following example a description is added to rung 5 E To add a rung description 1 Right click on rung 5 s left side number 2 Select Description from the shortcut menu and the Description dialog box opens It is the same dialog box you opened previously however the descriptor above the text field now says Rung 5 instead of Program a You can also open the Description dialog box by selecting Description from the Ne in the toolbar Edit menu or by clicking on Rung 5 controls the ice dispenser 3 Click on the text field of the Description dialog box 4 Type Ice is dispensed for as long as the push button is pressed providing a cup is present 5 Click on Apply Ice is dispensed for as long as the push button is pressed providing a cup is present lce pushbutton Cup Present_for Ice Ice s _ 4 Kf Of Of Of To add descriptions to the remaining rungs of your program easily keep the Description dialog box open E To add a description to rung 3 1 Click anywhere on rung 3 outside of the Instruction Parameter Boxes The descriptor at the top of the Description dialog box now says Rung 3 2 Click on the text field 3 Type The Light remains on until the Power_Off_Pushbutton is pressed 4 Click on Apply In this tutorial only the comments for rungs 3 and 5 are explained 1 28 LogiTouch Editor Ver 1 0 Operation Manual
191. set to DEFAULT is this feature enabled When the controller is restarted Start after being stopped this feature will automatically prevent the Logic Program from restarting The system variable DisableAutoStart can also be used for this setting 8 2 20 DisableautoStart Stop on Minor This setting designates if the logic program is stopped when a minor controller Fault fault occurs The system variable FaultOnMinor can also be used for this setting 8 2 22 FaultOnMinor Enable I O This function enables the inputs outputs to the LT main unit and external I O of the I O unit In normal operation the input output of the external I O is disabled when the LT is set to RUN mode after performing a Logic Program download For safety reasons this function prevents the possibility of accidental startups of machines caused by errors in operation and logic programs I To set up the MODE WHEN POWER IS ON select PLC Setup Controller Setup If Start Stop is selected in the Controller menu the settings of the LT Editor are ignored while the off line settings are prioritized Sr e For details on Target Scan Time and Percent Allocation refer to Chapter 6 Note Controller Features 2 For details on the system variables refer to Chapter 8 System Variables e The Enable I O feature can be selected when starting and stopping the con troller For details refer to 2 2 Starting and Stopping the Controller 20 LogiT
192. sfer Value is copied to Destination 6 Destination 6 While the program is running the controller checks whether references to array D elements exist in the FMOV instruction If an invalid array is referred to a major error will occur and Faultcode is set to 2 8 2 15 FaultCode LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 9 19 Chapter 9 Instructions 9 2 16 9 20 ROL Rotate Left A Variable name to be rotated ROL N Number of bit positions to shift EN DN A C C Destination variable The ROL instruction left shifts the bits in A by N positions Bits are rotated from the left end most significant bit to the right end least significant bit The result is placed in C The ROL instruction always passes power There are two types of ROL instructions 1 If both A and C are Integers a simple 32 bit rotation is performed N must range from 0 to 31 2 If both A and C are Integer arrays of the same size the array is treated as a large Integer Bits are shifted from one element to the next rather than rotating only within each element N must range from 0 to 32 x array size 1 inclusive Overflow is turned ON if N is out of range The result is undefined 8 2 18 Overflow The following table lists the types of A N and C in which ROL instructions can be executed A Integer or Integer Constant Integer Array Integer or Integer Constant Integer Array is Same size
193. shbutton Cup Present_for Ice Ice si __ Ott Ott small pushbutton 5 Ott Tim Pul_Timer PT Fill Timer ET Fill T imer C Fill Timer Tl LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 25 Chapter 1 Creating a Program These methods are used with rungs 6 7 and onwards The application L instructions exclusive variables such as Fill_Timer PT or mportant Fill_Timer Q consist of a variable name and a file extension CV Current value PT Set value e Output bit R Reset bit 7 2 Variable Types lt Sample of Tutorial Program gt The following logic program was created from the tutorial lessons so far sodaRequest sodavalve TOM 4 F IN Q Off 2000 PT ETO IceButton IceCupset Ice 5 4 m Sij Of Ot CupButton Mov 6 4P af 4000 small pushbutton Cup Present_forIce Fill Timer soda valve o y Ott Off Ott Ott Medium pushbutton Ott Large _pushbutton Of Soda valve Off lt Summary gt In this section you have learned how to assign operands to instructions 1 26 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program Wg Documenting a Ladder Logic Program It is recommended that you document your ladder logic program This data ex plains to users exactly how the program and each of its elements perform and is useful when the program needs to be alt
194. signal 4 Position after the operation LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 9 23 Chapter 9 Instructions CW SHR Shift Right A Variable name to be rotated Hp N Number of bit positions to shift EN DN C Destination variable U The SHR instruction right shifts the bits in A by N positions Bits are dropped from the right end least significant bit of the element and O is inserted in the now vacant bit positions at the left end most significant bit The result is placed in C There are two types of SHR instructions 1 If neither A nor C is an array a simple 32 bit shift is performed N must range from 0 to 31 2 If both A and C arrays are the same size the A array is treated as a large Integer Bits are shifted from one element to the next rather than the least significant bit being dropped from the right end of each element Only the least signifi cant bit of the lowest numbered element within the array is dropped N must range from 0 to 32 x array size 1 inclusive Ge re Overflow is turned ON if N is out of range The result is undefined NS 8 2 18 Overflow The SHR instruction always passes power The following table lists the types of A N and C in which SHR instructions can be executed pA a nteger or Integer Constant Integer Array Integer or Integer Constant Integer Array is same size as A Integer Constant Integer or Integer Constant Example e
195. signed to instructions in as exactly the same way as basic type variables however they must be typed in manu ally since there is no window to drag them from 1 4 3 Completing the Program Since you have learned how to assign variables to instructions you can now complete the remaining rungs of the program A diagram of the completed rungs is presented on the following page Notice that the MOV instruction on rung 6 and the NC instruction on rung 7 contain the variables Fill_Timer PT and Fill_Timer Q respectively These variables refer to the PT and Q elements of the Timer with the Fill timer variable assigned to it The following three procedures are available for entering these variables You can either e select the Instruction Parameter Box and type the Fill_ Timer variable in directly e click on and drag the Fill_ Timer variable from the Variable List dialog box and add the PT and Q extensions in the Instruction Parameter Box e drag the Instruction Parameter Box to the instruction you want to copy and enter a variable selected from the special Variable List 1 Select the source Instruction Parameter Box you want to copy from 2 Drag the counter and timer variables to the destination instruction you ant to copy 3 Select and double click on the desired parameter from the Variable List Box Fill Tirner TON Soda_valve 4 _P Off Ice pu
196. soo 2 1 2 1 1 Writing to the OM IPO LIEN xsssectecnpovinoxsassacemapeuacorsatenteanpovinoxsaniacennts 2 3 212 Gomo Monitorim Mode ssisnssnaecconscinaunssancciensciscosssnaceuenseimenssaanecaenes 2 4 Starting and Stopping the Controller cccccsssssccsccccccccccssssssssees 2 5 Troubleshooting Using System Variables ssccsssccccssssssssssscccosees 2 7 NVieying System VariaDl Sszsissrsiesrnoiionenosoiinendin nakoia i Nnna 2 8 Reading from the Controller ssssssscececececccccccsossssssecececececsososssssssssssssceeee 2 9 EE E a E E E E T 2 9 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide CHAPTER 3 ON LINE EDITING Sel Betor e Editing csceccsevececascaacevcacesseacessasescsneesssweeensevesseessonseessessseeesecneeacteyescters 3 1 3 2 Using Colors for On Line Editing sccccccccccssssssssssssscccsscsesssssseees 3 2 3 3 Turning a Discrete ON and OFF ccccsssssssssssssesssscccsscccssssssesseesssssooss 3 3 3 4 Forcing Discrete ON and OFF cccssssscesccccccccccccccccssssssssssssscsscees 3 4 39 CHANGING Variable Values ie cccitenccecasnctaoercanneste esi ene eE SEAE ES 3 4 3 6 Changing Variable Attributes ssscssssssccecccccssssececocccsssscceccccssssssceeesssssos 3 5 ST DPY AS era AEE ENESES 3 6 CHAPTER 4 ERRORS AND WARNINGS 200 299 Logic errors and warnings ssesecscssssssceceeccsssssccecococosssceecocoossssseecooso 4 1 300 399 Variable er
197. t When the Error Code No 841 occurs while the logic program is being executed the S Nos of the I O units that have been excluded from the communication circuit and malfunctioning I O units will be checked Refer to 11 3 3 Flex Network I F Unit Troubleshooting Touch the CONTROLLER MENU window s FLEX NETWORK DRIVER selec tion The FLEX NETWORK DRIVER MENU will appear Press the ERR S NO DISPLAY button in the FlexNetwork NENU window The ERR No DISPLAY window will appear and the error check will begin The currently connected I O unit s S Nos will appear and the I O unit S No with the error will be shown in reverse color Ham ERR S No DISPLAY Error S No s are reverse color es ee ee ee ee ee a ee es ae ee ee E a ee ee ee E ae a ae i ie a a E Oo T T ee ee S ee C ee ee ae ee ee a ee ee ee ee ee HOT CT S S cE tt 11 4 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 11 I O Drivers wees I O Monitor I O Connection Check 1 Select the CONTROLLER MENU window s FLEX NETWORK DRIVER and the FLEX NETWORK DRIVER MENU will appear 2 Select the FlexNetwork MENU window s I O MONITOR and the following 1 0 MONITOR SETUP window will appear I O Monitor Settings 1 0 MONITOR SETUP hex eso TRANSFER SPEED Mbps S Ho MODEL CODE VARIABLE TYPE DISCRETE e TRANSFER SPEED Set TRANSFER SPEED to either 6 or 12 Mbps Setting the communication speed faster
198. t Insert Rung from the shortcut menu to insert a rung between the SUBSTART and SUBEND rungs 7 Right click on the rung SUBSTART and SUBEND 8 Insert an OUT instruction in the rung 9 Insert 2 branches around the OUT instruction 10 Insert an OUT instruction on each branch The following is the completed subroutine This routine will reset each of the Counters every time the LT is turned ON Nunber_of_ Snalls k OFF Nunber_of_Wediunz K Each of the variables you see here should be assigned to each of the OUT instructions Assign these variables now This completes the subroutine you can add more than one subroutine to a ladder logic program by selecting either the SUBSTART or PEND rungs and repeat ing steps 2 through 6 If you want a subroutine to be executed at some point in your ladder logic pro gram you must insert a JSR instruction This is explained in the following tutorial This subroutine is executed as soon as the Light OUTPUT COIL on rung 3 turns ON Therefore the JSR instruction must be placed on rung 4 E To insert a JSR instruction 1 Select rung 3 2 From the Insert menu select Rung 3 Insert a PT instruction on rung 4 4 Assign the variable Light to the PT instruction 5 Insert a JSR instruction to the right of the PT instruction This is done from the Insert Instruction dialog box 6 Type Reset_
199. tage is when you click on any of the lines in its display the corresponding point in your ladder Qa logic appears Note You must click on the parameter itself not the instruction for the corresponding in 2 formation to be displayed in the References dialog box inR eeme References Dialog Box with Other Dialog Boxes Using only the Reference dialog box when you do not know where at least one instance of the desired variable is located is not the most convenient search method You can also use the Find command to locate it however there is an even quicker method You can use the References dialog box in conjunction with the Variable List and or the Description List dialog box E To use the references dialog box with other dialog boxes 1 Open the Variable List Description list and References dialog boxes 2 Move and re size them until your screen appears as follows J File Edit Help HYersion Controller version number HY atchdogT ime Watchdog timer setting in rrulliseconds HWCLS can Reserved for future use Hw CLS tatuz Reserved for future use Fill T inner The Fill Timer decides how long to keep the soda valve open The preset time changes Power On_pushbutton The Power On pushbutton starts the soft drink machine Program Thiz program rune a typical fast food restaurant soft drink dispensing machine Aung 3 The Light remains on until the Power Off pushbutton it pressed Ice is dispensed for as lon
200. that can have one of two states OFF or ON E Drag and Drop To press and hold down the left mouse button move the mouse then release The mouse pointer indicates whether this is a valid place to let go LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 5 1 Chapter 5 Glossary of Terms 0 2 E Klement An element is a name for some part of a variable rather than the whole thing This part can be e An element of a Timer or Counter variable e An element of an array or e Part of an Integer E Error Fault Conditions There are three types Major Minor and I O A Major Fault is serious When this occurs the Controller stops executing logic immediately The editor shows the state as MAJOR FAULT To clear the condition the Controller must be reset using the Start Stop window A Minor Fault is one that can be safely ignored An I O Fault is a failure to read or write I O in E Focus A black rectangle that highlights a selection in the ladder logic program E Forces Discrete points can be forced either ON or OFF This overrides any actions the logic may take For example if a variable is forced OFF but the logic 1s trying to turn it on it stays off A list of the forces in your program can be viewed with the Force List window E LT Controller The LT Controller executes ladder logic and controls I O The Controller is invis ible and performs the LT unit s extended tasks The L
201. that have been connected to the Flex Network I F units as well as the S Nos that have been connected to each I O unit will be checked Via the communication check operation the following items can be checked e currently connected I O units e currently malfunctioning I O units connection section 11 2 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 11 I O Drivers Communication Check Procedure Press the COM CHECK button and the COM CHECK SETUP window will appear Set TRANSFER SPEED Mbps to either 6 or 12 Setting the speed faster may cause the unit to be easily influenced by noise Normally set this speed to 6 Mbps COM CHECK SETUP NEXT TRANSFER SPEED bps When this test is performed all connected 0 unit S No s are reverse color When wiring the 0 units be sure all S No s use original settings and are unique Press the NEXT button and the COM CHECK window will appear Press the SET button to begin the communication check The currently connected I O unit s S No will be displayed in reverse color COM CHECK Total Connected 170 units Connected S No s are reverse color 49 50 57 52 53 54 55 56 p57 58 59 60 67 62 63 To return to the Flex Network MENU window press the RET button LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 11 3 Chapter 11 I O Drivers lt To Select Error S No Display g
202. the amount of time in milliseconds that the controller uses during its last complete scan to read I O execute logic write I O and display processing ScanTime Variable Type Integer Deo a i al Set by Controller A nee Sa Read Only P QON i i 4 j i i I I l D l a f ae T Q amp aS Sp RS N L M A a LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 8 7 Chapter 8 System Variables Status indicates the controller s status Within the Status system variable Byte 0 indicates the current fault conditions of the controller Byte 1 is used to show the fault status history and is reset to 0 only when the controller is reset Byte 2 indicates the current operating status of the controller Byte 3 is reserved Variable Type Integer Set by Controller Read Only Seas Intermittent errors can be detected by using the latch fault flag Use X hexadecimal format for Status When the following fault flags become 1 the corresponding conditions are indi cated as follows 8 8 3 5 oe Reseved Controller Status I O EnabledDisabled Forces N 4 E nabled Disabled A Latched Fault Flags TT j A aa zi Reserved LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 8 System Variables Time displays Time data as set in the controller using four digits in
203. the underscore aN te character to divide the variables into blocks or groups This will make the NSS variable names easier to find E g If you have several conveyor belts in your factory system Conveyer A Conveyor B Conveyor C etc include an identifying character in the motor and sensor variable names Conveyor A variables A_ Motor A_Sensor You could also name a Discrete bit as B Integer as I floating point as F AB_MotorStartingS witch AI MotorRotationNumber AF_MotorPowerRatio Here the variables used for contacts and coils are distinguished from the variables used for basic mathematical operations e You can also use an array to set up variable names for each of your PLC s devices a PLC Device ee Array Variabe Variable Type External Input X 100 External Output Y 100 Internal Relay M 100 Data Register D 100 For information about Variable Settings refer to 1 2 Creating Variables For information about reserved System Variables refer to Chap ter 8 System Variables LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 7 3 Chapter 7 Variables e a Variable Types The Logic Program Editor uses three types of variables Discrete bit Integer and Real Within these types Timers and Counters are also used Arrays can be defined and used with each type of variable For details on defining arrays refer to 7 3 Access to Variables The maximum size of an array th
204. to find the specific vari ables easily This will be explained in more detail in 1 8 Navigating a Ladder Logic Program lt Summary gt You have learned how to add descriptions to the program to rungs and to vari ables as well as how to call up the Description List dialog box 1 30 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program LIA Copying Cutting and Pasting Rungs When creating a ladder logic program you may find you have to duplicate se quences of instructions on several rungs You can speed up your work by copying and pasting completed rungs LAAS Copying a Rung In the following exercise two rungs are added between rungs 5 and 7 These additional rungs contain the same instructions as rung 6 with different variables assigned to them E To copy a rung 1 Click on the number 6 shown on the left of the rung to select entire Rung 6 2 From the Edit menu select Copy Note If you wish to select a range of rungs to be cut or copied click on the rung number of the first rung you wish to select Hold the SHIFT key down and select the rung number of the last rung you wish to select All rungs between the two are then se lected and can be cut or copied Copying is limited to approximately 25 rungs IAY Pasting a Rung The Logic Program Editor pastes rung s below the current rung as long as all the current rung is not selected If
205. tor Bit Address jeee Flt Function 3 Bit Set 1 LTP I Interlock Interlock Address foooo00 Touch available condition fe Bik Di 2 Bik Of 3 The Add Ice is completed Create the Large_pushbutton Medium_pushbutton and Small_pushbutton using the same procedure IS Drawing Board noname Screen Edit View Option Draw Parts Special Library Window Help JO Se olp Qald gt mflo saeale oas ox ID ajma Jm r Bsc Parts 4 Objects m Lome gt Link Select Change Order 3 im 4 POR EER PRTCHIOFOR GO 13 14 15 fe Wher g Pee ee nes a miz 1 58 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Yaa Running the Ladder Logic Program Once you have developed a ladder logic program that is free of errors it can be run by the LT Controller This chapter explains how to configure the LT Controller send write a program to it and run the program online Ym Configuring the LT Controller Before writing a ladder logic program to a LT Controller please be sure that the controller is configured properly When running a program on the LT there are two settings in the Controller Setup Tuning and Memory E To Configure the Controller From the Controller menu select Setup which calls up the following screen Controller Setup Tuning Memory Target scan time m 3 Permen Percent allocation
206. transferring the data be sure to save your project Ite file 1 Quit the Logic Program Editor and close the Drawing Board Next click on the Project Manager s Project menu and select Save As Enter a file name and click Save Save As Save in Ga database Adatsbase FE joie a Save as Ippe windows Project Files lke Cancel Cancel Cancel Description Hew LT Display Type LogiT ouch Type A External Device Type 2 Click the Project Manager s Transfer icon and the following screen will appear JZ Transfer Transfer Setup View Options Help zage Froject File eamate j Transfer Method Automatic Automatic e System Setup Description Mew LT Send To Prepare Status Teese i eaecae Status DC o o Ee Overall Progress LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 33 Setup Guide Tutorial 3 Click the Tool Bar s icon to call up the Transfer Settings dialog box In the Send Information field select Control Data and click OK Next select the desired PC port in the Communications Port field and click Transfer Settings iin Communications Fiort lt 5 eee Baudrate 115 26 IF bps wil Control Data Automatically Send Changed Screens tariat er Miet 7 Send All Screens J Send User Selected Screens Setup taj Automatic Setup Use Extended Program 1 Force System Setup Eil Siro fa
207. ts the combinations of A B and C in which DIV instruc tions can be executed B J Integer or Real Integer Constant Integer Constant Integer or Real Rea o S Rea Integeror Real Real Constant Real Constant Integer or Real ir e If B is zero or if the result C exceeds the range expressed by the variable data type Nx in C Overflow turns ON and the result of DIV is undefined 8 2 18 Overflow e Ifeither A or B are Real both are converted to Real prior to the division However if C is an Integer the number is truncated after the decimal point since the result is placed in C Example When Start is turned ON Data A is divided by Data B and the result of the opera tion is stored in Data C Start 9 28 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 9 Instructions Ware MOD Modulus A Data MoD EN DN B Data A c C Destination variable B When the MOD instruction is executed A is divided by B and the remainder is placed in C The MOD instruction performs only Integer or Integer Constant operations The MOD instruction always passes power The following table lists the combinations of A B and C in which MOD instruc tions can be executed A S JB ee Integer Constant Integer Constant nteger ot ote Overflow is turned ON when divided by zero and the result C is undefined M 8 2 18 Overflow Example When Start is turned ON Data A is divided by D
208. ubroutine IFAS Inserting a Subroutine At the bottom of every LogiTouch Editor program are two rungs labelled END and PEND The END label signifies the end of the main program area The Logic Program Editor executes the instructions between START and END with every scan The area between the END label and the PEND Program End label is reserved for subroutines In the following tutorial a subroutine is added E To insert a subroutine 1 Click on the END label 2 From the Insert menu select Subroutine The Insert Subroutine dialog box appears Insert Subroutine Name yore ooo ae career 3 Type Reset_Counters in the Name field of the Insert Subroutine dialog box A maximum of 32 characters numbers or underscore characters can be used for a subroutine name Variable names cannot begin with numerical char acters and cannot contain spaces 1 2 1 Creating a Varialble List 4 Click on OK At the end of your program the subroutine will appear 10 END 11 SUBE STARTReset Counters 12 SUE ENDReset Counters 13 PEND Here you insert your subroutine between the two new rungs labelled SUBSTARTReset_Counters and SUBENDReset Counters LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 33 Chapter 1 Creating a Program 5 Right click on the SUBSTARTReset_Counters label 6 Selec
209. unit to the input unit Therefore prior to performing this check be sure to attach the DIN DOUT loopback cable 7 When switching to the OFFLINE mode or when resetting from AmA the logic program s RUN state the I O signal may turn OFF Be ponant aware of the possibility that the I O signal will turn OFF gt LT Condition RUN OFFLINE RUN N Output from Logic Output from Logic OFF Program Program I O Signal OFF The RESET mode s I O signal OFF timing is NOT fixed Important Use the following diagram when creating the DIN DOUT loopback cable Recommended Products Connection Type Manufacturer Model Number __ _ FCN 361 040 AU Connector polenta FCN 360C040 B Cover FCN 363 040 Crimped Type F ujits u FCN 363 AU S FCN 360C0404 B A6TBX 36 Terminal Block Terminal Block UnitT ype M its ubishi AC TB Cable cable length TAIDON LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 11 13 Chapter 11 I O Drivers meses I O Monitor I O Connection Check On the DIO driver menu touch I O MONITOR to call up the following screen lt When I O Monitor has been Selected gt 1 0 MONITOR SETTINGS MODULE NUMBER No 0 1 INPUT TERMINALS WORD OUTPUT TERMINALS WORD Select the INPUT TERMINALS either DISCRETE or WORD Select the OUTPUT TERMINALS either Discrete or Word For example if you entered an INPUT TERMINALS of DISCRETE and an OUTPUT
210. utine instruction is attempting to call the subroutine that contains it This is not allowed Error 212 X should be the same type as Y The two parameters should have the same type Integer Real etc Error 213 X should be the same size as Y The two parameters must be the same size That is both must be either e Arrays with the same number of elements or e Non arrays Error 214 X should be the same size as Y or be an Integer The two parameters must be the same size or the second can be an Integer that is treated as if it is the larger size Error 215 X should be an Integer a Real or a Discrete array The instruction requires an Integer Real or Discrete either as a simple variable or a complete array Error 216 X should be a non constant Integer Real or Discrete array The instruction requires an Integer Real or Discrete either as a simple variable or a complete array It cannot be a constant Warning 217 Both parameters are constants The instruction is comparing two constants Warning 218 Input parameter used on output instruction The variable is marked as an input refer to Variable Type window however it is used in an output instruction Double check its I O assignment Warning 219 Preset value is zero The preset value of the counter is set to zero Warning 220 Preset time is zero The preset time of the timer is set to zero Warning 224 Parameter should n
211. utton is now unassigned from terminal IO and can be assigned to any other terminal you select In this tutorial assign it back to terminal IQ imme Assigning I O to Variables The easiest way to configure I O for new programs is to type the variables directly into the terminals They are then automatically created configured and mapped to the correct I O point In this case when you configure your I O first and then construct your ladder logic program creating your I O points is explained E To use variables assigned to I O with Instructions 1 Click the target variable and drag to the I O terminals as described above to assign variables to the input and output terminals of your driver 2 Construct your ladder logic program 3 Click and drag the variables from the Configure I O dialog box to the in structions you want I O assigned to LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program eee Converting I O Configuration Data The variables assigned to the I O of the LT Type A are automatically converted to the Flex Network The variables can be converted to an FN X32TS 32 point I O unit FN X Y16SK FN XY16SC or the I O FN XY16SK that are built in theT Type B unit This section describes the steps used to convert LT Type A I O to LT Type B I O FN XY16SK Configure 1 0 Module E 0 PowerOn_pushbutton IH 0 0 E l1 E 2 Cup_Present_for_Ice Ix E 13 E
212. utton 11 0 0 E 11 6 2 Cup_Present_for_Ice IH 0 2 E 3 E l4 3 Type Power Off pushbutton 4 Press the Enter key Power Off pushbutton is now assigned to input terminal 16 gt Configure 1 0 E 0 PowerOn_pushbutton 11 0 0 E 11 E 2 Cup_Present_for_Ice IH 0 2 E 13 E l4 E 15 E IE ower Off TE Fel1 0 6 E I7 E 15 E 15 E 110 111 E 112 E 113 E 114 WF 116 Ee Note When variables are assigned to I O via text entry the variables will be automatically NY listed in the Variable List dialog box LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide 1 47 Chapter 1 Creating a Program 1 48 Assigning variables to output terminals is the same as assigning them to input terminals Use the above procedures to assign variables from the following table to the input and output terminals Variable Name Terminal Type Light Output go The input and output modules are displayed in the Configure I O dialog box as shown here l1 0 6 BI i O 18 i 15 110 111 112 113 E 114 115 GO Light 201 00 01 Ice 01 0 1 Lapa 02 50da valve 01 0 2 03 m eis IPY Unassigning Variables from the Configure I O Dialog Box E To unassign a variable from the Configure I O window 1 Click on terminal IO in the Configure I O window 2 Click on Unmap The Power_On_pushb
213. ver errors For information about any errors pertaining to your I O driver refer to your I O driver user guide 900 1000 Specific I O driver warnings For information about any warnings pertaining to your I O driver refer to your I O driver s User Guide 4 6 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Glossary of Terms E Array A Discrete Integer or Real variable can be designated as an array This means that multiple elements of that type are allocated under a single name E Bit The basic storage element its value may be either 1 or Q E Bookmark An invisible marker that can be placed anywhere in your logic allowing you to instantly return to that portion of your program E Branch A parallel path of execution on a rung E Byte A storage element containing 8 bits of information A byte may be assigned values from 0 to 255 A Logic Program Editor integer is composed of 4 bytes E Clipboard A temporary storage place maintained by Windows for copying and pasting data This can be done between applications or within a single application E Data Watch List Window Shows data values as they change You can adjust the update rate in the Prefer ences dialog box E Descriptions A description can be any amount of text up to 32767 single byte characters that describes some part of your program A summary of descriptions may be viewed with the Description List window E Discrete point A point
214. vice Type 3 After all settings have been entered in the New dialog box a second dialog box will appear In this tutorial click the Edit LogicProgram button to start up the Logic Program Editor and begin to create a logic program Logi ouch Editor Edit Screen Cancel 20 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Setup Guide Tutorial 2 Assign Variables to External I O and Enable I O With conventional PLCs each PLC vendor uses their own naming system to handle External I O addresses as I O Device addresses LT Editor however allocates arbitrary names to I O Device addresses These are referred to as vari ables These variables can be used for internal relays and timers depending on the parameters that apply to the variable types and other settings used The number of variables that can be created will depend on the memory variable area s size and there are no special usage restrictions for individual variables 7 2 Variable Types Use the Logic Program Editor s I O configuration feature to assign variable names to external I O 1 Setting up External I O In the Logic Program Editor s Controller menu select Setup and the Setup dialog box will appear Click on the Tuning tab select check Enable I O and click the OK button Note If Enable I O is not selected external input output is not enabled and only the LT s internal logic program will oper
215. w Error 311 The clipboard buffer is not a recognized format The current contents of the clipboard are not suitable for pasting into the Vari able List window Error 312 Too many warnings The Variable Import Status window only shows a certain number of warnings If you see this message there may be more warnings that does not show Warning 313 Missing An array type requires the size enclosed in square brackets For example Integer 10 4 4 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 4 Errors and Warnings Warning 314 Array size is invalid Assuming a size of 1 This variable apparently is intended to be an array however the size is not recog nizable The size should be an integer within square brackets For example Integer 10 Warning 315 Unknown type will be Not Assigned The text is not recognized as a LogiTouch Editor variable type Possible causes are 1 It is spelled incorrectly 2 It has leading and or trailing blanks Warning 316 Unsupported array type Ignoring array settings That variable cannot be an array Error 317 Invalid variable name You have entered an invalid variable name Error 318 Too many errors The Variable Import Status window only shows a certain number of errors If you see this message there may be more that it does not show Error 320 Too many variables You hav
216. w you can insert a branch on rung 2 between the NO and the NC instructions This branch is designed for the self holding feature of the light on the soft drink server machine E To insert a branch 1 Place the cursor at the point on the rung where you want the branch to begin In this case directly to the left of the NO instruction 2 Click and drag the mouse to the right The cursor has turned into a Q witha dotted line attached to it Whenever the end point of the branch is in an incorrect location the Editor changes your cursor to a Q Also whenever the end point of the branch is in a valid location the cursor returns to normal If you release the cursor while it is normal a branch is inserted between the starting point and where you released the mouse If you release the mouse when the cursor is a Q a branch will not be created 3 Click and drag the mouse to the right until the cursor is between the NO and NC instructions and is not a Q 2 m Ty 4 Release the mouse and a branch appears between the NO and NC instructions 1 18 LogiTouch Editor Ver 1 0 Operation Manual Logic Programming Guide Chapter 1 Creating a Program E To add an instruction to a branch 1 Select the branch by clicking on the bottom of it 2 2 The Insert Instruction dialog box should still be open If it is not open it using any of the previously described methods 3 Select the NO instruction from the Insert Instruction
Download Pdf Manuals
Related Search
Related Contents
Canon EOS 1Ds User`s Manual FEMA ELECTRÓNICA ISC Series low_cost_pc-based_quad_channel_r User Manual Samsung Vaskemaskine 9 kg Eco Bubble WF906P4SAWQ Brugervejledning Super Soft Heel Protector - Skil All. 6 - Provincia di Torino Targus THZ18401EU 操作説明書 Turtle Beach XP SEVEN Copyright © All rights reserved.
Failed to retrieve file