Download Print this page

NCT 90 Manual

Milling-machine control integrated pcl

Advertisement

Quick Links

®
NCT
90
MILLING-MACHINE CONTROL
INTEGRATED PCL

Advertisement

loading
Need help?

Need help?

Do you have a question about the 90 and is the answer not in the manual?

Questions and answers

Summary of Contents for NCT 90

  • Page 1 ® MILLING-MACHINE CONTROL INTEGRATED PCL...
  • Page 2 Manufactured by NCT Automation kft. H1148 Budapest Fogarasi út 5-7 : Address: 1631 Bp. pf.26 . Phone: (+36 1) 467 63 00 . Fax:(+36 1) 363 6605 E-mail: nct@nct.hu...
  • Page 3 © Copyright NCT February 26, 2001 The Publisher reserves all rights for contents of this Manual. No reprinting, even in extracts, is permissible unless our written consent is obtained. The text of this Manual has been compiled and checked with utmost care,...
  • Page 4 $" perform self-contained functions usually related with time functions (e.g. slide lubrication cycles). The NCT 90 controls transfer this logic function to the "integrated" PLC. The NCT controls are operated in multi-task systems, in which basically four TASKS alternating at intervals of 5 ms;...
  • Page 5 $" emergency signals, $" signals of limit-stop positions, $" signals of ref-point switches. The module is terminated mandatorily by instruction J1. 1.1.3 Execution of the Module :000 This module is used for serving classical PLC activities where no time dependence exists. It may be interrupted by the task changer;...
  • Page 6 2.2 Entry of the PLC Program Through the PLC Editor The NCT 90 provides a special-purpose editor for editing the PLC program on the control. Since the control has no ASCII keyboard of its own, the Soft Keys are used for the input of non-numeric characters and for editing functions.
  • Page 7 cursor-moving button. It will move the cursor rightward, i.e. toward higher addresses; when the button is held down, the cursor will be moving continuously. At the end of a line it will go automatically to the first character of the next line. This function remains unchanged in STRING search mode.
  • Page 8 pressed, the variables, registers, counters, input-output lines can be listed on the screen, to which references are made in the program. CHARACT Character entry button. Although it is the top one of the Soft Keys, it is discussed last because it has by far the most complex function. When this button is pressed, the Soft Keys will be assigned new meanings, i.e.
  • Page 9 2.3 Terminating the Editing of the PLC Program The PLC editor is used for editing ASCII texts, from which the PLC compiler generates a machine code that can be executed at a high rate by the central processor unit. The compilation is commenced automatically as soon as you escape from the editor (paging key).
  • Page 10 3 Modules of the PLC Program 3.1 System Modules :001 20ms clock module Called at every 20 ms Mandatory activities: $" Handling of alarm signals $" Handling of limit-stop positions $" Manipulation of ref-point switches $" Handling of other signals demanding fast serving $"...
  • Page 11 3.3 Subroutines Provided by the Manufacturer (to be called from the PLC) It is a continuously expanded library of subroutines. :050 - :059 Those modules may not be used optionally. None of the modules of the above numbers may be included in the PLC program, only reference may be made to them with instruction C05n. Whenever the compiler finds such a module, it will return an error signal.
  • Page 12 0 = 50% 1 = COMMAND1/ANALOG1 parameter 1 = 60% 2 = COMMAND2/ANALOG2 parameter 2 = 70% 3 = 80% 4 = 90% 5 = 100% 6 = 110% 7 = 120% 8 = 130% 9 = 140% 10= 150% After the module was called the system`s software checks whether the position control loop is closed on the given output (parameter NOLOOPn=0).
  • Page 13 other way ground, never call modules from the PLC program, that are used by subroutines :005 - :019. $" At the time of escaping from the modules, the PLC $ $ $ $ NC data transfer register of the particular module must be loaded to the current value (SRHnnn), because those registers are used by the NC for its internal administration and for the displays! :005 - Spindle START/STOP module It is called when the NC executes command M03, M04, M19 or M05.
  • Page 14 if the magazine can be turned in both directions (this fact is indicated by parameter 0103 BIDIR=1) it tells the shorter way to the tool pot searched =0 search in positive direction =1 search in negative direction positive direction: increasing number of tool pots bit 13 - bit 8 =don`t care bit 7 - bit 0 = tool pot number Mandatory activities in module :008...
  • Page 15 :011 - End of program module (M2, M30) Called when the NC is being run under command M2, M30 or % (end of program). At the time of entering in the module, the content of the OP is not defined. Mandatory activities: none.
  • Page 16 case a: if bit 15=0: the return tool number is in OP register bit 14=0, bit 13 - bit 0 = return tool number case b: if bit 15=1: the return pot number is in OP register bit 14: the optimal direction for turning the magazine if it is bidirectional (this fact is indicated by parameter 0103 BIDIR=1).
  • Page 17 4 Variables of the PLC Program 4.1 PLC %$ %$ Machine Interface Input, Output Lines The basic configuration of the NCT90 control has 48 INPUT and 32 OUTPUT lines on the INT board (1 pcs). That number can, of course, be expanded through the use of max. 4 INT boards.
  • Page 18 I403 PROGRAM MODE =1, the NC is in program-editing mode =0, no PROGRAM mode I404 TEST MODE =1, the NC is in program test mode =0, no TEST mode I405 AUTO MODE =1, the NC is in automatic program execution mode =0, no AUTO mode I407 JOG STATE =1 the NC is in an operational mode where the use of jog buttons or the use of the...
  • Page 19 I463 selection of external handwheel axis =1, selector in position 4 I464 selection of external handwheel axis =1, selector in position 5 I465 selection of external handwheel axis =1, selector in position 6 I470 selection of external handwheel axis =1, selector in position 0.001 I471 selection of external handwheel axis =1, selector in position 0.01 I472 selection of external handwheel axis...
  • Page 20 OUTPUT FLAGS PLC $ $ $ $ NC Y400 MACHINE ON lamp. U400 = softkey MACHINE ON is inverted, D400 = the inverse state is turned off. Y401 MACHINE ON acknowledged (ACK.). U401 = acknowledgement of the MACHINE ON push button (I412), i.e. the feedback by the PLC of having sensed the depression of MACHINE ON;...
  • Page 21 U412 = limit-stop position on axis 3. Signal to the NC to stop the movement of axis 3 in negative direction and to blink error signal LIMq-. D412 = limit-position request cancelled. Y413 LIM3+ U413 = limit-stop position on axis 3. Signal to the NC to stop the movement of axis 3 in positive direction and to blink error signal LIMq+.
  • Page 22 NC with reference to the content of register RH068. D447 = internal handwheel (built in the panel or having no axis selector). The axis to be moved is selected by the function keys of the NCT Operator´s panel.
  • Page 23 Y450 request of MANUAL mode. U450 causes the NC to change from the current mode to MANUAL mode. Afterwards (I400=1), the PLC has to issue command D450 or else the NC will change over to MANUAL mode at intervals of 100 ms as long as Y450=1.
  • Page 24 I460-I472. Y611, ..., Y614 polarity of analog signal on the 1, ..., 4. axis output when calling :054, ... :057 subroutine U611, ..., U614 = positive analog signal D611, ..., D614 = negatív analog signal Y615 polarity of analog signal on the spindle output when calling C058 subroutine U615 = positive analog signal D615 = negatív analog signal 4.3 Parameter Transfer between PLC and NC...
  • Page 25 RH068 states of external handwheel switches (selection of axis and resolution). [RH068] [xxxxx|xxxx|xxxx|xxxx] " axis 1 " axis 2 " axis 3 " axis 4 " axis 5 " NC setting (handwheel off) " x0.001 resolution " x0.01 resolution " x0.1 resolution RH090 spindle speed with the override and the range limits taken into account.
  • Page 26 5 Instructions of the PLC Program :nnn: program module identifier (:000-:199). There are four types of module: $" 1. system modules (:000 and :001). $" 2. modules of optional uses (:002-:199 except for :005-:012 and :050-:059). $" 3. subroutines provided by the manufacturer (to be called by the PLC); :052 = sending the content of OP to the spindle analog output;...
  • Page 27 Qnn: start of conditional test with checking the state of the nn-th program counter (Q00- Q99). The conditional test is bifurcated: true while it is counting, false when the counter is empty. Qnn "still counts" E "not counting, empty" Z Tnn: start of conditional test with checking the state of the nn-th event counter.
  • Page 28 X: bit-by-bit logic XOR relations between the OP and a DATA word. OP=OP X data Logic XOR relation between two terms of a group conditional test joined by brackets. For example: (Innn X Ynnn) <: start of conditional test. Is the OP smaller than the DATA to right of the functional symbol? For example: <Lfnn (is OP smaller than the content of register Fnnn?) >: start of conditional test.
  • Page 29 TRUE or FALSE result, respectively. UQnn: incrementing by 1 the content of the nn-th software counter (UQ00-UQ99). DQnn: decrementing by 1 the content of the nn-th software counter (DQ00-DQ99). +: adding a DATA to the OP. OP=OP+DATA -: subtracting a DATA from the OP. OP=OP-DATA BIN: converting the BCD content of OP into a BINary one.
  • Page 30 5.1 Printing on the Screen There are several programs run in the control simultaneously, with time sharing. The PLC is one of them. Since all programs, including the PLC, use the same 16-character text field, the messages have to be gathered within the PLC so that they are not lost. Therefore, all errors printed have to be cleared in the event of repeated erratic runs.
  • Page 31 6 APPENDICES 6.1 Error Messages of PLC Compiler The error messages of the PLC compiler and the codes are interpreted as follows. In the case of a flawless compilation of the PLC program, the PLC compiler returns the message "PASSED" (flawless compilation). If the PLC compiler detects a syntactic error in any phase of the compilation, the process of compilation is interrupted and a message (with a numeric identifier) is return.
  • Page 32 number) ERROR 32 - "<Nx" is followed by an illegal character (other than L, S or number) ERROR 33 - relation symbol "=" is followed by an illegal character (other than L, S or number) ERROR 34 - relation symbol "=Nx" is followed by an illegal character (other than L, S or number) ERROR 35 - relation symbol ">"...
  • Page 33 6.2 Example of a PLC Program Input lines: I000 LIMY- Y:Y axis negative limit switch, normally closed I001 LIMY+ Y:Y axis negative limit switch, normally closed I002 I003 Emergency stop: status of the emergency circuitry, normally closed I004 LIMX- X:X axis negative limit switch, normally closed I005 LIMZ- Z:Z axis negative limit switch, normally closed I006...
  • Page 34 L8000 THIS MINI PLC PROGRAM IS LOADED FROM PROM! (V.1.50) (c) NCT 1st level module called in each 20ms :001 (V003ANI003) ;falling edge of emergency stop line D404 ;mavhine on output disable PBE"ESTOP?" ;calling blinking error message C003 ;calling emergency stop module (NI402ONI411) ;not reference point return mode or...
  • Page 35 D431 ;y is on referenece switch (I007AI005) ;limit switches of Z axis are considered as ;reference point switches U432 ;Z is not on referenece switch D432 ;z is on referenece switch ;end of module 001 2nd level PLC modul :000 C004 ;calling the initialization modul :100...
  • Page 36 ;return PLC initialization module :004 U405 ;sets emergency state flag PLC -> NC SRH052 ;sets M5 status PLC -> NC SRH053 ;sets M9 status PLC -> NC LF12 ;loads last gear range code into OP <11, ;if lower than 11, then sets 11 (M11) >14, ;if higher than 14, then sets 11 (M11) SRH054...
  • Page 37 ;timer H1 is on yet NI003 ;emergency input is 0 yet G015 ;goes to the beginning of the cycle ;emergency circuitry is OK D405 ;cancels emergency status flag PLC -> D412 ;cancels Z- limit flag D413 ;cancels Z+ limit flag D414 ;cancels Y- limit flag D415...
  • Page 38 D453 ;bipolar spindle drive - command signal NF090 ;if spinle drive unipolar (CONST3=0) U453 ;always + command signal LRH053 ;valid coolant code U002 ;if 8, coolant on LRH000 ;programmed S code from NC to PLC SRH050 ;feedback of S code to NC U452 ;spindle command signal output enable C053...
  • Page 39 Tool change module :008 SF10 ;stores tool number into register F10 LRH051 ;loads the current (old) T code =LF10 ;compares it with the new tool code LRH001 ;if they are equal the new T code fed back SRH051 ;the NC SF10 ;stores the T code into register F10 ;returns from module :008...
  • Page 40 C005 ;calls spindle module :005 with 5 (M5) ;return Spindle jog module :012 ;release of jog button (M5)? G005 ;spindle stop by calling modul :005 ;exit :012 via :005 ;direction M4? U001 ;spindle on D000 ;M4 direction F090 ;bipolar or unipolar .0040 ;- command signal at bipolar .FFC0...
  • Page 41 Module function B :016 ;return Module function C :017 ;return Activity after 2xSTOP :018 ;return Activity for START after 2xSTOP :019 ;return Waiting for clear push button :150 SF20 ;saves OP SRH015 ;resets clear button code register :151 ;label of the internal cycle waiting for clear ;button code LRH015 ;loads register...
  • Page 42 :153 ;label of the internal cycle waiting ;start button code LRH014 ;loads register =.008F ;is it the code of start button? LF20 ;if yes restores OP ;return G153 ;if not jumps back to :153...
  • Page 43 6.3 Interface Board (INT) Connector Pin Layout INT SO3 INT SO2 INT SO1 I000 ( 35 ) I040 ( 35 ) Y000 ( 14 ) I001 ( 32 ) I041 ( 32 ) Y001 ( 12 ) I002 ( 14 ) I042 ( 14 ) Y002 ( 31 ) I003 ( 13 )