Component of FX2N process designing

  • Time:
  • Click:19
  • source:BAGANZ CNC Machining
Department of process designing component points to but program controller interior is equivalent at relay different parts of an apparatus of the function. Component of process designing of FX2N series PLC has an input to output relay (X and Y) , auxiliary relay (M) , condition relay (S) , timer (T) , tally (C) , data register (D) , with pressing with a finger (P, I, N) etc. Component of process designing of FX2N series PLC divides composition by two, the first part represents process designing element with a letter, the 2nd portion shows the sign organizing location of component of this process designing with the number. Graph give typical examples of wiring of 1 transistor output one, the input outputs relay 1.   inputs input relay relay (X) it is the input signal that PLC uses at receiving user facilities to give out, each input relay coil all is linked together with terminal of interface of corresponding PLC input, have infinite often leave touch head and often shut when touching a head to offer process designing, use. Graph 2 it is relay inputs module equivalent circuit, input relay among them coil X0 join is on X0 of corresponding input interface terminal. Graph 2 relay input module equivalent circuit to input relay coil can by drive of exterior input signal, and cannot use drive of program interior instruction, its touch a head to also cannot be outputted directly the belt is laden, because this is in PLC program,input relay touchs a head to do not have coil only. Just read in input signal in the begining in each scanning cycle according to PLC, this inputs signal with respect to the requirement (" ON " or " OFF " ) the scanning that maintains time to be more than PLC is periodic, otherwise, PLC reads less than maintenance possibly in cycle of a scanning the input signal with too short time, and bring about input signal to lose. 2.   outputs output relay relay (Y) use at PLC to control element to actuator deferent control signal, relay outputs module equivalent circuit to see a picture 3. Each output relay all passes an output to often leave to touch head and end of corresponding PLC output forcedly to be linked together, this output often leaves to touched a head forcedly to mirror output relay of coil with the position that decide, should output relay for example Y0 electrify, output the signal position that often opens to touch head Y0 forcedly to be " 1 " . Suffer output relay Y0 pilot is used for process designing often leave touch head and often shut it is OK to touch a head infinite second use. Graph 3 relay output module equivalent circuit to output relay of coil connect condition to implement result decision by PLC program, scan in every time periodic and final phase, the content that CPU will output image register with batch processing means conveys the output interface terminal of PLC, make exterior load works. Component serial number sees the input output relay of FX2N series PLC watch 1. The X0~X7(8 when FX2NM FX2N-32MFX2N-48MFX2N-64MFX2N-80MFX2N-128M of component serial number expands nods relay of output of input of PLC of series of watch 1 FX2N) X0~X17(16 is nodded) X0~X27(24 is nodded) X0~X37(32 is nodded) X0~X47(40 is nodded) X0~X77(64 is nodded) X0~X267(184 is nodded) Y0~Y7(8 is nodded) Y0~Y17(16 is nodded) Y0~Y27(24 is nodded) Y0~Y37(32 is nodded) Y0~Y47(40 is nodded) Y0~Y77(64 is nodded) Y0~Y267(184 is nodded, be equivalent to relay controlling the auxiliary relay in circuit. Auxiliary relay coil condition by PLC result of the operation intermediate is decided, it is OK to suffer auxiliary relay to coil pilot often leaves and often shut the amount that touch a head infinite second use, the mark of a condition that an auxiliary relay touchs a head is in-house memory only stores, so auxiliary relay touchs head both neither to be able to be received external input signal, also cannot direct drive is exterior and laden. 1. General and auxiliary relay   is general and auxiliary relay did not cut off the power maintain a function. All general and auxiliary relay before PLC electrify all automatic restoration is " OFF " condition, when electrify besides turn into because of exterior input signal " ON " beyond the general and auxiliary relay of condition, the others all maintains " OFF " condition, the condition after electrify is decided by input signal. 2. Cut off the power maintain auxiliary relay to cut off the power maintain auxiliary relay to have memorial function, when PLC cuts off the power will cut off the power by the lithium battery of PLC interior maintain auxiliary relay condition maintains in corresponding image register, transfer into from inside image register the condition when cutting off the power continues to work on this foundation again after new electrify. Watch 2 it is FX2N series PLC general and auxiliary relay and cut off the power maintain auxiliary relay serial number area distributes a list. Among them M500 ~ M1023 can be its set general and auxiliary relay by software. General and auxiliary relay reachs PLC of series of watch 2 FX2N cut off the power maintain auxiliary relay PLC model FX2N, FX2NC is general assist relay 500 a little bit, m0~M499 cuts off the power maintain auxiliary relay 2572 a little bit, m500~M3071 add up to exemple of 3072 bits of   : Graph 4 echelon pursue medium, m500 maintains auxiliary relay to cut off the power, try an analysis to cut off the power the condition of this relay in reaching new electrify process. Graph 4 cut off the power maintain auxiliary relay functional give typical examples answers: When setting a system to break phone, m500 coil is in electrify condition, criterion after PLC new electrify, m500 is in the electrify condition when memory, so M500 often leaves touch a head to close implementation is locked up oneself, when till often shut the X2 that touch a head,disconnecting, coil M500 just can break phone. Cut off the power so maintain auxiliary relay condition suffers effect of exterior input signal only, do not suffer systematic electrify and the effect that cut off the power. 3. Special and auxiliary relay   is special and auxiliary relay in all 256 bits, use at showing the special status of PLC. They have respective special function, offer run mode of PLC of clock pulse and mark, set for example, perhaps use at the pace to receive order, prohibit interrupting etc. Touch head dummy special and auxiliary relay touchs head dummy special and auxiliary relay by systematic program drive its coil, can use its to touch a head directly in user program and cannot appear its coil, commonly used touch head dummy special and auxiliary relay sees a table 3. Watch 3 commonly used touch head dummy special and auxiliary relay instruction card of function of serial number name shows functional category relay when PLC condition M8000 runs surveillant relay to open accident to go when PLC, m8000 is ON; Close machine when stopping, m8000 is OFF. M8000 can serve as " PLC moves normally " the mark uploads to go up a computer when stating PLC condition M8001 runs surveillant relay to open accident to go when PLC, m8001 is OFF; Close machine when stopping, after stating for ON relay of the initial pulse at the beginning of PLC condition M8002 opens accident to go when PLC, m8002 turns into by OFF in M8000 only ON puts through automatically a scanning is periodic. Can use M8002 often leave touch a head to make cut off the power maintain relay after initialization states relay of the initial pulse at the beginning of PLC condition M8003 opens accident to go when PLC, m8003 turns into by OFF in M8000 only ON breaks a cycle of a scanning automatically to state voltage of battery of lithium of PLC condition M8005 reduces relay the M8005 when lithium battery voltage drops to be worth to the regulation turns into ON, can touch head drive to output relay with its pilot is exterior indicator light, remind change lithium battery offers pulse of clock of in-house 10ms of clock pulse M8011 to become after PLC electrify, it is 0N for 10ms(5ms from movable unripe cycle, 5ms offers pulse of clock of in-house 100ms of clock pulse M8012 to become for the clock pulse of OFF) after PLC electrify, the clock pulse that is 100ms from movable unripe cycle offers pulse of clock of 1s of interior of clock pulse M8013 to become after PLC electrify, from movable unripe cycle pulse of the clock that it is 1s offers pulse of clock of 1min of interior of clock pulse M8014 to become after PLC electrify, it is coil of   of 1min clock pulse special and auxiliary relay from movable unripe cycle coil special and auxiliary relay by coil of user program drive, make PLC executes specific operation, and the user does not use his to touch a head. Commonly used coil special and auxiliary relay for example: After the coil electrify of M8030, express the glow diode with batteries small voltage drop; After the its coil electrify of M8034, PLC prohibits all output, namely all and exterior output all is " OFF " , but PLC program still is carried out normally. 3, condition relay   condition relay (S) the sequence control program that basically is used at work out PLC, dictate into sequence control with the pace STL cooperates to use commonly. Relay of commonly used condition has initiative condition relay (S0~S9 in all at 10 o'clock) , answer 0 condition relay (S10~S19 in all at 10 o'clock, for returning only then use when the dot) , current condition relay (S20~S499 in all 480 bits, did not cut off the power protective function, need to cut off the power when maintaining a function, usable program set) , cut off the power maintain condition relay (S500~S899 in all 400 bits, the RAM that the cell that take lithium uses when cutting off the power or EEPROM save its ON or OFF state) , call the police with condition relay (S900~S999 in all 100 bits, when set ANS and ANR of restoration of signal warning apparatus dictate, use signal warning apparatus removes exterior breakdown to diagnose output action, call signal warning apparatus) . In be not sequence control program, condition relay (S) also can use as auxiliary relay (M) . In addition of condition relay often leave touch head and often shut it is OK in PLC process designing to touch a head infinite second use. Graph 5 condition implement (the action exemple of S) : Graph 5 it is to use position implement S undertakes manipulator movement dominates ordinal function picture, analyse each condition relay action. Answer: When actuating signal X0 is 0N, manipulator drops, to drop spacing X1 begins clamp work, clamp reachs the designated position when signal X2 is ON, manipulator begins to rise, after rising to upper limit X3, stop, whole process can be divided for 3 paces. Each pace uses a position implement record of S20, S21, S22. Every condition implement have respective set and restoration signal (like S21 by X1 set, x2 restoration) , respective output is operated (drive Y0, Y1, Y2) . From start begin by on to fall to be transferred as state action, the condition of the on one pace when action of below one state recovers from an illness automatically. After using condition relay, the noninterference of behavioral each other between pace and pace, and need not consider the each other between different situation to lock up, the design is clear and concise. 4, data register   data register (D) with Yu Weimo control drafting a quantity, position measures parameter of memory of I/O of control, data and working data, each data register all is 16, among them the most exalted regulation is a symbol, can rise with combination of two data register deposit 32 digit to occupy, still set the most exalted for the symbol. Register of commonly used data has in FX2N series PLC the following 4 kinds. 1.

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