The instruction of typical PLC and to program

  • Time:
  • Click:140
  • source:SEENER CNC Machining
1.

FANUC PMC-L can make up Cheng controller to dictate this PLC is used for numerical control machine tool inside outfit PLC, its instruction has two kinds of kinds: Dictate basically: Main logistic operation dictates. Uses at most statement is when it is designing ordinal program. Functional instruction: The order that executes as a result of numerical control machine tool is logistic often relatively complex, use regular meeting of basic instruction process designing only very difficult or dimensions is giant, function of have the aid of dictates, can simplify process designing. · PLC instruction carries out medium stack register in the instruction in, the intermediate result of short duration of logistic operation is put at " stack " in register, this register is comprised by 9 (see figure below) , press first-in last-out, junior the stack principle that goes out first works. ST0 deposit the operation result that carrying out, other 8 (the mediacy that logic of check of ST1 ~ ST8) operates. When the intermediate result of the operation takes pen (executive of short duration puts) of the instruction that take pen, register is left move; When giving inn, register is right move. · dictates PMC-L has 12 kinds of basic instructions basically, dictate following plan institute show the pattern basically: The instruction that PMC-L dictates the function that express · dictates numerical control machine tool uses PLC basically must satisfy information processing of numerical control machine tool and behavioral pilot special requirement. For example, the coding of signal of code of binary system of the M that outputs by NC, S, T (DEC) , the delay time of mechanical movement condition or status of action of hydraulic pressure system (TMR) affirms, the computation that machines a spare parts (CTR) , workbench of knife library, graduation rotates along the shortest way and come in the position now the computation that target position condition counts (ROT) , the data when changing a knife retrieves (DSCH) . To choice of the the coding of afore-mentioned instructions, time, computation, shortest way, and quite, retrieve, changeover of move, code, arithmetic, information shows wait for control function, the basic instruction process designing that operates with shift comes true will very difficult. Because this needs a few statements that have special control function,solve those more complex control. These dictate technically even if the function dictates. Functional instruction is a few subprograms, should dictate with the function even if called corresponding subprogram. The format that · function dictates controls a condition: The amount of condition of control of every function instruction and meaning each are not identical, control condition and instruction, parameter and output (W) must be not had omit write by fixed encode order. Instruction: The instruction has 3 kinds of formats to be used at perforation of echelon graph, punched tape and program to show respectively, when process designing machine is inputted, use simplify instruction. Parameter: Differ with basic instruction, functional instruction can process data. Data or the address that put know exactly about sth to occupy can write a function to dictate as parameter. Parameter amount and meaning differ along with the instruction and different. With PLC process designing implement PRM key can input parameter. Output (W) : Functional instruction operation uses logic as a result " 0 " or " 1 " condition outputs W. W address by process designing person random is appointed. Some functions dictate need not W, after be being multiplied like MOVE(logic, data is mobile) , COM(common thread is controlled) , JMP(is transferred) etc. The instruction of function of part of PMC-L of functional instruction · of PLC explains order ends an instruction (END1, END2) ordinal program ends an instruction to include: END1: Advanced order ends an instruction. The requirement answers fast signal (like pulse signal) make up in advanced and ordinal program, cent is 1, 2, 3 class, with the function instruction END1 appoints advanced order end. END2: Elementary and ordinal program ends statement form: Among them I=1 and 2, express respectively advanced end an instruction with elementary order. · timer dictates (TMR, TMRB) is in authorized strength of picture of echelon of numerical control machine tool, timer is indispensable instruction. The delay time that it uses in mechanical movement to finish condition and steady state affirms (like chuck clamp / lock of loose, revolving stage releases clamp of loose, automatic clamping apparatus, cutting tool clamp / loose, main shaft starts / stop to wait for) , the delay time that executive parts of an apparatus of system of machine tool hydraulic pressure, lubricant, cooling, air feed stabilizes working status affirms (like a powerful person of oil cylinder, air cylinder, electromagnetism, pressure the movement such as a powerful person of a powerful person, gas is finished affirm) , and the situation that the other in ordinal program needs to build logistic order to concern with time. · timer dictates format TMR is the delay time timer that set time can change. Set value expresses with the binary system. Binary system 1 quite with 50ms. Set limits: 0.

05 ~ 1638.

35s. Timer job principle: When controlling conditional ACT=0, output W=0 (times namely relay TM ○ ○ disconnects) . When ACT=1, timer begins to time, after arriving at booked time, w=1(puts through namely timer relay) of TM ○ ○ . · coding dictates (when function of the M that machine tool of DEC) numerical control sets in executive machine program, S, T, CNC device outputs signal of code of M, S, T with BCD code form. These signal need to pass coding ability to pile up condition from BCD, changeover becomes a logistic state that has specific function meaning. The address of format coding signal that · DEC function dictates is the index charges unit the signal address of the code of 2 byte BCD to PLC. Coding norms data by serial number and coding digit two parts are comprised, institute of as above plan shows: Serial number must two digit are appointed. For example, to M03 coding, this 2 digit are namely 03. The set of coding digit has 3 kinds of cases: 01: To low digit coding 10: Count coding to perch 11: To the working principle that DEC of 2 digit coding dictates: ACT=0: Not coding, result relay disconnects, ACT=1: Allow coding; The code signal condition in should appointing coding signal address and when appointing signal photograph to be the same as, output W=1, conversely, w=0. The address of coding output W by process designing member random is appointed. 2.

Main shaft motion controls PLC program give typical examples CNC Milling CNC Machining