The PLC of signal of FANUC Oi fold is controlled

  • Time:
  • Click:218
System of 0 introductive numerical control " fold signal " PLC process designing, it is one of serious content that signal of face plate of machine tool operation handles, it holds the proportion that comparative in program of machine tool PLC. On numerical control machine tool, "Fold signal " include a hand to move fold of fold of rotate speed of fold of speed of rate of feed speed carry out, automatic feed, main shaft, speed to wait normally. The system that uses according to the machine tool and choose instruction component, the requirement that the system inputs to signal each different, the processing technique because of this PLC program also each are not identical. The article with FANUC 0i (include PMO) the system is exemple, introduced with two kinds dictate component is corresponding together, suit at different system special requirement, times value can be changed at any time, set, compendious, agile PLC program processing technique, offer reader reference. 1 control asks to regard the instruction of fold signal as component, according to the habit of people, switch of general choice wave band undertakes modulatory. The FANC system in the tradition (be like FANUC OC) in, the requirement that systematic adversary changes the signal such as fold of fold of rotate speed of fold of feed speed fold, automatic feed speed, main shaft, speed is simpler, it needs only normally exterior offer 4 ~ signal of encode of 5 binary systems, the designation that inputs a system address can. Below this kind of circumstance, can choose switch of common binary encode wave band directly, handle slightly in PLC Cheng library, can satisfy systematic requirement. But in system of FANUC 0i set, the systematic requirement to fold signal and compare before, had apparent change, move feed speed fold to be with the hand exemple, if predict,its ask: A.

Basic hand moves feed speed to adopt parameter PRM1423 set; B.

The hand moves feed speed fold to use signal of encode of 16 binary systems, cheerful is G10 into the address.

0 ~ G11.

7 (JVO ~ JV15) ; C.

Code the corresponding relation of signal and actual fold is calculated by next type, the adjusting range of fold is 0 ~ 655.

34 % . Fold increment is 0.

01 % , the concern of signal of input of actual times value is as follows type: Fold is worth (% ) = 0.

15 ∑ of 01 × 02i × (Jvi) feed fold and the control that carry out of main shaft rotate speed leads and hand use feed speed fold similar, those who use is signal of encode of 8 binary systems, input address is G12 respectively.

0 ~ G12.

7 with G30.

0 ~ G30.

7; The adjusting range of fold is 0 ~ 254 % , fold increment is 0.

01 % ; Basic rate is appointed by the process designing of machine program. This shows, in system of FANUC 0i set, signal of encode of 5 binary systems cannot have used the 4 ~ of wave band switch at the input of systematic fold signal directly again, must have processing and control through PLC program. The processing of switch of 2 wave band 2.

The choice of 1 speed, fold is connecting general reason condition to fall, to retain the habit of tradition of numerical control machine tool, convenient operation, the hand of the machine tool moves fold of feed speed fold, automatic feed speed to wait, general appropriate chooses wave band switch to undertake modulatory, and every are blocked times value should choose appropriate. The design that uses feed speed fold with the hand is exemple, to make the control of fold and adjust as unified as traditional FANUC system photograph, the author used switch of general wave band of encode of 4 binary systems when the design, and set the actual hand that the watch shows 1 times uses feed shift rate. 2.

2 parameter set expresses a shown hand to use feed rate for set, what consider various feed rate at the same time is agile and alterable, in all memory is worth above feed speed to be expressed at the data of PLC when the design, when should needing to change rate of any one class feed, the corresponding content that needs to change data to express only can. When actual machine tool is designed, the D10 ~ D33 that above data takes up data is expressed in all 24 byte, among them: D10 ~ D17 (in all 8 byte) BCD of the byte that it is sheet is invariable, use at appointing position of wave band switch the actual hand of 7 correspondence of 0 ~ uses feed rate; D18 ~ D33 (in all 16 byte) for constant of double byte BCD, use at appointing position of wave band switch the actual hand of 15 correspondence of 8 ~ uses feed rate. Press above demand, if the control word that set data expresses and data value express 2 to show. To facilitate handlers identifies, the hand that still uses a convention on operation face plate uses feed rate the means of direct demarcate, namely: In correspondence of wave band switch locally, those who indicate is value of actual feed rate. Because what OK adjustment is the fold that the hand uses feed only in effective system, accordingly, move the real value of feed speed and calibration value conform to to assure a hand, in the PRM1423 of machine tool parameter of numerical control system, should the hand of set moves feed speed to be 10000mm/min, ability makes real value and calibration value conform to. For example: It is when fold 4 (switch position 1) when, actual hand moves = of feed speed F 4 × of 10000 × 0.

4mm/min of 01 % = . 2.

The program of P L C that 3PLC programming asks to design according to above is divided in all to input coding, code changeover, signal treats 3 shares. 2.

3.

The action of coding of input of 1 input coding is the signal that changes the hand switch of feed speed fold changeover is PLC in-house relay signal. Operating the hand on face plate to move what switch of feed speed wave band chooses is 16 paragraphs, the switch of general wave band that 4 binary systems code, input address is X5.

7 ~ X5.

4; To the position 0, the translation program of 1 is like graph L, program of the others position is similar. The R2 in the program.

0, R2.

1 it is with the operation face plate begin uses position of switch of feed speed wave band 0, the 1 PLC interior register that answers relatively. In whole process, after coding is finished, the 15 positions of 0 ~ of wave band switch and register R2.

0 ~ R3.

The condition of 7 is one to one correspondence. 2.

3.

The intention that 2 code change code to change a course is the 0 ~ according to switch of above wave band the coding signal of 15 positions, express the data of PLC medium corresponding content, the signal of encode of 16 binary systems that changeover asks for the system. The DCNV of data changeover instruction that code changeover can pass FANUCPLC directly (SUB14) undertake, to position of wave band switch 0, if actual transition program pursues 2. The R0 in the program.

0 for constant " 0 " signal, r0.

1 for constant " 1 " signal, RO.

7 for systematic restoration signal, r6.

0 it is 7 signal of ~ of O of position of wave band switch (signal of mark of monomial section changeover) , r4.

0 for position of switch of in-house wave band the changeover condition of 0 indicates. Pass above the changeover of similar program, the data of PLC expresses content of medium D10 ~ D17 to will be changed to be binary code. Save in intermediate register R100. Same, because the data of PLC expresses content of medium D18 ~ D32,be double byte number, answer to the transition program of D18 ~ D32 accordingly set DC-NV (SUB14) the BYT mark of the instruction is " L " (double byte) , corresponding changeover is saved as a result in intermediate register R100, R101. 2.

3.

3 signal handle signal to handle the function that controls a process is the outcome that changes above signal (the content of binary register R100, R101) output CNC hand to move feed fold G10.

0 ~ Gll.

The corresponding address of 7. The different changeover circumstance of odd byte of above of Lv of the take an examination when programming and double byte, change mark signal R6 through monomial section namely.

0, R6 of signal of mark of double byte changeover.

1, undertake corresponding processing to the content of binary register R100, R101, if actual transition program pursues 3. Program the first paragraph action is to be when monomial section changeover (changeover mark R6.

0 = L, R6.

1 = 0) , the content register R101 is automatic buy " 0 " . SUB8 of FANUCPLC order injunction is " logistic multiplicator sends as it is said " (MOVE) instruction, because the program is medium " logistic multiplicator " for 00000000, accordingly, when changeover mark R6.

0 = L, R6.

1 = 0 (monomial section is changed) when, can the content binary register R101 is automatic buy " 0 " ; When changeover mark R6.

0 = 0, R6.

1 = L (double byte is changed) when, the content of register R101 is changeless. Program the 2nd, 3 paragraphs action is the input requirement according to CNC, take the content of binary register Rl00, R101 " instead " hind, send CNC hand to move feed fold G10.

0 ~ Gll.

The corresponding address of 7 (program with R100.

O, R100.

1 for exemple, the others identical) . 3 fold are added / in decreasing the processing of key to be designed in actual machine tool, outside dividing switch of use wave band, sometimes still use letter rate is added / the circumstance that decreases key to undertake fold is adjusted, namely: Pass key-press operate fold of the change that pursue course for many times. Below this kind of circumstance, when PLC programming, need to be revised slightly to inputting coding part only can. To simplify program, to above circumstance, can pass in PLC program " shift register " implementation. Input translation program divides those who be shift signal to generate control two shares with shift, if the generating program of shift signal pursues 4. The X4 in the program.

1, X4.

The 2 addition that are fold, reduce key to input signal, pass the processing of above program, can will increase, reduce key X4.

1, X4.

R13 of 2 translate into.

0, R13.

Signal of 2 odd pulse, and be in R13.

4 go up signal of generation shift direction. Shift control can pass FANUCPLC16 displacement instruction SFT (SUB33) undertake. With main shaft fold control is exemple, the adjusting range of hypothesis fold is 50 % ~ 150 % , the increment of every class is 5 % , criterion main shaft fold shares 15 different position, corresponding condition uses R14 of PLC in-house register.

0 ~ Rl5.

6 undertake distinguishing, if pursue,its control a process 5. In the program the first, 2 paragraphs action is automatic when switch on the mobile phone it is set of main shaft fold 100 % (RO.

7 for systematic restoration signal) , namely: R15 of PLC in-house register.

2 (100 % condition) buy " L " , the others position " 0 " , regard initiative condition as signal. The addition that operates fold / reduce key, shift instruction SFF (SUB33) R15.

The content of 2 (" 1 " signal) shift of ordinal left and right sides, assured key-press frequency and condition register R14.

0 ~ R15.

Of 6 one to one correspondence. Reach maximum when fold 150 % or the least value after 50 % , register R15.

6 or R14.

0 for " L " , left move or right move signal will be blocked, increase by what operate fold again at this moment or reduce key, condition is changeless. On the foundation that inputs coding in above, identical code changeover, signal is narrated to handle an order before repass, can be worth with will expressing the fold of various main shaft of set by PLC data, the fold of corresponding main shaft of translate into CNC inputs signal. Above of 4 last words is as corresponding as FANUC0i system, use wave band switch or fold to increase / reduce key, have example of program of fold pilot PLC, its characteristic is the set that can express through PLC data, random changes times value, use agile, adjust convenient. Law of this one party applies to other system likewise. CNC Milling