Component of FX2N process designing
- Time:
- Click:19
- source:BAGANZ CNC Machining
Register of current data has current data register D0~D199 in all 200 bits, other data is not written fashionable, current data register carries the data that already kept, be in PLC condition by move (RUN) turn to stop (STOP) when, store entirely inside current data register data to clear; Be like special and will auxiliary relay M8033 buy 1, criterion PLC turns by RUN when be STOP, store data will maintain. 2. Cut off the power maintain data register cuts off the power maintain D7999 of ~ of data register D200 in all 7800 bits, have cut off the power maintain a function, before keeping new data namely, original data also won't be lost when power source disconnects, among them D490 ~ D509 uses as the communication when two PLC undertake nodding is opposite nodding. 3. Special data register D8195 of ~ of D8000 of register of special data in all 106 bits, special data register is used at the moving condition of monitoring PLC, wait like voltage of sweep time, batteries. Did not add the special data register of the definition, the user cannot be used. 4. Change location register changes location register has V0 ~ V7 and Z0 ~ Z7 in all at 16 o'clock, all be 16 register. Change location register action is equivalent to microprocessor changing mediumly location register, the number that is used at changing element (change location) , change location register can be read write, when need has 32 operations, use series connection of V, Z (Z is low, v is exalted) . Exemple: Set V0=5, when begging executive D20V0, the number of component be executived. Answer: Number of component be executived is D (20+V0)=D (20+5) =D25, be about to carry out the D25 of number D20 instead of component formerly. 5, timer timer (T) is equivalent to relay controlling relay of the electrify in the system time, timer of FX2N series PLC has T0~T255 in all 256 bits, among them general timer 246 bits, indigestion calculate timer at 10 o'clock, see a table 4. Number of timer of PLC of series of watch 4 FX2N allocates T0~T199 of timer of timer type FX2N, FX2NC100ms in all 200 bits, time limits 0.
1~3276.
7s, among them T192~T199 interrupts T200~T245 of timer of 10ms of service appropriative timer for the subprogram in all 46 bits, time limits is 0.
01~327.
67s1ms is accumulated calculate timer T246~T249 in all at 4 o'clock, time limits is 0.
001~32.
767s10ms is accumulated calculate timer T250~T255 in all at 6 o'clock, time limits is 0.
1~3276.
Each timer has 7s a set is worth register (a word is long, the content that the user can use the invariable K inside user program memory or data register D is worth as set) , register of a current value (a word is long) , use the image register that stores its output the condition that touch a head (register of a binary digit) composition, 3 register use same address number. Timer still has infinite often leave touch head and often shut when touching a head to offer process designing, use, arrive when timer set time, often leave touch a head to put through, often shut touch a head to disconnect. 1. general timer does not have general timer the maintenance that cut off the power function, disconnect when input or to clear of restoration of the timer when power cut, general timer has 100ms and 10ms two kinds. Exemple: Graph 6 to use T200 general timer delay time dominates echelon picture, try an analysis the data inside principle of control of delay time of general timer T200 and set value register is in electrify and cut off the power the metabolic circumstance in the process. Delay time of general timer of graph 6 T200 controls echelon graph to answer: When input X0 puts through, timer T200 from 0 begin to have integrated count to 10ms clock pulse, when computation value and set value K123 are equal (passes delay time time is 123 × 0.
01s=1.
23s) , of timer often open the T200 that touch a head to put through, coil Y0 electrify. When restoration of the timer after X0 disconnects. Computation value turns into 0, its often open the T200 that touch a head to disconnect, coil Y0 also disconnects subsequently. When exterior power source cuts off the power, timer also restoration and to clear, computation value also turns into 0. 2. Indigestion calculate timer to accumulate calculate timer to have computation to accumulate a function, be like PLC to cut off the power in time process namely or timer coil disconnects, indigestion calculate timer to will maintain current count to be worth, need PLC power supply or be on the base that holds current count cost continue integrated count, will accumulate only calculate timer restoration, current count value just keeps clear of for 0. Indigestion calculate timer to have 1ms and 10ms two kinds. Exemple: Graph 7 dominate echelon picture to use T253 accumulating to calculate timer delay time, try an analysis its control process and power source arrive from electrify cut off the power to arrive again in electrify process, the metabolic circumstance that computation is worth currently. Graph 7 T253 accumulates calculate timer delay time to control echelon graph to answer: When X0 puts through, t253 is worth tally to begin to accumulate a number of 100ms clock pulse currently. Disconnect after T0 of classics of PLC power source, and T253 have not computation is worth K345 to set, current count is worth reservation, after power source puts through and making X0 puts through again, t253 begins to continue to accumulate from the current count value of reservation, through T1 time, when current count value achieves K345, of timer often open the T253 that touch a head to put through, make coil Y0 puts through. Accumulate total time to be 345 × 0.
1s=34.
5s. When restoration inputs X1 to put through, timer ability restoration, current value turns into 0, timer often leaves touch a head also subsequently restoration. 6, PLC of series of FX2N of tally has in-house tally and high speed tally two kinds, in-house tally (C) use at be opposite internal image register (wait like X, Y, M, S, T) ascendant edge undertakes the offerred signal that touch a head computation, cent reachs 32 two-way tally for 16 addition tally two kinds; High speed tally is used at be opposite exterior pulse signal (if rotate coder pulse signal) have count. 1. 16 addition tally 16 addition tally (C) address number is C0~C199 in all 200 bits, among them C0 ~ C99 is at 100 o'clock in all general-purpose, c100 ~ C199 maintains at 100 o'clock to cut off the power in all model. Computation set value is 1 ~ 32767. Graph 8 it is course of start of 16 addition tally. X10 is restoration signal, when X10 is 0N C0 restoration is 0 begin to enter computation state. X1l is computation input, every time X11 puts through current value increases tally 1. Graph 8 16 if tally computation set is,echelon of process of addition tally computation pursues 10, criterion current value reachs count 10 hind of tally C0 often leave touch a head to put through, make coil Y0 puts through. Although after this inputs X11 to put through again, till restoration input X10 puts through again,the current value of tally also keeps constant, till executive RST restoration dictates. When tally restoration, output contact also restoration, y0 is disconnected, computation is worth currently be by Qing Dynasty 0, enter computation state again, invariable K or data register D all can be used at computation to be worth set. 2. adds 32 two-way tally 32 times decrease number of two-way tally address to be C200~C234 in all 35 bits, among them C200 ~ C219 was at 20 o'clock in all general-purpose, c220 ~ C234 maintained to cut off the power at 15 o'clock in all model. Scope of value of set of 32 two-way tally is - 214783648 ~ 214783647. The computation means of tally of C200 ~ C234 (it is to add count, still reduce count) by special and auxiliary relay set of M8200 ~ M8234. Special and auxiliary relay buy reduces count to be when ON, buy adds count to be when OFF, 16 tally are same, can use invariable K directly or regard computation set as the value with the content of data register D secondhand. Graph 9 it is graph of echelon of process of computation of 32 two-way tally. X12 controls M8210 to realize computation means choice, if X12 closes, to reduce computation kind. X14 is computation input, the set value of C210 is 10. Set C210 buy to impose computation kind, need X12 to disconnect only, control M8210 imposes computation kind to be namely when OFF. Graph 9 32 graph of echelon of process of two-way tally computation is inputted when X14 computation cumulative to 10 when, of tally often open the C210 that touch a head to put through, output relay coil Y1 electrify. Current value is more than 10 chronometer to count implement still be ON condition, be worth currently only by 10 decrease to 9 when, tally just turns into OFF, output maintains for OFF condition. When restoration inputs X13 to put through, the current value of tally is 0, output contact also subsequently restoration. 3. High speed tally C255 of ~ of C235 of tally of high speed in all at 21 o'clock, but can share an input of 6 high speed to carry X0~X5 only, so high speed tally can use 6 at most, watch 5 it is correspondence of tally of of all kinds high speed the wiring that inputs end distributes a list. Express tally of 5 high speed to input termination line to allocate tally of high speed of number of address of tally of high speed of type of high speed tally to input termination line X0X1X2X3X4X5X6X7 C251ABC252ABRC253ABRC254ABRSC255ABRS of tally of high speed of input of double computation of double photograph of C245RSC246LDC247UDRC248UDRC249UDRSC250UDRS of tally of high speed of input of single-phase double computation notes C235U/DC236U/DC237U/DC238U/DC239U/DC240U/DC241U/DRC242U/DRC243U/DRC244U/DRS of tally of high speed of input of single-phase single count: U, add computation input, D, decrease computation input, B, B photograph input, A, A photograph input, R, restoration input, S, starting input. X6 and X7 can use as only starting signal, cannot make computation signal use. 1) number of address of tally of high speed of input of single-phase single count is tally of high speed of input of single-phase single count C235 ~ C245 in all at 11 o'clock. Contact movement and 32 two-way tally are identical, through controlling M8235 ~ the condition of M8245 can set devise a stratagem to figure way. Graph 10 it is not to have the restoration that start to carry single-phase single count to input graph of echelon of process of computation of high speed tally. Disconnect when X10, m8235 is OFF, right now C235 is impose computation kind, it is conversely reduce computation kind. By C235 of X12 pitch on, check a watch 5 knowable its input signal to come from at X0, c235 adds count to X0 signal, current value is achieved 1234 when, c235 often leaves touch a head to put through, coil Y0 electrify. X11 is restoration signal, when X11 puts through, c235 restoration. Graph graph of echelon of process of computation of tally of high speed of input of 10 single-phase single count pursues 11 belts start restoration to carry single-phase single count to input graph of echelon of process of computation of high speed tally. Check a watch 5 knowable, the restoration that X1 and X6 are tally of this high speed respectively inputs end and starting input end. Use X10 to pass M8244 but set its computation means, begin computation when X12 and X6 put through at the same time, enumerated input signal comes from at X0, the set value of C244 is appointed by D0 and D1. Besides usable X1 instantly outside restoration, also can use the X11 restoration that echelon pursues medium. Graph 11 belts start restoration to carry single-phase single count to input of graph of echelon of process of computation of high speed tally 2) number of address of tally of high speed of input of single-phase double computation is tally of high speed of input of single-phase double computation C246 ~ C250 in all at 5 o'clock. Tally of this high speed has, input end to add count, one inputs end to reduce count, the position that can use M8246 ~ M8250 controls its computation fashion. Graph 12 it is graph of echelon of process of computation of tally of high speed of input of single-phase double computation. X10 is restoration signal, its are effective (restoration of ON) criterion C248. Check a watch 5 knowable, also can use X5 to be opposite its restoration. When X11 puts through, pitch on C248, the input comes from X3 and X4. 3) number of address of tally of double photograph high speed is tally of double photograph high speed C251 ~ C255 in all at 5 o'clock. The signal sequential of A photograph and B photograph decided the computation way of tally of double photograph high speed, see the graph shows the sequential chart between A photograph and B photograph 13 times. When A photograph is in ON condition, b photograph arrives by OFF when ON to impose computation kind; When A photograph is ON, if B photograph arrives by ON OFF, show to decrease computation means place. The sequential chart of alternate with of B of get along with of graph 12 A pursues sequential chart of graph of echelon of computation of tally of high speed of input of 13 single-phase double computation is a kind of description signal guides a time and disconnect the rectangular and undee graph of time, when scale sequential chart normally two plant or signal of two kinds of above is pressed from left to right time order scale is in horizontal on, sequential chart left end states signal arises normally only then dot. Sequential chart basically expresses to be on sometime dot of each signal guide connect with disconnect of condition, each signal guide with disconnect the accident of time and each signal guide wait for content with disconnecting cycle. Graph 14 it is graph of echelon of process of computation of tally of double photograph high speed. When X12 puts through, c251 computation begins. Check a watch 5 knowable, its input comes from X0 (A photograph) with X1 (B photograph) . When computation exceeds set to be worth coil Y2 puts through. If X11 puts through, criterion tally restoration. Y3 of the coil when M8251 puts through puts through, it is right now impose computation kind, disconnect when M8251 conversely when, coil Y3 disconnects, set to reduce computation kind, use M8251 ~ M8255 namely, controallable the computation means of C251 ~ C255. Graph echelon of process of computation of tally of high speed of 14 pairs of photographs pursues 7, pressing with a finger and invariable finger include branch and subprogram to use index (P) and interrupt with pressing with a finger (I) . In echelon needle of graph middle finger is put in the left of left generatrix. 1. Branch and branch of subprogram finger and subprogram are P0 ~ P127 with number of address of pressing with a finger in all 128 bits, use at the directive to jump turn of instruction CJ jump turn the entrance address that target or subprogram call instruction CALL place to call a subprogram. Graph 15 it is graph of echelon of branch indicator executive process. Often leave when X1 when touching a head to put through, carry out jump turn instruction CJ P0, PLC jumps to grade to handle executive P0 the following order for P0, return according to SRET. Graph echelon of executive process of 15 branch indicator pursues 2.
Interrupt pressing with a finger to break finger (I) the entrance position that is used at the directive to suspend a program. Carry out after suspending a program, encounter interrupt the main program is returned when returning instruction IRET. Interrupt pressing with a finger to the input interrupts pressing with a finger and timer finger to wait, the input interrupts pressing with a finger to state type is: ① of of of ② of ① of of of of of of of of of of of €€ of I € is 0~5 of input terminal date, express to input terminal from X0~X5 respectively, every input terminal can be used 1 times only; ② is to break pattern, 00 express to drop the edge is interrupted, 01 state ascendant edge is interrupted. Timer indicator states type is: ① of of of ② of ① of of of of of of of of of of of €€ of I € is timer interrupt date 6~8, every timer can be used 1 times only; ② is the time time of timer, 10~99mA. For example when I101 is the signal that should input terminal X1 to change from OFF ~ ON, carry out make up after FEND dictates, after be grade with I101 suspend a program, return according to IRET instruction. I610 is carried out for every other 10mA make up after FEND dictates, after be grade with I610 suspend a program, return according to IRET instruction. 3.
Cent of invariable constant is entered two kinds for K, H make number, among them K expresses decimal integer, what the set value that basically is used at appointing timer or tally and applied function dictate operand is medium is numeric, the limits of 16 decimal constant is - 32 768~+32 767, the limits of 32 decimal constant is - 2 147 483 648~+2 147 483 647. H shows hexadecimal number, the operation that basically is used at expressing to should dictate with the function is numeric. The limits of 16 hexadecimal constant is 0~FFFFH, the limits of 32 hexadecimal constant is 0~FFFFFFFFH. 8, working job narrates an input to output relay working principle, auxiliary relay, condition relay, general timer and in-house tally action and control function. Information: Arrange Baconian attend a lecture note is decision-making: Action of component of process designing of PLC of affirmatory FX2N series and control function narrate plan of report form : The design narrates report content to reach narrate measure to carry out: Action of component of process designing of PLC of compose FX2N series and control function narrate a gender to report checks: Consult the data checks to evaluate oneself: The group is evaluated CNC Milling