Speak with authority, quality is trustworthy.

Function in the application of the small PLC

by:Coolmay     2020-10-03
Formula function in the application of small PLC electrical engineering college of chongqing university liao always welcome to visit e exhibition hall 3 at the beginning of PLC exhibition hall of PLC programmable controller, PLC controller programming cable. 。 。 The basic concept of formula recipes ( 配方) Is a set of parameter values, which is to provide the information required for the production of products and control the production process. For example, the biscuit formula including the butter, sugar, eggs, flour and cooking time of the parameters, such as data types and parameter values, etc. Formula set is a collection of several formula, this formula has the same parameter set, but in different parameter values. Such as biscuit formula set contains sandwich biscuit and soda biscuit formula. Generated after formula set, when the replacement products, only need to input symbol name or the formula of the number of formula, you can use the preset parameters in formula set, avoid the repeated often in the process of production input of a large number of parameters. In the past, only to run on a computer configuration software such as PC software is formula function, small PLC as storage capacity is small, can't set formula. A new generation of Siemens S7 - 200 small PLC formula functionality has been added, formula sets of data and real-time collection of data stored in the block of 64 k or 256 k EEPROM memory card, memory card in the slot of the CPU module. Memory card of the typical value is 1 million times the number of write operations. S7- STEP 7-200 version of the programming software 微/赢( V4. 0) Support function formula, and its formula guide to create, modify, formula and the formula in the memory card set. User program can invoke the formula formula subroutine, the wizard generated, speaking, reading and writing a formula read into the CPU module in the storage area, or to write the modified formula value into the memory card. Operators can use text display TD 200 or other man-machine interface to choose the required recipe. Formula set is generated by formula guide perform menu commands in the programming software 'tools - > formula guide', open the formula guide, can define and generate formula. ( 1) Define the formula in the formula in the table definition is shown in figure 1, use the mouse to click on the 'domain name' ( 字段名) Column a unit, and then edit the domain name, every domain name will be called RCPx_SYM ( X is the number) of formula set The symbols of the symbol table. With a dropdown list to choose the data type of the variable, the default value of input variables and comments. All of the new formula will use the default value as the initial value. Most can define four formula, that is, there can be a maximum of four formula set, in each formula set number only by memory card capacity formula of the limit. Figure 1 definition formula figure 2 to create and edit formula ( 2) Create and edit formula formula in create and edit dialog box, press the 'new' button, shown in figure 2 formula in the table, there will be a new recipe for the editable columns on a white background. The column appeared definition formula set default value at the same time, according to the actual situation of the product to change the default values, to create a new recipe. Can modify the name of the formula in column headings, such as 'crackers'. Select a column formula, you can delete it, or its parameter is set to the default value. Right-click a recipe column, perform a pop-up menu of commands, click cut, copy, and paste the recipe. Paste the new column is inserted to the left of the current cursor position. ( 3) Distribution V storage area can choose the starting address of V storage area, you can also use the formula recommended by the wizard address, click the 'suggest that address' button, recommend the address of the increasing number of bytes will be according to the formula. ( 4) Project component wizard formula will be generated project for the new formula components, including the symbol table, data blocks, the read/write formula of subroutines and memory data, the user program can use these components, formula of read data with a formula of the symbol. Project with formula guide configuration must be downloaded to the PLC to use them. Download must be selected in the download dialog 'formula' option, loading formula data in memory card. Read in the user program and modify the formula in the user program can invoke the formula of the wizard to create a subroutine, RCPx_Read ( x=0~3) To transfer formula from the memory card to V storage area, RCPx_Write with specified V formula formula of alternative storage card data in storage. Formula of the wizard to create a subroutine in the instruction of the tree ' call subroutine directive' folder. Recipe instructions instructions box of figure 3, speaking, reading and writing Rcp input is the number formula, the data type for the Word, you can use the formula of the symbolic name, such as 'cookies'. Byte Error is output to return to perform as a result, there is no Error is 0, access to memory card failure for 132. In figure 3 programs will be written into the program OB1, download the block, block of data and formula to the CPU, switch to the RUN mode. In order to monitor the formula of the read and write operations, the state table as shown in figure 4. Because in the formula in the wizard to specify 0 formula set corresponding V store address is VB0 ~ VB5, in the state table after the first line of the input address VB0 automatically into a symbolic address 'flour'. Place the cursor in 'flour' in the box, the key, will be the next line automatic generation of the next address VB1 corresponding variable 'sugar'. Make input variables I1. 0 to 1 ( As shown in figure 3) , the CPU reads the cookie recipe, in the state table 'current value' column can see formula of read data ( As shown in figure 4) 。 Modified formula in state table of the values of variables, such as the flour to change the value of 40, then make input variables I1. 1 to 1, in the data is written to memory card will VB0 ~ VB5. To state the current value of flour in the table after reset, reoccupy I1. 0 read cookie recipe values, with state table you can see the revised formula value. Figure 4 state table
is a must have for anyone who appreciates plc controller price to the greatest extent.
You will find a wide variety of for sale for virtually any programmable control systems needs. Keep in mind how you plan to use the , and talk with a professional about the model and features that are right for your application. Go to Coolmay PLC for on sale.
In various different types of plc controller price, programmable control systems plc manufacturers is one of the most commonly used.
Even plc manufacturers are being made fine with advanced equipment.
plc manufacturers is receiving a great positive feedback in the market. And many of our clients are fully satisfied with it.
Chat Online
Chat Online
Chat Online inputting...
Sign in with: