Home
Software Manual - EZAutomation - Innovative Industrial Control
Contents
1. To view the firmware revision of the EZPLC go to the EZPLC Menu and select INFORMATION To upgrade your firmware go to the Setup Menu and select Upgrade Firmware see page 2 40 for more information EZAutomation 6 1 Introduction to PID Industrial Manufacturing Processes involve many variables such as temperature pressure flow etc It is important to control these variables for proper operation of the process There are several methods to control process variables PID is one of the most popular control algorithms used in the industry PID as applied to Industrial Process Controls stands for Proportional Integral and Derivative control algorithm The algorithm computes control action by using a mathematical equation which contains Proportional Integral Reset and Derivative Rate terms With proper choices of P I and D terms a user can maintain a process value very close to the Setpoint In addition if the Setpoint or the process dynamics changes the PID algorithm can bring the process back under control quickly Selection of appropriate P and D coefficients is critical to the proper operation of the PID control A block diagram of a generic process control is given below Process Disturbances Control Setpoint SP Control Value CV Process Process Variable PV Algorithm PID Process Variable PV As shown in the figure the user sets a target or Setpoint for the process The system com
2. ccccccesecsesececseeeeseeeseeeeneeens 3 62 Introduction to Drum SEQUENCING cccceeeceeeeeeeeeeeeeeaeeees 3 62 Adding the Drum Instruction eevnnrrnnnronnnnernnnernnnvnnnnennnner 3 63 Configuring I O Modules 4 1 HIGH SPEED COUNTER MODULES rvnnnvvrvnnnvnvnnnnrnnnnnnnnnnnvrnnnnernnnnernnnnnr 4 2 4 1 1 Selecting Counter Module rrrrnrannrnvannrnvnnnrnnnnnnrrnnnnennnnnrnnnnnee 4 2 4 1 2 Configuring the Counter rrrrrrrrrrannvvvannvrvnnnrnvnnnrrnnnnnrnnnnnrnnnnnee 4 3 41 23 COUNT gt EE ENE 4 4 4 1 2b Set Point 1 4 condi catannnsietias dandinstaceupthcidieitendssetesewabesicnank 4 5 4 1 2c Preset Value Lummsmiasemndmvmjdetnltdmidimstedn tdde 4 5 4 1 2d Preset Mode ss dncasieduiaseysiclossCosninusionsudanauccnaweraidanandinauniesia 4 5 4 1 3 Output Register Information rrrnrrrrrnrnrrrnnrvrnnnnrnnnnnr 4 5 N REE E EE E E 4 5 4 1 4 Input Register Information rrrnrnnnrnrnnrnrnrnnrernnnnrnnnnnr 4 6 115 vr 4 6 EZAutomation www EZAutomation net 1 877 774 EASY Table of Contents ih 4 2 ENHANCED THERMOCOUPLE MODULE ccccccccssseeeesseeeseeneeseeees 4 7 4 2 1 Selecting the Thermocouple Module ccccceeeeeeeeeeeeeaeeees 4 7 4 2 2 Configuring the Thermodcouple Module cseeeeseeeeees 4 8 2 20 NY OG ENE 4 8 12 DU 4 8 42 26 Report ENO Laser 4 8 4 2 3 Wiring Information cccssisictiasinntesatieoniusiwossdadcadseiddleaunisddelacdendattiwsae
3. Open Project To open an existing project or to create a new project while in a programming window click on File gt Open Project The Step 1 Project Information dialog box will appear Click on one of the SELECT ACTION buttons Choose from the available project files or enter a new Project Name Click on OK to open the project or Exit to quit without opening Close Project Click on File gt Close Project to quit the current project Save Ladder Click on File gt Save Ladder to save the current ladder logic only Save Project Click on File gt Save Project to save the current project Ladder Project Attributes and databases will all be saved Copy Project As Click on File gt Copy Project As to save your project under another name www EZAutomation net 1 877 774 EASY EZAutomation Chapter 2 EZPLC Editor User Interface 2 Save Project As Protected Click on File gt Save Project As Protected to save the current project as a password protected file The Protection Password dialog box will appear as shown below Protection Password Note Protected project can only be written to EZPLC and For Editing the Protected project eee Shida ba ned Enter the password em Fess Once saved if you attempt to open this project again or read this project from an EZPLC you will then be prompted to enter your password as shown below Protection Password E x The selected project is password prot
4. 1 Select an ASCII tag that contains the string to be sent in the Source brasaeten Duta Tag field using the drop down list for a Receive instruction the String that saxa ag ee 3 will receive the characters from the serial port in the Destination Tag Coreei Tog None field Oracio Court Tag Name Send Stort Character r Send End Character E 2 Select an integer register used by the instruction for status in the Control Register Tag field using the drop down list The following table ES FEE pene describes the control bits in the register Bit 0 Isb Enable 0 Disabled 1 Port is Open AND Instruction is Enabled Power flows to instruction Bit 1 Serial transmission done 1 function transmit or receive done 0 not done Other bits of the register are used for internal purposes and change state during transmission receiving 3 Select an integer register that displays the number of characters transferred from the source tag to the serial output buffer in the Character Count Tag field using the drop down list for a Receive instruction the Number of characters transferred from the serial port to the destination tag 4 Check either Send Start Character or Send End Character box if needed Adding Send to Marquee Instruction To add the Send to Marquee instruction perform the following steps 1 Select a Source Tag name Address using the drop down list r ren Detate How manage nu
5. Block Fill 123 Move Table of Constants Block Fill When power flows through this element the Block Fill instruction fills a block of memory area Src at memory location Aaaaa provides the data value to fill with whereas Dest at memory location Bbbbb provides the starting address of memory area to fill to The number of elements to fill is user specified The maximum number of elements that can be filled with one Block Fill instruction is 128 for 16 Bit registers and 64 for 32 Bit registers Src can be assigned a constant value Values can be displayed in Decimal Hex or Octal format Both Source and Destination must be of the same data type Bbbbb Dest Move Table of Constants When power flows through this element the Move Table of Constants instruction loads user specified table of constants to consecutive memory addresses with the starting memory address defined by Dest at memory location Aaaaa Src is the user specified table of constants The maximum number of constants that can be moved are 128 for 16bit registers and 64 for 32bit registers N displays the number of Dest addresses occupied by the user specified table of constants Source and Destination must be of the same data type Dest Bbbbb REAL numbers less than zero must contain a leading zero e g 999 is not valid 0 999 is valid It is possible to copy and paste data to from other Windows applications including Microsoft Excel and Word Input R
6. Syntax Check Current Logic Click on View gt Syntax Check Current Logic to display any errors present in the logic currently being displayed on the screen Once selected it displays the following message if NO errors are found If there are errors in the current logic then it displays a similar screen as below with all the errors present along with their position e g rung etc al alter Men Looe Was Syntax Check All Logic When using Syntax Check All Logic EZPLC Editor checks the entire ladder logic program and displays the errors if found as shown above for Syntax Check Current Logic Main Logic Click on this option to display the Main Logic in the Main Window of EZPLC Editor when Interrupt or Subroutine logic is present in the Main Window Main Logic as the name suggests is the main logic of your control program You can place some of the functions as Subroutine Logic which is then called from main logic You may want to use Subroutine to write some logic once and use at many places in your main logic by calling it or just to organize your main logic in modules The interrupt logic is a special logic section which is executed when an external interrupt occurs The purpose of interrupt logic is to provide a fast response to some time critical events You will need to use the Interrupt input module to trigger execution of Interrupt logic www EZAutomation net 1 877
7. The immediate Output instructions allow you to write to the corresponding physical output at the time of instruction execution instead of waiting for the I O scan to write the output Only the output referred to by the instruction is updated EZAutomation Chapter 3 Programming EZPLC o 345 Normally Open Immediate Output When power flows to this element the Normally Open Immediate Output instruction sets turns ON 1 the specified Aaaa z output point at memory location Aaaaa directly on the EZIO module and the output memory bit in the Image Table at the time of execution Normally Closed Immediate Output When power flows to this element the Normally Open Immediate Output instruction resets turns OFF 0 the Aaaaa specified output point at memory location Aaaaa directly on the EZIO module and the output memory bit in the Image ae Table at the time of execution Memory Data Type Discrete Outputs O 1 128 Allowed Data Formats Discrete Only E2 STO E STOP lIn I7 08 In the example above if the power flows to the output instruction O8 will be energized and immediately written to the physical output corresponding to 08 E3 STO E STOP op Is 08 In the example above if the power flows to the output instruction 08 will be de energized and immediately written to the physical output corresponding to 08 www EZAutomation net 1 877 774 EASY 3416 Chapter 3 Programming EZPLC EZAutomation 3 3 2 C
8. Result register in Binary BCD or GRAY Code Bitwise Instruction Performs a bitwise AND operation between the data values of two registers Opr1 and Opr2 The result is stored in Result register Performs a bitwise OR operation between the data values of two registers Opr1 and Opr2 The result is stored in Result register Performs a bitwise XOR operation between the data values of two registers Opr1 and Opr2 The result is stored in Result register NOT Performs a bitwise NOT operation on the data value of Source register and stores the result in Destination register Shift Left Performs a logical Shift Left on the data value of Opr1 register by the data value of Opr2 register and stores the result in Result register Performs a logical Shift Right on the data value of Opr1 register by the data value of Opr2 register and stores the result in Result register Rotate Left Performs a logical Rotate Left on the data value of Opr1 register by the data value of Opr2 register and stores the result in Result register Rotate Right Performs a logical Rotate Right on the data value of Opr1 register by the value of Opr2 register and stores the result in Result register EZAutomation www EZAutomation net 1 877 774 EASY Chapter 3 Programming EZPLC lt a RLL Instructions Table continued Instruction De
9. V Initial Value pe fi When you have entered your Tag information click on Apply Changes to add the new Tag created by Edit Tag Details Click Close to return back to the main Tag Database screen of Characters can only be specified when using an ASCII type Data Type for a word register and the maximum number of characters is 40 The main Tag Database screen also offers features for easy handling of Tags entered in the database Let s take a look at the functions available in this screen EZAutomation www EZAutomation net 1 877 774 EASY 23 Chapter 2 EZPLC Editor User Interface EZAutomation Find Replace With Find Next Replace Replace Al The Search and Replace function can be used to find and replace Tags present in the Tag Database This allows you to easily make changes to Tags previously entered in the database Highlight Unused Tags When the above check box is checked it will highlight all the tags in the PLC database which are not being utilized by an instruction When checked it will highlight unused Tags as follows Tag Database OOOO Z TT Search and Replace in Tag Hame Total Tags 14 Find _ 1 F High ght Unused Tacs Fd Hest 1 11 DISCRETE ii 2 LIGHT DISCRETE a ON 3 DISCRETE DISCRETE si 4 SIGNED INT 16 SIGNED INT 16 RI 5 Al UNSIGNED INT 16 Fl Rz UNSIGNED _INT_18 Fiz 7 SIGNED INT 32 SIGNED INT 35 Riz g UNSIGNED IMT 16 UNSIGNED INT 16 R3 3 UNS
10. 3 Select a Tag name address from the drop down list for the Destination register Source 2 for String Comparison Instruction 4 Data types for both source and destination must be the same Adding String Length Instruction 1 Select a Tag name address from the drop down list for the String register 2 Select a Tag name address from the drop down list for the Save in register String Move Instruction Instruction Details Help Move up to Number of Characters starting from Source Address to the memory area starting from Destination Address Each register holds two characters K K M m 8 Destination must be of same data type Source Src EZAutomation www EZAutomation net 1 877 774 EASY EZAutomation T String Move Chapter 3 Programming EZPLC oe String Move When power flows through this element the STR MOU String Move instruction moves an ASCII string pe Pl with a starting address of Src at memory location Aaaaa to Dest at memory location Bbbbb by the number of characters defined by the user This instruction can move up to 40 characters with every two characters occupying one ASCII register Dest For example if the number of characters to move is 2 this instruction will move the single Src register at memory location Aaaaa to Dest at memory location Bbbbb If the number of characters to move is 4 then this instruction will move TWO consecutive re
11. CV This field displays the current value of the Control Variable CV Minimum SP Enter the Minimum Setpoint value in this field Maximum SP Enter the Maximum Setpoint value in this field NOTE When selecting your values for Minimum and Maximum SP it s a good idea to choose a number relatively close to the Process Variable That way when your graph is created you will be able to see more detail The greater the range between your Minimum and Maximum SP the less detail your graph will display The shorter the range the more detailed your graph will be For this example the Process Value is at 550 so the Maximum SP is set at 575 and the Minimum SP is set for 525 leaving a range of 50 25 above and below to be displayed on the graph EZAutomation www EZAutomation net 1 877 774 EASY 62 Chapter 6 PID Loop ae Minimum CV Enter the Minimum Control Variable CV value in this Minimum SP 525 field Maximum 5P 575 1 Maximum CV Enter the Maximum Control Value CV value in this Minimum C O field Maximum CY 123 Interval mSec Enter the Interval value in milliseconds in this field Intervallm5 1000 per eS No of Ticks In this field enter the Number of Ticks you would like to Ho of Ticks 100 have displayed in the graph Show Gridlines Show Grid Lines Check this box if you would like Grid Lines to be displayed in your graph Sample Rate In this field enter the Sample Rate to determine how often the PID
12. Close Project 2 10 Closing 4 6 Communication Instructions 3 54 Communication Instructions Menu 2 24 Communication Operations Tool Bar 2 8 Communication Port 7 7 Communication Setup 5 8 Compare Instructions 3 16 Compare Instructions Menu 2 24 Compare Operations Tool Bar 2 5 COM Configuration 2 28 Configure Communication 1 6 Configure Communications 1 5 Configuring the Counter 4 3 Configuring the Counter Tab 4 3 Control 7 6 Control Output 6 9 Control Value CV High Limit 6 9 Control Value CV Low Limit 6 9 Control Variable 6 2 6 3 Control Variable CV 6 11 Control Variable CV Tag 6 6 Control Variable offset 6 3 Copy 2 4 2 14 2 22 Copy Project As 2 10 Copy Rungs 2 10 Counter 3 45 Counter 1 A Input 4 5 Counter Instruction 3 44 Counter Preset Value 3 45 Counter Register 3 45 Counter Status Register 3 45 Counts 3 64 Count Both Edges 4 4 Count Mode 4 4 Count Rising Edges 4 4 Current Count Tag 3 65 Current Step Tag 3 65 1 877 774 EASY Cut 2 4 2 14 2 22 CVO 6 3 CVn 6 3 CV Offset 6 9 D Data Bits 3 56 Data Length 7 6 Data Timeout 2 40 Deadband 6 8 Default 5 7 Default Tag Data Type 2 16 Delayed OFF 3 42 Delayed ON 3 42 Delayed ON Retentive Counts 3 43 Delete 2 14 2 20 2 22 5 5 Delete Label Comment 2 23 Delete Row 2 22 Derivative 6 12 Derivative Rate 6 2 Derivative Rate Time 6 8 DeviceNet 2 41 DeviceNet Slave 2 40 Device Network 2 39 Displaying Messages 5 9 Displa
13. NOTE If you would like to PID to run when PLC is stopped please use OR type tag for CV so that it can be updated Base Register Tag Base Register Tag Address defines the starting address of a Contiguous Block of 12 registers that are used to store PID Parameters and Status information Please see the dialog box to find the addresses of desired parameter within the block Base Discrete Tag Base Discrete Tag Address defines the starting address of a Contiguous Block of 4 registers that are used to store PID Parameters and Status information PID Loop Mode In Auto mode the PID Loop calculates a new Control Variable value every sample period In Manual mode the Control Variable is controlled by user manually The manual mode may be used for manual control of process PID Monitor dialog box Menu EZPLC gt PID Monitor can be used to modify Control Variable in manual mode When the mode is switched from manual to auto the integral term of the PID equation is set to the control value This provides bumpless transfer from manual to auto Anti Windup This option inhibits integration when the control value is saturated It controls the integral term of the PID equation when the control value is saturated If Anti Windup is selected the integral term is not included when the output is saturated and the sign of the Error will cause the integral term to drive the output further into saturation This help loops to come back into equilibrium
14. Press OK ta continue 3 Select the appropriate COM port under Ethernet Com Port and click on the OK button to begin the upgrade A status bar will let you know when the upgrade is complete Message Database The Message Database for EZPLC Editor is used for populating a mes sages which can be utilized with the Send to Marquee instruction Click on this function to display the following screen Ladder Message Database Seter Delauh Message stib ters Change atinbeter ta Default athiautes Add Ec Delete Hep x Cancel www EZAutomation net 1 877 774 EASY Chapter 2 EZPLC Editor User Interface Click onto the Add Edit button to display the following screen Add New Message Pg x Berg Humber Marques Address Select Pers Badore Oiepley Moda Broadcast Grup 0 Urag p Dc Nothing Dipa Menm l Poon Sl et heage Elie F Ler Metrage onire Mernag Text Preven Charsize gt Coo Red erko edt tne toch Preview How Pans FT bo embi data variable Pees CTALSENTER to goto meet lave of thir mete Te ee oe In the Add New Message window add the details of the message as shown you can select the message number marquee address message positioning and message text along with options for previewing the messages exactly how they would appear on an EZMarquee when sent Click on Add New Message to add the message to the database and continue the sa
15. Programming EZPLC EZAutomation Add Subtract Add Wh fl to this el t the Add ADD en power flows to this elemen e me instruction adds the register data values of two Baana l Opri Operands Opr1 at memory location Aaaaa and Res ICecee Opr2 at memory location Bbbbb The added pbbbh Oer2 value is stored in Result at memory location Ccccc Opr1 and Opr2 can be assigned a constant value Values can be displayed in Decimal Hex or Octal format Both the Operands and Result must be of the same data type Subtract When power flows to this element the Subtract instruction subtracts the register data value of Opr2 at memory location Bbbbb from Opr7 at memory location Aaaaa The subtracted value is stored in Result at memory location Ccccc Opr1 and Opr2 can be assigned a constant value Values can be displayed in Decimal Hex or Octal format Both the Operands and Result must be of the same data type AC aa bob coco Allowed Data Formats all register data type except ASCII ne Cecec In the example above R1 will be added to R2 and the result will be placed in R3 In the example above R2 will be subtracted from R1 and the result will be placed in R3 www EZAutomation net 1 877 774 EASY Chapter 3 Programming EZPLC 323 Multiply When power flows to this element the Multiply m e instruction multiplies the register data values HERE Der of two Operands Opr1 at memory location Res Gecce
16. SP PV for Reverse Acting Process Variable PV Tag Use the drop down arrow or enter a tag address where you would like the Process Variable to be stored You can use R or IR register types If you use an IR type tag then you are reading the Process Variable directly from an Input Module If use an R type www EZAutomation net 1 877 774 EASY 68 Chapter 6 PID Loop Address Process Variable Tag O Control Variable CV Tag Base Register Tag 4 Base Discrete Tag 4 PID Loop Mode z m Aia Discrete Base 0 5101 Bit 1 Auto Mode Manual Bit 0 Manual Mode Options IV Anti windup Discrete Base 1 S102 Use PY Square root Discrete Base 2 103 Saturation Discrete Base 3 5104 EZAutomation R type tag used for PV you will have to move the actual PV possibly after some scaling using logic to the R type register so that PID computations can use the PV NOTE If you would like PID to run while the PLC is stopped you should choose an IR type tag so that the PV is updated with the actual value Control Variable CV Tag Use the drop down arrow or enter a tag address where you would like the Control Variable to be stored The CV tag has the flexibility of using R or OR registers If you use OR then EZPLC writes the CV directly to an Output Module If you use the R type for CV tag you will have to move the actual CV possibly after some scaling using ladder to an output module for control
17. address of Src to TWO consecutive registers with a starting address of Src2 Similarly 6 characters would compare THREE consecutive registers 8 characters would compare FOUR consecutive registers and so on Memory Data Type Register Internals R 1 8192 Data Format ASCII only STR COMP CASCIII In the example above the string starting from R100 is compared with the string at R299 The strings are compared up to the number of characters or 40 or up to a null character in either of the sources whichever occurs first www EZAutomation net 1 877 774 EASY EZAutomation T String Length Chapter 3 Programming EZPLC 363 String Length When power flows through this element the SE String Length instruction counts the number of characters in a null terminated ASCII string specified by the starting address of Str at memory location Aaaaa The result is stored in Len at memory location Bbbbb input Registers ere Allowed Data Formats UNSIGNED INT 16 UNSIGNED INT 32 ASCII STRING STR LEN CASCIII TIME 1 Len 5 In the example above when power flows to the instruction the length of the string starting at R100 is computed The computation stops when a null character is found The length value is saved in R5 www EZAutomation net 1 877 774 EASY 354 Chapter 3 Programming EZPLC 3 3 10 Communication Instructions Use Communication instructions to open and close the serial port f
18. 1024 System Discrete SD Allowed Data Formats Discrete Only OPEN DOOR Bf I3 03 In the example above every time I3 makes an off to on transition in current scan O3 will energize for a single scan CLOSED DOOR m_m L I4 03 In the example above every time 14 makes an on to off transition in current scan O3 will energize for a single scan www EZAutomation net 1 877 774 EASY EE Chapter 3 Programming EZPLC Normally Open Coil Normally Closed Coil EZAutomation Normally Open Coil As long as power flows to this element the bit Aaaaa associated Aaaaa with the Normally Open Coil instruction remains ON 1 Normally Closed Coil As long as power flows to this element the bit Aaaaa associated Aha with the Normally Closed Coil instruction remains OFF 0 Memory Data Type Discrete Outputs O 1 128 Discrete Internals S 1 1024 Allowed Data Formats Discrete Only PEN DOOR P I3 03 In the example above 03 energizes when 13 transistions from 0 to 1 STOP HC MO Ee EE gt eee Ree A en ee 106 In the example above O6 will be de energized as long as 12 is ON www EZAutomation net 1 877 774 EASY Chapter 3 Programming EZPLC 343 Set Coil When power flows to this element the Set Coil instruction Aune amp sets turns ON 1 the specified output or storage bit at memory location Aaaaa Once the specified output or storage memory bit 5 Set Coil is turned ON 1 it will remai
19. 4 12 E e a P E ier NE EEE E TEE 1 4 to EZ START aron EE 1 5 1 3 1 Programming Ladder Logic susaisssicannvesecensrscincinancidessnadiseninenaese 1 7 1 3 2 Creating a Complete Rung Luvisinvuin sadsrenminsabsebankevamnk seen 1 8 EZPLC Editor User Interface 2 1 MAIN PROGRAMMING SCREEN nunnnnernnnennnnennnnennnnnnnnnnnnnnnennnnennnnennnnen 2 3 2 2 STANDARD TOOLBAR oinsicsisecnincisexautitcutesncusceusiucscntwineceteceeoseusebueecnneeseerc 2 4 2 3 INSTRUCTIONS TOOLBARS nnnnnnernnnonnnnnnnnnennnnennnnnnnnnnnnnnnennnnennnnennnnen 2 5 2 3 1 Relay Boolean Operations cccccsssecccsseecseeeecceseessseeeessaees 2 5 232 Compare Operations L nr sondigescdenedssietcendasadeweentiis 2 5 2 3 3 Math OPE AU ONS Lumet ode med ekdenpek ad mpd sabdede 2 6 2 3 4 Bitwise OPEANoNs Lumsssrsneameamskejadaesine 2 6 2 3 5 Move Operations saosin ccteeaecacccsnentuseatanenddedncedeedeeenmatannademodredoediienss 2 7 2 3 6 Timer Counter Operations rrrrannnrannnnannenannrnnnnennanennanennnnnnnen 2 7 2 3 7 Program Control Operations cccccccsseeccceseecceeeeeseeeeesseeees 2 2 39 09 Sting NPE Aer 2 7 2 3 9 Communication Operations rrarrrrannrvannenannrnnanernanrnnanennannnnnn 2 8 2 3 10 Miscellaneous Operations rrrannnnannrnannrnannrnnanrnnnnrnnanennannnnnn 2 8 24 PEC TOOLBAR sisisi iaaa aE Ee n 2 9 25 MENUS coron E eee ene 2 10 51 EN 2 10 252 FUNN er 2 14 25 VE Me a 2 18 2 5 4 Subroutine Menu Luavvvseesa
20. Compare Instructions Math Instructions Bitwise Instructions Move Instructions Time Counter Instructions String Instructions Communication Instructions Miscellaneous Instructions e PLC Toolbar e Menus File Menu Edit Menu View Menu Subroutine Menu Rung Menu Instructions Menu EZPLC Menu Setup Menu Window Menu Help Menu Right Click Menu a Chapter 2 EZPLC Editor User Interface 2 0 EZPLC Editor User Interface In this chapter you will become more familiar with the EZPLC Editor user interface The following pages will introduce you to the Main Programming Screen and the various elements located there all of the Toolbars Standard Toolbar Instruction Toolbar and PLC Toolbar all of the Menus File Menu Edit Menu View Menu Subroutine Menu Rung Menu Instructions Menu EZPLC Menu Setup Menu Window Menu and Help Menu and the Instruction Toolbars Relay Boolean Compare Math Bitwise Move Timer Counter Program Control String Communication Miscellaneous you will be using while creating your EZPLC projects EZAutomation www EZAutomation net 1 877 774 EASY Chapter 2 EZPLC Editor User Interface EE 2 1 Main Programming Screen Once you have configured your project information in the opening dialog box the following screen will appear Title Bar er Logic Display TE Window ool Bar Main Menu vz poe aid xi Bar eue mme i Wogan frikia O Crips Instruction Projec
21. Config Register base 20 Bits b2 to b0 Isb control count mode Address fori Bits b2b1b0 ooo Set Point 1 Except for the differences mentioned above the two modules are configured similarly ON Value Address fo OFF Value fo Address Set Point 2 ON Value Address 005 Base 4 fo OFF Value fo Address OUR Base 6 Address OR1 Cancel Apply Help EZAutomation www EZAutomation net 1 877 774 EASY 44 Chapter 4 Configuring I O Modules AX LA L_ B LIL Quadrature x1 Quadrature x2 Quadrature x4 ANLA LIL B Count Down Count Up Count Rising Edges g Y L B Count Down Count Up Count Both Edges EZAutomation 4 1 2a Count Mode The Counter Module supports 5 Counting Modes as described below Select the desired mode As shown in the dialog box bits b2 b0 of the configuration register stores the count mode of the counter Quadrature Counting Quadrature x1 This mode will give 1 count for every quadrature period Count rising edge of signal A only Phase relation of A amp B determines the direction Quadrature x2 This mode will give 2 counts for every quadrature period giving the user twice the resolution of 1X Count rising and falling edges of A Phase relation of A amp B determines the direction Quadrature x4 This mode will give 4 counts for every quadrature period giving the user twice the resolution of 2X Count both edges of A and B Direction is determined by
22. Drum sequencing instruction in EZPLC mimics the electro mechanical drums There are 2 types of Drums 1 Timed and 2 Timed with Event Each row on a drum chart represents a step on the drum When rung power condition is true the drum resets to a particular reset step defined by the user Each column in a drum chart represents an output from the drum We can have 16 discrete outputs numbered from 1 to 16 The outputs are updated during each step The Drum advances from one step to the next per the timer or after triggered by an external event A Jog tag can also be used to control the drum movement Checked boxes on the drum chart mark ON states of outputs on a particular step Empty boxes represent OFF outputs Each Drum sequences up to 16 steps having 16 discrete outputs per step Counts have a specified time base and every step has its own counter along with an event to trigger the count When power flows through this element the Drum instruction starts its sequence while EZPLC continues with the logic after this instruction Tread With Evert Farsi Tag Curent Sep Tag NETTENE BS EEE E EE gt i 1 Ha Outputs FET OT EL EL i AL re ELLE Le EE S 888 82 LE GALE Gr ON Output Bit DAL oe en LL ee ee LL N OFF Output Bit ee en ee ere EE a E E E mo Te a o Hm E TE Hm EE www EZAutomation net 1 877 774 EASY Chapter 3 Programming EZPLC 363 Adding the Drum Instruction To conf
23. E E a A baie ae megri er propre iisa h ebay rk gir abp r mang mabe barn berg ke mr h Emgan parem e endr jerar bark re aone orke iven iMg S Baran Tran Mery I ter Prass TAPT io endif bin EPLE CALITO Etran Til Pont fiat DST TPSTUTE moe nie CLC H p dn met ar ar rs an the nen Contos ans pg ae ee tee GF Agee peered ee poe Vik va amt varier ines mai bdan T ghara ammen ma ar EZAutomation en Chapter 8 Protecting Your EZPLC Program EZPLC offers two features for protecting OEM s programs as given below 8 1 Save Project As Protected This feature will prevent unauthorized users from opening viewing edit ing the project but will still allow a user to read from or write to an EZPLC This method of protection is useful if OEMs don t have a problem with user duplicating the program but would not like them to accidentally or intention ally modify the program because that may create malfunction of machines and hence support calls to OEMs A user including the OEM would have to provide a password before he she can open the program for view edit For details on how to configure this feature see section the section titled Save Project as Protected under File Menu in the EZPLC User Interface chapter 8 2 Restricting online read back access This feature provides OEMs capability to effectively lock their programs within EZPLC preventing anyone from copying their
24. EZPLE Information Reboot Clear Program Time Date Monitor Tags Chapter 6 PID Loop ett 6 3 PID Monitor This section will explain how to setup and use the PID Monitor function within the EZPLC Editor You can use this function to monitor and make real time changes to your PID Loop In order to use the PID Monitor function you must be connected to the PLC To begin click to the EZPLC Menu and select PID Monitor as shown to the left The dialog box below will appear The various fields and Start PLC parameters will be explained in the following pages Stop PLE 1i FID Mania E xj 3 eden I mate f i Camera Vika Henia COM Configuration vred I et BE Switch bo Monitor Mode I veken f _ i ET en m a interesie 00 vetter fit if F i Wasili fit Cfemorbe lade PID Monitor Pam FT 1 eee ere M Maul E i Select FID Loop 2 Plot x p Curent Value Mew Value EEE al VI I SetPoint Process ee FY 547 Control M Variable Cv 31 Select PID Loop Use the drop arrow to select which PID Loop you would like to monitor 1 8 Setpoint This field displays the current value of your Setpoint You can change the setpoint by entering a value in the New Value field and clicking the Apply New Values button at the bottom of the window Process Variable PV This field displays the current value of the Process Variable PV Control Variable
25. FID when PLC is stopped Acon Me i _ zASr f Direct Acting Revers NOTE If the PLC is stopped and the PID is running only the tags defined in PID loop setup will be updated so to control a process while the PLC is stopped make sure that the PV and CV refer to physical I O IR and OR type Address Process Variable Tag O Control Variable Cv Tag ov Base Register Tag 4 Base Discrete Tag EZAutomation Chapter 6 PID Loop 65 The Dialog box above allows you to define all your PID Parameters It will show as many tabs as the number of PID loops selected The tabs are labeled Loop1 Loop2 and so on Each PID loop requires a contiguous block of 32 Registers and a contiguous block of 8 discrete for storing parameters and status The blocks start at user specified starting base addresses In addition to the start of block of addresses following tags are required Process Variable Control Variable and optionally Control Output The user defines the Base or Starting address tag of the Register Block The EZPLC then maps the next 31 registers automatically making a total of 32 registers per block Out of the block of 32 registers 15 are used currently and the rest are reserved for future use Similarly the user defines a Base or Starting address tag for the Discrete Block Then the EZPLC will map the next 7 addresses automatically making a total of 8 discrete in the block The dialog box shows
26. Loop checks the process PID Parameters Proportional Gain in this field enter the value of the Proportional Current Value New Value Gain Sample Rate 5 Proportional Gain 300 Integral faa Derivative fl Cy can only be Mode changed in the fr Auto Manual Manual mode Integral In this field enter the Integral value Derivative In this field enter the Derivative value ILL Mode In this box you can choose Auto or Manual you can only change the Control Variable in the Manual Mode Once all of the parameters are defi ned press the Start Monitoring button shown to the left to begin monitoring your PID Loop A graph will begin to appear as shown in the image below PID Monitor PID Parameters 1 v Asset PIN Hoo Minimum SP 400 Current Value New Value Plot Current Value New Value Maximum SP 500 Sample Rate 5 Control Variable Minimum CY jo Proportional Gain me V i Setpoint qo Maximum C 119 Integral 3 Vv er FY ea FE Intervallm5ee 2000 Derivative 10 eiis No of Ticks fica CV can only be Mode ontrol changed in the gt a Variable CV 73 I Show GridLines Manual mode Auto C Manual 110 o Process Variable Start Monitoring Set Point SP amp Process Variabl PV am Sa I Control Variable CV rd N E 400 Min 3 33 34 35 Sec 05 15 235 465 55 05 15 5 5 4 amp 4 5 05 15 5 5 4H 5 0 15 5 mSec End Moni
27. Modbus Address Range 7 6 7 10 Modbus Command and Modbus Address 7 5 Modbus Error Codes 7 7 Modbus Master Dialog box 7 5 Modbus Master Instruction 7 2 Modbus Master Ladder Logic Examples 7 8 Modbus Slave 7 9 Mode 6 12 Module Position Numbering system 1 6 Modulo 3 24 Monitor Mode Shift to Run Edit Mode 2 4 Monitor Tags 2 27 Move Bit 3 38 Move Block 3 35 Move Data 3 35 Move Instructions 3 33 Move Instructions Menu 2 24 Move Operations Tool Bar 2 7 Move Table of Constants 3 36 Multiple Drop 2 36 Multiply 3 23 N Negative Contact 3 11 Network Memory Map 2 41 Network Type 2 40 Next 3 48 Normally Closed Coil 3 12 Normally Closed Contact 3 10 Normally Closed Immediate Input 3 14 Normally Closed Immediate Output 3 15 Normally Open Coil 3 12 Normally Open Contact 3 10 Normally Open Immediate Input 3 14 Normally Open Immediate Output 3 15 NOT 3 30 Not Equal To 3 17 No of Ticks 6 12 Number of PID Loops 6 4 O OK 5 5 On Falling Edge 4 5 On Rising Edge 4 5 Open Port 3 56 Open Project 2 4 2 10 Operand 1 3 16 Operand 2 3 16 Operator Bar for Instructions 2 4 Opr1 3 16 Opr2 3 16 OR 3 29 1 877 774 EASY Outputs 3 65 Output Register s Information 4 5 Output Register Information 4 5 Overview 1 4 P Parity 3 56 Password protection 2 11 Paste 2 4 2 14 PID Algorithms used in EZPLC 6 3 PID Autotune Setup 6 7 PID Autotune Status 6 7 PID loop 6 4 PID Loop Mode 6 6 PID Monitor 6 11 PID
28. Operands Opr1 at Aaaaa j rri memory location Aaaaa and Opr2 at memory Less Than location Bbbbb If Opr1 is Less Than Or Equal or Equal To To Opr2 then power will flow through this element Either Operand can be assigned a constant value Values can be displayed in Decimal Hex or Octal format Both Opr1 and Opr2 must be of the same data type Allowed Data Formats all register data type except ASCII In the example above if R1 is Greater Than or Equal To R2 power will flow out and O1 will be energized In the example above if R1 is Less or Equal To R2 power will flow out and O1 will be energized EZAutomation www EZAutomation net 1 877 774 EASY 320 Chapter 3 Programming EZPLC EZAutomation LI Limit Limit The Limit instruction can be used to compare register data values of the Input at memory location Aaaaa with Low at memory location Bbbbb and High at memory location Ccccc If Aaaa lt Ccccc and Aaaaa 2 Bbbbb then power will flow through this element Any of the registers Input High or Low can be assigned a constant value Values can be displayed in Decimal Hex or Octal format All the registers must be of the same data type se ss omme os 1 1 1 20 1 20 system Registers S 120 1 20 1 20 Allowed Data Formats all register data type except ASCII In the example above if the input R1 is within R2 and R3 power will flow out and O9 will be energized www EZAutoma
29. PID dialog Error Error PID Loop Mode LoopMode CAUTION Anti windup Antivindup If a tag with same name as a PID loop variable tag Use Fy Square Root UsePvSaqrt already exist a new tag will NOT be created and the Sat 2 Sat ti original tag will continue to exist in the tag database aturation hopet Start Autotune Start4utoT une Autotune Status AutoTuneStatus Timeout Time TimeoutTime Tuning Type TuningT ype Cycle Time CycleTime Dont Create PID tags This dialog box tells you the naming convention that will be used for creating the PID loop tags Note that all the tag names are fixed and denote the PID loop number the tag is associated with the variable the tag represents Also tags representing certain variables are only created if they were specified in the PID Loop example the tag representing Cycle Time 3 Click the Create Tags button At this point all the tags are created and the results are displayed in a dialog as shown below Note that if a tag already exists that tag will not be created and it would be reported in this dialog By clicking the Save button you can save the this list of tags created and failed in a text file Created PID Tag Details x Successfully created tag s PID1_RATE PID1 SP PID1 KV PID1 KC PID1 KP PID1_DEADBAND PID1_SPLOW PID1_SPHIGH PIDI1_CVLOW PID1_CVHIGH PID1_CVOFFSET PID1_ERROR PID1 AUTOTUNESTATUS PID1 TIMEOUTTIME EZAutomation www EZAutomation net 1 877 774 EASY
30. _ In the example above 4 bits N 4 starting from O1 are copied to Status Tag R300 R300 Bit16 15 14 13 12 11 10 9876543210 04 03 02 01 EZAutomation www EZAutomation net 1 877 774 EASY 340 Chapter 3 Programming EZPLC 3 3 6 Timer Counter Instructions Timer and Counter instructions allow you to control operations based on time or number of events Adding Timer Instruction To configure the Timer instruction perform the following steps 1 Click the Timer instruction icon side of the screen 2 Position the mouse over the area on the Ladder diagram where you want to insert the Timer instruction and click the mouse to place it 3 To enter Preset Timer types double click the Timer instruction to open its dialog box Timer Instruction Instruction Details Timer Action Time Base Delayed ON 1 Millisecond r Delayed ON 100 Milliseconds Retentive Counts 1 Second Timer Preset Value 1 Tag Name Constant a TmerRester Register at next address is automatically used as Status Register for the timer Status Register Bit 15 Timer Output Status Status Register Bit 14 Timer Enable Status 4 Check the box for desired Timer Action Delayed On or Off or Delayed Retentive On 5 Select one of the Time Base options 6 Select a proper Tag name address from the drop down list for the Timer Preset Value or enter a number in the Constant Value field 7 Se
31. and added configuration information for enhanced thermocouple module Added information for subroutine logic and interrupt logic Chapter 2 EZAutomation www EZAutomation net 1 877 774 EASY Getting Started In this chapter e EZPLC Editor System Requirements EZPLC Editor Installation e EZLaunchPad Overview Installation Function e EZStart Programming Ladder Logic Creating a Complete Rung Ek Chapter 1 Getting Started 1 0 Getting Started EZAutomation 1 1 EZPLC Editor EZPLC Editor is an intuitive and simple to use Relay Ladder Logic RLL Editor for programming EZAutomation s EZPLC EZTouchPLC and EZTextPLC family of products Note Since this Editor allows you to program any of EZAutomation s PLC products anytime a reference is made to PLC it applies to your corresponding EZPLC EZTouchPLC or EZTextPLC 1 1 1 System Requirements The EZPLC Editor works on a Pentium class PC running Windows 2000 or XP and requires at least 20 MB of free space on hard drive for installation 1 1 2 Installation The EZPLC Editor is distributed as a single setup file The setup file for the editor is EZPLCSetup exe The name may contain the version number of the software Installation of the editor is quick and simple Just run the setup file and follow the on screen instructions The default directory where the software installs is Program Files EZAutomation EZPLC You may also choose to ins
32. as explained above PID Click on this to open the PID Setup dialog box explained in greater detail on page 6 4 Number of PID Loops fo v Cancel Upgrade Firmware SEE CAUTION BELOW There may be occasional upgrades to your EZPLC EZTouchPLC and EZTextPLC internal software also referred to as the Exec or Firmware Check the EZAutomation website periodically for information about software and firmware upgrades www EZAutomation net 1 877 774 EASY 246 Chapter 2 EZPLC Editor User Interface EZAutomation To Upgrade Firmware 1 Back up the user program currently stored in the PLC and save to disk 2 Click on Upgrade Firmware and navigate click the on Browse button to the new firmware file hex plc file NOTE These settings must match the PLC Communications Port that you are connecting to Upgrade Firmware p l l xj Choose Firmware File The PLC finnware upgrade fie is usually named as EzPLCEdit_PLC Xd hex ple Ad being the fmavate version je A 1 Please select E2PLCE dit FUC Md hex_ple or thre fle under which you have saved lhe f rvsare upgrade he ie Fimware Location Finmware is generally stored under following directory C Program Files EZAutomation E 2PLC 1 0 61 Fimware CAUTION Ethemet COM Port Loading the finere will replace the current firmware in EZPLC and r ihe user program m E2PLC wil be ost when the hirae if updated Configuration
33. bits from Src are being moved to The user selectable Start Bit Number specifies the bit location in Dest register where onwards the bits are to be moved in e Map Discretes to Registers When using the Move Bit instruction to map discretes to registers Src at memory location Aaaaa provides the address of the register where bits are to be moved from The user selectable Start Bit Number specifies the starting point in the register where onwards the bits are to be moved and the Number of Bits specify the total number of bits to be moved Dest at memory location Bbbbb provides the starting address for consecutive bits which are being moved into from Src register bbbb 11126 1 128 14 1024 1 20 20 Memory Data Type Discrete Inputs Discrete Outputs Discrete Internals System Discretes A Input Registers O Output Registers 1 8192 1 8192 1 20 1 Allowed Data Formats SIGNED_INT_16 UNSIGNED INT 16 BCD INT 16 Discrete Register Internals B O S SD IR R R SR System Registers www EZAutomation net 1 877 774 EASY Chapter 3 Programming EZPLC 330 MOU BIT Reg eit In the example above all 16 bits N 16 of R1are copied to Scratch Bits 5100 to 5115 The Least significant bit of R1 is moved to S100 and the most significant to 5115 5115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 0 0 0 0 0 000 141 141 1 141 141 141 4 1 MOL BIT Bit Feg H d m h
34. box for the PID Monitor function explained in detail on page 6 3 www EZAutomation net 1 877 774 EASY EZAutomation Chapter 2 EZPLC Editor User Interface 220 Read Event Log Certain events such as when EZPLC was started TCP IP errors mod bus master errors etc are logged by EZPLC To view this log perform the following steps e Select ELPLC gt Read Event Log This brings up the Read Event __Log dialog shown below Read Event Log Read EventLog I e If you want the log to be cleared after you view it check the box labeled Clear Event Log after Reading Otherwise keep the box unchecked e To view the log click on the button labeled Read Event Log Each individual event is displayed in a single line For each event you can see the date time and description of the event e f you want to save the log to a file click on the button labeled Save Log to File This brings up a Save As dialog that allows you to specify the name and location of the file The default extension of this file is log The file that is saved is a tab separated text file that can be opened with a text viewer such as WordPad www EZAutomation net 1 877 774 EASY EZAutomation Chapter 2 EZPLC Editor User Interface 2 5 8 Setup Menu When you click onto the Setup Menu you can access the following functions Setup Tag Database Tag Cross Reference Read E7 Tags Export Tags Import Tags Ladder O
35. characters to be verified when received along with the ASCII string The starting and ending characters are specified in the Open Serial Port Instruction EZAutomation www EZAutomation net 1 877 774 EASY 358 Chapter 3 Programming EZPLC EZAutomation Register Internals R 1 8192 1 8192 1 8192 Close Port In the example above if power flows to the close port instructions the opened serial port is closed Once the port is closed it will not send any serial communication for any command such as Send to Port Send to Marquee without reopening the port In the example above if S5 is ON and the Port is Open the Send Port command would send the ASCII string as per programmed parameters If the port is not yet open the instruction will do nothing and the Enable Bit in the control register will remain 0 even if the S5 is on In the example above if S6 is ON and the Port is Open the Send Port command would receive the ASCII string as per programmed parameters If the port is not yet open the instruction will do nothing and the Enable Bit in the control register will remain 0 even if the S6 is on www EZAutomation net 1 877 774 EASY Chapter 3 Programming EZPLC 350 Send to Marquee ry When power flows through this instruction a oa the Send to Marquee instruction sends out a Ctrl Send to message to a marquee based on the message Marquee number as specified in Src at memory location Src Aaa
36. choices Select Description Center the message on EZMarquee Default Don t send any positioning information with the message Message will start at the position where last message ended At position Start message at user programmed Line and Column numbers Clear Message check box Check this box if you would like to clear the line before displaying the message on that line Select Reset Before Display Made Select Reset Before Display Mode You can choose certain message reset functions before displaying a new Do Nothing zi message The choices are as follows Do Nothing To do nothing with the previous message The new message is appended to previously displayed message Clear Display Home Clear the previous message and place cursor Cursor at Line 1 column 1 Clear Display Home Clear the previous message and place cursor Cursor Reset at Line 1 Column 1 and Reset EZMarquee Reset will clear all current ASCII commands such as Center Blink etc Clear Display Clear the previous message leave cursor Cursor Unchanged unchanged Clear Line Cursor at Clear only the line and place cursor at the start Line Start of the line Select Message Effects This field allows you to include commands for certain message effects Default v The choices are described in the table below Default No Effect Blink Whole Message The entire message will blink on and off Select Message Effects Turn Off Blinking Th
37. display only It is computed from the CV High Limit CV_HighLimit 4096 100 and expressed in percentage As the name suggest the output will remain on for this maximum time even if the computed control value is above the CV high Limit www EZAutomation net 1 877 774 EASY Chapter 6 PID Loop Creating PID Tags EZPLC can automatically create tags corresponding to all the PID loop related variables such as Sample Rate SetPoint etc To do so perform the following steps f Create Tag 1 Check the Create Tags checkbox located beside the OK button in the PID dialog 2 Click the OK button The following dialog box appears All the PID tags created will have the following Variable in Dialog Corresponding lt varName gt naming convension PID lt IoopNum gt lt varName gt Enn Rate Rate where Set Bo SP lt loopNum gt the loop number of the PID loop Proportional Gain Ky lt varName gt the PID loop variable for which the Integral Reset Time KC tag is created Use te tene on the Derivative Rate Time KP right to determine whal corresponding lt varN eee whould Dead Band DeadBand for a given PID variable Setpoint Low Limit SPLow Setpoint High Limit SPHigh CY Low Limit C Low For example the tag for the Set Point variable for PID Cv High Limit CvHigh loop 2 will be created with me name PDS SP Also note that certain tags uacha Cycle Time will onpi be Cv Offset CvOffset created if they were ene in the
38. field or use the drop arrow to make your selection 6 Select a proper Tag name address from the drop down list for Source 7 Select a proper Tag name address from the drop down list for Destination www EZAutomation net 1 877 774 EASY 334 Chapter 3 Programming EZPLC 8 Enterthe number of elements to move fill only forthe Move Block and Block Fill instructions Move Block Instruction Move copy a block of Number of Elements starting from the address of Source to the memory area starting at the address of Destination r Source Src Tag Name z Data Type UNSIGNED INT 16 v Destination must be of same data type JNS Number of elements to move fi Destination Dest er EE 9 Enter the numeric constants in the Table of Constants and select a proper Tag name address for the Destination from the drop down list only for the Move table of Constants instruction Maret Tadde of Canama Jestrisdtion E k Dispis al vakai r p Beren Tabip oi Coral ania ination moves joopa ka carahenta anton by the user l raray ae diting of the across of Destination 10 Choose the correct data format from the last drop down list on dialog box 11 Data types for both source and destination must be the same EZAutomation www EZAutomation net 1 877 774 EASY EZAutomation Move Data Move Block Chapter 3 Programming EZPLC 335 Move Data When power flows through this element
39. folder is WHERE INSTRUCTED AMD YOU WILL OT DE ADLE TO INSTALL AND USE THE i A SOFTWARE c Program Files EZAutomation EZPLC You can change this if Carefully read all the terms amd conditions of this agreement prior ba inatla EDLC you WOU Id like to T you accept the teres of tha agresmant click T Agree ta sartinue You must accept tha agreerent bo ketal GPE 1 0 Click the Install button to start installation frk I Agree Cancel sioj xi Choose Install Location Choose the folder in which to install EZPLC 1 0 66 ry 4 During installation you will see a dialog box Setup wil irtal EZPLC 1 0 66 in the following folder To install in a diferent folder dkk Browse and select another Folder Click Install to start the instalistion which will list in detail the files being copied to your hard drive for installation 5 After copying necessary files and making registry entries the installation is complete and you will see the dialog box below Click ee otras the Finish button to finish the installation If Space arate 2 298 the Run EZPLC checkbox is checked the program starts after closing this dialog box res MePiC 1 0 66 Setup aloja l i The setup program places the icon below on your desktop Completing the EzPLC 1 0 66 Setup Wizard ELC 1 0 66 har been initialed on your computer Eick Finish to dosa this stand _ EZ fF Emeri 1 0 66 EJ Buc E3PLC Editor To Uninstall If you need to
40. hour or 12 hour along with the option to synchronize the PLC s clock with the clock of the programming PC as shown below Time and Date Er xj EPLE Time and Date Day Tuesday Date Da0 Time 06 14 42 Feedresh Setup Time and Date Setup Clock Hode and Time Setup Day and Dale Dock Mode J E GE 12Hou f MHou Bay Saturday z Tima 022507 FM Dae f1 8 2005 T Synchiorize Setup Time vith PC Send To EzPLC www EZAutomation net 1 877 774 EASY Chapter 2 EZPLC Editor User Interface If the corresponding PLC is not properly connected to the programming PC the following error message will appear earicedt Error Reading Time Date Monitor Tags Click on this function to monitor read in real time the memory addresses Tags from the corresponding PLC When used the following screen will appear xj Select the tags you went to monitor and click the button Reading Time Display Format furspred Decmal Total Numba ol Tage 13 Total Number of Tage 1 lab led gt gt to add to the ist of monitored lags f HSC_2 PRESET ORTI HSC 1 CONFIG ORZ1 As shown in this screen you can select the Tags memory locations that need to be monitored in real time Once they are selected the Start Monitoring button will start reading the Tags from the PLC unless the End Monitoring button is pressed If the corresponding PLC is not properly connected to the programming PC the fo
41. in Operations These commands are also found in and accessible from the Main Menu gt Instructions and accessible from the Main Menu gt Instructions All the icons for instructions shown in this section All the icons for instructions shown in this section will be described in detail in Chapter 3 RLL will be described in detail in Chapter 3 RLL Instructions Instructions IF Ab IPE INF lt gt GO 6 di dE OD 65 gt SO i Normally Open Contact ee i Normally Closed Contact Not Equal To iP Positive Contact gt Greater Than int Negative Contact lt lt gt Normally Open Coil KES h gt Greater Than or Equal To S Set Coil lt Less Than or Equal To Reset Coil ii Normally Open Contact Immediate Input LIM Limit Normally Closed Contact Immediate Input Normally Open Coil Immediate Output Normally Closed Coil Immediate Output EZAutomation www EZAutomation net 1 877 774 EASY 28 Chapter 2 EZPLC Editor User Interface 2 3 3 Math Operations The Math Operations Toolbar consists of icons for all the instructions available for Math Operations These commands are also found in and accessible from the Main Menu gt Instructions All the icons for instructions shown in this section will be described in detail in Chapter 4 RLL X N ABS ey EG Add Subtract 4 Multiply Divide j Modulo ABS Absolute Y X Y Conversion In co RY Format Conversion EZAutomatio
42. is executed the input The immediate input instructions allow you to read a corresponding input bit at the time of instruction execution and use the most current bit status instead ofthe status stored in memory during input read in logic module addressed 18 is read and then the rung is solved All inputs 11 18 on that module are read and the memory is updated solving Immediate input instructions E1 5T0 E STOP update all the bits corresponding to an input module even if only one I6 08 of the bits is used in an Immediate input instruction For example if I1 In the example above when instruction i is executed the input is used for immediate input whichis module addressed 18 is read and then the rung is solved All inputs I1 on a 8 input card bits 11 18 would 18 on that module are read and the memory is updated be updated immediately EZAutomation www EZAutomation net 1 877 774 EASY i Normally Open Immediate Output Normally Closed Immediate Output A Normal PLC scan consists of reading inputs and saving the input status in memory or input image table solving ladder logic and writing outputs from memory or output image table During logic scan if a reference to an input comes up the value stored in memory is used for that input Similarly if logic needs to energize an output a corresponding memory bit is set which is later written to physical output during the I O scan phase
43. only representations since the scroll blink may appear differently on the actual marquee Finally to add the message click the Add New Message button You will see the message added to the database 5 2 2 Communication Setup The EZPLC sends messages to an EZMarquee over a serial RS422 port All communication parameters Data Bits Parity and Stop Bits except Baud Rate are fixed between two devices The EZPLC supports two Baud Rates 9600 factory default and 38 400 The EZPLC uses System Discrete SD6 to select between the two baud rates as follows Bit SD6 Baud Rate State Selected Please set SD6 to the proper value based on the Baud Rate of the EZMarquee in your initialization logic www EZAutomation net 1 877 774 EASY Chapter 5 Message Display on EZMarquee 59 5 2 3 Displaying Messages SR20 To send a message to the marquee set the Message Enable bit SD5 and place the number of the message to be displayed in the Message Number register SR20 When you set the enable bit the EZPLC will open the communication port using the Baud Rate determined by SD6 Message Number Register and sends the message corresponding to the message number in the SR20 register If the message number is not found in the message database EZPLC will set bit SD7 to indicate that the message number is not found and sends the Default message You may monitor SD7 to detect this condition EZPLC also sets the SD8 bit whenever it is busy p
44. refer to your EZMarquee and EZPLC Hardware manuals EZAutomation 5 1 Message Display on EZMarquee This feature requires firmware revision B 0 or later To view the firmware revision of the connected EZPLC click onto the EZPLC Menu and select Information EZPLC allows you to display text messages on EZMarquee LED displays EZAutomation offers several marquee models starting from single line 10 characters to 4 line 40 characters for plant wide communications Large marquee displays are visible from a distance and get the attention of operators and management providing them with invaluable production information and machine process status instantaneously EZPLC makes it extremely simple to integrate an EZMarquee in a control system The EZPLC has built in features to make displaying messages on EZMarquee very easy The EZPLC has a message database where you can define all of the messages Each message is identified by a unique message number and is displayed by telling EZPLC the identifying number of the message The EZPLC displays a message using one of two methods e Send to Marquee instruction e Message controller function The Send to Marquee instruction is described earlier on page 3 59 of this manual A description of the Message Controller function appears below Send to Marquee is an instruction that you use in your ladder logic While the Send to Marquee instruction is more flexible allowing you to define a register
45. same data type Shift Left Shift Right 40 When power flows through this element the Shift Right instruction performs a Logical Shift Right on Opr1 at memory location Aaaaa by the value of Opr2 at memory location Bbbbb and stores the result in Res at memory location Ccccc No bits are shifted in from the left and any bits shifted from the right are lost Opr7 and Opr2 can be assigned a constant value Values can be displayed in Decimal Hex or Octal format The Operands and Result must be of the same data type TCG aa bbbb cc Input Registers IR Output Registers OR System Registers SR Allowed Data Formats SIGNED INT 16 SIGNED INT 32 UNSIGNED _ INT 16 UNSIGNED INT 32 Ceece Shift Right R1 1100 0000 0000 0101 Shift Left by 4 R3 after shift 0000 0000 0101 0000 In the example above the value of Level is shifted Left by 4 All bits are shifted left by 4 MS bits are lost R1 1100 0000 0000 0101 Shift Right by 4 R3 after shift 0000 1100 0000 0000 In the example above the value of Level is Shifted Right by 4 All bits are shifted right by 4 LS bits are lost EZAutomation www EZAutomation net 1 877 774 EASY 332 Chapter 3 Programming EZPLC r3 Rotate Left Rotate Right EZAutomation Rotate Left When power flows through this element the Rotate Left instruction performs a logical Rotate Left on Opr7 at memory location Aaaaa by the value of Opr2 at memory l
46. step is executed The Count can have a different time base as specified by the user in Time Base Time Base Time Base allows the Count variable to be mapped to different Time Bases as follows e 1 millisecond e 10 millisecond e 100 millisecond 1 second If the Time Base is set to 1 millisecond then a Count value of 10 would correspond to 10 milliseconds Similarly if the Time Base is set to 10 milliseconds then a Count value of 10 would correspond to 100 milliseconds and so on www EZAutomation net 1 877 774 EASY Chapter 3 Programming EZPLC 365 Preset Step This user selected value is used in conjunction with the Reset Tag If the Reset Tag is enabled 1 then the drum sequence jumps to the step specified by the Preset Step Reset Tag Rst address at memory location Aaaaa is used to reset the drum sequence to a user selected Step location every time the Rst bit transitions from disable 0 to enable 1 When Rst is enabled the Drum Sequence is immediately shifted to the Preset Step regardless of its current position and Count value Jog Tag Jog address at memory location Bbbbb is used to jog the Drum Sequence to the next step If present on Step 16 it will be jogged to step 1 When Jog is enabled the Drum Sequence is immediately shifted to the next step regardless of its current position and Count value Current Step Tag Stp address at memory location Ccccc is used by the Drum instruction to write the curr
47. the Move Data instruction moves data value from Src at memory location Aaaaa to Dest at memory location Bbbbb Src can be assigned a constant value Values can be displayed in Decimal Hex or Octal format Both Src and Dest must be of the same data type Move Block When power flows through this element the Move Block instruction moves a block of memory area Src at memory location Aaaaa provides the starting address of the memory area to move from and Dest at memory location Bbbbb provides the starting address of the memory area to move to The number of elements to move is user specified The maximum number of elements that can be moved with one Move Block instruction is 128 for 16 Bit registers and 64 for 32 Bit registers Src can be assigned a constant value Values can be displayed in Decimal Hex or Octal format Both Src and Dest must be of the same data type Input Registers IR Output Registers OR Register Internals R 1 8192 1 8192 System Registers SR Index Registers XR Data value of R register as 1 4 1 4 pointed by XR register AR Allowed Data Formats all register data type except ASCII LEVEL 2j Dest R2 MOW BLE 0 MOWE ULE SOURCE Src Rig DESTI Dest Rou This instruction is used to copy multiple elements In this example 10 registers starting from R10 R10 19 are copied to R50 49 www EZAutomation net 1 877 774 EASY 336 Chapter 3 Programming EZPLC EZAutomation Ey
48. the RLL Instruction icons you will use in your project Instructions Toolbars This is another way for you to access the RLL instructions and many other functions in EZPLC Editor EZAutomation www EZAutomation net 1 877 774 EASY 24 Chapter 2 EZPLC Editor User Interface 2 2 Standard Toolbar The EZPLC Editor offers multiple toolbars for convenient access to many functions and instructions These toolbars can be displayed or hidden using menu Edit gt Toolbars This section describes various tool bars available in EZPLC Editor Q2QQ ISEkT RABB si EIT VE JE Open Project Save Ladder Save Project o O Cut m Copy a Paste S Undo Redo Toggle Project View Print About K Help EZAutomation lp p Ez a cd m nm a Gil m Ta Zoom Default Zoom In Zoom Out Syntax Check Line Tool Go To Rung Go To Label Cascade Windows Tile Windows Tag Database Toggle Operator Bar for Instructions Display Monitor Mode www EZAutomation net 1 877 774 EASY Chapter 2 EZPLC Editor User Interface 025 2 3 Instructions Toolbars 2 3 1 Relay Boolean Operations 2 3 2 Compare Operations The Instructions Toolbar consists of icons The Compare Operations Toolbar consists of for all the instructions available for Relay type icons for all the instructions available for Compare instructions These commands are also found
49. the phase relation of A amp B Pulse and Direction Counting Count Rising Edges This mode only counts Signal A The signal from B establishes the direction This mode will count for the rising edge of Signal A from Encoder 1 If direction is high then the counter will be incremented by 1 If direction is low then the counter will be decremented by 1 Count only rising edges Count Both Edges This mode only counts Signal A The signal from B establishes the direction This mode will count the rising and falling edge of Signal A from Encoder 1 giving the user twice the resolution of the Count Rising Edges mode If direction is 1 then the counter will be incremented by 1 If direction is 0 then the counter will be decremented by 1 Count both rising and falling edges www EZAutomation net 1 877 774 EASY Chapter 4 Configuring I O Modules Output ON if ON Value lt OFF Value Counter preset at this edge Counter preset at this edge Input A EZAutomation Preset Input tA Counter preset at this time 4 1 2b Set Point 1 4 The Counter Module provides 4 programmable Limit Switch Outputs Please enter the ON amp OFF values for each of the setpoints The dialog box shows the registers used for setpoints Each setpoint controls a corresponding output on the module E g Setpoint 1 controls Output 1 Output 1 is ON when the count value is greater than or equal to the ON value but is less t
50. the same Name and Data Type ter EZAutomation www EZAutomation net 1 877 774 EASY Chapter 2 EZPLC Editor User Interface When Comma delimited is selected this function imports all the Tags present in an Excel file as specified by the user in the following screen 2 xi Read Tag Excel File Look in C Project a E Files of type E PLCE dit Tag Excel F es ds Cancel oe Project Options Use this dialog to select options for Multiple Drop Clearing registers on program upload Displaying information for warnings and restricting unathorized readback online access as shown in the following screen For details on how to restrict unauthorized readback online access to your user program see the chapter titled Protecting you EZPLC Program Cereal Apher ann Caic ee gle bles ban OB Pepan pars romer bn edel pro back re cots onde ls G Share is cron me Click on the Application Colors tab to edit the color and configuration for the Ladder Logic programming window as shown in the screen below Project Options x General Application Colors Tag name foreground color ae El Tag address foreground color ae Tag name background color v Tag address background color v Value foreground color mm Bl Rung background color Value background color v Rung border color z Data box text color a Ml Data box outline color ae B Data box
51. this bit transitions from 0 to 1 Autotuning of the loop is started regardless of the selected PID Loop Mode of the loop Once Autotune is started you can stop it by making setting this bit to 0 Autotune Status Shown on the dialog box for information only During Autotune EZPLC reports the status of Autotune in the register fo Jtmngmpoges Timeout Time in sec User programs Autotune timeout in seconds in this register If EZPLC can not finish autotuning within this time the Autotune is aborted User should program this field based on the dynamics of the process Tuning Type User selects if PI or PID tuning is required www EZAutomation net 1 877 774 EASY 68 Chapter 6 PID Loop Algorithm a a f Position Velocity PID Parameters Sample Rate p Base Reg 0 R101 Setpoint p Base Reg 1 R102 Proportional Gain fico Base Reg 2 R103 Integral Reset Time 3 Base Reg 3 A104 Derivative Rate Time 3 Base Reg 4 R105 PID Limitit Deadband fo Base Reg 5 R106 Setpoint Low Limit fo Base Reg 6 R107 Setpoint HighLimit fo Base Reg 7 R108 CV Low Limit jo Base Reg 8 R109 C HighLimit 4095 Base Reg 9 A110 Cv Offset fo Base Reg 10 R111 Error Base Reg 11 R112 EZAutomation Algorithm Position or Velocity EZPLC supports two PID algorithms know as Position and Velocity algorithms Select whether you would like to use a P
52. to Marquee Example EZAutomation af JOG 1 Fat lis in ER bd ko lis in OR ps iu Label Check Temperature Range Comment Input Temperature TEMP IN is compared to LO OPERATIONAL and HI Ranges Bits 51 52 53 are set dependant on the TEMP IN LO RANGE MIH Low Ria LO LO RANGE MAX Sul k11 TEMF IH Inrut Fil OF OF RANGE MIN Low Riz ay AER MAX 5z TEMP IHN InFut ki HI HI RANGE MIH Low Rid ay SelnEIe MAX 53 TEMP IHi Ineut Ril Label Send Temp Range to EZMarquee Comment When sending messages to the EzMarquee the serial port must be opened in the ladder logic When a range is triggered the appropriate message number is sent to the MESSAGE REG and the range message is sent tto the E2Marquec FR AB Baudfkate Ho Faritg HOU BATA Send To UIE Marsuyee www EZAutomation net 1 877 774 EASY 362 Chapter 3 Programming EZPLC EZAutomation Steps nave Deisis Guana Deum Typa DRL Instruction b Trend Orr Fmt Ses 13 at alelel 1 F 4 E 7 E I I I ii oe ki ME al f 3 3 11 Miscellaneous Instructions Introduction to Drum Sequencing Conventionally electro mechanical drums are used in control of processes where a certain number of steps is repeated over time Such drums are a popular control technique because they save a lot of logic programming
53. to the specified marquee s broadcast or a certain unit when the message number assigned by Src does not have the matching message in this database Note Only messages with the correct message number as per Src register will be displayed Actions for Unmatched Messages If the Src register points to a message number that does not exist in the Message Database then there are three options one of which can be selected by the user for appropriate action e Send Default Message Sends a Default Message as specified in the Message Database e Send Blank Message Sends out a blank message with no text clears the display line of the marquee s specified in the Default Message e Do Nothing No action is taken if the correct message is not found Memory Data Type A B bbbb Input Registers IR Output Registers OR R 2 SR 1 20 EEEE 1 64 Register Internals 20 System Registers In the example above if S5 is On AND the Port is open and not busy the message is sent to Marquee The message is sent ONLY once every time 55 changes state So to refresh the message on the Marquee for example if an embedded variable changed ensure that 55 changes state Another example for the send marquee is shown on next page In this example the logic is monitoring 3 temperature ranges and displays one of the 3 messages based on the temperature value www EZAutomation net 1 877 774 EASY Chapter 3 Programming EZPLC Send
54. true The instruction involves sending a command to the addressed slave and processing the reply back from the slave which is asynchronous to the ladder scan The Power flows out of the instruction only after the instruction is completed i e after either the reply is received or the instruction times out The Control Word register which can be user specified can be used to see the progress of the instruction If the rung condition becomes false before the completion of the instruction the instruction is not completed the sending of the command is completed but the reply is not processed even if received If the command was a write command the values MAY be written but can not be guaranteed It is advisable to check the error code register also user specified for any potential errors after the instruction is completed When using the Ethernet port the error code register is not valid until the instruction is complete ONLY one Modbus Master Instruction should be active at any time If more than one instruction is active results would be unpredictable For Modbus TCP IP up to 4 instructions can be active at the same time www EZAutomation net 1 877 774 EASY Chapter 7 Modbus RTU and Modbus TCP IP Comm 7 5 Double click to bring up the dialog box Modbus Master Instruction The following attributes need to be set in the Modbus Master Dialog box 1 Slave ID The Network ID number of t
55. when using it the first time Tag Name Every memory address Tag can also be assigned a Tag Name which is used while programming the PLC E g O1 is the memory location of physical output 1 present on an EZIO module Instead of remembering the function of O1 you can specify a more meaningful name to it for instance Light1 Now you can use Light1 everywhere in this ladder instruction and it will be automatically referred to O1 which is the actual memory address Tag of the PLC Tag Data Type Based on the type of address selected in Address the available Tag Data Types will appear in this pull down menu For example if you select O1 which is a discrete output address of EZIO module then the only valid Tag Data Type will be Discrete If R1 is selected as the Address which is the internal word register for the PLC then the valid Tag Data Types will be Signed_INT_16 UnSigned_INT_ 16 etc Address Address is used to specify the actual Tag memory address of the corresponding PLC For example O1 refers to Output 1 R1 refers to internal register 1 SR1 refers to system register 1 etc As described above the following screen is an example of adding a valid Tag whose Address is 01 Data Type is Discrete and the Tag Name is Light1 Also the Initial Value has been assigned to be ON or 1 Edit Tag Details i x Tag Name fLighet Tag Datatype DISCRETE Address g of Characters fo f
56. your ladder Use the drop arrows to select different colors for the various elements in your ladder Click on the Miscellaneous tab to select the options shown in the image below Ladder Options X Application Colors Miscellaneous I Multiple drop of elements in single selection IV Clear registers on program upload IV Display duplicate coil warning while checking for errors Cancel Help EZAutomation www EZAutomation net 1 877 774 EASY Instructions for Programming EZPLC In this chapter e Ladder Logic Programming in EZPLC Introduction to EZPLC Editor e RLL Instructions in EZPLC Editor Relay Boolean Instructions Compare Instructions Math Instructions Bitwise Instructions Move Instructions Timer Counter Instructions Program Control Instructions String Instructions Communication Instructions Miscellaneous Instructions 320 Chapter 3 Programming EZPLC 3 0 Programming EZPLC 3 1 Ladder Logic Programming in EZPLC EZPLC Editor is used for developing relay ladder logic RLL programs using a Personal Computer running windows APLC accepts inputs from a variety of devices such as Switches Sensors etc processes inputs according to user programmed control logic and controls a variety of devices e g relay motors valves etc connected to the outputs of the PLC The Relay Ladder Logic is the user programmed control algorithm A ladder program is made up of a set of instructions to achiev
57. 101 Bit 1 Auto Mode Bit 0 Manual Mode EZAutomation 6 4 PID Loop Tuning Proper selection of PID parameters such as Proportion Integral and Derivative coefficients is important to get stable and responsive process control Many experienced users can estimate good starting values for the PID loops and then tweak those to optimize PID loop performance i e they can manually tune the process For those users who would like a help in estimating these starting values of P I and D coefficients EZPLC provides Autotune feature Please read following caution note carefully before attempting autotune CAUTION e PID Loop control follows complex algorithm and its output depends on user programmed PID parameters as well as the dynamics of the process being controlled e For safety reasons users MUST ensure proper working of the PID before attempting autotune or before leaving loops in Auto mode For example m Ensure that Process Value is correctly measured Ensure that the Control Variable moves the Process Variable in the right direction You can set the control Variable manually to check for this e During Autotune users MUST observe the process closely and have access to emergency stops to stop the process if it goes out of control Autotuning Pre requisites The following two pre requisites must be met before autotuning PID loops 1 The EZPLC must have firmware revision C 3 or later 2 PID loops must be configure
58. 2 4 System Discretes 5 3 System Requirements 1 2 T Tag Cross Reference 2 33 Tag Database 2 4 Tag Name as Address 2 16 Td 6 3 Thermocouple Module Enhanced 4 7 Ti 6 3 Tile 2 48 Tile Windows 2 4 Time Date 2 26 Timed Only 3 64 Timed with Event 3 64 EZAutomation Timeout 7 7 Timer Counter Instructions 3 40 Timer Counter Instructions Menu 2 24 Timer Counter Operations Tool Bar 2 7 Timer Instruction 3 41 Timer Preset Value 3 41 Timer Register 3 41 Timer Status Register 3 41 Time Base 3 41 3 64 Title Bar 2 3 Toolbars 2 15 Tool Bars 1 7 Transfer to EZPLC 2 13 Ts 6 3 Turn Off Blinking 5 7 Types of Timer 3 42 U Undo 2 4 Undo Redo 2 14 Upgrade Firmware 2 45 Up Counter 3 45 Use PV Square Root 6 6 V Valid ASCII Commands 5 12 Velocity Algorithm 6 3 View Menu 2 18 W Window Menu 2 47 Wiring 4 5 X X Y Conversion 3 26 XOR 3 30 Z Zoom Default 2 4 Zoom In 2 4 Zoom Out 2 4 www EZAutomation net 1 877 774 EASY
59. 3 Production amp Reject Rates This rung simulates production and reject rates RESET RR reset giil UF EZAutomation www EZAutomation net 1 877 774 EASY o 542 Chapter 5 Message Display on EZMarquee EZAutomation The table below summarizes the Valid ASCII Commands in EZMarquee For information on message syntax and details please refer to the EZMarquee User Manual Selecting Unit and Group Number Resetting Display Cursor Positioning With Line Clearing Cursor Positioning Without Line Clearing Cursor Positioning at Carriage Return Selecting Text Wrap selecting Center Mode Selecting Character Color selecting Number of Sticks per Line selecting Character Size Bn Selecting Blink Mode AXn Selecting Blink Delimiters On Off AGbbcc Selecting Blink On Off Rate Dnsmessage text gt N Displaying Scrolling Text All ASCII Commands listed above are Case Sensitive www EZAutomation net 1 877 774 EASY PID Loop In this chapter e Introduction to PID e PID Setup e PID Monitoring e PID Loop Tuning NOTE To use the PID Loop feature you will need firmware revision B 0 or later To view the firmware revision of the connected EZPLC click onto the EZPLC Menu and select Information To upgrade your firmware click onto the Setup Menu and select Upgrade Firmware see page 2 40 for more information 62 Chapter 6 PID Loop NOTE To use the PID Loop feature you will need firmware revision B 0 or later
60. 774 EASY Chapter 2 EZPLC Editor User Interface 200 Interrupt Logic Click on this option to display Interrupt Logic in the Main Window of EZPLC Editor Interrupt logic provides you a way of executing ladder placed in Interrupt Logic section immediately in response to an external event The interrupt logic works with EZIO interrupt module Part number EZIO 4DCI4DCIF The input number 8 on this module labeled as Fast Input 8 is used for executing the interrupt logic A low to high transition on this input causes PLC to suspend whatever it is currently executing process the logic in Interrupt Logic section and then resume the execution from the point it left Interrupt Logic should be used only for events requiring an immediate attention While PLC is processing an interrupt other interrupts on interrupt input s would be ignored You can have multiple interrupt modules in a system but only one interrupt logic section Consequently the same section is executed regardless of the source of interrupt Subroutine Logic Click on this to display the Subroutine Logic in the Main Window of the EZPLC Editor Note To display and switch between Main Logic Interrupt Logic and Subroutine Logic you can also use the Project Window fo display the appropriate logic in the Main Window Si xi C Program Files EZPicE dit Project Demo Project i 140 Configuration Interupt Logic SUB Subroutine Logic Subroutines give you a way of grou
61. 8 Clear Comment Can be used to clear the comments of an individual RUNG Delete Label Comment This function can be used to delete a Label and Comment for an individual RUNG When deleted a rung can be re labeled commented by using the Insert Label Comment function in Rung Menu gt Insert Label Comment Show Label Comment Use this function to Hide or Display the Labels and Comments for all the RUNGS present in the ladder logic program 2 5 6 Instructions Menu All the Instructions used for Relay Ladder Logic are explained in detail in Chapter 4 RLL Instructions When clicked on appropriate Instruction the EZPLC allows you to place that instruction in ladder logic by clicking in the Main Programming window Instructions EZPLC Setup Winc Relay f Boolean gt Compare Operations b Math Operations b Bitwise Operations b Move Operations b Timer Counter Operations P Program Control Operations gt String Operations gt Communication b Miscellaneous Operations b Line Selection Relay Boolean Instructions Menu EZAutomation www EZAutomation net 1 877 774 EASY 224 Chapter 2 EZPLC Editor User Interface Compare Instructions Menu Equal To Not Equal To Greater Than Less Than Greater Than Or Equal To Less Than Or Equal To Limit Math Instructions Menu Add Subtract Multiply Divide Modulo Absolute a Conversion Number Format Conversion Bitwise Instructions Menu AND O
62. A Edit button Select the module type from the available modules and its and or O addresses from respective drop downs You EE select the start address of the module and the software computes and fills an Ab mas up the end address of the module automatically Module Position Numbering System The Module positions on I O bases are numbered as shown below Please keep this in mind while defining the I O configuration 6 module EZPLC ER 12 module EZPLC gt M1 sd Teall al M9 M11 M2 M4 M6 M8 mio M12 4 module EZPLC gt 8 module EZPLC Step 4 Configure Communication You can do this later too when you start programming This allows you to select the communication port on your PC that would be used to transfer developed ladder logic to the EZPLC You can make this selection later by clicking the Configure button in the Ethernet Com group to choose the Com port number or Ethernet port Configuration 2 If you choose a Com port you don t need to set any other parameters as the Editor and EZPLC utilize fixed com parameters set at 38 4 Baud 8 N 1 If you select Ethernet port you ll need to set the IP address of the EZPLC Ethernet LOM Fort EZAutomation www EZAutomation net 1 877 774 EASY Project Explorer View Project view offers a convenient way to view your project including I O configuration main interrupt amp subroutine logic Double click onto a symbol to program instruction parameter
63. Aaaaa and Opr2 at memory location Bbbbb Bbbbh I MUDY The multiplied value is stored in Result at memory location Ccccc Opr1 and Opr2 can be assigned a constant value Values can be displayed in Decimal Hex or Octal format Both the Operands and Result must be of the same data type Divide E When power flows to this element the Divide mn instruction divides the register data value of E Opr1 at memory location Aaaaa by Opr2 at docce Divide memory location Bbbbb The divided value is stored in Result at memory location Ccccc Opr1 and Opr2 can be assigned a constant value Values can be displayed in Decimal Hex or Octal format Both the Operands and Result must be of the same data type Am am wo oe Allowed Data Formats all register data type except ASCII In the example above R1 will be Multiplied by R2 and the product will be placed in R3 In the example above R1 will be divided by R2 and the result will be placed in R3 EZAutomation www EZAutomation net 1 877 774 EASY 324 Chapter 3 Programming EZPLC EZAutomation Zn Modulo Modulo When power flows to this element the Modulo ND instruction divides the register data value of der Opr1 at memory location Aaaaa by Opr2 at Res Ceccc memory location Bbbbb The Remainder Value i Bbbbb Oer2 is stored in Result at memory location Ccccc Opr1 and Opr2 can be assigned a constant value Values can be displayed in Decimal Hex or Oct
64. E E E E E EE HEEEEEEEE EEE EE EE BEB RBBB RRR EEE EEE gt EZAutomation www EZAutomation net 1 877 774 EASY 364 Chapter 3 Programming EZPLC EZAutomation rur Drum Drum When power flows through this element the Drum instruction starts a sequence of outputs which can be either Timed or Timed with Event Th can be defined in a sequence is 16 with the maximum e maximum number of steps that number of outputs per step being 16 as well Drum Type There are two types of user selectable Drum types e Timed Only When you select this option the Drum instruction completes its sequence based on time specified by Count with specified Time Base only When the Count is completed it enables 1 or disables 0 the specified outputs as selected by the user through checkboxes e Timed with Event When you select this option the Drum instruction completes its sequence based on the time specified by Count with specified Time Base and Events When this selection is chosen a tab for Events is available for you to select the desired addresses for events for every step Step If using the Timed Only Drum instruction the total number of programmable steps is 16 When using the Timed with Event Drum instruction then the total number of programmable steps is limited to 10 Counts Every Step has a Count associated with it The Count is a user specified constant which controls the duration of time before a certain
65. E Ga BS Fegan e EF The dialog box allows you to select Programming mode Project folder location Project Name and I O base In addition you can configure the EZPLC I O base defining I O module locations and addresses from this dialog box E2PLCE dit Programming Soitan Version 1 061 E2Automaton Phone 18777746857 Selected Action Edit OFF LINE Write Later MAAL a DE SELECT ALTION ENTER PROJECT INFORMATION 1 Eda Program er Select Project Name Select ACTION gt Read Propam 3 f from EZFLE and Select ESPLE VO Base Edt OFFLINE f Maes EZR 3 Configure 10 4 rs 3 ONLINE Select amp Configure I O Configure Base or do it later Communications Es Step 1 Select ACTION Edit Program OFF LINE Edit Program Select this mode to create a new program or edit an existing on your computer program in OFF EEPE ie LINE mode OFF LINE mode means that you are not connected to your PLC Read Program from EZPLC and Edit OFF LINE This mode allows you to first read an existing project from a PLC save it on PC and then edit your program OFF LINE You may want to use this mode if you do not have your program on your computer For reading back the program the EZPLC can be in RUN or PROGRAM mode Edit Program ON LINE This mode allows you to program your PLC on line This mode is very useful in troubleshooting and See dynamic programming a
66. ETE Si PLCI SIGNED INT 16 SIGNED INT 16 Ri PLCI UNSIGNED INT 16 Ri PLCI UNSIGNED INT 16 R2 PLCI SIGNED INT 32 SIGNED INT 32 R2 PLCI UNSIGNED INT 16 UNSIGNED INT 16 R3 PLCI UNSIGNED INT 32 UNSIONED INT 32 R4 PLCI 11 eco_nt_16 BCD_NT_16 RS PLCI 12 eco mr 32 BCD INT 32 RE PLCI FLOATING PT 32 FLOATING PT 32 R7 PLCI ASCI_STRING ASCI STRING Re PLCI DISCRETE SDI PLCI 16 PRESET VALUE UNSIGNED INT 16 Ri PLCI 7 TIME REGISTER UNSIGNED INT 16 R3 PLCI i5 Note When using the To Excel function the EPLC Editor software automatically opens a new Book1 xls file and exports the Tag informa tion Also the file is NOT saved on the hard drive unless you manually save it You must have Microsoft Excel software installed on your com puter to utilize this function Import Tags Click on this function to expand this menu as shown below Comma delimited Excel format When Comma delimited is selected this function imports all the Tags present in a CSV file as specified by the user in the following screen Read Tag CSV File aja Look pi 03 Proiect EI ef E9 File pare BE Fler olivpe EsPLCEd Tag CSV Fier cav e Lg Once the user has selected a CSV file which is to be imported the following screen will appear and prompt user as follows for more information Tag Database Import from CSY i xj IV First row contains the header information Only Import addresses for tags that have
67. EZAutomation Chapter 3 Programming EZPLC 338 3 3 5 Move Instructions Move Instructions allow the movement of data between registers Move based instructions can also be used to move constant values into registers move blocks of data from one location to another or to fill a block of registers with the same value Power Flow Move instructions are always true so power flow always passes through the rung The exception to this is the Indirect Move Element In this case the move is considered invalid and power flow is false if either the source or destination register contains 0 Zero or the length of the move exceeds the number of elements available in the controller Adding Move Instructions To configure all of the various Move Instructions perform the following steps 1 Click on a Move instruction icon on the right side of the screen 2 Position the mouse over the area on the Ladder diagram where you want to insert the instruction and click the mouse to place the instruction 3 To enter Data Display types double click the instruction to open its Dialog box Move Data Instruction Instruction Details Help Move copy data from Source to Destination m Source Src Tag Name 2 Constant in Decime Data Type SIGNED INT 16 Destination must be of same data type 4 For a Bit Move instruction choose if you want to move register bits to discrete or vice versa 5 Enter a Tag Name in the Data Type
68. EZPanel Enhanced EZText Enhanced 336 pages EZTouchPLC of the most EZTextPLC SENSIBLE EZMarquee dn N EZPLC amp EZI O Automason Products EZ Touchscreen CE Computer EZCE Touchpanel EZMonitor mn me pe at ner Ke 3 DD Tim ih nn 1 name me TD 8 Gam on SFEG IF PD Lin 7 Nik oe elg tt i ua gy E TT TT Fonn del bia nl bt ie M EE sn a ee EE 1 877 774 EASY 774 3 32 79 www EZAutomation net Designed and built in USA by ae pr ig mm Mr Vs a rai an eV V ert il Jer frr F Fr F EZPLC Software Manual Manual Part Number EZPLC EDIT M Revision A 6 sp fy r easy ar 1 33 haltet Bates mina ST SENSIBLE AUTOMATION DIRECT FROM THE FAC This page intentionally left blank Designed and built in USA by Om EZAutomation V www avg net EZ AS 1 2 3 The Most Sensible Automation Products Direct From the Factory EZPLC Software Manual Manual Part Number EZPLC EDIT M Revision A 6 WARNING Programmable control devices such as EZPLC are not fail safe devices and as such must not be used for stand alone protection in any application Unless proper safeguards are used unwanted start ups could result in equipment damage or personal injury The operator must be made aware of this hazard and appropriate precautions must be taken In addition consideration must be given to the use of an emergency stop functio
69. IGNED INT 32 UNSIGNED INT 32 Rd 10 BCD_INT_16 BCD NT 16 RS l 1 BCD INT 32 BCD INT 3 12 FLOATING PT 32 FLOATING PT 32 R7 13 ASCN STRING ASCII STRING RE spi DISCHETE Spi Delete Delete ee shige sat Lnused Taye me As shown in the above screen all the Tags not being utilized anywhere in the PLC program will be highlighted You can also delete these Tags which might be present in access by clicking on Delete Unused Tags which will prompt the following message EzPLCEdit xi Y Do you want to delete all unused tag s If YES is selected the corresponding Unused Tags in the database will be deleted Once you are done adding editing the Tags click OK to return to the main programming window www EZAutomation net 1 877 774 EASY Chapter 2 EZPLC Editor User Interface 238 Tag Cross Reference This function is extremely useful for identifying the objects and instructions utilizing a certain PLC Tag in the ladder logic program as shown in the following screen Tag Cross Reference a x Addess R1 DataType Unsigned 16 bit IDType RAW Timer Rung 1 Row 4 Column 8 Timer Counter Rung 1 Row 7 Column 8 Counter As shown above Tag Cross Reference provides all the details where and how many times a certain Tag is used in the ladder logic program In the example shown the PRESET VALUE register is being used in two instructions The Timer instruction is present in Rung 1 Row 4 Column 8 an
70. IGNED and UNSIGNED data types Operations are performed on the bit patterns of two registers After the operation the results are stored in a third register Res Neither input is changed Adding Bitwise Instructions To configure all of the various Bitwise instructions perform the following steps i 2 Click on any Bitwise instruction icon on the right side of the screen Position the mouse over the Ladder diagram and click the mouse to place the instruction To enter Data Display types double click the instruction to open its Dialog box AND Instruction Tag Name ABSOLUTE v C Constant in Decimal Save Result in Res AD v Display all values in Decimal vi Select a proper Tag name address from the drop down list for Operand 1 Select a proper Tag name address from the drop down list for Operand 2 Select a proper Tag name address from the drop down list for Result Choose the correct data format from the last drop down list on dialog box Data types for all Operand 1 Operand 2 and Result must be the same www EZAutomation net 1 877 774 EASY EZAutomation Chapter 3 Programming EZPLC 320 AND When power flows through this element the AND instruction performs a bitwise AND operation on data values of Opr7 at memory location Aaaaa and Opr2 at memory location Bbbbb and stores the output in Res at memory location Ccccc Opr1 and Opr2 can be assigned a constant v
71. N Value Dialog box for 1 Counter Module Single Counter 4 PLS Outputs Information tabs show register allocation Bits b7b6 co Preset Value Address 0 OFF Value fo Address Base 0 Address Counter base 16 for1 7 Value Long fo Counter Base Base 2 Set Point 2 ON Value Address 0 OFF Value fo Address Base 6 Set Paint 3 ON Value 0 Address OFF Value fo Address fort 1 Base 10 Set Point 4 ON Value fo Address fori3 Base 12 fo OFF Value Address fort 5 Base 14 Base 8 fort for3 Address fors Base 4 for fors Cancel Apply Help Counter module configuration i x Counter 1 Counter2 Output Register s Information Input Register s Information F Count Mode Preset Mode Common to Counter 1 and 2 Load Preset value when Preset Input is High Dn rising edge C Dn falling edge Preset High AND rising edge of Counter 1 A input Quadrature Counting PULSE and Direction Counting Quadratueal Count Input on direction on B Dialog box for 2 Counter Module Two Counters Each Counter supports two PLS outputs Information tabs show register allocation Quadrature x2 Count Rising Edges Quadrature x4 Count Both Edges Counter config register base 20 Bits b7 to b lsb control preset mode Bits b7b6 foo Preset Value Address Counter base 16 fort 7 Value Long fo Counter Base Counter
72. PLC automatically assigns R102 where R1 is assigned to Cnt Bbbbb then and 103 for the Counter status e The R1 register value will hold the value of the Counter instruction at any given time e The R2 register Bit 14 will hold the Counter Enable Status and Bit 15 will hold the Counter Output Status Reset Input Bit Reset at memory location Ccccc defines the Reset Input Bit for the Counter instruction When this bit is enabled the Counter instruction is reset to its default value based on the type of Counter instruction being used There are two types of counters Up Counter and Down Counter which are user selectable as follows Up Counter When the Reset Input Bit is disabled 0 and the power flow to the counter instruction switches from 0 to 1 the count register increments one count When the Counter Preset Value and Counter register value become equal power flows through it Whenever the reset input is enabled the Counter register value is set to 0 and the power flow through it is stopped Up Counter Timing Diagram EZAutomation www EZAutomation net 1 877 774 EASY 346 Chapter 3 Programming EZPLC EZAutomation Down Counter When the Reset Input Bit is disabled 0 and the power flow to the counter instruction switches from 0 to 1 the count register decrements one count When the Counter Preset Value and Counter register value become equal power flows through it Whenever the Reset input is enabled the Counter regi
73. R SOR NOT Shift Left Shift Right Rotate Left Rotate Right Move Instructions Menu Move Data Move Block Block Fill Move Table Of Constants Move Bit EZAutomation Timer Counter Instructions Menu Timer Counter Program Control Instructions Menu Jump Label For Loop Next Statement Subroutine Return String Instructions Menu Move Compare Length Communication Instructions Menu Open Port Send to Serial Port Receive from Serial Port Close Port Send To Marquee Modbus Master Miscellaneous Instructions Menu Drum Line The Line Tool allows you to connect instructions and objects in the ladder logic Selection Click on this function to switch back to the Selection Tool from the Line Tool www EZAutomation net 1 877 774 EASY EZAutomation Chapter 2 EZPLC Editor User Interface 225 2 5 7 EZPLC Menu The EZPLC menu allows you to access and control the EZPLC In order to utilize most of the functions present in this menu EZAutomation s EZPLC EZTouchPLC or EZTextPLC must be connected to the programming PC EZPLC Setup Window Help Information Rebook Clear Program Time Date Monitor Tags Start PLC Stop PLO Gorm Gonfiquration Switch ta Monitor Mode PID Monitor Read Event Log If the corresponding PLC is not connected to the programming PC the following error message will appear x i Imoret Communication Packet Tim
74. Rung Menu 2 21 S Sample Rate 6 8 6 12 Sample time 6 3 Saturation 6 6 Save Ladder 2 4 2 10 Save Project 2 4 2 10 Save Project As Protected 2 11 Scroll Once 5 7 Scroll Repeatedly 5 7 SD5 5 3 SD6 5 3 SD7 5 3 SD8 5 3 Search and Replace 2 32 Select Baud Rate System Discrete SD6 5 2 Selecting and Configuring I O Base 1 6 Selecting Counter Module 4 2 4 7 Selection 2 24 Select ACTION 1 5 Select All 2 14 Select EZPLC I O Base 2 37 Select Message Effects 5 7 Select Reset Before Display Mode 5 7 Select Toolbars 2 15 Select Project Name 1 6 1 877 774 EASY Send to Marquee 5 2 Send toMarquee 3 59 Send to Serial Port 3 57 Setpoint 6 2 6 8 6 11 Setpoint High Limit 6 8 Setpoint Low Limit 6 8 Setpoint Value 6 2 Setup Menu 2 30 5 10 Set as Default Message attributes 5 5 Set Coil 3 13 Set Point 4 5 Set Point 1 4 5 Shift Left 3 31 Shift Right 3 31 Show Grid Lines 6 12 Show Label Comment 2 23 Slave ID 7 5 SPn 6 3 SR20 5 3 5 9 Standard Toolbar 2 4 Start PLC 2 27 Status Bar 2 3 Step 3 64 Stop Bits 3 56 Stop PLC 2 27 String Compare 3 52 String Instructions 3 50 String Instructions Menu 2 24 String Length 3 53 String Move 3 51 String Operations Tool Bar 2 7 Subroutine Logic 2 19 Subroutine Menu 2 20 Subtract 3 22 Supported Modbus Commands 7 10 Switch Monitor Mode 2 28 Switch to Edit Mode 2 28 Syntax Check All Logic 2 18 Syntax Check Current Logic 2 18 System Check
75. Source register to the serial port with control and character count from user defined Control Address and Character Count Address registers respectively Receive From Receives an ASCII string data from serial port to Source register with control and character count from Serial Port user defined Control Address and Character Count Address registers respectively Close Port Closes the serial port opened for communication Send to Marquee Sends ASCII instructions for marquee communication The message to be displayed on a marquee is selected by the data value of Message Number register which looks up the message number for a corresponding message from the central message database If message number is not found in the message database user selected action for unmatched messages is done Miscellaneous Instructions Time and or Event driven drum type sequencer with up to 16 steps and 16 discrete outputs per step The outputs are updated during each step Counts have a specified time base 1MSec to 1 Sec and every step has its own counter along with an event to trigger the count After the time expires for one step it transitions to the next step and completes up to 16 steps total After the completion of all the steps this element allows power flow through it EZAutomation www EZAutomation net 1 877 774 EASY Chapter 3 Programming EZPLC 30 3 3 1 Relay Boolean Instructions Use discrete instructions to moni
76. Your EZPLC Program 8 1 SAVE PROJECT AS PROTECTED nnnnnnnnnnvnnnnnnnnnnnnnnnnnnnennnnnnnnnnnnnnunnnnr 8 12 8 2 RESTRICTING ONLINE READ BACK ACCESS rnnnnernnnnnnnnnnnnnnnnnnnvnnnn 8 12 User Program Backup 9 1 USER PROGRAM BACKUP ON ONBOARD FLASH 0 eee 9 14 9 1 1 When is Flash Backup done rrranrnnanrnnnnnnrnnnrvnnnrnnnnrnnanennnnene 9 14 9 1 2 When is data restored from the Flash Backup 0 9 14 9 1 3 What is restored from Flash Backup ccccseceeeeeeeeeeeees 9 14 EZAutomation www EZAutomation net 1 877 774 EASY Table of Contents Technical Support Consult EZPLC Editor Programming Software Help or you may find answers to your questions in the operator interface section of our website www EZAutomation net If you still need assitance please call our technical support at 1 877 774 EASY or FAX us at 1 877 775 EASY Manual Revision History a Pages Affected Changes Made At fiss fm 1 gt A 2 5 15 05 Chapters 5 amp 6 Added Message Display on EZMarquee and PID Loop A 3 8 15 05 Chapter 7 Added Modbus RTU Communication A 4 9 10 05 Chapter 7 Added Modbus TCP IP Communication A 5 9 07 05 Chapters 2 6 8 9 Added Chapters 8 Protecting Your EZPLC Data and 9 User Program Backup sections for Read Event Log Show full abbreviated tag names chapter 2 PID Autotuning chapter 6 A 6 11 06 06 Chapters 2 4 6 Updated PID Information Chapter 9 Renamed Chapter 4
77. ZAutomation www EZAutomation net 1 877 774 EASY 238 Chapter 2 EZPLC Editor User Interface EZAutomation M1 8 DC Inputs 11 18 M2 M3 M4 Click on the Add Edit button to add the module you wish to use with your PLC Add Edit Clicking on Add Edit will display the following screen which will prompt you to provide information regarding the module that you wish to add Edit 10 Module Data x Module At Position H1 Select Module DE Inputs w Address Fange Start Address End Address Output Dick todeme setup parameters Under Select Module the drop down menu will prompt you to add the appropriate EZIO module as shown below s DE Inputs v S DC Inputs 8 DC High Speed Inputs BAC Inputs 4 DC Inputs 4 High Speed DC inputs with interrupt 8 DC Outputs Source 8 DC Outputs Sink 8 AC Outputs Isolated Relay Out Under Address Range specify the starting point for the registers Tags which will be associated with that particular EZIO module r Address Range A Click onto Apply Changes to add the module information and repeat the same steps 1 6 for all the modules that you wish to add www EZAutomation net 1 877 774 EASY Chapter 2 EZPLC Editor User Interface 2 39 Ethernet Setup Select this function for defining the Ethernet settings for your corresponding PLC When selected the following screen will be shown Ethernet Setup As shown in the above scr
78. ZPLC assaansnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 3 5 RLL Instructions Table continued rrrrrnnnrrnnnnnrnrnnnennnnnnnn 3 6 RLL Instructions Table continued rrrrrrnnnrrnrnnnrrrnnnrnrnnnnnn 3 7 RLL Instructions Table continued rrrrrnnnrrrnnnnrnrnnrenrnnnnnn 3 8 3 3 6 Timer COUNTED Instructions gcccscnt2ececcsanseccessmnndesactsendasdesnacedsdseene 3 40 Adding Timer Instruction sctciniincicascnecauancscubbansesiedtaudecsninaadeaaine 3 40 3 9 Counter EAN 3 44 Adding Counter Instruction rrrrrrnrrrrrnnrrrrnnrenrnnrrrvrnrrennnnn 3 44 ET ee 3 45 3 3 8 Program Control Instructions rrrrrrnnrrrrrnnnrrrrrnnnrrrrnrnnrrrennnnn 3 47 Adding Program Control Instructions rrrrarerrarrrranennnnnn 3 47 3 3 9 String TT NE va 3 50 Adding String NStruelibns uLuumuuiusvsamuuenvdndenisedsessn 3 50 Adding String Length Instruction rrrrnnrrnrnnnrrrnnnrrvnnnrrnnnnr 3 50 3 3 10 Communication Instructions siaiccccncsncgssdsenianemtoncedaneetiontennssaanid 3 54 Adding Communication Instructions rrrrrrrnnnrrrvnrnnnrrennnnn 3 54 Adding Open Port Instructions rrrrrrnnrrnrnnnrrrnnnrrvnnnrrnnnnne 3 54 Adding Send To and Receive From Port Instructions 3 55 Adding Send to Marquee Instruction rrrnnrerrnnnrrvrnnrrnnnnr 3 55 Adding Modbus Master Instruction c cccecseeeeeeeeeeeeees 3 55 3 3 11 Miscellaneous INStructions
79. a single register 16 bit The image shown to the right is from the 1 Counter Module dialog box The 2 Counter Module has similar information EZAutomation Chapter 4 Configuring I O Modules Counter module configuration Ea Counter Output Register Information Input Register Information Output Registers r Config Register Base Output Base Register for1 16 bit Register Only Bits b7 b6 b2 to bl lsb used Setpoint1 ON 32 bit Base 0 OR1 Bits Function Setpoint OFF 32 bit Base 2 OR3 b2b1b0 Count Mode Counter Setpoint2 ON 32 bit Base 4 OR5 Setpoint2 OFF 32 bit Basex6 JOR 000 Quadrature x 1 001 Quadrature x 2 Setpoint3 ON 32 bit Base 8 ORS 010 Quadrature x 4 Setpoint3 OFF 32 bit Base 10 JOR11 100 Rising edges with Direction Setpoint4 ON 32 bit Base 12 0R13 101 Both edges with Direction Setpoint4 OFF 32 bit Base 14 OR 15 b7b6 Preset Mode Preset when Preset Input is Preset Value 32 bit Base 16 for 7 00 High 01 On rising edge Configuration Register Base 20 fort 10 On falling edge 11 Preset high ND rising edge of Counter input Cancel Apply Help The Output Register tab lists information about the Output Registers 4 1 4 Input Register Information Counter Output Register Information Input Register Information r Input Registers Input Base Register Base IR1 Counts 32 bit Base 0 IR1 Output Status Base 4 IR5 common to both r Output St
80. aa and Message Status Tag as specified by Ctrl at memory location Bbbbb The Send to Marquee instruction must be used in conjunction with the Open Port instruction If the serial port is not enabled by the Open Port instruction in advance the Send to Marquee instruction will not be able to send messages to a marquee Please Note 1 The port should be already open before this command can be used The Send to Marquee instruction uses a message database You can place multiple Send to marquee instructions in your ladder logic But there is only a single message database The database contains messages uniquely identified by message numbers The Send to marquee instruction looks up messages from this database using the value in its source register as the Message number or computed from it see below If a message is found matching the number in source register it is sent to the Marquee If a matching message is not found then the action depends on the option selected for unmatched messages 2 The Send Marquee sends the message to Marquee only once each time power flows to it rung condition becomes true and does not send again until the Power flow is cycled to it rung condition goes to false and true again The messages can have embedded variables in them allowing you to display dynamic data on the marquee Message Number Computation Src can also be assigned a constant value along with option to use Mask in HEX You can als
81. abase dialog box Set at Default Message attributes The Set as Default Message attributes button allows you to conveniently define default attributes for a message A message has several properties or attributes as shown in the Add New Message dialog box on the previous page To setup defaults select the message whose attributes should be considered as default and click this button Once defined all fields of the Edit dialog box will be automatically filled with the default values the next time you add a new message saving you time You can change the default attributes any time Change attributes to Default attributes When you click the Change attributes to Default attributes button you can select multiple messages and change the attributes of all the selected messages to those defined as default EZAutomation www EZAutomation net 1 877 774 EASY 58 Chapter 5 Message Display on EZMarquee Add Edit Message Number Message Number Each message in the Message Database has a unique number assigned to it The numbers need not be contiguous allowing you flexibility when organizing your messages The maximum number of messages allowed in the message database is 999 The messages can be numbered from 1 to 65535 Enter a number between 1 and 65535 in this field When you click on the Add Edit button the following dialog box will appear Add New Message x Message Number Marquee Address Select Reset Before Display Mo
82. al format Both the Operands and Remainder must be of the same data type CABG as bm co Allowed Data Formats signed and unsigned integers only In the example above R1 is divided by R2 and only the remainder is placed in R3 www EZAutomation net 1 877 774 EASY Chapter 3 Programming EZPLC 325 Absolute When power flows to this element the Absolute instruction converts the signed negative register data value of Src at memory location Aaaaa to the absolute positive only Bbbbb pest data value and stores it in Dest at memory location Bbbbb Both Source and Destination must be of the same data type Aaaaas Src Absolute Output Registers OR Register Internals R 1 8192 1 8192 System Registers SR Allowed Data Formats signed and floating point data types only POSITION t Src Rig Fatt aT Dest In the example above R11 will contain the Absolute value of R10 for example if R10 was 10 R11 will contain 10 EZAutomation www EZAutomation net 1 877 774 EASY 326 Chapter 3 Programming EZPLC EZAutomation KY X Y Conversion X Y Conversion When power flows to this element the X Y Conversion instruction converts the register data type of Opr at memory location Aaaaa to Res at memory location Bbbbb and copies the converted data value to Res at memory location Bbbbb If Opr has a Floating Point data type it can either be rounded off to the nearest integer value or tru
83. ally arranged as MSB LSB This flag allows you to change the order if necessary 4 Data Length Number of Data Items to process The data length may either be stored in a Tag or defined as a constant 5 EZPLC Address Please enter the Starting EZPLC Address for data exchange with the Modbus Addresses 6 Control Enter the EZPLC address that will store the state of the execution of the Modbus Master instruction Bit 0 LSB to Bit 4 of the Control address are used to indicate the status of the Modbus instruction as follows Bit Number Status when set BO LSB Modbus serial Enable Invalid length for starting address www EZAutomation net 1 877 774 EASY Chapter 7 Modbus RTU and Modbus TCP IP Comm 7 7 7 Error Enter the EZPLC address that will store the Error codes if there is any error in execution of the instruction A zero value 0 indicates no error has occurred The error code must be checked only after the instruction is completed i e the power flows out of instruction See below for error codes and their descriptions Error Error Description The function code command code in the Modbus Master command is not understood by the Slave The Modbus Master command tried to access an address not available in the Modbus slave device An error occurred in slave device while the slave was trying to perform action requested by Modbus Master Timeout A reply was never received from the slave the communicatio
84. alue Values can be displayed in Decimal Hex or Octal format The Operands and Res must be of the same data type OR When power flows through this element the OR instruction performs a bitwise OR operation on data values of two registers Opr1 at memory location Aaaaa and Opr2 at memory location Bbbbb and stores the output in Res at memory location Ccccc Opr1 and Opr2 can be assigned a constant value Values can be displayed in Decimal Hex or Octal format The Operands and Res must be of the same data type SCC am boob cece Allowed Data Formats SIGNED INT 16 SIGNED INT 32 UNSIGNED _ INT 16 UNSIGNED INT 32 Ceeec Status 0001 0011 0101 0111 MASK 0000 1111 0000 0000 Status After AND 0000 0011 0000 0000 In the example above Status in R300 is ANDed with MASK in R305 and the result is stored in Status Status 0001 0011 0101 0111 MASK 0000 1111 0000 0000 Status After OR 0001 1111 0101 0111 In the example above Status in R300 is ORed with MASK in R305 and the result is stored in Status www EZAutomation net 1 877 774 EASY 330 Chapter 3 Programming EZPLC EZAutomation ON i XOR When power flows through this element the XOR instruction performs a bitwise XOR operation on data values of two registers Opr1 at memory location Aaaaa and Opr2 at memory location Bbbbb and stores the output in Res at memory location Ccccc Opr1 and Opr2 can be assigned a constant value Values
85. apping between the Modbus addresses to EZPLC memory area and supported Modbus commands see next page for tables EZAutomation www EZAutomation net 1 877 774 EASY Chapter 7 Modbus RTU and Modbus TCP IP Comm MODBUS COMMAND CODE MODBUS ADDRESS RANGE only Offset is entered the type is implied by the command Read Coils 01 000001 065535 Offset 1 65535 No more then 1024 Coils at a time Read Discrete Inputs 02 100001 165535 Offset 1 65535 No more then 1024 Inputs at a time Read Holding Registers 03 400001 465535 Offset 1 65535 No more then 100 Holding Registers at a time Read Input Register 04 300001 365535 Offset 1 65535 No more then 100 Input Registers at a time Write Single Coil 05 000001 065535 Offset 1 65535 Only one at a time Write Single Register 400001 465535 Offset 1 65535 Only one at a time Write Multiple Coils 15 000001 065535 Offset 1 65535 No more then 1024 Coils at a time Write Multiple Registers 16 400001 465535 Offset 1 65535 No more then 100 Registers at a time EZAutomation www EZAutomation net 1 877 774 EASY Protecting Your EZPLC Program In this chapter e Save Project as Protected e Restricting Online Readback Access Protection Password Ei Mote Protected project can only be written to EZPLC and For Editing the Protected project assigned password should be provided Help Cancel resen open Deska kople tren Cai Ua
86. at until the program loader is closed the newly made online changes are not stored in flash 9 1 2 When is data restored from the Flash Backup On power up EZPLC compares ladder logic in RAM with the one stored in the FLASH If EZPLC finds them to be different the program is restored from FLASH to the RAM This can happen in the following cases e f the RAM battery is low or fails e f online changes were made to the user program and the power was unplugged without closing the application In this case the online changes would be written to RAM but not flash and upon power up the RAM copy of the user program will not match the FLASH copy e f the user program somehow become corrupted 9 1 3 What is restored from Flash Backup The program is restored to it s initial state i e any changes in data from programs initial state will be lost Effectively the restored program would match the program initially transferred to the EZPLC or the program after proper on line changes Thus please note What is restored e Ladder logic Initial Data values i e the user program to its initial state What is NOT restored e Dynamic Data values e O status e Real time Clock www EZAutomation net 1 877 774 EASY Index A About 2 4 About EZPLCEdit 2 48 Absolute 3 25 Action 6 5 Actions for Unmatched Messages 3 60 Add 2 20 3 22 Add Edit 2 38 5 5 5 6 Adding Bitwise Instructions 3 28 Adding Communication Instructions 3 54 Ad
87. ata 4 2 4 7 J Jog Tag 3 65 Jump 3 48 Jump Instruction 3 47 www EZAutomation net 1 877 774 EASY K Kp 6 3 L Ladder Logic Programming in EZPLC 3 2 Ladder Options 2 36 Less Than 3 18 Less Thanor Equal To 3 19 Limit 3 20 Line 2 24 Line Tool 2 4 Mac ID 2 40 mage Table 3 3 Main Logic 2 18 Main MenuBar 2 3 Main Menu bar 2 10 Main Programming Screen 2 3 Manufacturing Process 6 2 Map Discretes to Registers 3 38 Map Register Bits to Discretes 3 38 Marquee Address 5 6 Marquee Control 5 11 MASK 3 59 Math Instructions 3 21 Math Instructions Menu 2 24 Math Operations Tool Bar 2 6 Maximum Consumed Words 2 40 Maximum CV 6 12 Maximum Produced Words 2 40 Maximum SP 6 11 Memory Map 7 10 Message Controller Busy System Discrete SD8 5 2 Message Enable 5 9 Message Enable System Discrete SD5 5 2 Message Number Not Found System Discrete SD7 5 2 Message Number System Register SR20 5 2 Message Controller Busy 5 9 Message Controller Function 5 2 Message Database 2 46 3 59 5 2 5 3 5 4 5 10 Message Display on EZMarquee 5 2 Message Enable 5 9 Message Number 3 59 5 6 Message Number Computation 3 59 Message Number not found 5 9 Message Number Register 5 3 5 9 Message Status Tag 3 59 Message Text 5 8 Minimum CV 6 12 Minimum SP 6 11 Miscellaneous 2 36 EZAutomation www EZAutomation net Miscellaneous Instructions 3 62 Miscellaneous Instructions Menu 2 24 Miscellaneous Operations Tool Bar 2 8
88. ation net 1 877 774 EASY EZAutomation Chapter 2 EZPLC Editor User Interface 208 Transfer to EZPLC Transfer to EZPLC allows you to transfer the current open project to the PLC connected to your computer For details on how to restrict unauthorized readback online access to your user program see the chapter titled Protecting you EZPLC Program Print When you click on the Print menu item you will be asked if you want to save the project Click on Yes or No The screen shown below will appear EzPLCEdit 7 xj Do you want to save the project before starting printing Print Project i xi Select Items for Printing ve 7 t Interup oac R not Sort by TagName Interrupt Interrupt Logic Rung C Sort byTag ddress C Selected Rungs TI PrintRungs Ail Fungs Using the above screen you can choose if you want to print the Tag Database or the Rungs in the ladder logic program Print Setup Choose or change your print settings here Exit Click on Exit to quit the program www EZAutomation net 1 877 774 EASY 24 Chapter 2 EZPLC Editor User Interface EZAutomation 2 5 2 Edit Menu When you click onto the Edit Menu you can access the following functions Edit view Subroutine Rung Instr Unde Chrl 2 Reda atr Gut hr s Copy trl tz Paste Gtr Select All Chrl 4 Pelete Del Edit Toolbars Default Tag Datatype Tag ame as Address Go to Rung Ctrl F fan to Label Ckrl L Sh
89. atus Word Details 16 bit word Only bits b3 bO used Status bits are 1 if corresponding outputs are energized Bit 0 lsb Output 1 Controlled by Setpoint 1 Bit 1 Output 2 Controlled by Setpoint 2 Bit 2 Output 3 Controlled by Setpoint 3 Bit3 Output 4 Controlled by Setpoint 4 Cancel Apply Help The Input Register tab lists information about the Input Registers 4 1 5 Closing After all configurations are set click Apply or Apply Changes before closing out of the window www EZAutomation net 1 877 774 EASY Chapter 4 Configuring I O Modules 4 2 Enhanced Thermocouple Module Unlike the regular thermocouple module the enhanced thermocouple module requires configuration The following subsections explain the configuration details for the enhanced thermocouple module 4 2 1 Selecting the Thermocouple Module After starting the EZPLC program select Setup gt lIO Configuration Choose the correct number of IO modules from the Select EZPLC I O Base drop down list Double click in the empty Module Type box that is next to the position number where you would like to place the module The Edit IO Module Data dialog box will open Select the Enhanced Thermocouple Module from the Select Module drop down list The Enhanced Thermocouple Module uses 4 contiguous Output Registers OR and 4 contiguous Input Registers IR Select the starting Input and Output registers The Editor automatically computes the e
90. ave s memory area You can use several Modbus Master Instructions in your ladder logic Please note that when using the RS422 port only one instruction is executed at one time When using the Ethernet port up to four instructions can be executed at one time EZAutomation www EZAutomation net 1 877 774 EASY Chapter 7 Modbus RTU and Modbus TCP IP Comm 7 3 7 2 1 Open Port Command Not required for Modbus TCP IP Below is the Open Port Instruction dialog box Open Port Instruction xj Instruction Details BaudRate 3500 v Pay Nore z DataBits eign Stop Bits One SeleetMode A5422 gt Protocol FETE ed The following attributes will need to be set in this dialog box for the Modbus Network you are connecting to 1 2 3 4 5 6 EZAutomation www EZAutomation net 1 877 774 EASY Baud Rate Parity Data bits Stop bits Select Mode RS422 or RS485 For Protocol Select Modbus Master Chapter 7 Modbus RTU and Modbus TCP IP Comm EZAutomation 7 2 2 Modbus Master Instruction Select Modbus Master Instruction from the Menu item Instruction gt Communication gt Modbus or from the Instruction side bar The instruction on ladder logic appears as follows i _ Read Holding Regs Please note the following about the Modbus Master instruction The instruction is initiated when the rung is true i e all instructions in the rung preceding the Modbus instruction are
91. b If Opr1 gt Opr2 then power will flow through this element Either Operand can be assigned a constant value Values can be displayed in Decimal Hex or Octal format Both Opr7 and Opr2 must be of the same data type Less Than The Less Than instruction can be used to compare two Operands Opr1 at memory location Aaaaa and Opr2 at memory location Bbbbb If Opr7 lt Opr2 then power will flow through this element Either Operand can be assigned a constant value Values can be displayed in Decimal Hex or Octal format Both Opr7 and Opr2 must be of the same data type Allowed Data Formats all register data type except ASCII In the example above if R1 is Greater Than R2 power will flow out and O1 will be energized In the example above if R1 is Less Than R2 power will flow and O1 will be energized www EZAutomation net 1 877 774 EASY Chapter 3 Programming EZPLC 319 Greater Than Or Equal To The Greater Than Or Equal To instruction can m E be used to compare two Operands Opr1 at memory location Aaaaa and Opr2 at memory Greater Than location Bbbbb If Opr1 is Greater Than Or Equal To Opr2 then power will flow through this element Either Operand can be assigned a constant value Values can be displayed in Decimal Hex or Octal format Both Opr1 and Opr2 must be of the same data type or Equal To Less Than Or Equal To The Less Than Or Equal To instruction can E b e used to compare two
92. background color x Rung arid color Line Color mm Discrete color Applicable only during ONLINE mode for discrete addresses only Discrete on foreground color v Discrete off foreground color a Discrete on background color a l Discrete off background color pase Ty Set to Default Cancel Help EZAutomation www EZAutomation net 1 877 774 EASY Chapter 2 EZPLC Editor User Interface I O Configurations Click on this function to select the I O configuration for your corresponding PLC as shown in the screen below xj Select UD Modules and Location Select EZPLC VO Base 12 Modules EZP Using the above screen you can specify the PLC that is to be used along with each and every module description and location that is to be used Use Select EZPLC I O Base to specify the corresponding base information for EZPLC EZTouchPLC and EZTextPLC as shown in the following screens Select EZPLC 170 Base 12 Modules E2Px 96 z It has a pull down menu which will allow you to select between the following bases for your corresponding PLC 12 Modules EZPx 96 v 6 Modules EZPx 48 8 Modules EZPx 64 12 Modules EZPx 96 Note The PLC base information will change as per the PLC used and might not allow all the models as shown above Based on the selection chosen above the following screen will display information for all the available slots and the modules selected E
93. by selecting File gt Transfer to EZPLC menu That s all you need to do to program ladder logic for EZPLC The following chapters describe the EZPLC Editor User Interface Ladder Logic Programming and Instructions in detail www EZAutomation net 1 877 774 EASY 18 Chapter 1 Getting Started EZAutomation 1 3 2 Creating a Complete Rung This short example is provided to show you just how easy it is to create a completed rung using EZPLC Editor To complete a rung perform the following steps Main Logic 1 Place an instruction onto the Main Logic window In this example we ve used the Normally Open Contact instruction 2 Place the other instructions you d like to include in your rung onto the Main Logic window In this example we ve used another Normally Open Contact and a Normally Open Coil instruction 3 Use the Line Tool t to draw a horizontal line connecting the first Normally Open Contact instruction to the Normally Open Coil instruction Main Logic 4 Use the Line Tool t to draw a vertical line connecting the first Normally Open Contact instruction to the second Normally Open Contact instruction and you re finished completing a rung It s just that easy This is what your Rung should look like when you re finished www EZAutomation net 1 877 774 EASY EZPLG Editor User Interface In this chapter e Main Programming Screen e Standard Toolbar e Instruction Toolbars Relay Boolean Instructions
94. can be displayed in Decimal Hex or Octal format The Operands and Result must be of the same data type NOT When power flows through this element the NOT instruction performs a bitwise NOT operation on data value of Src at memory location Aaaaa and stores the output in Dest at memory location Bcccc Src can be assigned a constant value Values can be displayed in Decimal Hex or Octal format Both Source and Destination must be of the same data type SSCA am boob cece Allowed Data Formats SIGNED INT 16 SIGNED INT 32 UNSIGNED _ INT 16 UNSIGNED INT 32 Status 0001 0011 0101 0111 MASK 0000 1111 0000 0000 MASK After XOR 0001 0000 0101 0111 In the example above Status in R300 is XORed with MASK in R305 and the result is stored in Status MASK 0000 1111 0000 0000 MASK After NOT 1111 0000 1111 1111 In the example above the MASK is inverted and saved back in MASK www EZAutomation net 1 877 774 EASY Chapter 3 Programming EZPLC 31 Shift Left 4 01 When power flows through this element the Shift Left instruction performs a Logical Shift Left on Opr1 at memory location Aaaaa by the value of Opr2 at memory location Bbbbb and stores the result in Res at memory location Ccccc No bits are shifted into the right and any bits shifted from the left are lost Opr7 and Opr2 can be assigned a constant value Values can be displayed in Decimal Hex or Octal format The Operands and Res must be of the
95. cons for all the instructions available for Miscellaneous Operations These commands are also found in and accessible from the Main Menu gt Instructions All the icons for instructions shown in this section will be described in detail in Chapter 4 RLL Instructions Drum EZAutomation www EZAutomation net 1 877 774 EASY Chapter 2 EZPLC Editor User Interface 29 2 4 PLC Toolbar The PLC Toolbar consists of icons for all the PLC hardware related functions These commands are also found in and accessible from the Main Menu gt EZPLC Please see description under Menus for details of these functions a eN h Write to PLC PLC Information e Reboot PLC D T mu COM Configuration PLC Time and Date Monitor Tags EZAutomation www EZAutomation net 1 877 774 EASY 200 Chapter 2 EZPLC Editor User Interface 2 5 Menus EZAutomation The Main Menu bar consists of the following menus File Edit View Subroutine Rung Instructions EZPLC Setup Window Help Each of the above menus has a pull down menu with further available options which will be described in this section 2 5 1 File Menu When you click onto the File Menu you can access the following functions File Edit View Subroutine Rung Insti Open Froject Close Project Save Ladder Gir Save Project Copy project 4s Save Project 45 Protected Copy Rungs Transfer to EzPLC CtrlH T Print Ctrl P Print Setup Exit
96. cted it further takes you to the following screen which allows you to hide select multiple toolbars from one dialog box Select Toolbars 3 Standard Relay Boolean Compare Math Bitwise Move Timer Counter Program Control 7 String Communication Miscellaneous PLE Communication Project View Operator Bar Cancel Select Toolbars Select Toolbars can be used to select deselect available toolbars to be displayed in the main toolbar section www EZAutomation net 1 877 774 EASY 26 Chapter 2 EZPLC Editor User Interface EZAutomation Default Tag Data Type Default Tag Data Type allows you select the default Tag memory location of PLC type Every time a new Tag is added after this it will have the default type as chosen by this command through the following screen Default Tag Datatype i Select the Default Tag Datatype Tag Name as Address Click on File gt Edit gt Tag Name as Address The EZPLC supports tag names for addresses so that you can use meaningful names in your instructions For example if a start button is wired at input 15 you may use tag name Start and assign it address 15 to refer to this button in your logic The EZPLC editor checks syntax of the address but not of the tag name If you don t want to use tag names you may check the option Tag Name as Address You will be prompted to enter an address instead of a tag name In the Tag Database you will s
97. d Autotune Control Each PID Loop is controlled by the Start Autotune discrete variable which is at Discrete Base 4 If the variable goes from false to true and the loop is in manual mode EZPLC would start autotuning that loop Autotuning Loops To Autotune one or more loops please follow below given steps e Make sure you have read the caution at the beginning of this topic e Set the PID Loop Mode to Manual for all the loops that require autotune e To start Autotuning a loop set the Start Autotune discrete variable to ON e EZPLC would start Autotune by changing Control Variable CV measuring the impact on the Process Variable PV of this change EZPLC estimates the P I D gains using the Ziegler Nichols open loop two point tuning method e EZPLC Editor can be used to monitor CV and PV while EZPLC is autotuning loops www EZAutomation net 1 877 774 EASY Chapter 6 PID Loop 615 PID Monitor 6 Control Variable CV 7 S o a 2 gt wn wn a o Oo en oa of f ana o ta E o a _ a 0 31 33 34 49 19 49 30 19 EZAutomation www EZAutomation net 1 877 774 EASY Modbus RTU and Modbus TCP IP Communications In this chapter e Overview e EZPLC as a Modbus Master e Open Port Command e Modbus Master Instruction e Ladder Logic Examples e EZPLC as a Modbus Slave e Overview e EZPLC as a Modbus Slave e Memory Map e Supported Modbus Commands Chapter 7 M
98. d the Counter instruction is present in Rung 1 Row 7 Column 8 Tip Use the Cross Reference function before changing the functionality of any Tag This will allow you to figure out very quickly where and how many times that register is utilized in the ladder logic program Read EZ Tags This function is particularly useful when using EZTouchPLC and EZTextPLCs or if you are using EZPLC with EZPanels Using this function the Tag Database of a project can be very easily populated by automatically reading from a pre existing Tag Database of an EZPanel Enhanced EZCE TouchPanel EZText Enhanced and or another EZPLC project Click on this function to display the screen on the following page EZAutomation www EZAutomation net 1 877 774 EASY Chapter 2 EZPLC Editor User Interface EZAutomation Save ai hoe JE LEG Tag CSV Files Fev Cancel Read EZ Tags xj Read tags defined in another EZ Project such as EZPanel Enhanced EZPLC etc and add to the cunent progects tag database EZ Project to Read Tags trom C EZPanel Enhanced Project C Select Project Action dupboats tag with IDENTICAL data type and read write access is found C Ask me C Update tag with new information C igrce new tag C AddasanewTag New Tags are added with_1 appended to names Action a dupbcate tag with DIFFERENT data hype and read wite access is found C Ask me Ignore new tag C Add as anew Tag New Tags are added with 1 appended
99. de BroadCast v Group fo 7 Unit fo Do Nothing v Display Message At Position Select Message Effects Center z Line fo Column fo Default I Clear Message on line Message Text Preview Char Size 2 v Color Red Blink Off v Red 1 Line 10 Char v Preview Now Press F7 to embed a data variable Press CTRL ENTER to go to next line of this message Add New Message Close Broadcast Go fi mg Unita Marquee Address EZMarquees can be networked using an RS422 network The EZPLC can send a message to one unit a group of units or to all units on a marquee network Marquee Address Each EZMarquee has a DIP Switch selectable Group Number 1 or 2 and Unit Number 1 through 8 Please refer to the table below for use of Marquee address fields To Send Messages To Select This Group amp Unit Number A specific EZMarquee Specific Unit User programmed group 1 or 2 and Unit Numbers 1 8 This must match with the DIP Switch setting on EZMarquee All units in a Group Specific Group User Programmed Group Number Unit Number 0 All units in Network Group 0 unit 0 EZAutomation www EZAutomation net 1 877 774 EASY Chapter 5 Message Display on EZMarquee 9 7 Center z Le f Column 0 In this group you define where on the display the message should start Display Message At Position Display Message at Position I Clear Message on line The table below describes the
100. ding Compare Instructions 3 16 Adding Counter Instruction 3 44 Adding Math Instructions 3 21 Adding Move Instructions 3 33 Adding Open Port Instructions 3 54 Adding Program Control Instructions 3 47 Adding Relay Boolean Instructions 3 9 Adding Send to Marquee Instruction 3 55 Adding Send To Port and Receive From Port Instructions 3 55 Adding String Instructions 3 50 Adding String Length Instruction 3 50 Adding the Drum Instruction 3 63 Adding Timer Instruction 3 40 Add Map Entry 2 42 2 44 Add New Message 2 47 5 8 Add New Message 5 10 Add New Tag Details 2 31 Algorithm Position or Velocity 6 8 AND 3 29 Anti Windup 6 6 ASCII Commands 5 12 At position 5 7 B Base Discrete Tag 6 6 Base Register Tag 6 6 Baud Rate 2 40 3 56 5 9 BCD to Binary 3 27 Binary to BCD 3 27 Binary to Gray Code 3 27 Bitwise Instructions 3 28 Bitwise Instructions Menu 2 24 Bitwise Operations Tool Bar 2 6 Blink Selected Message 5 8 Blink Whole Message 5 7 Block Fill 3 36 Byte Order 7 6 C Call Subroutine 3 49 EZAutomation www EZAutomation net Call Subroutine Instruction 3 47 Cancel 5 5 Cascade 2 48 Cascade Windows 2 4 Center 5 7 Change attributes to Default attributes 5 5 Clear Comment 2 23 Clear Display Cursor Unchanged 5 7 Clear Display Home Cursor 5 7 Clear Display Home Cursor Reset 5 7 Clear Label 2 22 Clear Line Cursor at Line Start 5 7 Clear Program 2 26 Close 2 47 5 10 Close All 2 47 Close Port 3 57
101. e status is available in scratch bit S100 In order to produce Message Number i this example begin by adding your messages to the Message Marquee Address Select Reset Before Display Mode Database You can do so by performing the following steps BroadCast v Group fo Unit a Clear Display Home cursor Reset v l i 1 Click onto the Setup Menu and select Message m Display Message At Position Select Message Effects D t b Center z Line fo Column 0 Blink whole message v atabase T Cea Message on line Message Text Preview 2 use fr j a a oer feer Click the Add Edit button to open the Add New Message dialog box and set the parameters as shown in the AE RASS JS is image to the left We created a message Machine Down as message number 1 Press F7 to embed a data variable Press CTRL ENTER to go to next line of this message Close Once you ve set the parameters as shown to the left click onto the Close button The Message Database will PP en ORE nage te Mice Total Number of Messages 3 Current Editing Language 1 3 The Production Rejection rate message has a static part Msgtt MsgTet Gr in and a dynamic part We create these as two messages Default 0 0 J A TU The static message is created as message 2 and is sent only once The Dynamic part is created as message 3 and is sent repeatedly Repeat the instructions in step 2 and set up the parameters in Messa
102. e when input 11 is ON output O1 will energize STOP MOTOR E gt I2 01 In the example above when input I2 is OFF output O1 will energize EZAutomation www EZAutomation net 1 877 774 EASY pl Positive Contact IN Negative Contact Note The Positive and Negative Contact instructions test whether a bit has changed from 0 to 1 or 1 to O during the current scan of ladder logic respectively Therefore to use these instructions the logic to change the state of the bit MUST be placed before the logic containing this instruction If the logic for change of state is placed after the instruction the instruction will never see the transition and therefore will never be true EZAutomation Chapter 3 Programming EZPLC at Positive Contact The Positive Contact instruction reads examines an input or Aaaaa storage bit at memory location Aaaaa If the addressed bit has transitioned from the OFF 0 to the ON 1 state in the P current scan power will flow through this element for the rest of that scan Negative Contact The Negative Contact instruction reads examines an input or storage bit at memory location Aaaaa If the addressed bit N has transitioned from the ON 1 to the OFF 0 state in the current scan power will flow through this element for the rest of that scan Memory Data Type A 11 18 1 128 Aaaaa Discrete Inputs Discrete Outputs O 1 128 Discrete Internals S 1
103. e Out Error Check cable communication pert and ports assignment on EZPLC Information Click on this function to acquire information for the PLC connected to the programming PC When connected it displays information regarding Status and Memory as shown in the following screen If the corresponding PLC is not connected to the programming PC the following message will appear EzPLCEdit x i Error C03_8 Unable to get Information from EZPLC Please checkup the connection between EZPLC and computer www EZAutomation net 1 877 774 EASY 26 Chapter 2 EZPLC Editor User Interface EZAutomation Reboot Use this function to perform a Warm Reboot of the corresponding PLC while connected to the programming PC as shown in the following screen x ie If corresponding PLC is not connected to the programming PC the following message will appear EzPLCEdit x o i 1 Error CO3_3 Errors in WarmBoot Clear Program This function is used to clear the existing program present in the memory of the PLC When used it will prompt for confirmation as follows i p Ths would clear the program From the EZPLC However progsct vill not be cleared from the Editor Do you want bo contina et Warning If you select Yes the corresponding PLC s program will be cleared Time Date This function can be used to Monitor and Change the current Time and Date settings on a PLC The PLC s clock can be set for either 24
104. e is read from the Image Table only except for Immediate instructions and NOT from the actual values of Inputs Outputs on the EZIO Modules During execution any Outputs changed are also written to the Image Table After completion of the RLL execution EZPLC writes the Outputs from the Image Table to EZIO Modules and reads the Inputs again to the Image Table and the process continues 3 2 1 System Discretes The table below describes all of the System Discretes available in EZPLC Editor System Read Write Description Discretes Read Only First Scan Bit Bit is On ONLY during the first scan of logic Read Only Bit toggles every100 millisecond i e the bit is ON for 100 ms and then off for 100 ms Read Only Bit toggles every second i e the bit is ON for 1 Sec and then OFF for 1 sec Read Only Run Bit Bit is ON or 1 while PLC is executing ladder logic can be monitored by an HMI Enable Setting this bit will open the port at the specified baud rate Next it will search for the Message Database for the defined message number in SR20 Baud Rate A value of 0x01 will set the baud rate to be 38400 A value of 0x00 will set the value of Baud Rate to 9600 EZAutomation www EZAutomation net 1 877 774 EASY Chapter 3 Programming EZPLC 3 2 2 System Registers The table below describes all of the System Registers available in EZPLC Editor The numbers in these registers are in Binary format Register Status used to indicate some er
105. e message will not blink Scroll Repeatedly The message will continuously scroll Scroll Once The message will scroll only once EZAutomation www EZAutomation net 1 877 774 EASY 58 Chapter 5 Message Display on EZMarquee Message Text Char Size E v Color Red v Blink Off v Press F7 to embed a data variable Press CTRL ENTER to go to next line of this message Preview Red 1 Line 10 Char Previews How EZAutomation Message Text In this area you Enter the actual text of the message along with its character size and color To change the text size you select the characters and choose the desired size from the drop down menu To change the color use the drop down menu to select Red Yellow or Green You can also choose to Blink selected characters of a message to Blink the whole message use the Blink Selected Message effect from the drop down menu You can embed up to 4 variables within a message To embed a variable press F7 at the position where you want to embed the variable and supply the information about the variable in the dialog box You can use the key combination Ctrl Enter to move the next line in the Edit Text box The maximum number of characters per message is 200 this includes any embedded attributes such as text color text size etc Preview The Preview function allows you to see how the message will look on the marquee Blink and scroll effects are also shown however these are
106. e the desired control processes Ladder Logic is built on the basis of electrical relay diagrams A ladder HERE RENET ERNEST VERE diagram graphically represents the elements of an electro mechanical circuit The g Kr user makes rungs of a ladder comprised of series or parallel combinations of the input devices and memory locations which are usually followed by an output device or memory location The Output element is usually the last element on the l rung Based on the conditional state of the inputs Output receives an action signal When the logical rung continuity is not achieved the output is not executed An example of a rung is shown in the picture on the left If you are new to RLL programming here is a simple sequence you should follow to develop RLL Relay Ladder Logic programs e Define your machine automation or automated process e Determine hardware requirements for the control action e Define a control algorithm e Assign inputs and output parameters of the process to the control algorithm e Develop ladder program on a PC using EZPLC Editor Software e Match I O addresses of the Controller to the correct input output devices e Load the program into the PLC e Validate the program e Run program EZAutomation www EZAutomation net 1 877 774 EASY Chapter 3 Programming EZPLC 3 2 Memory Map Each instruction is associated with one or more memory locations in the PLC When tested the logic instructions test set re
107. ect a Subroutine from the drop down list EZAutomation www EZAutomation net 1 877 774 EASY o 348 Chapter 3 Programming EZPLC Jump When power flows to this element the Jump instruction skips from the rung where used to a rung with the poe J Label specified in the Jump instruction ump and continues executing the program thereafter Before the Jump instruction skips to the specified label instruction the rung containing the Jump instruction is executed first The Jump instruction can only be used to skip forward in the direction of the ladder logic flow When a new rung is created you can add label and comments for every rung added by double clicking on any rung Only rungs which are labeled can be utilized by the Jump instruction The Select Label pull down menu only shows rungs which have been labeled by the user For Loop EN When power flows to this element the For FOR Loop instruction loops repeats the ladder logic Fe For RLL between itself and the Next instruction PRESA Egor for the number of times specified by the data value of the Loop Count at memory location Aaaaa When the For Loop instruction is done executing the RLL between itself and the Next instruction by the number specified by the Loop Count it allows execution of ladder logic after the Next instruction The Loop Count can also be assigned a constant value Next Statement kj m jr When power flows to this element the Next State
108. ect back or access online The access password edit box becomes disabled e Click OK to finalize the changes and dismiss the Project Options dialog e Transfer the user program to the EZPLC by selecting File gt Transfer to EZPLC and and then clicking Start Note that the access password could have been disabled from this dialog as well Once this is done the user can read back the user program or go online with the EZPLC without having to enter any access password www EZAutomation net 1 877 774 EASY User Program Backup In this chapter e User Program Backup on Onboard Flash 914 Chapter 9 User Program Backup EZAutomation 9 1 User Program Backup on Onboard Flash Every time a user program is downloaded to the EZPLC or when the program loader is closed after you have made one or more online changes it is automatically stored on the onboard flash In case the RAM battery of your EZPLC fails or if the user program somehow becomes corrupted the user program will be loaded into RAM from the copy in flash upon power up Three important questions regarding Flash Backup are 1 When is Flash Backup done 2 When is data restored from Flash Backup 3 What is restored from Flash Backup 9 1 1 When is Flash Backup done Flash backup occurs automatically when either of the following happens e A user program is downloaded to the EZPLC e After one or more online changes are made AND the program loader is closed Note th
109. ected the project In order to open view or edit please provide the password below The password protection feature will prevent unauthorized users from viewing editing the project but will still allow a user to read from or write to an EZPLC In the event that a user should not have access to edit a project but have the ability to write to an EZPLC click Cancel in the window above This will provide the option to transfer the project to the EZPLC as shown below EzPLCEdit Y The selected project is protected Do you want to transfer this project to the EZPLC rs ea Click Yes and you will be prompted to transfer your project as shown on the following page www EZAutomation net 1 877 774 EASY o 242 Chapter 2 EZPLC Editor User Interface Write Program To EZPLC Project Information Project Tithe C Program Files E Automation EZ PLC Editor VVProjectip CAUTION Pressing Start will OVERWRITE program already in the E2PLC If you do not want to lose program in the EZPLC press Cancel Configuration and first Read program from EZPLC and save it on your PC Copy Rungs When you click on File gt Copy Rungs following window will appear as follows xj Select Source Project Rungs in selected source project Ladder amp Subroutines in current project Using the Copy Rungs options you can copy rungs from another project into your existing project EZAutomation www EZAutom
110. ee the address itself as tag name For Example Start Il Il Tag Name and Address Tag Name AS Address Go to Rung Click on File gt Edit gt Go to Rung for a convenient way to quickly navigate to the desired rung The menu will open the following dialog box Enter Rung No x Go to Label Click on File gt Edit gt Go to Label to go the specified label as shown in the following screen x Select Label z DE om www EZAutomation net 1 877 774 EASY Chapter 2 EZPLC Editor User Interface Show Full Abbreviated Tag Names In the EZPLC application you can choose whether you want to display full or abbreviated tag names in the ladder logic To display full tag names Select Edit gt Show Full Tag Names All tag names would now be displayed in full If a tag name is too large to fit other entities in the ladder logic such as the diagram of the instruction wires etc would overlap it To display abbreviated tag names Select Edit gt Show Abbreviated Tag Names Note that tag names are displayed abbreviated by default on the ladder logic EZAutomation www EZAutomation net 1 877 774 EASY 208 Chapter 2 EZPLC Editor User Interface EZAutomation 2 5 3 View Menu When you click onto the View Menu you can access the following functions View Subroutine Rung Instructions Syntax Check Current Logic Syntax Check All Logic Main Logic Interrupt Logic Subroutine Logic
111. een you can specify the IP Address Subnet Mask and Gateway for the corresponding PLC Note Ethernet settings can only be adjusted on PLC models with Ethernet communication capabilities Device Network This function can be used to select the settings for PLCs with DeviceNet Slave and Profibus Slave communication capabilities When selected the following screen will appear EZAutomation www EZAutomation net 1 877 774 EASY 240 Chapter 2 EZPLC Editor User Interface EZAutomation Network Type Under Select Network Type the following three choices will appear in the pull down menu as follows rer iL kafe LT t Network lype Using the above menu select the type of network you wish to configure Note The DeviceNet and Profibus settings can only be configured for PLCs with DeviceNet and Profibus communication interfaces installed 1 DeviceNet Slave When DeviceNet is selected the following screen will appear Use the above screen to add information on Mac ID Data Timeout Poll Time Maximum Consumed Words Maximum Produced Words along with Baud Rate Baud rates of 125 250 and 500 kb s are available for DeviceNet Slave PLC as shown below www EZAutomation net 1 877 774 EASY Chapter 2 EZPLC Editor User Interface 2 2 Profibus Slave When Profibus is selected the following screen will appear Use the above screen to add information on Node Address Data Timeout Poll Time Maximum I
112. egisters IR Output Registers OR Register Internals R 1 8192 1 8192 System Registers SR Index Registers XR Data value of R register as 1 4 1 4 pointed by XR register AR Allowed Data Formats all register data type except ASCII www EZAutomation net 1 877 774 EASY Chapter 3 Programming EZPLC In the example above Value of R1 is copied to 10 registers starting with register R3 the number of elements in instruction is specified as 10 In the example above a table of constant is copied to registers starting with R1 Number of elements are shown as N EZAutomation www EZAutomation net 1 877 774 EASY 338 Chapter 3 Programming EZPLC 1239 O40 Move Bit EZAutomation Move Bit i MOU BIT When power flows through this element the ooo MONEIN Move Bit instruction can either copy bits from a maximum of 16 contiguous discrete bits to a single 16 bit word register or a single 16 bit word register to a maximum of 16 contiguous discrete bits The two available modes are available as follows e Map Register Bits to Discretes When using the Move Bit instruction to map register bits to discretes Src at memory location Aaaaa provides the address of the register from which the bits are to be moved The Number of Bits selected by you defines the total number of consecutive bits which are to be moved starting from the Src address location Dest at memory location Bbbbb provides the address of the register where
113. elayed ON Timing Diagram Delayed OFF This type of Timer allows power flow though it as long as power flows to this element When power flow STOPS to this type of timer it still allows power flow through it and starts counting at the same time When the Timer reaches the Timer Preset Value as specified by Pre it STOPS the power flow through it If power flows back to this Timer before it reaches the Timer Preset value it resets itself and starts timing from 0 again anytime power flow stops to it Timebase met J Uutpul LG coum 0 0 1 2 0 0 1 2 3 3 0 Delayed OFF Timing Diagram www EZAutomation net 1 877 774 EASY EZAutomation Chapter 3 Programming EZPLC Delayed ON Retentive Counts When power flows to this type of timer it starts timing until it reaches the Timer Preset Value as specified by Pre Once it completes the specified count it allows power flow through this element If power flow to this timer stops before it reaches the count specified by Pre it retains the count and starts from the point where it had stopped timing Once it reaches the Timer Preset Value it will allow power flow through it This remains true unless the Reset Input Bit is toggled at which point it resets itself and starts timing whenever power flows to it Timebase Delayed ON Retentive Counts Timing Diagram Discrete Inputs me 1 128 1 128 nm 144024 1 64 e PE Data f
114. enable the instruction the Modbus master instruction will then repeatedly execute as long as S1 is true Modbus master instruction executes only once when it is enabled to execute it repeatedly the instruction needs to be enabled and disabled as shown below EZAutomation www EZAutomation net 1 877 774 EASY Chapter 7 Modbus RTU and Modbus TCP IP Comm 7 9 Example 3 This example shows the incorrect way to execute two Modbus Master Commands using the RS422 port In the above example the reply of the first command will be corrupted as the second command will send its data too soon Please note that this format is valid for Modbus TCP IP as up to 4 Modbus Master Instructions are allowed in the Modbus TCP IP Incorrect 7 3 EZPLC as a Modbus Slave 7 3 1 Overview EZPLC provides connectivity to Modbus Master over Modbus RTU protocol When used as a Modbus Slave the EZPLC responds to Modbus commands from a Master The RS422 port on EZPLC is used for the Modbus connection 7 3 2 EZPLC as a Modbus Slave To use EZPLC as a Modbus Slave use following steps 1 Open RS422 485 Port Open the communication port for Modbus Slave operation You need to open the port only once Port once opened remains open until closed or power is cycled NOTE This step is not necessary if the connection is via Ethernet 2 Initiate Modbus commands from the master unit to exchange data with the EZPLC memory The tables below show the m
115. ent value of Step where Drum Sequence exists at any given time during its operation Current Count Tag Cnt address at memory location Ddddd is used by the Drum instruction to write the current value of Count where the Drum Sequence exists at any given time during its operation Outputs The total number of Outputs that can be used per Step is 16 which is reduced to 10 when using the Timed with Event type Drum instruction Every Output utilized in any step must have a Discrete memory location assigned to it Memory locations are assigned in the second tab when adding a Drum instruction During Drum instruction operation if the checkbox corresponding to a certain Output is checked it will be enabled otherwise it is disabled Events This is an optional tab which only appears if the Timed with Event type Drum instruction is used For every Step utilized in the Time and Event type Drum instruction there must be a corresponding Event address assigned to a discrete bit During Drum Sequence after the time corresponding to a certain Step is elapsed the instruction looks at the corresponding Event address If enabled Drum Sequence will advance to the next step otherwise it will start the Count again for the same Step Once the Count is elapsed it will look again at the Event address to see if it s enabled If enabled it will move forward to the next Step otherwise it will repeat until the corresponding Event address is enabled EZAutoma
116. esieleiduindaceanddecaiiendsdnenslNodvunvaswanudaanis 6 2 PID Eie EEE EE ES 6 2 POE PU ve 6 3 The EZPLC uses the following algorithms for PID computations 6 3 62 PID SETUP Lima vekke 6 4 Autotune Setup rrrarrrnannonannrrnnnnnnnnnnnnnnnnnnrnnnnrnnnnrnnanennanennnne 6 7 OTE ON GT EE eaten ewe discued AEE EE aeons 6 9 Creating PID 1896 visi cusieicdassasinen cad econatoanudonseaxanouiwxadedevmsdacaced 6 10 6 3 PID MONITOR a seaceicsrrecur cat eniansenciaanetc uty a EDEA E EEA aSa 6 11 64 PID LOOP TUNING Lasses aia oi 6 14 Autotuning Pre requisites rrrnrernnnernnnrrnnnnrvnnnnnnnnennnnennnnvnnnnennnnennnn 6 14 OE 6 14 Autotuning LOOPS EE EEE N 6 14 EZAutomation www EZAutomation net 1 877 774 EASY Table of Contents Modbus RTU and Modbus TCP IP Communications TA MODBUS OVERVIEW 2 7 2 7 2 EZPLC AS A MODBUS MASTER ennrnnnnrnnnnnnnnnonnnnennnnennnnennnnennnnnnnnnnnnnnnen 7 2 1 2 1 Open ONC OMA NG EEE EEE 7 3 17 2 2 Modbus Master Instruction i022 nwesiscccandeceuuncniedccantttwnssacdeuncsadencaeds 7 4 7 2 3 Ladder Logic EXAM DISS sa secainnstiaitenaiaraaiiiaatcncastaiandedasinodialeeautesiaunue 7 8 7 3 EZPLC AS A MODBUS SLAVE rnnnwrnnnnnnnnnnnnnnonnnnennnnennnnennnnennnnnnnnnnnnnnner 7 9 Td I EE EEE 7 9 7 02 EZPLG as a Modbus Slave cceneccssccecinevnssndceeencosuscadextdtestesveacdercees 7 9 ES Memory MaD SE EEE 7 10 7 3 4 Supported Modbus Commands rrrnnnrnnnnrnnnnennnnrnvannnnanennnnen 7 10 Protecting
117. ges 2 and 3 as shown in the two examples below Edit Message Details 2 xi dit Message Details 3 xi Message Number 2 Message Number 3 Marquee Address Select Reset Before Display Mode m Marquee Address Select Reset Before Display Mode BroadCast v Group 0 v Unit a Clear Display Home cursor Reset v BroadCast v Group 0 Unit fo Do Nothing v Display Message At Position Select Message Effects Display Message At Position Select Message Effects Defaut v Line fo Column 0 Defaut v Starting at v Line fi Column 16 Defaut v IT Clear Message on line I Clear Message on line Message Text Preview Message Text Preview Char Size 2 v Color Red v Blink Off v Red 1 Line 10 Char v Char Size 2 v Color Red v Blink Off v Red1 Line 10 Char v PRODUCTION RATE M 2BIREJECT RATE SFR Ee lt 4 gt M 216 lt gt FN Press F7 to embed a data variable Press CTRL ENTER to go to next line of this message Press F7 to embed a data variable Press CTRL ENTER to go to next line of this message Help Apply Changes Close Help Apply Changes Close As shown in the dialog boxes above use F7 to embed variable data Variable Data appears as lt _ gt in the Message Database and in the Message Text box You can click in the text box onto lt _ gt to edit the embedded variable Please refer to the EZMarquee manual for message syntax a
118. gister Greater Than or Allows power flow through this element if the data value of Opr1 register is Greater Than or Equal to Equal To Opr2 register Less Than or Equal Allows power flow through this element if the data value of Opr1 register is Less Than or Equal to Opr2 To register Limit Allows power flow through this element if the data value of Input register is within the data values of High Limit and low Limit registers add Adds two data values in Opr1 and Opr2 registers and stores the result in Result register Subtracts Opr2 register data value from Opr1 register data value and stores the result in Result register Multiplies two data values in Opr1 and Opr2 registers and stores the result in Result register Divides Opr1 register data value by Opr2 register data value and stores the result in Result register Divides Opr1 register data value by Opr2 register data value and stores only the remainder in Result register Absolute Converts a negative data value from Opr1 register to a positive value and stores it in Result register Conversion Copies the data value of Opr register converts it into Result registers data type and stores the data value in Result register Binary Conversion Converts the data value of Source register in Binary BCD or GRAY code to the data value of
119. gisters with a starting address of Src to TWO consecutive registers with starting address of Dest Similarly 6 characters would move THREE consecutive registers 8 characters would move FOUR consecutive registers and so on Memory Data Type Register Internals R 1 8192 Data Format ASCII only STR MOU CASCIII In the example above the number of characters defined in the dialog box are moved strarting from R100 to the destination starting from R300 If a null is found in the source string before all the number of characters are moved the rest of the characters are padded with null in the destination www EZAutomation net 1 877 774 EASY 3852 Chapter 3 Programming EZPLC EZAutomation T String Compare String Compare The String Compare instruction is used to STR COMP compare an ASCII String with a starting SEE address of Src1 at memory location Aaaaa and Src2 at memory location Baaaa by the number of characters specified by the user If Src1 Src2 power will flow through this element This instruction can compare up to 40 characters with every two characters occupying one ASCII register Sprco2 For example if the number of characters to compare is 2 this instruction will compare the single Src1 register at memory location Aaaaa to Src2 at the memory location Bbbbb If the number of characters to compare is 4 then this instruction will compare TWO consecutive registers with a starting
120. han the OFF value Each value is a 24 bit value but takes up two 16 bit registers 4 1 2c Preset Value When the preset input is triggered see preset mode below the value in the Value Long field will replace the current count of Counter 1 The count then starts with this value Preset is a 24 bit value but takes up 2 16 bit registers 4 1 2d Preset Mode As shown in the dialog box preset mode is saved in bits b7 and b6 of the Counter configuration register High This option will set the counter to the preset value while being held high While the preset signal is high no new count signals will be counted On Rising Edge This option will preset on the rising edge of the preset signal On Falling Edge This option will wait for the falling edge of the preset input to trigger a preset pulse Preset High AND Counter 7 A Input This option triggers a preset pulse every time that there is a rising edge Signal A and the preset signal is high 4 1 3 Output Register Information Wiring Pin Out Deseription Es a Reset Counter Output Counter Output www EZAutomation net 1 877 774 EASY As previously mentioned one counter module 1 or 2 Counter uses 21 contiguous Output Registers OR You will specify a starting OR The Editor automatically allocates 21 contiguous registers All values such as Setpoint ON OFF preset etc are 24 Bits but occupy 2 registers each The configuration register is
121. he CV computations For example the user can choose to use PV Square root instead of PV in error computations Please see the PID setup where these options are discussed EZAutomation Chapter 6 PID Loop 63 purpose of PID loop is to maintain the Process Variable as close to the Setpoint as possible Control Variable The Control Variable is calculated by a control algorithm It depends on the error and PID coefficients see next section for the equations used in the computations Error Error equals the algebraic difference between the process variable and the setpoint Magnitude and variation of the error depends on the process dynamics as well as on the PID coefficients A well designed system will keep the error to a minimum value External Disturbance Something that changes the equilibrium of the process This results in a change in the control action to bring the process back into range For example in an air conditioned building open doors and rainstorms are all changes that can affect the temperature PID on EZPLC EZPLC products support up to 8 PID loops For each loop the user defines several parameters such as Setpoint Proportional Integral Reset and Derivative Rate Gains Limits etc further discussed in the next section You can change most of these parameters at run time using ladder logic by using the EZPLC Editor software in online mode PID Algorithms used in EZPLC The EZPLC uses the following a
122. he Slave Device we are communicating to This may either be stored in a Tag or defined as a constant 2 Modbus Command and Modbus Address Offset Select Modbus command and address to communicate to You don t need to enter the command codes In addition the Modbus address type is not entered only the offset within the address type is entered For example for holding register 400123 use only 123 The address type is implied by the command EZAutomation www EZAutomation net 1 877 774 EASY Chapter 7 Modbus RTU and Modbus TCP IP Comm EZAutomation only Offset is entered the type is implied by MODBUS COMMAND CODE MODBUS ADDRESS RANGE the command Read Coils 000001 065535 Offset 1 65535 No more then 1024 Coils at a time Read Discrete Inputs 100001 165535 Offset 1 65535 No more then 1024 Inputs at a time Read Holding Registers 03 400001 465535 Offset 1 65535 No more then 100 Holding Registers at a time 300001 365535 Offset 1 65535 No more then 100 Input Registers at a time 000001 065535 Offset 1 65535 Only one at a time Write Single Register aca 400001 465535 Offset 1 65535 Read Input Register Write Single Coil Only one at a time Write Multiple Coils 000001 065535 Offset 1 65535 No more then 1024 Coils at a time 400001 465535 Offset 1 65535 No more then 100 Registers at a time Write Multiple Registers 3 Byte Order Modbus registers are usu
123. iehiciant 4 9 Message Display on EZMarquee 5 1 MESSAGE DISPLAY ON EZMARQUEE mrmnnnnnnnnnnnnvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnner 5 2 5 2 MESSAGE CONTROLLER FUNCTION ennunrnnnnnvnnnnnvnnnnnnnnnnnennnnnennnnnnnnnn 5 2 Message Database rrrannnrnnnvrnnnvrnnnnvnnnnrnnnvnnnnvnnnnvnnnnennnnnennnne 5 3 Message Number ReGistel ccccccsececeecesseeeseseeseseeseuees 5 3 System DIS ChE LSS ease ERA 5 3 9 2 1 Message Database cccccccsseccseeeeeesecesseceeseeseseesaseesneeeeees 5 4 PE inrer ae eE E E E e EEE REEE 5 6 Message Number rannernnnornnnonnnnvnnnnvnnnnnnnnnnnnnnnennnnennnnennnnennnne 5 6 Marquee Address EEE EE 5 6 Display Message at Position rrnnrrnnnnnnnnnrnnnnrnnnnennnnnnnnnnennnn 5 7 Select Reset Before Display Mode rrrnnnnnrnnnnnrnnnnnnnvnnnnrnnnn 5 7 Select Message Effects rrrrrrrrrnnrnrnrnnnrvrnnnnvvnnnnvnnnnnnnvnnnvennnn 5 7 Message Text EET cadena Maauimaptecinanaats 5 8 POVO EE EEE 5 8 5 2 2 Communication Setup nic canasiennasiccwedansicnesidcnancuseebancsasicinnnenctincebeneas ss 5 8 5 2 3 Displaying Messages rrnnrennnnernnnvrnnnennnnvnnnnennnnnnnnnnnnnnnennnnenn 5 9 92A PAN 5 10 Rung 1 Enable Marquee amp Check Status rrrrnnrrnnnnnnns 5 11 Rung 2 Marquee Control cccccsseeccssseeceseecseeeeessaeees 5 11 Rung 3 Production amp Reject Rates rrrrnnrrnrnnnrrrnnnrvnnnnrr 5 11 PID Loop 6 1 INTRODUCTION TO PID wiseticccsaieseiciv
124. igure the Drum instruction perform the following steps 1 Click on the Drum icon on the right side of the screen 2 Position the mouse over the Ladder diagram and click the mouse to place the instruction 3 Double click the instruction to open its dialog box 4 Click on the Outputs tab on the top to define your Output bits 5 Return to the main dialog box by clicking onto the Instruction Details tab 6 Select the Drum type timed or timed with event 7 Select the Preset Step default preset step is 1 8 Choose the Time base 1 ms 10 ms 100 ms or 1s 9 Select Reset and Jog tags if you want to activate these controls 10 Define counters for each step 11 Check the ON Off states of outputs in each step DRUM Instruction Instruction Details Outputs m Drum Type Time Base Timed Only C Timed With Event 158 C 10MSec 100MSec f 1Sec Preset Step 1 Reeta 4 JgTa dx Curent Step Tag Curent Count Tag Outputs 15 14 13 12 114110 0 8 OF 06 05 O24 Be 0 E i E i 1 2 3 4 5 6 7 8 9 3 3 FG 3 3 3 73 3 3 3 3 3 E S E S E EEE EE EEE E S E E E a E E E EE EEE HEER EEE EEE E E S E S E E S E EEE EE E S E S E S E E S E E EEE E S E S E S E S S E E S EE E E e S a n E E S E E E S EE E S E S E S E S S E S E S EE HETER EEE EEE EEE HEENEEEEE EE EEE EEE BHEHBREBRE HB EEE EE EE HEHEHE EEE EEE EE E S e S e EEE EEE EEE E E E a E E E S
125. ions It is organized in such a way that you will find e How to use the instructions e Descriptions of every individual instruction including a graphical example and supported data types The following table is provided as a quick reference to all RLL instructions available in EZPLC Editor as well as a brief description of what each instruction is used for Instruction Description When the corresponding memory bit is a 1 on it will allow power flow through this element When the corresponding memory bit is a 0 off it will allow power flow through this element Positive Transition If the corresponding bit has changed from 0 off to 1 on in the current scan power flows through this element Negative Transition If the corresponding bit has changed from 1 off to 0 on in the current scan power flows through this element NO Coil As long as the power flows to the instruction corresponding memory bit is remains 1 on NC Coil As long as the power flows to the instruction corresponding bit to remains 0 off Set Coil When power flows to the instructions corresponding bit is set to 1 on and remains 1 on even if the rung condition goes to false use RESET COIL instruction to turn the corresponding bit Off Reset Coil When power flows to the instructions corresponding bit is set to 0 off and remains O off even if the rung condition becomes false use SET COIL instruction to turn the corresponding bit on NO Immediate Inp
126. lect a proper Tag name address from the drop down list for the Timer register EZAutomation www EZAutomation net 1 877 774 EASY EZAutomation TMR Timer Chapter 3 Programming EZPLC Timer Instruction When power flows to this element the Timer instruction starts timing Once it reaches the Preset Value as defined by the Timer Preset register it will stop timing and either allow power flow or stop power flow based on the type of Timer instruction used When using a Retentive timer you must use a Reset bit to reset the timer When using a Non Retentive timer you must reset the logic in front of the timer Timer Preset Value Pre at memory location Aaaaa defines the timer preset value Pre can also be assigned a constant value The Timer preset value allows the Timer instruction to count to a certain value based on the Time Base Selected Timer Register and Timer Status Register Tmr at memory location Bbbbb defines the timer register value The next register is automatically used for Timer Status E g If R1 16 Bit word register is assigned as Tmr Bbbbb then the Timer instruction will use R1 for Timer Register and automatically use R2 the next consecutive register for the Timer Status Register The Timer Status Register holds information about the Timer instruction s enable and outputs status If we take the same example where R1 is assigned to Tmr Bbbbb then e The R1 register value will hold the accumulated va
127. lgorithms for PID computations Let SP Setpoint at sample instance n PV Process Variable at sample instance n CV Control Variable at sample instance n K Gain Proportional term T Reset integral time in seconds T Derivative or React time in seconds T Sample time in seconds E Error at sample instance n CV Control Variable offset The Error is computed as follows E PV SP for Direct Acting SP PV for Reverse Acting Then the CVn is computed as follows Position Algorithm n OV KJE TNT 2 a HL TESE Epl tC Velocity Algorithm n NK eat 2 E TAT PVs PV le CVa i 0 www EZAutomation net 1 877 774 EASY 64 Chapter 6 PID Loop 6 2 PID Setup The following section will explain how to setup a PID loop using your EZPLC Editor software To access the PID Setup perform the following steps 1 Go to the Setup Menu and select PID The following dialog box will appear If you have already defined one or more loops the image below will be different al Q e e Li EE Eontral Wutput ad Bycie lime 1 1 U sec Base Reg 14 2777 Min Duty leecie mm 2 May Duty bycie i z 2 Use the drop down arrow to select the Number of PID Loops you would like to use you can select up to 8 PID Loops 3 AS soon as you select a number of loops other than 0 the following dialog box will appear EZAutomation www EZAutomation net 1 877 774 EASY h Process
128. llowing error message will appear EzPLEEdit xj LJ mearet Communication Packet Time Out Error Check cable comiiunication port and ports assignment on EZPLC Start PLC Use this function to Start the corresponding PLC into RUN mode Note This function will only Start the PLC when present in RUN Program mode as selected by the DIP switches Stop PLC Use this function to Stop the corresponding PLC when present in RUN Program mode Note This function will only Stop the PLC when present in RUN Program mode as selected by DIP switches EZAutomation www EZAutomation net 1 877 774 EASY 28 Chapter 2 EZPLC Editor User Interface EZAutomation COM Configuration This function is only available when programming in OFF Line mode Use this function to select the COM port Ethernet s IP address of your PLC based on how you are connecting i e via the COM port or Ethernet port The following screen appears when this function is selected Ethernet COM Port cn M Ethernet If Ethernet is selected the following screen will prompt you for the IP address of your corresponding PLC Specify IP Port IF Address Fort Switch Monitor Mode Switch to Edit Mode Click on this function to switch between Monitor and Edit mode when connected to the corresponding PLC Note Monitor mode will not allow any editing of the ladder logic program present in the PLC PID Monitor Click on this to open the dialog
129. logic to another ezplc This feature is useful for OEMs who would like to protect their programs from unauthorized copying With this feature every time the user tries to read back the user program or go online with the EZPLC he she will have to enter the access password The access password can be configured from either Project Options Setup gt Project Options or before transferring to EZPLC File gt Transfer to EZPLC To restrict access online reading back projects perform the following steps e Select File gt Project Options The project options dialog box shows up e Check the checkbox labeled Require password to read project back or access online The access password edit box becomes enabled e Enter the access password The password can contain a maximum of 16 characters e Click OK to finalize the changes and dismiss the Project Options dialog e Transfer the user program to the EZPLC by selecting File gt Transfer to EZPLC and then clicking Start Note that the access password could have been set from this dialog as well Once this is done every time the user tries to read back the user program or go online with the EZPLC he she will have to enter the access pass word To remove the access restriction to online reading back user programs perform the following steps e Select File gt Project Options The project options dialog box shows up e Uncheck the checkbox labeled Require password to read proj
130. lue of the Timer at any given time e TheR2register Bit 14 will hold the Timer Enable Status and Bit 15 will hold the Timer Output Status Time Base The Time Base is user selectable and allows one of the following time bases e 1 Millisecond e 10 Millisecond e 100 Millisecond e 1 Second e g If Preset 15 and Time Base 10 Millisecond then the Timer instruction will time for 150 Milliseconds Similarly if Pre 11 and Time Base 100 Millisecond then the Timer instruction will time for 1100 Milliseconds www EZAutomation net 1 877 774 EASY 342 Chapter 3 Programming EZPLC EZAutomation Reset Input Bit for Retentive Timer Reset at memory location Ccccc defines the reset input bit for the Retentive Timer ONLY Reset only becomes available to you when the Delayed On Retentive Counts type of timer is utilized Types of Timer There are three types of Timers available as specified by you Delayed ON Delayed OFF and Delayed ON Rententive Counts Delayed ON When power flows to this type of Timer it starts timing until it reaches the Timer Preset Value as specified by Pre Once it completes the specified count it allows power flow through this element If power flow to this Timer stops before it reaches the Timer Preset value it resets itself to zero and starts timing from 0 when power flows to this instruction again Timebase mi IL IT Outpul coum D D 1 2 Qd Q 1 2 3 3 Qd Q D
131. mber it computed Meteaye Nte Jomo re a 2 Check the Use Mask box and enter a value if you want to use Mask Et I eg capabilities to compute message number Eee PE bed 3 Enter a numeric constant as an Offset value to the message number if desired ad Ofeet to Some Metsezge Rate og Tag Name 4 Select a Message Status Tag name Address using the drop down list 5 Check one option for the action for Unmatched message numbers 6 Add Edit the Message database by clicking on the View Edit Message Database button Adding Modbus Master Instruction See Chapter 7 EZAutomation www EZAutomation net 1 877 774 EASY 356 Chapter 3 Programming EZPLC Open Port NOTE The Open Port instruction is executed once every time the power flows to the instruction It is recommended that the port be opened once unless the com parameters have to be changed In that case the port should first be closed and then reopened with different parameters EZAutomation Open Port When power flows through this element the Open Port instruction opens the RS422 serial port by user specified parameters available as follows e Baud Rate 1200 2400 4800 9600 19200 38400 e Parity None Odd Even e Data Bits Seven Eight e Stop Bits One Two e Protocol No Protocol XOn XOff Modbus Master Modbus Slave Ho Frotocol l Frotocol Send Character Sequence can be used to add up to a maximum of FOUR cha
132. me operation for all the messages that need to be populated 2 5 9 Window Menu When you click onto the Window Menu you can access the following functions Window Help Close Glose All Cascade Tile 1 Demo Project lad Interrupt Logic v 2 Demo Project lad Main Logic Close Use this function to close the current ladder logic window open in the main programming window Double click on the ladder logic window in the Project View window to show them again Close All Use this function to close all the ladder logic windows open in the main programming window Double click on the ladder logic window in the Project View window to show them again EZAutomation www EZAutomation net 1 877 774 EASY 248 Chapter 2 EZPLC Editor User Interface The picture above shows screen files arranged in Cascade Mode i e The picture above shows screen files arranged in Tile Mode EZAutomation Cascade Click here to view open screen files in the window Screens will cascade down the window overlapping each other but with their title bars in view This is helpful when you are making changes to two or more screens at the same time Click on the title bar of one of the screens to bring it to the front The title bar is grayed out in screens that are not currently active Tile Click here to view open screen files in the window Screens will be arranged within the window This is helpful if you want to copy
133. ment NEST instruction specifies the end point of the For Loop instruction HEAT Next and shifts power flow back to the point where the For Loop 1 instruction is located Once For Loop execution is completed for the number of times specified by the Loop Count power will flow through this element Memory Data Type Input Registers IR Output Registers OR Register Internals R 1 8192 Allowed Data Formats UNSIGNED INT 16 EZAutomation www EZAutomation net 1 877 774 EASY Chapter 3 Programming EZPLC 340 Call Subroutine When power flows to this element the Call CALL CALL Subroutine instruction invokes a subroutine I me as specified by SUB you can either specify an existing Subroutine or create a new one When a subroutine is added in SUB which already does not exist it is automatically added under Subroutine Logic Once a subroutine is used it must contain a Return instruction to return back to the main logic Call Subroutine Note Subroutines are very useful for organizing the main body of ladder logic They can be utilized to break the body of ladder logic into sections which are either specific to a certain operation or are repeated in the main logic If certain logic is to be repeated several times it is useful to place that logic in a subroutine and call that subroutine by using the Call Subroutine instruction instead By utilizing subroutines efficiently the number of rungs in ladder logic could be red
134. n www EZAutomation net 2 3 4 Bitwise Operations The Bitwise Operations Toolbar consists of icons for all the instructions available for Bitwise Operations These commands are also found in and accessible from the Main Menu gt Instructions All the icons for instructions shown in this section will be described in detail in Chapter 4 RLL Instructions AND OR XOR NOT e ed AND And OR Or XOR XOR NOT Not 101 Shift Left 101 Shift Right 2 Rotate Left Rotate Right 1 877 774 EASY Chapter 2 EZPLC Editor User Interface 2 7 2 3 5 Move Operations 2 3 7 Program Control Operations The Move Operations Toolbar consists of The Program Control Operations Toolbar consists of icons for all the instructions available for Move icons for all the instructions available for Program Control Operations These commands are also found Operations These commands are also found in and in and accessible from the Main Menu gt accessible from the Main Menu gt Instructions Instructions All the icons for instructions shown in this section will be All the icons for instructions shown in this section described in detail in Chapter 4 RLL Instructions will be described in detail in Chapter 4 RLL Instructions f For next CALL 2 123 4234 gt A amp Bi Jump Move Data For For Loop Move Block NEXT Next Block Fill le Call Subroutine Move Table of Constants 0 Return from a subroutine 01 Bit M
135. n ON 1 even if the rung conditions change later to stop power flow to the element The only way to change the status of the specified storage or memory bit set by Set Coil is to use the Reset Coil instruction Reset Coil When power flows to this element the Reset Coil instruction Aaaaa a resets turns OFF 0 the specified output or storage bit at memory location Aaaaa Once the specified output or storage R Reset Coil memory bit is turned OFF 0 it will remain OFF 0 even if the rung conditions change later to stop power flow to the element The only way to change the status of the specified storage or memory bit reset by Reset Coil is to use the Set Coil instruction to set turn ON 1 Memory Data Type Discrete Outputs O 1 128 Discrete Internals S 1 1024 Allowed Data Formats Discrete Only Pus sek EET I I I I I I I ETE A In the example above bit 07 is Set when 11 is ON Bit 07 will remain Set even after 11 becomes FALSE AIRA i RESET Rtl I be I I I l I In the example above if 12 is ON S1 will be Reset turned OFF EZAutomation www EZAutomation net 1 877 774 EASY EE Chapter 3 Programming EZPLC Normally Open Immediate Input e The Normally Open Immediate Input instruction reads examines AAAAA m the status of the specified Input point at location Aaaaa directly I from the EZIO module at the time of execution and NOT from the memory bit present in
136. n be used to delete an existing subroutine as shown in the following screen Delete Subroutine xj Delete Subroutine emen Note Subroutines can also be added by right clicking on Subroutine in the Project Window www EZAutomation net 1 877 774 EASY Chapter 2 EZPLC Editor User Interface 2 2 5 5 Rung Menu When you click onto the Rung Menu you can access the following functions Rung Instructions EZPLC Insert New Rung Insert Rows b Delete Row Gut Copy Insert Copied Rungs Delete Insert Label Comment Edit Label Comment Glear Label Gear Comment Delete Label Comment Show Label Comment Insert New Rung Click on this to add a new rung to the main ladder logic program Insert Rows This function is used to add single or multiple rows within a rung In order to use this function first select the RUNG in which you wish to add single or multiple rows Then click on the sub menu as follows to add the appropriate number of lines within a RUNG Insert 1 Blank Row Insert 2 Blank Rows Insert 3 Blank Rows Insert 4 Blank Rows Insert 5 Blank Rows Insert Multiple Rows EZAutomation www EZAutomation net 1 877 774 EASY 220 Chapter 2 EZPLC Editor User Interface EZAutomation If you click on Insert Multiple Rows the following screen will appear and will require the number the rows to be added within a RUNG Enter Number of Rows PS Enter Number of Rows Delete R
137. n link Between the Master and the Slave may be disconnected Checksum Error Error in check sum of the reply The slave id in the master command message does not match the slave id Returned in the reply message from the Slave 8 Timeout Enter the timeout period in tenth of seconds EZPLC Modbus Instruction will time out if a slave does not respond to a command within the specified amount of time 9 Communication Port Select the port for use with the Modbus instruction There are two choices a RS422 485 port for use with the Modbus RTU serial instruction b Ethernet Modbus TCP IP protocol You will be prompted to enter slave servers IP details EZAutomation www EZAutomation net 1 877 774 EASY Chapter 7 Modbus RTU and Modbus TCP IP Comm Correct 7 2 3 Ladder Logic Examples Below we provide some partial ladder logic sample to illustrate the use of Modbus Master Instruction Example 1 Example below shows two Modbus instructions When 1 is true first instruction gets enabled and communication to addressed slave starts S2 will become true when S1 is true AND the Modbus instruction completes its operation By placing S2 before second modbus instruction we ensure that the second instruction does not start until the first is completed This will ensure that each Modbus Master command will execute sequentially Example 2 This example shows a way to repeatedly execute the Modbus Master instruction S1 will
138. n seconds The valid range is 00 00 to 600 0 Setting this to zero removes the derivative term from the PID equation NOTE The decimal point is implied For example 125 is 1 25 seconds Default is 0 3 Deadband Enter the Deadband value in this field This value is compared with the error value at loop update If the absolute value of the error is less than the deadband value then the error is considered as zero for PID computations Setpoint Low Limit Enter the lower limit of your desired setpoint in this field If the setpoint is below this value then it will be set to the value you ve entered in this field Setpoint High Limit Enter the higher limit of your desired setpoint in this field If the setpoint is above this value then it will be set to the value you ve entered in this field www EZAutomation net 1 877 774 EASY EZAutomation Chapter 6 PID Loop 69 Control Value CV Low Limit Enter the lower limit of the Control Value in this field If the CV is below this value then it will be set to the value you ve entered in this field Default is 0 Control Value CV High Limit Enter the higher limit of the Control Value in this field If the CV is below this value then it will be set to the value you ve entered in this field Default is 4095 CV Offset This is the constant offset that is added to the control variable So even when the Error is zero the Control Variable equals offset Error Shown o
139. n that is independent of the EZPLC The diagrams and examples in this user manual are included for illustrative purposes only The manufacturer cannot assume responsibility or liability for actual use based on the diagrams and examples Trademarks This publication may contain references to products produced and or offered by other companies The product and company names may be trademarked and are the sole property of their respective owners EZAutomation disclaims any proprietary interest in the marks and names of others Manual part number EZPLC EDIT M Copyright 2006 EZAutomation All Rights Reserved No part of this manual shall be copied reproduced or transmitted in any way without the prior written consent of EZAutomation EZAutomation retains the exclusive rights to all information included in this document ZA EZAutomation EE AS 4 2 3 Designed and Built by AVG 4140 Utica Ridge Rd Bettendorf IA 52722 1327 Marketed by EZAutomation 4140 Utica Ridge Road Bettendorf IA 52722 1327 Phone 1 877 774 EASY Fax 1 877 775 EASY www EZAutomation net EZPLC EDIT M Table of Contents i Getting Started 11 E2PEG EDITOR Led snmskanne 1 2 1 1 1 System Requirements cccccsescccssseccseseecceseecseueeesseeeessaeees 1 2 kr eee 1 2 Mrena E e ENE E ree 1 2 TOAST SCAM EEE EEE OTE ER 1 3 12 EZLAUNCGCH PAD srann nka Ke EEE EAEE nA EEE Nae 1 4 121 DEN iaeiei e e S E edt cepenseuue toed teen 1 4 MEN ease 1
140. n the dialog box for information only EZPLC used this register to store Error value Control Output EZPLC allows you to control a Digital output using PID control The digital output provides a pulse out put on selected output address The width of the pulse within the cycle time is proportional to the control value as illustrated below Out pute OD utput at Output pee ht yte Time T p ft Eyde Time T ml Cyle Time T 1 Output is ON for time proportional to Control Value The following fields are programmed for the Digital Control Output Enable Control Output Check box to enable Digital Control Output If the check box is unchecked no digital output is provided Control Output Tag Enter the discrete output address O type to provide Digital Control Output from the PID loop The output module can be of any type DC AC or Relay type Cycle Time Enter the Cycle time for the control output in tenths of a second While selecting cycle time keep in mind the load type that the output would be driving For EM relays we suggest that keep this time as high as possible to extend relay life Min Duty Cycle This field is for display only It is computed from the CV Low Limit CV_LowLimit 4096 100 and expressed in percentage As the name suggest the output will remain on for minimum time even if the computed control value falls below the CV Low Limit Max Duty Cycle This field is for
141. ncated when converting to other data types When the integer or floating point data value is converted to an ASCII type data value the number of digits decimal position and justification leading zeros leading spaces or trailing spaces can be assigned as per user Allowed Data Formats all register data types Note f converting a signed 16 bit with a negative value 1 to an unsigned 16 bit register the result will always be zero In the example above variable A R500 which is an UNSIGNED_ 32 U32 Type will be converted to an UNSIGNED_ 16 Type U16 and saved in B www EZAutomation net 1 877 774 EASY Chapter 3 Programming EZPLC Format Conversion EIM When power flows to this element the Format 2E C Du Conversion instruction converts the data ER format of From at memory location Aaaaa to Panna To at memory location Bbbbb as follows Conversion Binary to BCD BCD to Binary e Binary to Gray Code Gray Code to Binary Both the From and To data types must be a 16bit Signed Integer 16bit Unsigned Integer or 16bit BCD for Format Conversion instruction OR 1 64 1 64 R 1 8192 1 8192 SR 1 20 1 20 16 In the example above R1 which is in Binary format is converted to Gray Code and saved in R2 EZAutomation www EZAutomation net 1 877 774 EASY 328 Chapter 3 Programming EZPLC EZAutomation 3 3 4 Bitwise Instructions Bitwise Instructions operate on 16 bit or 32 bit S
142. nd addresses To start configuring the Enhanced Thermocouple module click the Click to define setup parameters button 10 Configuration i a x Select 10 Modules and Location Select E PLE 170 Base 4 Modules E2Px 32 Inout ddre Mikmak Ah Arass Edit 10 Module Data x Module At Position mi Select Module 4 Enhanced Thermocouple Module EA10 4THIE v Address Range Start Address End Address Input Ira IRG Output oR15 v aris Move Up Move Down Click to define setup parameters Apply Changes Close EZAutomation www EZAutomation net 1 877 774 EASY 48 Chapter 4 Configuring I O Modules EZAutomation 4 2 2 Configuring the Thermodcouple Module The configuration dialog for the enhanced thermocouple module is shown Thermocouple Configuration x Input Input Config Config A Hace Hose Cas Type Unit Range Report Error Input 1 m9 ort 0400 Type Celsius 210t01200 Do not Report Input 2 IR10 OR2 0x41 K Type v Celsius v 200 to 1372 Use low value x Input 3 IR11 OR3 0x12 s Type v Fahrenheit v 58 to 3214 Do not Report v Input 4 IR12 oR4 0x28 Ambient Temp v Kelvin v 273 to 373 Do not Report v Config Value Information Config Value Display Format Each input is configured via its output register The bits Dema fe Hek register are as follows bO is the least significant bit Type b3 b2 bl b0 default 0000 J T
143. nd details We ve provided a table of Valid ASCII commands on page 5 12 for your easy reference EZAutomation www EZAutomation net 1 877 774 EASY Chapter 5 Message Display on EZMarquee ee Total Number of Messages 4 Current Editing Language 1 Once you ve completed those first three steps the Message Database should appear as shown to the Tesal Jin vr Default 0 0 1 MACHINE DOWN 0 0 2 PRODUCTION RATE MO201REJEC O 0 3 lt H gt MO216 lt H gt 0 0 Now that you ve set up the Message Database you ll need to design the ladder logic in order to complete this example project You only need to design 3 Rungs of ladder logic To design these Rungs perform the following steps Rung 1 Enable Marquee amp Check SDL 5D5 _ Status The FIRST SCAN contact sets the Marquee Enable SD5 Input 1 controls the machine status RUN MACHIN Gi ET TD EE ee Eee EEE 4 Rung 2 Marquee Control Line 1 If Machine Status S100 is OFF set the Marquee Message Register to SR20 to a value of 1 This will display the Machine Down Message 1 on the Marquee _ Line 2 When the machine switches from stop to MACHIH run set the Marquee Message Register SR20 to a ea value of 2 This will display the Production Rate 5168 and Reject Rate Message 2 on the marquee Line 3 Display and update the production rate value _ and the reject rate value on the Marquee Rung
144. nput Words and Maximum Output Words Network Memory Map Whether you select DeviceNet or Profibus communication settings you have to enter the Network memory map settings for both the networks 1 DeviceNet Once you have selected the network to DeviceNet click on Network Memory Map tab to display the following screen d m MH EZAutomation www EZAutomation net 1 877 774 EASY 242 Chapter 2 EZPLC Editor User Interface EZAutomation View Memory Area has a pull down menu and is used to toggle view between Network to PLC and PLC to Network settings as shown below View memory area Network to EZPLC z Network to EZPLE ss EZPLC to Network The Network to PLC memory area corresponds to the maximum input words and PLC to Network corresponds to the maximum output words as selected under network type for DeviceNet Click on the Add Map button to display the following screen mo 0 xj r Map Address EZPLC Address Start at Ered at Tola Bytes Tola Bits Teji fo fo fp ir Map bo Hatwork Merry bama Stating at Ottser 0 BiNumbe fore Erning at Oila Eoo Bit Nurete m The Add Map Entry box as shown above is used to allocate the memory information of your corresponding PLC to the consumed words and the produced words of the DeviceNet Salve network Under PLC Address you can enter the type of PLC Tags to be shared over the ne
145. nter Preset Value or enter a number in the Constant Value field EZAutomation www EZAutomation net 1 877 774 EASY Chapter 3 Programming EZPLC Counter When the power flow to this element is switched from OFF 0 to ON 1 this instruction keeps track of the number of times power flow CORNET switches Once it reaches its specified preset aR it allows power flow through it UP Counter Preset Value Pre at memory location Aaaaa defines the Counter Preset Value This is the value that the counter will Please note that increment to or decrement from Pre can occupy a 16 or 32 bit If you select counter parameters register and can also be assigned a constant value as unsigned 16 U16 the counter is a 16 bit counter If R100 is the Counter Register and Counter Status Register Cnt at memory counter register R101 the next location Bbbbb defines the Counter register value When the Cnt register is automatically assigned register is specified it occupies a 32 Bit word register E g If R1 to counter status 16 Bit word register is assigned as Cnt Bbbbb then the Counter instruction will automatically use R1 for the Counter Register and If you select Unsigned 32 bit U32 R2 consecutive 16 Bit register for the Counter status Register then the counter is a 32 bit counter The Counter Status register holds information about the Counter If the counter register is R100 instruction s enable and output status If we take the same example EZ
146. number will be displayed in the program There are three display options HEX OCTAL or DECIMAL www EZAutomation net 1 877 774 EASY Chapter 3 Programming EZPLC Equal To The Equal To instruction can be used to compare two Operands Opr7 at memory location Aaaaa and Opr2 at memory location Bbbbb If Opr7 Opr2 then power will flow through this element Either Operand can be assigned a constant value Values can be displayed in Decimal Hex or Octal format Both Opr1 and Opr2 must be of the same data type Equal To Not Equal To The Not Equal To instruction can be used to compare two Operands Opr7 at memory location Aaaaa and Opr2 at memory location Not Equal To Bbbbb If Opr1 Opr2 then power will flow through this element Either Operand can be assigned a constant value Values can be displayed in Decimal Hex or Octal format Both Opr1 and Opr2 must be of the same data type Allowed Data Formats all register data type except ASCII In the example above if R1 equals R2 power will flow out of EQ and O1 will be energized In the example above if R1 does not equal R2 power will flow out of NEQ and O1 will be energized EZAutomation www EZAutomation net 1 877 774 EASY 318 Chapter 3 Programming EZPLC Greater Than Less Than EZAutomation Greater Than The Greater Than instruction can be used to compare two Operands Opr1 at memory location Aaaaa and Opr2 at memory location Bbbb
147. o add an offset to the message number based on the value specified The Message number is computed as follows Message Number Source AND MASK gt gt number of right Os in MASK Offset MASK allows you to use only selected bits from a word as a message number Offset allows you to add a constant to the message number which allows grouping of messages Example Source number 0x1234 MASK OxFFFO Source AND MASK 0x1230 Shift by 4 0x0123 There are 4 zeros on right of MASK Add Offset to get the message number Message Status Tag Ctrl is used by the Send to Marquee instruction to specify the status of the message being sent to a marquee If the message is being transmitted to the serial port the bit 0 Isb of Ctrl is enabled 1 When the message is successfully sent to the serial port the bit 1 of Ctrl is enabled 1 Message Database When the Send to Marquee instruction is assigned a message number through Src the message corresponding to the message number is selected for transmitting to the serial port The Message database is populated by using View Edit Message Database tab When adding anew message the EZAutomation www EZAutomation net 1 877 774 EASY 360 Chapter 3 Programming EZPLC EZAutomation text can be assigned a message number and attributes such as blinking scrolling and centering of messages etc The very first message in the Message Database is the default message This message is sent
148. o display PLC register values as part of the message To access the Message Database begin by clicking onto the Setup Menu Setup Tag Database Tag Cross Reference Read Ef Tags Export Tags d Import Tags b Ladder Options I Configuration Ethernet Setup Device Network Upgrade Firmware Once inside the Setup Menu select Message Database and the following dialog box will appear Ladder Message Database x Total Number of Messages 1 Current Editing Language 1 Set as Default Message attributes Change attributes to Default attributes The Message Database Lists all the programmed messages stored in the EZPLC The default message is a message that is displayed if the value in the message number register does not match any message number programmed The default message is blank to start with You may define the text of the default message www EZAutomation net 1 877 774 EASY Chapter 5 Message Display on EZMarquee 55 The functions of all of the buttons in the Message Database window are as follows Add Edit Click the Add Edit button to edit the selected message or to add a new one Delete Click the Delete button to delete the selected message Help Click the Help button to open context sensitive Help Click the OK button to accept the changes and close the Message Database dialog box Cancel Click the Cancel button to cancel any changes and close the Message Dat
149. ocation Bbbbb and stores the result in Res at memory location Ccccc Bits are rotated into the right and any bits shifted from the left are rotated in Opr1 and Opr2 can be assigned a constant value Values can be displayed in Decimal Hex or Octal format The Operands and Result must be of the same data type Rotate Right When power flows through this element the Rotate Right instruction performs a logical Rotate Right on Opr1 at memory location Aaaaa by the value of Opr2 at memory location Bbbbb and stores the result in Res at memory location Ccccc Bits are rotated into the left and any bits shifted from the right are rotated in Opr1 and Opr2 can be assigned a constant value Values can be displayed in Decimal Hex or Octal format The Operands and Result must be of the same data type Cecec Register Internals R 1 8192 1 8192 1 8192 Allowed Data Formats SIGNED INT 16 SIGNED INT 32 UNSIGNED _ INT 16 UNSIGNED INT 32 MASK1 1100 0000 0000 0101 RENE OE EN HYDE Rotate Right by 4 i MASK2 after shift l 0000 0000 0101 1100 I I I d mmemem I I In the example above MASK1 is rotated left by 4 and saved in MASK2 MASK1 1100 0000 0000 0101 MOTOR Rotate Right by 4 MASK2 after shift f 4 YE Eee R sv 0101 1100 0000 0000 I I I I I I L I In the example above MASK1 is rotated right by 4 and saved in MASK2 www EZAutomation net 1 877 774 EASY
150. odbus RTU and Modbus TCP IP Comm Modbus RTU Serial Requires firmware revision B 3 or later Editor revision version 1 1 later Modbus TCP IP and RTU Requires firmware revision B 4 or later Editor revision version 1 2 or later 7 1 Modbus Overview EZPLC provides connectivity to other devices over Modbus RTU protocol You can use EZPLC either as a Modbus Master Client or a Modbus Slave Server In this document we will use Modbus master and Modbus Client synonymously Similarly Modbus Slave and Modbus Server would be used synonymously When used as a Modbus Master Client EZPLC communicates and exchanges data with other Modbus slaves When used as a Modbus Slave the EZPLC can respond to Modbus commands from a Master Both the RS422 RS485 port and the Ethernet port on EZPLC can be used for Modbus communication 7 2 EZPLC as a Modbus Master Modbus Master Instruction To use the EZPLC as a Modbus Master use following steps Ladder Logic instructions under the communications tab 1 Open Port Open the communication port for Modbus Master Instruction The RS422 485 port on EZPLC is used for this communication You need to open the port only once Select Modbus Master in the protocol drop down field NOTE This step is not necessary if the connection is only via Ethernet Each Modbus Master instruction specifies if the instruction uses the RS422 or Ethernet port 2 Use Modbus Master Instruction to read from or write to a sl
151. ompare Instructions Compare instructions allow you to compare values using a specific comparison instruction When using compare instructions you must compare values of the same data and display type The parameters you enter are program constants or logical addresses of the values you want to compare Compare instructions perform comparisons of two addresses Opr1 and Opr2 defined by the data box selected When the processor finds the expression is true the power flows through these instructions Opr1 Operand 1 Opr2 Operand 2 Adding Compare Instructions To add Compare Instructions perform the following steps 1 Click on any Compare instruction icon on the right side of the screen 2 Position the mouse over the Ladder diagram and click the mouse to place the instruction 3 To enter Data Display types double click the instruction to open its Dialog box 4 Select a proper Tag name address from the drop down list for Operand 1 5 Select a proper Tag name address from the drop down list for Operand 2 6 Choose the correct data format from the last drop down list on the dialog box 7 Data types for both Operand 1 and 2 must be the same Note 1 Data of five different types SIGNED INT 16 SIGNED INT 32 UNSIGNED INT 16 UNSIGNED INT 32 or FLOAT 32 is allowed 2 Word Data Types default to decimal display type 3 UNSIGNED Data Types also allow Hex and Octal displays 4 Display Type allows you to select how the
152. on EZPLC 6 3 PID Parameters PID Setup 6 4 PID Terminology 6 2 PLC Tool Bar 2 9 Poll Time 2 40 Position Algorithm 6 3 Positive Contact 3 11 Power Flow 3 33 Preset High 4 5 Preset High AND Counter 1 A Input 4 5 Preset Mode 4 5 Preset Step 3 65 Preset Value 4 5 Preview 5 8 Print 2 4 2 13 Print Setup 2 13 Process Variable 6 2 6 5 Process Variable PV 6 11 Process Variable PV Tag 6 5 Production amp Reject Rates 5 11 Profibus 2 43 Profibus Slave 2 41 Programming Ladder Logic 1 7 Program Control Instructions 3 47 Program Control Instructions Menu 2 24 Program Control Operations Tool Bar 2 7 Project Explorer View 1 7 Project Name 1 5 Project View 2 3 2 4 Project Window 2 19 Proportional 6 2 Proportional Gain 6 8 6 12 Protocol 3 56 Pulse and Direction Counting 4 4 PVn 6 3 PV Square root 6 3 Q EZAutomation www EZAutomation net Quadrature Counting 4 4 Quadrature x1 4 4 Quadrature x2 4 4 Quadrature x4 4 4 R React time 6 3 Read EZ Tags 2 33 Read Program from EZPLC 1 5 Reboot 2 26 Receive FromSerial Port 3 57 Redo 2 4 Register Discrete address 5 2 Relay Boolean Instructions 3 9 Relay Boolean Instructions Menu 2 23 Relay Boolean Operations 2 5 Rename 2 20 Reset Coil 3 13 Reset Input Bit 3 45 Reset Input Bit for Retentive Timer 3 42 Reset Tag 3 65 Return Statement 3 49 Right Click Menus 2 49 RLL Instructions in EZPLC 3 5 Rotate Left 3 32 Rotate Right 3 32 Rung Edit Area
153. opyright manufacturer and version number of the EZPLC Editor Programming Software About E2PLOE Ita t x EL Erdutomaton a d rian of AG Copynght C 2005 Version 1 0 60 www EZAutomation net 1 877 774 EASY Chapter 2 EZPLC Editor User Interface 240 2 5 11 Right Click Menus In addition to the drop down menus mentioned earlier in this section there are two more menus available to give you more options while working with your EZPLC Editor They can be accessed by right clicking in two different areas in the Main Programming Screen The first menu can be accessed by right clicking in the rungs area of the Main Programming Screen Fxample lad Main Logic Main Logic A E C D E F G H I When you right click in the Rung area in the square above the following menu will appear Insert New Rung Insert Rows d Delete Row Cut Cbrl Copy CirlH4C Insert Copied Runqs Skriv Delete Del Insert Label Gomment Edit Label I Comment alear Label alear Ganmnent Delete Label Comment Show Label Comment Through this menu you can access the following functions Insert New Rungs Insert Rows Delete Rows Cut Copy Insert Copied Rungs Delete Insert Label Comment Edit Label Comment Clear Label Clear Comment Delete Label Comment and Show Label Comment EZAutomation www EZAutomation net 1 877 774 EASY 250 Chapter 2 EZPLC Editor User Interface EZAutomation The second menu can be accessed b
154. or cut and paste objects or drawings between screens The title bar is grayed out in screens that are not currently active 2 5 10 Help Menu Help Topics Help Topics Click on Help Topics to view the help topics for the EZPLC Editor Programming Software The help window is in Windows 2000 format Use the Contents tab to view help topics by category Click on the Index tab to view an alphabetical list of all help topics Click on the Search tab and enter a word or words to search the help topics for File Edit Bookmark Options Help KL Contents e Inde fi Search Welcome Br EPLE Help Vacone tothe EFCC Bror Help sstem EZPLC Btor progrsmeng eofhe ans pA Getting Started an be set for Raay Ladder Logic FLL programming of BZA uometion s FIRLC Mane EZTauchPLC and EITsxtFUC fante oi modis ca Tobar s a Installation I Iring fk Manene ard Troubleshooting I Ky FLL Inst roctiores E BLL Instructions in EIFLE Laddar Logic Programming in EZ Relay Gookesn Conpara Hath EZPLC M BY BT BDH ia Hove Timer Counter Program Control String Comm udi cat or EE i 8 Introductian bo Crum brett u H A EDITOR B Adding Brum Instruction Mota Since bus aihor sliows pou bo oregram av of E2d aomata s ALE E Drum Instruction Details Tah Erodes sA EERE Je Hade de RIGS eae AS fa p GOE S Bii EZO C EZ7ouchPLG a EZ 70 S LE ODE 3 i About EZPLCEdit Click on About EZPLCEdit for c
155. or sending ASCII data to communicate with external devices Adding Communication Instructions To configure String instructions perform the following steps 1 Click on the Communication instruction icon on the right side of the screen 2 Position the mouse over the Ladder diagram and click the mouse to place the instruction 3 Double click the instruction to open its dialog box BOTE anma uae por charmebess jn eter pax ve Adding Open Port Instructions To configure the Open Port instruction perform the following steps 1 Enter the specified characters 2 Select a Baud Rate using the drop down list 3 Select a Parity value None Odd or Even using the drop down list 4 Select Data Bits 7 or 8 using the drop down list 5 Select Stop Bits 1 or 2 using the drop down list 6 Select a Protocol None Xon or Xoff using the drop down list Enter Optional Parameters 1 Enter Send Start Characters in the Start Characters field up to 4 characters 2 Enter Send End Characters in the End Characters field up to 4 characters 3 Enter Receive Start Characters in the Start Characters field up to 4 characters 4 Enter Receive End Characters in the End Characters field up to 4 characters EZAutomation www EZAutomation net 1 877 774 EASY Chapter 3 Programming EZPLC 355 Adding Send To and Receive From Port Instructions To add the Send to Port and Receive From Port instructions perform the following steps
156. ormats supported UNSIGNED INT 16 AND DISCRETE In the example above the timer is an ON timer with 0 001 s time base The preset value is R4 and accumulated value in R5 If R5 1000 then once timer is enabled power flows to it it will timer for 1000x0 001 1s then power will flow out of it energizing the fan www EZAutomation net 1 877 774 EASY 344 Chapter 3 Programming EZPLC 3 3 Counter Instruction When called the Counter instruction will count up or down by increments of one until the counter reaches the data value of the Preset Value register The counter will then allow power flow through the rung Adding Counter Instruction To configure the Counter instruction perform the following steps 1 Click the Counter instruction icon side of the screen 2 Position the mouse over the area on the Ladder diagram where you want to insert the Counter instruction and click the mouse to place it 3 To enter Preset Counter types double click the Counter instruction to open its dialog box Counter Instruction Counter Preset Value Tag Name vi tatic Constant Counter Register x Register at next address is automatically used as Status Register for the counter Status Register Bit 15 Counter Output Status Status Register Bit 14 Counter Enable Status 4 Check the box for desired Counter Action Up or Down 5 Select a proper Tag name address from the drop down list for the Cou
157. osition math equation or a Velocity math equation as shown on page 6 3 Sample Rate Enter the desired Sample Rate in this field The Sample Rate is seconds and can be changed from 0 05 to 99 99 seconds NOTE All numeric fields in this dialog box use Implied Decimal points So to enter 0 05 you simply enter 5 the EZPLC assumes two digits after the decimal point for most of the numeric entry fields except where noted Setpoint Enter the Setpoint in this field This is the Setpoint used in the PID Loop calculation The Setpoint is the desired process level Proportional Gain Enter the Proportional Gain in this field This is the gain of the proportional term of the PID equation The valid range is 00 00 to 99 99 Setting this to zero removes the proportional term from the PID equation NOTE The decimal point is implied For example 125 is 1 25 Default is 1 00 Integral Reset Time Ti The units for this time are in seconds The Valid range is 00 00 to 6000 0 This along K and T controls the integral term Setting it to zero removes the integral term from the PID equation NOTE The decimal point is implied For example 125 is 1 25 seconds Default is 0 3 In this case ONLY ONE DIGIT after decimal point is implied So 125 in this field means 12 5 Derivative Rate Time T Enter the Derivative Gain in this field This along with T and K makes the coefficient of the derivative term The units are i
158. ove 2 3 8 String Operations 2 3 6 Timer Counter Operations The String Operations Toolbar consists of icons for all The Timer Counter Operations Toolbar consists the instructions available for String Operations These of icons for all the instructions available for Move commands are also found in and accessible from the Operations These commands are also found in Main Menu gt Instructions and accessible from the Main Menu gt Instructions All the icons for instructions shown in this section will be All the icons for instructions shown in this section described in detail in Chapter 4 RLL Instructions will be described in detail in Chapter 4 RLL Instructions TB T TE TMA CNT String Move TMA Timer T String Compare CNT Counter T String Length EZAutomation www EZAutomation net 1 877 774 EASY 28 Chapter 2 EZPLC Editor User Interface 2 3 9 Communication Operations The Communication Operations Toolbar consists of icons for all the instructions available for Communication Operations These commands are also found in and accessible from the Main Menu gt Instructions All the icons for instructions shown in this section will be described in detail in Chapter 4 RLL Instructions H gt 0 89 DI 7 Open Port 220 Send to Serial Port Receive From Serial Port mu Close Port Send to Marquee mu Modbus Master 2 3 10 Miscellaneous Operations The Miscellaneous Operations Toolbar consists of i
159. ow Use this function to delete excessive rows from a RUNG You must select a RUNG from where a row is to be deleted If Logic exists on the row being deleted it will prompt you with the following message EzPLCEdit x Row is not empty can not be deleted Cut Click on Rung gt Cut for cut and paste functions for RUNGS present in ladder logic Before you apply this function you must select the desired RUNG which is to be Cut Once RUNGS are cut using this function they can be pasted into the desired location using the Insert Copied Rungs function Copy This function is used to Copy the selected Rungs present in ladder logic Once copied they can be pasted using the Insert Copied Rungs function Insert Copied Rungs This function is used to paste RUNGS that have been Cut or Copied using the Cut and Copy functions in the Rung menu Delete Use this function to delete the selected rungs from ladder logic Insert Label Comment Use this function to insert Label Comment for a RUNG whose label and or comment were deleted using the Delete Label Comment function Edit Label Comment Use this function to add Labels and Comments for individual rungs Labels are useful when using the Jump instruction which allows you to skip RUNGS and go to the one specified in Jump instruction Clear Label Can be used to clear label of an individual RUNG www EZAutomation net 1 877 774 EASY Chapter 2 EZPLC Editor User Interface 22
160. ow Full Tag Mames Undo Redo The Undo command is used to reverse the previous action This function must be performed next in order for the action to be undone The undo command goes back sixteen levels of undo Redo will redo the previously undone action Cut This allows you to Cut remove a selected item s to the clipboard Copy This allows you to Copy without removing a selected item s to the clipboard Paste This allows you to Paste a selected item from the clipboard onto the displayed screen Select All Click on Select All to select all items on the displayed screen Delete Click on Delete to remove a selected item without placing it on the clipboard Edit Select an object and then click on the Edit command to make changes to an object s instruction s characteristics www EZAutomation net 1 877 774 EASY EZAutomation Chapter 2 EZPLC Editor User Interface 205 Toolbars Click on Toolbars to see the available menus where you can click on the desired toolbars to be displayed on the toolbar section of the main screen Edit Multiple Toolbars v Relay Boolean Operations v Compare Operations v Math Operations vw Bitwise Operations vw Move Operations v Timer Counter Operations _ Program Controller Operations w String Operations v Communication Operations vw Miscellaneous Operations w PLC vw Project View Standard Toolbar vw Operators Bar When Edit Multiple Toolbars is sele
161. ow power flow through the element Program Control Instructions Jump Skips the rung containing Jump instruction after execution of the rung to a rung with the label specified in the JUMP instruction and continues executing the program thereafter For Loop Executes the logic between the FOR Loop and NEXT instructions by the data value of Loop Count register Next Statement Specifies the return end point for the FOR Loop instruction Call Subroutine Calls a Subroutine specified by the label in CALL Subroutine instruction and is terminated by the RETURN instruction Return Terminates a subroutine and returns back to the main logic String Move Moves the data value string type of Source register to Destination register by the number of characters specified by the user String Compare Allows power flow through this element if the data value string type of Source1 register is Equal to Source2 register by the number of characters specified String Length Computes the length of a null terminated String register string type and stores the result in Save Length in register EZAutomation www EZAutomation net 1 877 774 EASY Chapter 3 Programming EZPLC RLL Instructions Table continued Instruction Description Communication Instructions Open Port Opens the serial port for communication using the parameters specified by the user Send to Serial Port Send an ASCII string data from
162. pares the actual Process Variable against the Setpoint and generates an Error value The PID algorithm uses this error and computes a Control Variable as a function of the error The computation function contains P I and D terms with user defined coefficients The PID algorithm s goal is to minimize the error If the Setpoint changes or the process is disturbed resulting in a change in the Process Variable a new error value is generated which results in a new Control Variable that should bring the Process Variable closer to the Setpoint PID Terminology Before we discuss more of the details involved with the PID Loop you should have an understanding of some of the terms used in PID Manufacturing Process A process that transforms a material s properties The transformation may involve physical or chemical changes in the material Examples of processes are Steam Generation Air conditioning Milk Pasteurization Oil refinement etc Process Variable Materials that have physical measurable properties such as temperature volume viscosity pressure etc A Process variable is a measurable physical property that we want to control For example in the air conditioning of a building we want to control temperature and therefore temperature is the Process Variable Setpoint Value The target or desired value of the Process Variable The www EZAutomation net 1 877 774 EASY Note There are options in the setup that will modify t
163. ping frequently used instructions together into a separate ladder logic Subroutine Logic is very similar to Main Logic with two main differences subroutine ladder allows you to use the Return instruction and subroutine logic needs to be called by either the Main Logic or another subroutine via the Call Subroutine instruction in order to be activated EZPLC allows a maximum of 64 subroutines to be defined EZAutomation www EZAutomation net 1 877 774 EASY 220 Chapter 2 EZPLC Editor User Interface EZAutomation 2 5 4 Subroutine Menu Subroutines have two main uses One you can write some commonly used functions once and use those multiple times within the main logic by calling the subroutine Second you can use subroutines to write modular logic You can have multiple subroutines within a project You can call a subroutine from another subroutine Such nested calls can not exceed 16 levels deep When you click onto the Subroutine Menu you can access the following functions Subroutine Rung Add RENAME Delete Add Use this function to add a Subroutine as shown in following screen xj Add Subroutine Rename This function can be used to rename an existing subroutine as shown in the following screen Rename Subroutine xi r Rename Subroutine Select Subroutine Demo Subroutine v Rename subroutine to Valve Opening Sequence Rename Subroutine Cancel Delete This function ca
164. ptions I O Configuration Ethernet Setup Device Metwork PI Upgrade Firmware Message Database Tag Database Tag Database allows you to view and add edit current and new Tags memory addresses of your corresponding PLC Click on this function to display the following screen x TT Search and Replace in Tag Name Tetal Tags 14 I Highight Unused Tagi Find Reglace Wih nd New Heploce 1 n DISCRETE i 2 01 DISCRETE 01 3 OISCRETE DISCRETE 1 4 SIGNED INT 16 SIGNED ANT 16 Ri 5 Ri UNSIGNED INT 16 Ri 6 R2 UNSIGNED_INT_16 R2 7 SIGNED INT 32 SIGNED INT 32 R2 8 UNSIGNED INT 16 UNSIGNED INT 16 R3 3 UNSIGNED_INT_32 UNSIGNED_INT_32 R 10 80D_INT_16 BCD INT 16 RS 1 SD INT 8CO_INT_32 RS 12 FLOATING PT 32 FLOATING_PT_32 R7 13 ASON STRING ASON STRING A3 14 01 DISCRETE 01 As shown in the above screen it will display all the Tags that have already been entered for your PLC Clicking onto the Add Edit button will display the following screen x Tag Mame Tag Datatype DISCRETE of Characters pH intial akse mmal Viste www EZAutomation net 1 877 774 EASY Chapter 2 EZPLC Editor User Interface 231 As shown in the Add New Tag Details screen you can add the Tag Name Tag Data Type and Address for the Tag that is being created You can also specify the Initial Value of the Tag that is being added where the Initial Value is the value that the PLC assumes for this particular Tag
165. r at End at Total Bytes Total Bits Type fi 7 fo fo E E Map to Network Mens Anes Read From PLC Starting at Offset 0 Bit Number Omb Ending at Offset I BaNunber 1 aa The Add Map Entry box as shown above is used to allocate the memory information of your corresponding PLC to the input and the output words of the Profibus Salve network Under PLC Address you can enter the type of PLC Tags to be shared over the network along with starting and ending addresses as shown below EZPLC Address Start at nd at Total Bytes Total Bits mraf C r Under the Type pull down menu you can select from any of the PLCs registers defined in the Tag Database as shown below a pos 00 m mb 4 www EZAutomation net 1 877 774 EASY EZAutomation Chapter 2 EZPLC Editor User Interface 245 Map to Network can be used to specify an offset if desired as follows Map to Network Memory rea Read From PLC Starting at Offset fo BitNumber Olsb gt Ending at Offset fo Bit Number fio Once all the selections have been filled as per your specifications click OK to add the mapping as shown below sb xj Network Type Network Memnon Map Mans memo aeea gt Fead From PLE 1 Oset 13 14 Cei re EIE tak i al ey fm OF Cancel Help Similarly map all the desired memory locations of your PLC to the input and output words of the Profibus network
166. r is displayed on EZMarquee provided that SD5 is set System Discretes The Message Controller function uses a few discrete system bits to manage the message display The table below summarizes the functions of the System Discretes SD5 SD8 Message Enable Read Write Baud Rate Read Write SD7 Read Only Message Number not found 1 Enables message controller function 0 Disables message controller function 0 Default 9600 Baud 1 38400 Baud 1 Message number in SR20 did not match any message in database Message defined as default is sent 0 Otherwise 1 Message controller busy processing a message SD8 Message Read Only Controller Busy 0 Message controller function is free Message Number Register SR20 EZPLC looks up the message that matches this number Ladder Logic moves messagef in this register EZAutomation Message Database Number The operation of the Message Controller is shown in the diagram below Marquee ay sits Message The looked up message is transferred on the serial port to EZMarquee 1 877 774 EASY www EZAutomation net 54 Chapter 5 Message Display on EZMarquee EZAutomation 5 2 1 Message Database As mentioned earlier the Message Database holds all the messages to be displayed Click onto the Setup Menu and select Message Database to define all your messages Messages can have embedded variables which enable you t
167. r1 at memory location Bbbbb respectively Send to Serial Port This instruction can only send out the specified ASCII string if the corresponding RS422 port has been already opened by the Open Port instruction in advance If the serial port has not been initiated the Send to Serial Port instruction will not send the ASCII string to the specified port Start and End characters can also be sent along with the ASCII string being sent out from the Src register You can specify Start and or End characters to be included along with the ASCII string The starting and ending characters are specified in the Open Serial Port Instruction Receive From Serial Port pa When power flows through this instruction RECU r the Receive From Serial Port instruction will 4 p receive an ASCII string from the serial port and 56 store it in Dest at memory location Aaaaa The Receive From control and character count used for receiving Serial Port the ASCII string is specified by Cnt at memory location Ccccc and Ctr1 at memory location Bbbbb respectively This instruction can only receive the specified ASCII string if the corresponding RS422 port has been already opened by the Open Port instruction in advance If serial port has not been initiated the Receive from Serial Port instruction will not receive the ASCII string Start and End characters can also be received along with the ASCII string being received You can specify Start and or End
168. racters in the beginning and or ending of every command that is sent out using this port The 4 characters must be separated by a comma Receive Character Sequence can also be used to verify a maximum of FOUR characters in the beginning and or ending of every command that is received using this port The 4 characters must be separated by a comma You can also specify to make the Receive Character Sequence the same as the Send Character Sequence If HEX values are used for the two sequences two characters must be used to specify 1 HEX value No Protocoll Protocol In the above example if S4 is on the port will be opened with the parameters shown in the instruction Please note that the Port command is executed ONLY once every time S4 changes state from 0 to 1 www EZAutomation net 1 877 774 EASY Chapter 3 Programming EZPLC Close Port When power flows through this element the Close Xe Port instruction closes the serial port previously oe opened for communication by the Open Port Close Por instruction Once the port is closed it cannot be used unless it is re opened by the Open Port instruction Send to Serial Port a When power flows through this element the tib x Send to Serial Port instruction will send an 4 af ASCII string present in Src at memory location 55 Aaaaa to the RS422 port The control and character count used for sending the ASCII string is specified by Cnt at memory location Ccccc and Ct
169. rect value to the config register The following table describes the choices and the resulting actions www EZAutomation net 1 877 774 EASY Chapter 4 Configuring I O Modules EZAutomation Others Except B Type Usetowvaue o ms 4 2 2d Config Value The Config Value is the value written to the config output register Each thermocouple input is configured via its config register The Config Value Display Format option allows you to display this config value in either decimal or hex The actual config value depends on the selections made for the type unit and report error as shown in the following table 4 2 3 Wiring Information www EZAutomation net 1 877 774 EASY Message Display on EZMarquee In this chapter e Message Display on EZMarquee e Message Controller Function Message Database Message Number Register System Discretes Add Edit Message Number Marquee Address Display Message at Position Select Reset Before Display Mode Select Message Effects Message Text Preview Communication Setup Displaying Messages Example Valid ASCII Commands NOTE This feature requires firmware revision B 0 or later To view the firmware revision of the connected EZPLC click onto the EZPLC Menu and select Information 52 Chapter 5 Message Display on EZMarquee 5 0 Message Display on EZMarquee Prod 2345 RS422 Port RS422 Port For wiring information please
170. rocessing a message You should not change the Message Number register when SD8 is 1 Busy otherwise part of the previous message may be lost Once a message has been sent to the marquee it is not sent again until one or more of the following conditions occur 1 SD5 is disabled and enabled again 2 The value of the register s embedded in the message changes If the embedded register value changes the message on EZMarquee is refreshed The table below summarizes the functions of System Discrete SD5 SD8 SD5 Message Enable Read Write 1 Enables message controller function 0 Disables message controller function SD6 Baud Rate Read Write 0 Default 9600 Baud 1 38400 Baud D7 S Message Number Read Only 1 Message number in SR20 did not match any message in database not found Message defined as default is sent 0 Otherwise SD8 Message Read Only 1 Message controller busy processing a message Controller Busy 0 Message controller function is free EZAutomation www EZAutomation net 1 877 774 EASY Chapter 5 Message Display on EZMarquee m m m m 5 2 4 Example FRUDULTTUN RATE lad Assume that the EZPLC is controlling a machine that makes AAR parts We need to display Production and Reject Rate RE JEL T RATE aia available in tags Production Rate R50 and Reject Rate R60 respectively as shown in the marquee image to the left Logic also allows for a Machine Down message Machin
171. rom the Select Module drop down list The Counter Module uses 21 contiguous Output Registers OR and 5 contiguous Input Registers IR Select the starting Input and Output registers The Editor automatically computes the end addresses To start configuring the 1 Counter module click the Click to define setup parameters button IO Configuration E N x Select 10 Modules and Location Select E PLE 170 Base E Modules E2Px 32 v Fann Edit 10 Module Data x Address A ange Start Address End Address Input IRS IF Output ort 0R2 Click to define setup parameters Apply Changes Close Move Up fra EZAutomation www EZAutomation net 1 877 774 EASY Chapter 4 Configuring I O Modules 4 1 2 Configuring the Counter Counter module configuration x Counter Output Register Information Input Register Information Count Mode Quadrature Counting PULSE and Direction Counting Quadrature x1 Count Input on direction on B Quadrature x2 Count Rising Edges C Quadrature x4 Count Both Edges Preset Mode Load Preset value when Preset Input is High On tising edge On falling edge Preset High AND rising edge of Counter 1 input Counter config register base 20 Bits b to bb Isb control preset mode Counter Config Register base 20 Bits b2 to bO Isb control count mode Address for 21 Bits b2b1b0 ooo Set Point 1 O
172. rors See below for defined bits RTC Day 1 Sunday 2 Monday 7 Saturday SR19 Read Write Update Clock In Ladder Logic ONLY Set to 1 to update internal clock with the values in these registers If setting time from a computer or HMI DON T write to this bit SR20 MSG_NUM The message number to be displayed if valid A message number not defined in the message database is not a valid message and therefore the default message will be displayed The PLC reports its errors in two system registers SR8 and SRY SR8 uses bits for indicating errors while SR9 uses values to indicate the same errors When these errors occur the PLC halts the execution of ladder logic but continues to communicate So an HMI can be used to detect these errors When PLC halts execution of ladder logic the outputs are disabled PLC stops executing ladder logic if error detected PLC stops executing ladder logic error detected System Error Either FOR without NEXT or NEXT without FOR EZAutomation www EZAutomation net 1 877 774 EASY Chapter 3 Programming EZPLC 3 3 RLL Instructions in EZPLC This section provides you with detailed information about using the RLL Relay Ladder Logic instructions in EZPLC This set of 55 instructions is adequate to develop some of the most powerful control programs and at the same time it s concise enough to provide the shortest learning curve Each of the following sections is dedicated to a type of instruct
173. s EZAutomation arrene fre p ms Sieira prg kenia IC S ite hjelp oop i be I Pes so a a ec e ee ee NE TG S23 Pee ot H ke ieee SSO e R Be en ll joe ee ae a AG BRT G T DOG bh Fey hu de Chapter 1 Getting Started 1 3 1 Programming Ladder Logic Once you make your selections in the first dialog box and click OK you will come to the main programming screen as shown below Tool Bars Tool bars provide quick and easy access to instructions and other editing functions Minin Legit i P Instructions Easy access to Instructions Symbols conveniently organized in categories Click on a symbol and place in Rung area Use the Line tool to connect symbols T rset a To program a rung perform the following steps 1 Select instruction You can select instructions using a menu or tool bar or the instruction bar on the right The instruction bar provides all instructions symbols organized by types Once you select an instruction the cursor changes shape Click on the location in the rung area where you want to place the instruction E a Connect all placed instructions by using the Line tool l Double click on any instruction to program its parameters At any time you may Syntax check the logic by selecting View gt Syntax Check current Logic Once you are satisfied with the Ladder Logic you can transfer the developed project to the EZPLC
174. s you can see the current state of memory locations and make appropriate changes The EZPLC must be in PROGRAM or RUN PROGRAM mode for on line editing EZAutomation www EZAutomation net 1 877 774 EASY 18 Chapter 1 Getting Started Step 2 Select Project Name Enter the name of the project The Project Location field indicates the folder name where the Project will be saved If need be use the Browse button to select a different Project location x Step 3 Selecting and Configuring I O Base Select UO Modder and Location You can do this later when you start programming Select EZPLC L D Bae Select the I O base for your PLC Currently EZPLC offers I O bases for 4 6 8 and 12 modules EZText PLC and EZTouch PLC offer only 4 or 8 module bases depending on the model After selecting the I O base size Click on the Configure I O button to define the placement and the addresses of the I O modules See dialog box on left 4 Modules ESPs 22 The Module slot positions are identified as M1 M2 M3 etc on the I O base The dialog box shows only the available module positions for the selected I O base For example a 4 module x jagga base will show only M1 M4 positions while a 6 slot base will Select Module 1 a display rows M1 M6 Addess Range Start Address End Addes To configure a module on a position double click the row wa po g corresponding to the position number say M1 or click the Add au een fall E
175. scription Move Instructions Move Data Moves data value of Source register to Destination register Bit Move Moves either words to bits or bits to words with user specified length for the number of words to move Maximum of 16 words can be moved at a time Move Block Moves a block of memory area Source register defines the starting area of memory address register to Move from and Destination register defines the starting area of memory address register to move to The number of elements to move is user defined Block Fill Fills a block of memory area Source register defines the data value to Fill with and Destination register defines the starting area of memory address register to Fill to The number of elements to move is user defined The number of elements to Fill is user defined Move Table of Loads a table of user defined constants to a consecutive memory register locations with the starting Constants memory address register location defined by Destination register Timer Counter Instructions Timer This instruction starts timing when called and once it reaches the preset value as defined by the data value of Timer Preset Value register it will stop timing and will allow power flow through the element Counter This instruction starts counting either Up or Down by the increments of one until the counter reaches the data value of Counter Preset Value register The Counter will then all
176. set bits and or modify values in associated bits and or registers EZPLC supports several types of memory elements please see the hardware manual for a description of these The tables below summarize various memory types and the ranges for each Discrete Inputs Read Only 1 128 For physical Discrete inputs Input Image table see below Discrete Outputs Read Write 1 128 For physical outputs Output Image table see below Register Internals System Registers Index Registers Data value of R register as pointed by XR register Read Only Read only System bits Read Only 1 64 For Input modules providing register type information such as counter module analog input module Read Write 1 64 For output modules providing register type information such as counter module analog output module Read Write 1 8192 General purpose internal registers 1 20 System Register some read only some read write f See Below Read Write Read Write S SD SR XR For indexed addressing R a A Value of a register pointed to by corresponding index register e g if XR1 has a value of 20 and R20 has value 100 then R1 will have value 100 the value in register pointed to by XR1 These types are used only with the Move Block Move Data and Block Fill Instructions What is Image Table EZPLC first reads INPUTS and stores them in its internal Image Table Then it executes the logic where any reference to Inputs Outputs mad
177. sooner Use PV Square Root If this option is selected Square root of PV is used instead of PV in error computation Saturation This line is for information only This line shows the address of the discrete bit that would be set if the Control Variable is saturated i e if the Control Variable is either 0 or 4095 You may use this in ladder logic to monitor the saturation of control variable www EZAutomation net 1 877 774 EASY Autotune Settings Start Autotune Autotune Status Timeout Time fin sec 600 Tuning Type PD CP Discrete Base 4 55 Base Reg 12 R13 Base Reg 13 R14 Discrete Base 5 S6 0 PID 1 FI NOTE Autotune is performed by EZPLC observing open loop response to a step change in the control value Before starting autotune the process should be in a steady state During Autotune watch the process variable closely for it to be within the safe limits EZAutomation Chapter 6 PID Loop Autotune Setup The EZPLC can autotune PID loops i e it can estimate the values for the Proportional Gain Integral Reset time and Derivative Rate time for PID loop The dialog box allows you to setup the loop for autotune EZPLC uses Ziegler Nichols method to estimate the PID parameters Following are the setup parameters for Autotune Start Autotune Shown on the dialog box for information only The Start Autotune discrete is at Discrete Base 4 EZPLC initiates autotuning of a loop when
178. ster value is set to 0 and the power flow through it stops A B C aaaa bbbb cecce Discrete Inputs Discrete Outputs O Discrete Internals a ae Register Internals R 1 8192 Allowed Data Formats UNSIGNED INT 16 UNSIGNED INT 32 S Input Registers IR 1 64 Output Registers OR 1 64 STEP PRESET Pre Rd CHT 015 In the example above the counter is a 16 bit UP counter U16 Once the count value Preset value the power flows out of the instruction www EZAutomation net 1 877 774 EASY Chapter 3 Programming EZPLC 3 3 8 Program Control Instructions Use the Program Control instructions to alter the sequence of Main Logic Program scan Adding Program Control Instructions To configure Program Control instructions perform the following steps 1 Click the instruction icon on the right side of the screen 2 Position the mouse over the Ladder Logic and click the mouse to place the instruction 3 Double click the Jump instruction to open the instruction s dialog box A Jump Instruction Select a proper Rung label from the drop down list Jump Label SEDED Select Label EE View Fara wth is Lobe NOTE Rung containing Jump instruction will be solved before executing Jump B For Loop Instruction Select a proper Tag name address from the drop down list for the Loop Count or enter a number in the Constant Value field FOR Instruction C Call Subroutine Instruction Sel
179. stmseeeseskskije djeanedne 2 20 20 9 RUNG MONU siressa ioa e a eiaa ianiai ds 2 21 2 5 6 Instructions Menu enerne cepncaedminancendepeeccsedenetuasnudaetanet dees 2 23 251 EPA Men Lee 2 25 56 SUM 2 30 2 5 9 Window MEL ansees ene detee 2 47 25 10 FAP MAL ai 2 48 2511 Right Click Men s sesruro as 2 49 EZAutomation www EZAutomation net 1 877 774 EASY ee Table of Contents Instructions for Programming EZPLC 3 1 LADDER LOGIC PROGRAMMING IN EZPLG rrnnnnrnnnnnvnnnnnennnnnevnnnnnvnnn 3 2 3 3 1 Relay Boolean Instructions rrrnnnrrvrnnnrvrnnnnnrnnnnnnvnnnrnvnnnrnnnnn 3 9 Adding Relay Boolean Instructions rrrrrrrrrrrnnnrrrvrrnrrrrennnnn 3 9 3 3 2 Compare Instructions saccciccinn sciceesiencesancusancseadciadesadncelssienbadseuuaieeadcbace 3 16 Adding Compare Instructions cccccccseeecsesseeseesesseeeees 3 16 3 3 3 Math Instructions canaiaccecaiaminnnetawandancedsauxccuadecntvacuaxennudensadanmunen 3 21 Adding Math Instructions samma diaden 3 21 3 3 4 Bitwise Instructions rrsnrrrnnnnvvnnnvvnnrvvnnrnvnnnnnnnnennnnennnnennnnen 3 28 Adding Bitwise INSTUCNONS sisisionsinciaieundiatendiensdiuiacmmuiveltdniind ds 3 28 3 3 5 Move INSIMUCTIONS siden 3 33 POWGT EEE EEE 3 33 Adding MOVE INnSTUCNONS Logsunmnomrnikdsdunennkanidne 3 33 3 2 MEMORY MAP is aedis 3 3 3 2 1 System NET nana naa ESEA EA 3 3 3 2 2 System Registers Lana rerent terenn terenn terenrrenerr renen 3 4 3 3 RLL INSTRUCTIONS IN E
180. t Icons View Status Bar Title Bar The title bar displays the software name and logo as well as the name of the project currently open Main Menu Bar This contains all of the drop menus available in EZPLC Editor Some of the menus are context sensitive so they are hidden or displayed based on context Project View This displays different elements being used in your current project The Project View can also be used as a navigational tool If you click onto an element in Project View it will be displayed in the Logic Display Window With EZPLC you can organize your logic in Main Interrupt and Subroutines You have only one main and one interrupt logic however you can have multiple subroutines Main Logic as the name suggests is the main logic of your control program You can place some of the functions as Subroutine Logic which is then Called from main logic You may want to use Subroutine to write some logic once and use at many places in your main logic by calling it or just to organize your main logic in modules The interrupt logic is a special logic section which is executed when an external interrupt occurs The purpose of interrupt logic is to provide a fast response to some time critical events You will need to use the Interrupt input module to trigger execution of Interrupt logic Status Bar This line at the bottom of the screen displays the status of the current project Instruction Icons This area contains all of
181. tall EZPLC Editor in another directory as specified in installation settings If you are familiar with the installation process you may skip the detailed instructions To Install Below are the detailed instructions for installing the software Just follow the instructions step by step to install EZPLC Editor on your hard drive 1 Run the Setup file You will see the dialog box below Press the Next button EPLE 1 0 66 Setup JO x Welcome to the EzPLC 1 0 66 Setup Wizard This wizard will guide you through the installation of EzPLC 1 0 66 It is recommended that you close all other applications before starting Setup This will make it possible to update relevant system files without having to reboot your compuber Click Next to continue www EZAutomation net 1 877 774 EASY Chapter 1 Getting Started er 1 0 senp Hook License Agreement 2 Please read the License Agreement text and continue Please review le boende Lerma before installing PLE 1 0 v Precs Page Dewn ba gee the rest of he agreement Putcterh Technologies LE A Hecdirank End User License Agreement HOTICE TO USER THES 15 ACONTRACT EY INDICATING YOUR ACCEPTANCE BELOW 3 The setup program will display the dialog box below to allow WOU ACCEPT ALL THE TERMS AND CONDITIONS OF THES AGREEMENT IF YOU DO f HOT AGREL WITH THE TERMS AND CONDITIONS OF THES AGREEMENT DECLME you to choose the installation folder As a default the
182. that would contain a message number masking the message number etc The Message Controller function is easier to use and for most of the applications it will be more than adequate The rest of this chapter will focus on the Message Controller Function 5 2 Message Controller Function We recommend that you use either the Send to Marquee instruction or the message controller feature but not both However if you choose to use both methods in the same program make sure that the messages are properly triggered and that the two methods are not fighting to send messages at the same time The message controller in the EZPLC consists of the following Register Discrete address in parentheses AMessage Database Message Number System Register SR20 Message Enable System Discrete SD5 Select Baud Rate System Discrete SD6 Message Number Not Found System Discrete SD7 Message Controller Busy System Discrete SD8 www EZAutomation net 1 877 774 EASY OORUN Chapter 5 Message Display on EZMarquee losa Message Database as SR20 Message Number Register Message Database The Message Database holds all messages that you may want to display Each message has a unique identifying number To display a message the corresponding message number is moved to message register SR20 Message Number Register SR20 is defined as the Message Number Register The message corresponding to the value in this registe
183. the Image Table If the corresponding Normally Open input state is ON 1 power will flow through this element All Immediate Input the available inputs on corresponding module are read only The Image Table is also updated with the read input memory locations Normally Closed Immediate Input The Normally Closed Immediate Input instruction reads n examines the status of the specified Input point at location z Aaaaa directly from the EZIO module at the time of execution Bil and NOT from the input memory bit present in the I O scan image If the corresponding input state is OFF 0 power will Normally Closed flow through this element When Aaaaa corresponds to an EZIO input Immediate Input module all the available inputs on the corresponding module are read only The Image Table is also updated with the read input memory locations A Normal PLC scan consists of Memory Data Type reading inputs and saving the input status in memory or input image table solving ladder logic Discrete Inputs 1 128 and writing outputs from memory or output image table During a Allowed Data Formats Discrete Only logic scan if a reference to an input comes up the value stored in memory is used for that input Similarly if logic needs to energize an output a corresponding memory bit is set which is later written to E0 STO E ST OP the physical output during the I O ir scan phase IS 08 In the example above when instruction i
184. tion net 1 877 774 EASY EZAutomation Chapter 3 Programming EZPLC osa 3 3 3 Math Instructions The instructions listed within this chapter perform arithmetical operations on user specified values or addresses All Math Instructions are always TRUE that is power flows through them Adding Math Instructions To configure all of the various Math instructions perform the following steps Click on any Math instruction icon on the right side of the screen 2 Position the mouse over the Ladder diagram and click the mouse to place the instruction 3 To enter Data Display types double click the instruction to open its Dialog box Add Instruction o VO rik 2 Operand 1 Opr1 Tag Name Data Type Operand 2 Opr2 TagName R3 Constant moesman Save Resut in Res Display all values in Decimal 4 Select a Tag name address from the drop down list for Operand 1 5 Select a Tag name address from the drop down list for Operand 2 6 Select a Tag name address from the drop down list for Result 7 For Absolute X Y Conversion and Binary Conversion instructions select Source and Destination Tag names addresses 8 Choose the correct data format from the last drop down list on dialog box 9 Data types for all Operand 1 Operand 2 and Result must be the same Source and Destination for Absolute and Conversion instructions www EZAutomation net 1 877 774 EASY 32 Chapter 3
185. tion www EZAutomation net 1 877 774 EASY 366 Chapter 3 Programming EZPLC This page intentionally left blank EZAutomation www EZAutomation net 1 877 774 EASY Configuring I O Modules In this chapter e Configuring the High Speed Counter Modules Selecting Counter Module Configuring the Counter Wiring Output Register Information Input Register Information Closing e Configuring the Enhanced Thermocouple Module Selecting Enhanced Thermocouple Module Configuring the Thermocouple Wiring 42 Chapter 4 Configuring I O Modules 4 1 High Speed Counter Modules The EZPLC offers 2 models of High Speed counters one with one 24 bit counter and another with two 24 bit counters The counters accept input from quadrature encoders and offer features to multiply counts by 2 or 4 In addition modules offer programmable set points and outputs to create high speed Programmable Limit Switch type outputs e EZIO 4HSCM1 High Speed Counter Module with Two Counters e EZIO 4HSCM2 High Speed Counter Module 4 1 1 Selecting Counter Module with a Single Counter After starting the EZPLC program select Setup gt lIO Configuration Choose the correct number of IO modules from the Select EZPLC I O Base drop down list Double click in the empty Module Type box that is next to the position number where you would like to place the module The Edit IO Module Data dialog box will open Select the High Speed 1 Counter Module f
186. to names Help Cancel Nest As shown in the example screen you can decide which pre existing project is to be used for copying and adding the Tag information to the existing Tag Database Click on the Browse button to select the directory and the name of the project to be utilized for copying the Tag information as shown below Open Project E 2 x ion Filer ol hype fEPLE Projects lad Cancal zi As shown in the Read EZ Tags screen you also have the option to select the action in case the Tag being copied to the Tag Database already exists Export Tags Click on this function to expand this menu as shown below Comma delimited To Excel When Comma delimited is selected this function exports all the Tags in the Tag Database into a CSV file as specified by the user in the following screen nn www EZAutomation net 1 877 774 EASY Chapter 2 EZPLC Editor User Interface 2 35 When To Excel is selected this function automatically opens Excel software on the programming computer and exports all the Tags in the Tag Database as shown below Ei Microsoft Excel Book IG Ele Edt wew Insert Format Tools Data Window Hep DF SYGRV 4BB Slo SIE HU Am Oiaatwas Arial 3 BIT ESEA Sx Bm HH dyr Se ni DO y BE SS eh ADORESSEXP OF CHARACTERS INITIAL VALUE RETENTIVE FLAG PLC ANTEXP WRITE TAG TAG DATATYPE it DISCRETE n PLCI DISCRETE Ot 4 NO PLCI DISCR
187. tor and control the status of bits in the PLC The bits that can be monitored controlled by using relay instructions are inputs outputs internal bits and system bits Adding Relay Boolean Instructions To configure all of the various Relay Boolean instructions perform the following steps 1 Click on any Boolean instruction icon on the right side of the screen 2 Position the mouse over the Ladder diagram and click to place the instruction 3 To enter the Tag name address double click the instruction to open its Dialog box 4 Select a proper Tag name address from the drop down list called Tag Name Normally Open Contact Instruction EZAutomation www EZAutomation net 1 877 774 EASY 310 Chapter 3 Programming EZPLC Normally Open Contact The Normally Open Contact instruction reads examines an input Raana z or storage bit at memory location Aaaaa If the corresponding memory bit is ON 1 power will flow through this element Normally Open Contact Normally Closed Contact The Normally Closed Contact instruction reads examines Aunan pa an input or storage bit at memory location Aaaaa If the corresponding memory bit is OFF 0 power will flow through this element Normally Closed Contact Memory Data Type A Discrete Inputs 1 128 Discrete Outputs O 1 128 Discrete Internals S 1 1024 System Discrete SD Allowed Data Formats Discrete Only START MOTOR neo I1 0i In the example abov
188. toring Apply New Values gt Export to Excel Close KI EZAutomation www EZAutomation net 1 877 774 EASY Chapter 6 PID Loop 613 As you can see the graph above has been created using the parameters explained on the previous page The Setpoint and Process Variable were set to 450 and are represented in the graph by the line running through the middle of the graph The Minimum SP of 400 is shown at the bottom left and the Maximum Limit of 500 is shown at End Monitoring the top left of the graph The Control Variable was set to 110 and is represented on the right side of the graph The rest of the controlling buttons for PID Monitor are explained below Apply New Values End Monitoring Press this button when you wish to stop the PID Monitor Freeze Graph Apply New Values Press this button once you have changed some of the parameters in PID Monitor and would like to begin monitoring those changes Export ta Excel Freeze Graph Press this button if you would like to see a still picture of the graph in its current state Close Export to Excel Press this button to send all of the data within the graph to an Excel spreadsheet you must have the Excel software installed onto your computer Close Press this button stop the monitoring process and close the PID Monitor window EZAutomation www EZAutomation net 1 877 774 EASY 614 Chapter 6 PID Loop PID Loop Mode Auto Manual Discrete Base 0 S
189. tware click the EZLauchPad icon The software opens up a dialog box that lists all the installed and not installed EZAutomation software on your computer You may click on any of the installed software to launch that software The software not installed is also listed but cannot be used If you have multiple versions of any EZAutomation software installed the LaunchPad lists all versions for your convenience Er E2 Launch Pad EZ applications not installed on this computer gE EZPanel E nhanced Editor n design software for EZPane Enha 6 EZTou ch and EZTouchP operator interfaces l EZText Go s rogram are for EZText EZText eriace The Most Sensible Automation ETT ext PLC operator Launch Pad for All EZAutomation Programming Software rae fa prowl EZAutomation 1877 77 EASY pon L programming yaua ezautomation net rEZPLC pma E2 oof LC page osp menne jenerate and 0 gt EZMar JUEe Will ring ge www EZAutomation net 1 877 774 EASY Chapter 1 Getting Started 15 1 3 EZStart oat oe my Ed pe You can start the EZPLC Editor in one of the following 3 ways E3PLC Editor 1 Click the EZEditor Icon 2 Select the program using Start gt All Programs gt EZPLC Editor 3 Start EZLaunch Pad and then click the EZPLC Editor Icon o The following figure shows the startup dialog box and ass PET FR the information you can enter in the dialog box ot et ee oe seer ea O
190. twork along with starting and ending addresses as shown below EZPLC Address Start at End at Total Bytes Total Bits Under the Type pull down menu you can select from any of the PLCs registers defined in the Tag Database as shown below 4 www EZAutomation net 1 877 774 EASY Chapter 2 EZPLC Editor User Interface Map to Network can be used to specify an offset if desired as follows Once all the selections have been filled as per user specifications click OK to add the mapping as shown below or cmd Similarly map all the desired memory locations of your PLC to the produced ad consumed words of the DeviceNet network as explained above Profibus If you have selected the network to Profibus click on Network Memory Map tab to display the following screen area Read From PLC pe TE HE TETTERE TT it EZAutomation www EZAutomation net 1 877 774 EASY 244 Chapter 2 EZPLC Editor User Interface EZAutomation The View Memory Area has a pull down menu and is used to toggle view between Read From PLC and Write To PLC settings as shown below View memory area Read From PLC a Read From PLC Write To PLC Read From PLC corresponds to the maximum Input Words and Write to PLC corresponds to the maximum Output Words as selected under network type for Profibus Click on the Add Map button to display the following screen r Map Address EZPLE Address Sta
191. uced drastically Return Statement When power flows to this element the Return Statement instruction specifies the end of the Subroutine logic where present and returns back to the Main logic The Return statement can only be used in a Subroutine In the example above when power flows to this instruction the execution jumps to Rung 31 In the example above any instructions between For and Next will be executed multiple times The number of times the instructions will be executed is equal to the value of the Loop Count variable subroutine When power flows to this instruction subroutine named Subroutine would be called EZAutomation www EZAutomation net 1 877 774 EASY 350 Chapter 3 Programming EZPLC 3 3 9 String Instructions Astring is succession of characters EZPLC s string instructions operate on ASCII String Data files only Adding String Instructions To configure String instructions click on the String instruction icon on the right side of the screen Position the mouse over the Ladder diagram and click the mouse to place the instruction To enter Tag Name Address double click the instruction to open its dialog box To configure the String Move and String Compare instructions perform the following steps 1 Select a Tag name address from the drop down list for the Source register Source1 for String Comparison Instruction 2 Enter a value in the Number of Characters field
192. uninstall this program you can use the Uninstall command from Start gt All Programs gt EZPLC gt Uninstall EzPLC 1 0 61 Uninstall xj Are you sure you want to completely remove EzPLC 1 0 61 and all of its components Pye eI The uninstaller will prompt you to make sure that you want to uninstall EZPLC Editor and all its components from your computer If you select YES all the components of EZPLC Editor will be uninstalled from your computer EZAutomation www EZAutomation net 1 877 774 EASY 14 Chapter 1 Getting Started EZAutomation 1 2 EZLaunch Pad Note EZLauch Pad is not required for programming EZPLC products However ifyou have more than one EZAutomation software products installed on your computer consider installing the EZLauch Pad software to have one convenient place to run any of the installed EZAutomation software products 1 2 1 Overview EZLaunch Pad is a convenient place to run all EZAutomation software applications from one dialog box EZLaunch Pad software is distributed along with all EZAutomation software packages such as EZPanel Editor EZText EZPLC and EZMarquee software The software is also available on www ezautomation net as a free download BEZ a 1 2 2 Installation ZAR To install this software please run the EZLaunchPadSetup exe file The 1 0 2 1 2 3 Function software installs itself and creates a desktop icon for your convenience To use EZLaunchPad sof
193. ut EZPLC reads the addressed bit immediately from the input module instead of memory The power flows through the instruction if the read bit is 1 on Please note all the bits corresponding to the input module are updated with the read value NC Immediate Input EZPLC reads the addressed bit immediately from the input module instead of memory The power flows through the instruction if the read bit is 0 off Please note all the bits corresponding to the input module are updated with the read value NO Immediate Output The bit status is immediately written to corresponding output module The bit remains 1 on as long as the power flows to the instruction NC Immediate Output The bit status is immediately written to corresponding output module The bit remains O on as long as the power flows to the instruction EZAutomation www EZAutomation net 1 877 774 EASY Chapter 3 Programming EZPLC RLL Instructions Table continued Instruction Description Compare Instructions Allows power flow through this element if the data value of Opr1 register is Equal to Opr2 register Allows power flow through this element if the data value of Opr1 register is NOT Equal to Opr2 register Greater Than Allows power flow through this element if the data value of Opr1 register is Greater Than Opr2 register Allows power flow through this element if the data value of Opr1 register is Less Than Opr2 re
194. which register of the block will store what for your ready reference For example the Sample Rate is stored in the first register of the Block Base 0 while Deadband is in Base 5 register Since you know the addresses of all parameters you can define these parameters in this dialog box and or dynamically define modify these using ladder logic during runtime The buttons and fields that appear in the PID Setup dialog box are explained below Process PID when PLC is Stopped When PLC is stopped not in Run Mode it does NOT process ladder logic or Update I O However in some cases it may be desirable to continue the PID loop even when the PLC is stopped Use this check box to indicate that the PID should be processed when the PLC is stopped The default is to continue PID processing Action You must select either Direct Acting or Reverse Acting In a Direct Acting loop the Control Variable and Process Variable follow the same direction i e Increase in Control Variable increases the Process Variable and vice versa For example in a heating application the more power through a heater CV increases the temperature PV The Reverse Acting loop the CV and PV move in opposite direction SO an increase in CV decreases the PV For example in an air conditioning or cooling application more power is applied to reduce the temperature EZ PLC computes error term based on this choice as follows E PV SP for Direct Acting E
195. y Message at Position 5 7 Divide 3 23 Down Counter 3 46 Do Nothing 5 7 Drum 3 62 3 64 Drum Sequencing 3 62 Drum Type 3 64 E Edit 2 14 Edit Label Comment 2 22 Edit Menu 2 14 Edit OFF LINE 1 5 Edit Program OFF LINE 1 5 Edit Program ON LINE 1 5 En 6 3 Enable Marquee amp Check Status 5 11 Equal To 3 17 Error 6 2 6 3 Ethernet Setup 2 39 Events 3 65 Example 5 10 Exit 2 13 Export Tags 2 34 External Disturbance 6 3 EZPLC Address 7 6 EZPLC as a Modbus Slave 7 9 EZPLC Editor 1 2 EZPLC Menu 2 25 EZAutomation F File Menu 2 10 For 3 48 For Loop 3 48 For Loop Instruction 3 47 G Go To Label 2 4 Go to Label 2 16 Go To Rung 2 4 Go to Rung 2 16 Gray Code to Binary 3 27 Greater Than 3 18 Greater Thanor Equal To 3 19 Group amp Unit Number 5 6 H Help 2 4 5 5 Help Menu 2 48 Help Topics 2 48 High 4 5 I O Configurations 2 37 Import Tags 2 35 Information 2 25 Input Registers Information 4 6 Input Register Information 4 6 Insert Copied Rungs 2 22 Insert Label Comment 2 22 Insert New Rung 2 21 Insert Rows 2 21 Installation 1 2 1 4 Instructionicons 2 3 InstructionsTool Bar 2 3 Instructions Menu 2 23 Instructions Toolbars 2 5 Integral 6 12 Integral Reset 6 2 Integral Reset Time 6 8 Interrupt Logic 2 19 Interval MSec 6 12 Introduction to Drum Sequencing 3 62 Introduction to EZPLC Editor 3 3 Introduction to PID 6 2 7 2 7 9 IO Configuration 4 2 4 7 IO Module D
196. y right clicking in the Main Logic area of the Main Programming Screen Fxample lad Main Logic EE EE ee ee ete eee When you right click in the Main Logic area in the square above the following menu will appear Zantel Selection Switch bo Monitor Made Through this menu you can access the following functions Cancel Selection Edit Cut Copy Paste Delete Select All Go to Rung Go To Label Ladder Options and Switch to Monitor Mode www EZAutomation net 1 877 774 EASY Chapter 2 EZPLC Editor User Interface Ladder Options When you select Ladder Options from the Right Click Menu the following dialog box will appear Ladder Options x Application Colors Miscellaneous Tag name foreground color O Tag address foreground color Tag name background color v Tag address background color Value foreground color mm M Rung background color Data box text color mm M Data box outline color Data box background color v Rung grid color Line Color a M Discrete color Applicable only during ONLINE mode for discrete addresses only ae Value background color v Rung border color 3 a a i ae Discrete on foreground color v Discrete off foreground color a M Discrete on background color mm Discrete off background color BEREN Set to Default h fo vv be NE Fr bes S Cancel Help This dialog box allows you to change a variety of the color attributes of
197. ype Unit b5 b4 default 00 Celsius Report Error b7 b6 default 00 Do Not Report Cancel Help below The module takes 4 input registers and 4 output registers The input registers return the readings from the thermocouple and the output registers configures thermocouple options such as type unit and error reporting scheme To use these registers you will need to create tags For config registers the data types for the tags should be UNSIGNED _ INT 16 For the input register tags the datatype should be SIGNED _ INT 16 except for B Type thermocouple which should use UNSIGNED _ INT 16 The selectable parameters namely type unit and report error as well as the computed config value are described below 4 2 2a Type Select the type of the thermocouple using this field The possible choices are J Type K Type S Type T Type E Type R Type B Type N Type Ambient Type The display only range field depends on the type of the thermocouple selected along with the unit 4 2 2b Unit Select the unit for measurement for each thermocouple The possible choices are Celsius Fahrenheit and Kelvin The display only range field depends on the unit selected along with the type of the thermocouple 4 2 2c Report Error The Report Error function on the thermocouple module provides diagnostic capabilities to detect open or burnt thermocouple or incorrect configuration which can happen if the ladder logic writes an incor
Download Pdf Manuals
Related Search
Related Contents
Document micromot - Farnell NewAir APH-4000PV User's Manual "取扱説明書" 保存した年数が10年以上の廃棄対象簿冊(PDF:1904KB) Frigidaire FFPA0822R1 Wiring diagram EBU STL Viewer User`s Guide Instructions concernant les aménagements forestiers HP mx703 Product Datasheet and Product Specifications Da-Lite 42082 projector accessory Copyright © All rights reserved.
Failed to retrieve file