SoftPLC technology reachs his to control medium application in the process

  • Time:
  • Click:89
  • source:ASEM CNC Machining
One, the soft logic that introductive SoftPLC technology is called to be used at PLC controls a technology. The means that SoftPLC system uses pure software makes the logistic control that the hardware of compatible PC can finish actual PLC works. Normally this means PC when moving, its oneself has made an appropriative controller, lost the function of most user interface then. However, the logic that some SoftPLC use the means over the bus line of PC of functional module park that takes microprocessor together to finish PLC controls a function, share the real time data in memory with host PC at the same time. In addition, running operator interface when the system (when the program such as OI) , a few otherer SoftPLC uses environment of a real time to make host PC can have the control logic with corresponding manage of part-time place to go. To be described better and reflect the characteristic of SoftPLC technology, the soft logic that the article will combine American ICONICS company to develop development controls configuration software ControlWorX32 to try to introduce, in order to offer colleague reference. 2, the GENESIS32 series industry that ControlWorX32 of ControlWorX32 configuration software is open development of American ICONICS company controls one of configuration software, the configuration software that GENESIS32 industry controls configuration software to still include GraphWorX32(to be used at the graph to change man-machine interface to develop) , the configuration software that TrendWorX32(uses at real time and management of historical data logging) , the configuration software) that AlarmWorX32(uses at calling the police to record management with incident, and OPCToolWorX(is special the tool software that develops at OPC equipment driver is wrapped) etc. ControlWorX32 is an open sex control that is based on IEC1131-3 standard completely software of configuration of systematic application process, also be WindowsNT platform at the same time below be based on OPC technology standard connective opens a gender to control systematic container. Compatible at existing industrial standard, can special satisfy conveniently build, test, debug PLC soft logic to control program and manufacturing process control to apply, controlled application to offer extensive join character to be based on the real time process of solid WindowsNT. The programming that ControlWorX32 graph changed control configuration tool to offer complete set to accord with IEC1131-3 standard language. The process of control system application that asks to design can use programming of standard of 5 kinds of IEC1131-3 a kind of the language, or the mixture body of a few kinds of any languages. ControlWorX32 offerred advanced IEC project to run means and development kit, also offerred a kind of strong moving program kernel and debug a function perfectly, be helpful for undertaking to control application process the line checks leaving. ControlWorX32 used soft logic of a high-powered much task and process control engine, and move on WindowsNT platform, for the process control application process offerred the executive time-interval of millisecond class. Rely on standard of OPC automation technology, very easy and compositive go in allowing why to be based on system of OPC connective HMI/SCADA. Additional, want to use level of technology of open sex communication only, wait for technology of spot bus line like Interbus-S, CAN, Profibus, DeviceNet, FF, HART, OK also and special easy join arrives in equipment of all sorts of spot bus line and control equipment. If the graph is shown 1 times, this graph showed the compositive structure of ControlWorX32. 3, before 1ControlWorX32 of IEC1131 level figure constitutes structural sketch map ten years, we had been heard can make up Cheng controller (the argument that the relevant specification inside PLC) industry domain turns an issue. The focus that argues now criterion the product that apt standardizes through develop and be being published, so that alternate application can receive inside each industrial domains, standard of IEC1131 of no less than (namely well-known IEC61131 standard) appear. Current, a lot of PLC and control system manufacturer all develop its product to the direction of standardization. And, industrial user still also is faced with quite a few to whether use the option that accords with IEC1131 to standardize industry to control a product. 1979, international Electrotechnical Committee (a working group of IEC) interior had finished people to expect long already can make up Cheng controller (of PLC) standard make, basically include classify of hardware design, installation, test, documentation, programming and communication. The purpose of the working group is to can make up Cheng controller (the programming of PLC) establishs a consistent process designing pattern, encourage people to use fast software to develop way. The result of this kind of effort makes development business, final user and manufacturing maker have OK the level that counts jointly, namely IEC1131 standard. The much programming that IEC1131 standard dominated a system to make standardization for existing spot automation language, fixed instruction collect and different process designing idea. There is mutual compatibility problem between the PLC work platform that groovy PLC is using the biggest obstacle in the process to depend on differring and different PLC production manufacturer, its will bring about industrial user to cause huge to invest waste on hardware and software as a result. The programming that IEC1131 standard defined standardization for all PLC program development language, normative PLC and programming the interface between the system, different project project has same programming method and instruction collect, identical operation and data processing, and programming structure. Use IEC1131 standard to undertake PLC and the biggest advantage that the system develops programming depend on all operation platform using same process designing idea, the cost that reduced automation to control a system greatly is thrown and develop time cycle. IEC1131 standard basically includes the following the content of 5 respects: The first part: What describe for general news, basically be aimed at can make up Cheng controller (PLC) reachs his the application of the peripheral equipment of relevant couplet and choice provide run-of-mill description, include the definition of pair of standard clauses, the identifying of relevant feature, namely IEC1131-1 standard. The 2nd part: Equipment and test demand, basically be aimed at can make up Cheng controller (PLC) and the peripheral equipment of couplet provides equipment and test demand related its, include to be opposite the least demand of explanation of condition of functional feature, service, feature, run-of-mill safe information and applicable test, namely IEC1131-2 standard. The 3rd part: Can make up Cheng controller (PLC) programming language, basically be aimed at can make up Cheng controller (PLC) appoints an unified programming the grammar of the language and semantics, namely IEC1131-3 standard. The 4th part: The user is online and directive, to can make up Cheng controller (the development proposal with when PLC) industry user is developing project of an automation project, be offerred better and help, safeguard to whole from unit choice to systems analysis offer very beneficial explanatory note, namely IEC1131-4 standard. The 5th part: Communication, basically include come from what produce manufacturer at differring to be able to make up Cheng controller (the communication between PLC) , also include standard of IT of other use manufacturing industry likewise (the blame of MMS) can make up Cheng controller (PLC) equipment and can make up Cheng controller (the communication between PLC) , namely IEC1131-5 standard. The content of before two parts of IEC1131 standard depended on stipulating corresponding technology is normative, 5 kinds of programming that the 3rd part basically decided standardization language. IEC1131-3 standard still increased the modification of following content: .

Variable statement is similar to the variable statement of call the turn of language of other and advanced programming; .

The statement of data type becomes a possibility; .

Can distinguish further global data variable and local data variable; .

Programming uses mnemonic form to undertake developing entirely. 4, ControlWorX32 configuration software includes characteristic of technology of ControlWorX32 configuration software to develop and run two parts. Systematic development can move at Windows95/98 partly or over WindowsNT platform; And moving environment can over park WindowsNT platform. If pursue interfaces of 2 shown development environment man-machine. The SoftPLC(soft logic that is based on IEC1131-3 standard with great majority is controlled) technical configuration software is same, controlWorX32 has following characteristics likewise: 1. Extensive OPC join character relies on level of current OPC join technology, OPC client applies a program to be able to join any OPC servers apply a program to go up, receive DCS system, PLC system, I/O system repeatedly, and system of network of standard spot bus line. OPC server driver can come from at ICONICS company, other perhaps production of software of tripartite driver develops business to offer. Driver of offers OPC server equipment can receive the equipment of spot bus line such as Interbus-S, CAN, Profibus, DeviceNet, FF, HART to go up repeatedly. 2. Support programming of standard of 5 kinds of IEC1131-3 language.

Chart of SFC- ordinal function; .

Chart of logic of LD – echelon; .

Language of text of ST – structuralization; .

IL – instruction is expressed; .

Chart of FBD- function module; 3. Substantial instruction part.

IEC1131-3 standard programming all instructions of the language; .

Number and algorithmic function; .

Displacement uses operation function; .

Data type changes function; .

PID controls algorithmic function module, timer, tally to wait; 4. Real time much task moves.

Periodic task (fixed time-interval) ; Interface of man-machine of environment of graph 2ControlWorX32 configuration.

Incident task (interrupt) ; .

Default task (intermittent cycle) ; 5. Data type of support.

Any operate a type: BOOL(1) , BYTE(8) , Wor(16) , DWor(32) ; .

Any numbers operate a type: SINT(8) , INT(16) , DINT(32) , REAL(32) ; 6. Relevant technology data.

Speed: 0.

5ms/1000 operate (NT environment) ; .

Program memory capacity: Can install instruction of about 30000 IL(to express) ; .

I/O amount: But configuration is outputted into 64KB input and 64KB; .

Memory gross: 64KB can be installed; .

Data module bus line: Can install; .

Timer and tally bus line: Infinite, or capacity of memory of be confined to; .

PLC job number: 32PLC task; 7. Add and characteristic.

Modular program management mechanism; .

When task of soft logistic control is carried out, online modification program; .

Complete count diagnoses a function; .

Be based on the interface of global general I/O of standard of OPC join technology, facilitating control configuration; .

Real time driver develops full text archives and hardware kit; 5, the IEC1131-3 level that place of software of language ControlWorX32 configuration counts the programming of ControlWorX32 configuration software is made to can invent programmed control implement (PLC) defined 5 kinds of programming language. Namely two kinds of text change programming language (IL: Instruction list and ST: Structured text) change programming with two kinds of graphs language (FBD: Functional module chart and LD: Echelon chart) , and programming of a kind of systematism language (SFC: ) of ordinal function chart. IL(instruction list) by a series of order that provide an operation statement in each the instruction expresses composition, of these ordinal instruction great majority and microprocessor grand the instruction photograph of assembler design language is compatible. This is programming of a kind of adaptable means, but to doing not have programming the industrial user of experience is told, this kind of programming means has been confirmed to be special trouble and prolonged. Build complex application to tell to compose, in fact IL(instruction list) can provide powerful basic function for this. However, in the applied program that in small-sized and critical condition runs, optimizing code is very important. Pursue 3 it is one uses IL(instruction list) the example of process designing, variable RUN_TIMER is become by the definition TON type. The sampling cycle of last definition is 1 second, variable Run_pluse will by set, effective output will make electric machinery happening rotates. Graph 3 use IL(instruction list) the text of example ST(structuralization of process designing code) it is one sort is like the advanced programming at Pascal language. If symbolic address is used, ST(structuralization text) the program is similar to a sentence, means of this kind of process designing special the study that is helpful for a novice. Text of structuralization of algorithmic to complex mathematical computation task and control ST() it is a kind of wonderful programming language. ST(structuralization text) the language uses programming rise very simple, and unlike the LD(echelon chart that has lengthy code) or) of chart of FBD(function module. Pursue 4 it is one introduces ST(structuralization text version) the example of the partial code that the language writes programming. Variable TIMER is regarded as TON type by the definition, use a timer of 1 second to undertake initialization. After times time arrives, criterion pulse is variable will set. Next, pulse variable makes variable tally increases, consequently the setting exports variable output 1 when for true. This kind of loop goes down proceed, till all output variable is installed afresh. Graph 4 introduce ST(structuralization text version) the chart of module of example FBD(function of process designing code) the language allows programming industrial user uses a graph to change functional module to develop applied program with the means of configuration, these functional module can be extracted from inside library of module of IEC standard function. Be in dispersive model in controlling a system, control engineer uses chart of FBD(function module) the configuration that undertakes controlling a system will more handy. Pursue 5 it is one uses chart of FBD(function module) programming the example of language process designing. Variable Start will start electric machinery move. AND function module will pass power transmission source to TON of module of the first timer. After passing 1000ms, output is variable O1 general set, at the same time module of the 2nd timer will by initialization. This kind of loop goes down proceed, be installed till variable StartOver, accordingly, restoration order relies on AND module. LD(echelon chart) the way of PLC process designing that language and people place are familiar with programming is same, it used traditional relay and coil. Means of this kind of process designing basically faces the disperse application that controls a system. However, the echelon chart editor of IEC1131-3 standard allows functional module to embed go in echelon chart code, so that establish more quick procedure,control application. For example, controlWorX32 configuration software had provided this kind of built-in function, for this, more and more final industry users will come on the process designing way that from traditional relay logistic chart changes the functional module chart that has the IEC1131-3 level that escalates a function gradually. Pursue 6 it is one uses LD(echelon chart) programming the example of language process designing. However, below this kind of circumstance, foregoing FBD function components had been baled the genetic function module that is called CQ into (DBF) . This module has been succeeded compositive in echelon chart. Chart of SFC(ordinal function) the descriptive method that changes to produce a process to offer a chart, it is OK that this means this method in breaking up a paragraph of program a logistic order, go. Pass direct link, the constituent unit that can accord with measure and mutual the changeover between. Graph 5 use chart of FBD(function module) the example of process designing pursues 6 use LD(echelon chart) the example of process designing uses direct link method, in chart of SFC(ordinal function) in be used at coordinating place connective measure and move relation by the code main body of process designing. Or many operations module can related to a measure couplet. When a measure is in mobile condition, related to this measure the operation of couplet will be carried out, and rely on place definitive operation. This kind of operation can become a Boer variable, in the meantime, undertake re-edit to code likely, so that can be in,a job of code main body that has detailed name gets executive in the watch. Below this kind of circumstance, the name that the file name that has tabulation of labour of code main body can regard place as the operation will use. Graph 7 use chart of SFC(ordinal function) the example of process designing is in chart of SFC(ordinal function) in, one arrives from a measure the produces process terminal move condition of another measure can get a description. If one transfers a condition to become true (TRUE) , and once again when follow-up perhaps measure becomes mobile state, the measure in front can get executive. In chart of FBD(function module) or LD(echelon chart) in, condition of this kind of move is not a Boer variable it is a direct connective Boer expression. In chart of SFC(ordinal function) in process designing above all by connective be one calls SFC(order functional chart) network. Chart of ordinal function of a SFC() the network always must have an initialization move, and organize unit when the program (the first measure after POU) is started can be carried out above all. The functional module that parallel perhaps has branch structure can insert chart of SFC(ordinal function) go in the network. In chart of SFC(ordinal function) in code main body, can use asterisk and bracket to insert relevant annotate statement among them. Pursue 7 it is one uses chart of SFC(ordinal function) the example of process designing. 6, if the application in producing a process to control pursues 8 for sketch map of simple odd loop closed-loop control. Use this case, how do we write study functional module in ControlWorX32 configuration software, with etc the method of project of language design project mixes a few programming knowledge. We will control management to build for the process a series of functional module. After the deviation between set value and process measured value controls algorithmic operation through PID, its output is worth immediate effect to control variable at the process. Graph block diagram of closed-loop control of 8 odd loop 1. Project of the project that start above all you must build a new project project. For this, from entree sheet " file " the choice below menu " build project project " command, criterion casing of project project pattern plate will appear. Choice " ProConOS/ does not have hardware " , press " affirmatory " pushbutton affirms. Next, before a project project that did not name will appear in you. The project project that establishs for you now decides a caption is very important. Serve as caption with PIDXMPL, from entree sheet " file " the choice below menu " put project project additionally to be " command can. Click " save " after pushbutton, the system will return your current project project to cultivate. (Be searched in the project project folder that 1) builds data type in your place and choose " data type " project, the data type of the make choice of that it is place inputs PIDTypes of a variable name, click " affirmatory " pushbutton affirms. Now, in your project project folder " data type " will appear below the project field of a PIDTypes. The content that if the graph is shown 9 times,inputs. Graph the window that if the graph is shown 9 times,sketch map of type of 9 definitions data exits, save labour tabulation. To can use this data type later, you must compile this labour tabulation now. From entree sheet " make " the choice below menu " compile the job to express " command can, the system will compile your data type for you. (2) establishs functional module the functional module to make you, doubleclick in your current project project folder " logistic POUs " project. Choose the functional module that decides corresponding type, ST(structuralization text version chooses here) programming language, input title name LAG. Click " affirmatory " after pushbutton, you will see, 3 new projects can appear in the project project folder in you: LAGT* , LAGV* and LAG* . Doubleclick LAGV* project, inside appears window the input is like the special field that the graph shows 10 times, include a name, data type, use method and initiative value. Graph after variable expresses 10 data type to was every variable to input relevant data in you, must not forget click " refresh " pushbutton. After the input that finishs all variable data when you, close current window and return your project project to cultivate. Doubleclick LAG* project, so that be your functional module,input content. This one operation will activation an activity window. Your program is inputted in current mobile window, if pursue,11 are shown. Program of process designing of graph 11LAG* project (3) builds control program to control a process to build, cultivate from current project project above all in, choose " logistic POUs " project, press carriage return key next, perhaps click mouse right key to choose to thrust way, the system will be offerred for you establish new functional module. Input following news, click " affirmatory " the project project tree that pushbutton returns current job. .

Program: PIDLoop.

Program kind: FBD.

PLC type: IPC_28.

Processor type: You can see IPC_64K, will appear in current project project folder 3 new projects: PIDLoopT* , PIDLoopV* and PIDLoop* . Doubleclick PIDLoopV* project, the variable type that if the graph is shown 12 times,inputs, include variable name, data type, initiative value and CSV label (× perhaps is not × ) . After for every in you variable inputted relevant data, must not forget click " refresh " pushbutton. Once you finish the input of all variable data hind, close current window and return your project project to cultivate. The data variable type with graph 12PID algorithmic control expresses the content to input a program, choose from inside tree of current project project and doubleclick PIDLoop* project, will activation the window of an activity. Builds functional module icon is clicked in the window of current activity, be like the function that the graph shows 13 times / functional module dialog box will appear. In the function / listed in detail in functional module dialog box the technical parameter of functional module, include what to belong to group not, dimension of exterior of watch of type of module of functional module name, function, local variable job, example, module, indication type, indication data type and formal parameter. The function that if the graph is shown 13 times,is in / in functional module dialog box, choose a functional module that the name is PID to be pressed " affirmatory " pushbutton, the automatic function module that if the graph is shown 14 times,will appear automatically (FB) statement dialog box. In this dialog box, the POUs that is PIDLoop function module was offerred a few must variable parameter, type of example of the use method that includes functional module, FB, AT, FB type, and the parameter such as PDO and CSV option. Graph 13 functions / functional module dialog box pursues module of 14 automatic functions (FB) statement dialog box is in tabulation of current activity labour, use same method to build a name to be the 4 functions module of NEG, LIMIT_REAL, INTEGRAL and LAG respectively again. Choose connector graph accord with from inside tool column, the XOUT of PID function module end joins the input of NEG function module is carried; the output of NEG function module end joins the IN of LIMIT_REAL function module is carried; the XOUT of INTEGRAL function module end joins the InValue of LAG function module is carried; the output of LIMIT_REAL function module end joins the XIN of INTEGRAL function module is carried. This kind of join will determine the impact between the direction of going from place to place of signal and functional module, if pursue,15 are shown. Graph join of configuration of control of PID of 15 odd loop pursues to increase variable chart, click variable graph accord with, after variable name is being inputted to decide in the dialog box that appearing, the variable name that will show a definition on functional module. After the join that finishs OutValue of module of function of last pace LAG to carry PV of PID function module when you, exit this window. Next, be found in your project project tree and choose " the task " project, bolt by carriage return or click mouse right key to choose to thrust way, choose a job that is PID, click " affirmatory " pushbutton, the task that if the graph is shown 16 times,will appear installs a dialog box. Decided for executive mission in this dialog box sampling is periodic, first step, watchdog timer time-interval, the parameter such as stack mode. Graph the default setting that if the graph is shown 16 times,dialog box of 16 tasks setting uses, press " affirmatory " exit. Manage from project project implement in choose acquiescent job and delete this task, choose PID job additionally and press carriage return. The program chooses below the type, PID return chooses below program example, choose " affirmatory " pushbutton affirms. Choose R_IPC project from inside project project tree, click mouse right key, reelection choose sets an order, the resource that if the graph is shown 17 times,will open installs a dialog box, so that be opposite,corresponding working environment undertakes installing. In this dialog box, must ensure in CSV option " the variable that make " child by the choice. If pursue,17 shown emphasises hint. 2. Tectonic project project pursues the project project that dialog box of 17 resource setting establishs to compile place, choose from entree sheet " make " below menu " tectonic project project " command. The system will compile this project project for you, any mistakes that also can report the place in compiling a process appears at the same time. As a result of this program run be a loop, the mistake with can see clear from beginning to end consequently the report feedbacks. Doubleclick in project project tree " accuse " project, the resource that if the graph is shown 18 times,will appear accuses a dialog box. Graph the resource that 18 resource accuse a dialog box to if the graph is shown 18 times,be in accuses a dialog box in, if condition (State) shows move (Run) , click stop (Stop) pushbutton runs the change condition to be stop (Stop) , click download next (Download) pushbutton. When resource accuses a dialog box to appear again, click Cold pushbutton, criterion condition shows will return afresh move (Run) condition. The position that closes resource to if condition shows all right,accuse a dialog box finally is overtime (TimeOut) , mean ControlWorX32 to run module to was not carried out. Below this kind of circumstance, from the menu that start the new ControlWorX32 that start runs module. 3. Observe and revise project project to doubleclick example project on tree of current project project, will show what be in moving condition to fall to execute an order, allow user lookout to have variable state. The user can change variable value on variable through doubleclicking, in the meantime, also allow an user to change the content in text casing, click when need is changed " enclothe " pushbutton can. The starting menu from inside current window chooses and start OCI data to exchange server and OCIOPC&CALL-R server. Choose from entree sheet " file " below menu " build working space " command, next again from " editor " the choice below menu " insert project project " command. Insert PIDXMPL project project from inside the dialog box, click " affirmatory " pushbutton affirms. Saving current working space at the same time is very important. Choose from entree sheet " file " below menu " put working space additionally to be " command, click " save " pushbutton saves current job space for PIDLoop.

Oci. From inside project project folder the choice charges an item, start next move. Start another graph to change configuration software GraphWorX32 from the menu that start. Once GraphWorX32 is started hind, selection process dominates magic figures drawn by Taoist priests to invoke or expel spirits and bring good or ill fortune of the graph that measure a place, click " identifier " pushbutton, doubleclick " my computer " option, doubleclick OCR next.

ICONICS.

OCIOPC server can. After wanting you to complete the selection of the type that measure a place only, choose from entree sheet " move " the command can observe in current window relevant real time data. 7, last word from this we can see, because SoftPLC technology joined industry adequately PC and but program controller (between PLC) respective advantage, in the meantime, also be one of mainstreams that software of computer of current industry control develops, after be sure to be in, industrial automation process controls a domain to produce mainer and mainer effect. The STEP7 configuration software of company of the InControl configuration software that accords with the other industry of SoftPLC technology standard to accuse software to still include Wonderware company, Siemens, and the WizPLC configuration software of PcSoft company. These labour control configuration software roll out, the research that controls systematic application process in automation process for industrial user developed a domain to provide more wide choice margin. CNC Milling