Home
PLC User Manual
Contents
1. F0 4 Feed dwell alarm signal SPL F0 7 Automatic run signal OP Function Address Signal name Code Chapter Axis moving state F102 0 F102 3 Axis moving signal MV1 MV4 output MVDI aV 1 1 F106 0 F106 3 Axis motion direction MVD4 G29 4 Spindle speed in position signal SAR 8 4 Spindle speed control G30 Spindle override signal indle override signa pindle speed contro p g SOV7 824 G29 6 Spindle stop signal SSTP G200 0 Spindle jog signal SPHD 83 199 0 Spindle jog test signal MSPHD 200 4 Spindle mode signal SIMSPL 8 F208 3 Spindle enables the input singal is valid SPEN 12 1 2 2208 7 Valid signal of automatic gear shifting AGER Spindle automatic Detection signal of gear shifting in position 8 22 gear shifting F208 6 P AGIN when automatic gear shifting to 1 2 G18 0 G18 1 Handwheel feed axis selection signal HS1A HS1B 3 2 1 19 4 G19 5 IHandwheel Incremental override signal 2 3 2 2 Handwheel feed increment selection signal F211 1 SINC 12 8 6 Handwheel Incremental mode Machine reference point return detection F4 5 MREF 2 5 2 signal Level selection for deceleration signal when F201 5 DECI executing machine reference point return Machine reference Self hold of axis motion is valid in reference 205 2 ZNIK point point return End signal of machine reference point
2. Program reference point return detection F4 6 MPRO mode signal MD1 MD2 G43 0 G43 2 ear Mode selection signa MD4 G43 5 G43 7 DNC1 ZRN Signal of spindle clockwise rotation in G74 4 SRVB rigid tapping Rigid tapping G745 of spindle counterclockwise rotation SERB 8 5 in rigid tapping F76 3 Signal in rigid tapping RTAP G8 7 External reset signal ERS Reset 5 2 1 1 Reset signal RST Selection signal with Selection signal with reset key for output reset key for output F204 3 RSJG 12 7 interface interface Tailstock control F208 2 Tailstock control is invalid valid SLTW 12 8 3 F208 0 Chuck function is valid SLSP Internal external F208 1 Do not check chuck signal SLQP 12 4 chuck function F209 0 Internal chuck selection 1 209 2 Chuck in position signal test is valid PB2 Pressure low F209 4 Pressure low detection is valid PB3 12 5 detection F209 5 Level selection for pressure signal SPB3 Safeguard detection 209 6 Safeguard detection is valid 4 12 6 209 7 Level selection for safeguard input signal SPB4 51 54 211 0 51 54 output selection SUOS 12 1 6 selection CAddress sequence Function Address Signal name Code G4 3 Signal for auxiliary function end FIN G5 6 Signal for auxiliary function locked AFL G6 4 Override canceling signal OVC G7 2 Cycel start signal ST G8 0 Interlock signal IT G8 4 Emergent stop signal ESP G8 5 Fe
3. 2 2205 4 22535 View 1 8 22 A PECI MeNi ot en eu EG edat pei 8 ss 9 Chapter TIONS 1 OUT INS ERUG TION sis iiti tS E e ES E SS 1 2 3 5 t ser 2 2 n Aet ctt tee ote hte ete 3 IS ANB INSTRUCTION ione eov UOI D 3 Chapter 4 PLC PUNE TTON INS IV 1 41 ENDI END of GRADE ONE PROGRAM D IV 1 4 2 END2 END of GRADE TWO PROGRAM D IV 1 AE NI SA dup MR ME E IV 2 AA RSIOBBSETD EISE IV 2 4 5 BINARY COMPARATIVE SET 0 0 IV 3 Z6 MRB CIINIERJ uL d CR eom IV 4 4 1 CETRO CBINARY COUNTER uie uud Enea epe tet i etat IV 5 4 8 MOVN BINARY DATA COPY IV 6 49 DECB CBINARY ENCODING IV 7 4 10 CODB BINARY CODE CONVERSIO
4. 2 7 HOLD RELAY ADDRESS The address area is used for hold relay and setting PLC parameters and data are saved after the system is switched off Address range K0000 0 K0039 7 value range 0 or 1 Address abo 7 6 5 4 3 2 1 O0 K0000 K0001 Definable addresses 0029 K0030 NC K0039 GSK980TD Turning Machine System 2 8 COUNTER ADDRESS C The address area is used for storing current counting value of counter and data are saved after the system 15 switched off Address range C0000 C0099 value range 0 21 4748 3647 Address 31 230 720 228 5 220 3 2 1 0 number 0000 C0001 p pee C0099 a 3 z 2 9 COUNTER PRESET VALUE ADDRESS DC The address area is used for storing preset value of counter and data are saved after the system is switched off Address range DC0000 DC0099 value range 0 21 4748 3647 Address number DC0000 31 30 29 28 32 1 0 DC0001 DC0099 2 10 TIMER ADDRESS T The address area is used for storing current value of timer and T0000 T0079 are zero after the syste
5. 0 File Edit View PLC Tool Windows Help l xl Da amp Be ae 00015 00015 1 Project 98070 4 60 X100 2100 E PLC M3 5200 El 3 CNC configuring 10100 NC Programs 60 X90 780 698 673 116 5 WO F400 00003 G73 P1 Q2 0 5 00004 1 60 40 275 00005 61 60 760 00008 N2 W 10 00009 G70 P1 02 00010 60 100 2100 00011 00013 zh Ready Z Fig 4 21 Open programs or delete the unnecessary programs by right clicking menu as Fig 4 22 alo x Edit View PLC Tool Windows Help lej z 00015 00015 Project 98070 4 60 X100 2100 E F PLC configuring Cmq 2 2 698 673 116 5 WO R3 F400 e 00003 673 P1 02 U0 5 3 1 60 40 775 A 00004 00005 61 60 760 00006 G2 U10 W 5 R5 zh 0007 G1 X80 740 00008 N2 W 10 00009 670 1 02 60 X100 2100 00011 5 00013 10300 ki Delete px d lt Ready Properties NUM 4 Fig 4 22 Chapter 5 Communication Chapter 5 COMMUNICATION GSKCC communicates with CNC by RS232 during which ladder of current project and parameters can be transmitted to CNC or ladder and parameters can be read from CNC Rightly connec
6. 2 18 19 8 S4 M44 21103 Y1 3 ee MIL 81104 Yl 4 EM fo DOQPS 1105 Y1 5 00 23 11 DIQP 1006 X0 6 DM 12 5 81007 0 7 Jo iod 13 24V 539 output D es EUR 25 13 TL 1107 Y1 7 4 e 12 TL 1106 1 6 4 24 rad e 23 24V 22 05 1 5 81008 X0 4 9 ZDEC 1013 Pee 1 3 m 21 T06 0V2 1009 X1 2 20 T07 0V4 M411 WOPJ 1010 X1 0 7 SP SAGT 1015 X1 E Ii g 19 708 0V8 M421 NOPJ 1011 X1 5 6 TO1 1000 aaa X1 6 18 5 T02 1001 TCU 1 7 17 H 4 703 81002 X0 0 E 16 3 04 81003 X0 1 e 15 2 BDT DITW 1004 X0 2 1 XDEC 1101 X0 3 e XS40 input C GSK980TD standard function ladder Appendix 10 1111 15 15 25 GSK CNC EQUIPMENT CO LTD Add No 52 1 Street Luochong North Road Luochongwei Guangzhou 510165 China Website http www gsk com cn E mail sale1 gsk com cn Tel 86 20 81796410 81797922 Fax 86 20 81993683 All specification and designs are subject to change without notice July 2006 Edition 2 Suit for software version V06 03 23 July 2006 Printing 2
7. Appendix 2 Address Signal Address Signal 00 0 Universal output 01 0 Universal output 00 1 Universal output YO1 1 Universal output 00 2 Universal output Y01 2 Universal output 00 3 Universal output Y01 3 Universal output 00 4 Universal output 01 4 Universal output 00 5 Universal output 01 5 Universal output 00 6 Universal output Y01 6 Universal output 00 7 Universal output Y01 7 Universal output Y02 0 Universal output Y03 0 Universal output Y02 1 Universal output Y03 1 Universal output Y02 2 Universal output Y03 2 Universal output Y02 3 Universal output Y03 3 Universal output Y02 4 Universal output Y03 4 Universal output Y02 5 Universal output Y03 5 Universal output Y02 6 Universal output Y03 6 Universal output Y02 7 Universal output Y03 7 Universal output Y04 0 Auxiliary function locked indicator Y05 0 Coolant indicator on machine control panel Y04 1 Machine locked indicator Y05 1 Spindle clockwise rotatition indicator on machine control panel Y04 2 Optional block jump indicator Y05 2 JOG mode indicator on machine control panel Y04 3 Single block indicator Y05 3 Handwheel increment mode indicator on machine control panel Y04 4 Rapid run indicator Y05 4 Machine reference poin return mode indicator on machine control panel Y04 5 End indicator for program Y05 5 MDI mode indicator on machine reference point return machine control panel reference point re
8. Communication State Current State Send instruction of file Last Error Retrying Times 0 Rate 0 Bytes Second File 5 10 Current File OK AK Total Progress Fig 5 6 5 2 UPLOAD FILES from Run GSKCC and pop up a dialog box after connecting to CNC and clicking upload i x 5 2 5 gt 5 Dn gt Select Files Upload files E GSK980TD How to save Ladder program file New Projet CNC configuring ery Tooler offset screw pitch compensation cH program amp 1USER CANCEL Fig 5 7 For options pointed by cursor How to save of Upload files can be selected a New Project If a project is opened currently the system will close the current project and prompts the user to create a project to save the uploaded files when selecting Upload files if a project is not opened the system directly prompts to create a project to save the uploaded files V 3 415 GSK980TD Turning Machine b Current Project If a project is opened currently one option is that the current opened project is replaced by the upload file data namely the data of current project is replaced by uploading PLC programs parameters from CNC After a file is selected i
9. 415 GSK980TD Turning Machine GR2 G28 2 GR1 G28 1 Gear Parameter number of max spindle speed 0 0 1 Data parameter NO 037 0 1 2 Data parameter 038 1 0 3 Data parameter NO 039 1 1 4 Data parameter 040 NO 037 NO 040 separately set 1 No 4 max spindle speed When analog voltage 10V corresponds to max speed of spindle motor linear relationship of analog voltage output for the same S instruction in different gears is as follows No 1 gear No 2 gear No 3 gear No 4 gear S input 50 59999 NO 037 NO 038 NO 039 NO 040 N m z ze e 5 Suppose that 037 1000 NO 038 2000 039 4000 040 5000 5 800 G28 1 0 G28 2 0 No 1 gear D x10 8V 1000 G28 1 0 G28 2 0 No 2 gear paz 999 gay 2000 G28 1 0 G28 2 0 No 3 gear U3 300 10 2 4000 G28 1 0 G28 2 0 4 gear 4 20d x10 21 6V 5000 Formula operation of output voltage value 512 code 20 01 output NC counts the spindle speed of each gear through gear shifting control namely 512 code signal RI20O ROIO 0 4095 output the spindle motor and PLC Relationship between 10V and 512 code is as follows S12 coda R120 R01O 10V U 2 Chapter 8 Spindle Speed S12 code output SIND G33 7 determinates the spindle speed instruction uses 512 code data R12 O R01 O counted by NC or S12 bit code signal spin
10. 5 2 3 Sequence of Start Operation Ignorance 1 i RST Fl 1 0 DOR E ST 67 2 0 Le qum eel 4 1 OP FO 7 0 SP 68 5 N m z ze e 5 1 SPL FO 4 1 STL FO 5 5 3 When checking programs before running the machine machine lock function be used Set all axis machine lock signal MLK to 1 In the process of manual operation or automatic operation the machine stops pulse output to servo motor But CNC still keeps command assignment and absolute coordinates and relative coordinates are updated Monitoring the changes of the coordinates positions can check if the edited programs are correct or not 5 3 1 All axis Machine Lock Signal MLK G44 1 e Signal type PLC e Signal functions PLC sets G44 1 to 1 and transmits to NC All axes are locked Once G44 1 is set to 1 during the the axis doesn t move Signal address time of manual operation or automatic operation CNC cannot output pulses to servo motor Therefore 1 14 14 14 eee 5 3 2 Detection Signal of All axis Machine Lock MMLK 004 1 e Signal type NC PLC e Signal function When all axes are locked NC sets F4 1 to 1 and transmits to PLC V 4 Chapter 5 Automatic Operation e Signal address pi uy 5 4 DRY DRUN Dry run is effect
11. Insert Delete Search Ctrl F Begin Home End Fig 2 15 Line Rapidly scroll the ladder program to the specified line and pop up a dialog as follows 5 2 5 gt 5 72 gt oO GSK980TD Turning Machine x Line 20 0 NEN CANCEL 2 16 Set line and column number of ladder and rapidly scroll the ladder program to the specified position Program Starting Rapidly scroll the ladder program to starting position of program End of Program Rapidly scroll the ladder program to end position of program 2 2 3 View Menu File Edit view Tool Windows Help v Workspace wv Output v Line Number v ToolBar v StatusBar v Instruction Fig 2 17 Workspace display workspace window or not Output display output window or not Line Number display line number or not Toolbar display main toolbar or not StatusBar display statusBar or not 5 5 2 gt 5 Instruction display instruction or not 2 2 4 PLC Menu File Edit View PLC Tool Windows Help Compile F9 Fig 2 18 Compile Compile the current ladder program by access key F9 Chapter2 Menu Commands 2 2 5 Tool Menu Edit View PLC Tool Windows
12. Chapter 6 Feed speed Control 0011 CODB 0001 Encode computation number K0000 0 G0014 0 0012 I Rapid traverse override encode K0000 1 G0014 1 0013 MG 0008 2 Y8 2 indicator for max 0014 rapid traverse override 0015 Y8 5 indicator for min rapid traverse override 0016 6 3 FEED OVERRIDE Feed speed can be adjusted by feed override and can be used for checking programs For example if the feed speed 5 A I specified in the program is 100mm min when the feed override is adjusted to 50 the tool moves at a speed of 50mm min 6 3 1 Feed Override Signal FV0 FV7 G012 eSignal type PLCNC eSignal function PLC sets a value to G12 and transmits to NC NC can set a feed override according to the value of G12 The relationship between FVO FV7 binary codes and feed override is shown below FV7 FVO0 6012 7 6012 0 Cutting feed override 0000 1111 0 0000 1110 10 0000 1101 20 0000 1100 30 0000 1011 40 0000 1010 50 0000 1001 60 0000 1000 70 0000 0111 80 0000 0110 90 0000 0101 100 0000 0100 110 0000 0011 120 0000 0010 130v 0000 0001 140 0000 0000 150 Note In automatic operation actual feed speed cutting feed speed x feed override eSignal address VI 3 Gr 12 x12 GSK980TD Turning Machine CNC 6 3 2 Feed Override Control Flowchart 000
13. 0003 e 0005 N 18 K0018 0 G0018 0 0006 select X handwheel S K0018 1 G0018 1 0007 I C select Z handwheel F0003 1 600180 G0018 1 Y0007 4 0008 3 Y7 4 X handwheel indicator F0003 1 G0018 0 G0018 1 Y0007 2 0009 I 3 4 11 O Y7 2 Z handwheel indicator X0021 4 0003 1 0010 RST 00194 H 21 4 0 001 key F0003 0 0011 RST K0019 5 X0021 5 F0003 1 0012 00194 X215 0 01 key F0003 0 0013 00195 X0021 6 0003 1 MT RST K00194 H X21 6 0 1 key F0003 0 om SET 0019 5 irish ovem 0016 I ncode handwheel override 7 ST aak ES E E GSK980TD Turning Machine CNC K0019 5 G0019 5 0017 00194 0019 5 Y0007 7 0018 7 7 0 01 indicator K00194 K0019 5 0007 6 0019 i O Y7 6 0 01 indicator K00194 K0019 5 Y0007 5 sa 0020 A Y7 5 0 1 indicator lez e 5 8 Chapter 4 Machine Program Reference Point Return Chapter 4 MACHINE PROGRAM REFERENCE POINT RETURN 4 1 MACHINE REFERENCE POINT RETURN In the mode of Machine reference point Return by setting the feed axis and direction selection signals to 1 the tool can move along the specified direction and return to machine reference point position After returning to machine reference point position CNC sets a workpiece coordinate system based
14. IV 6 49 DECB BINARY ENCODING IV 7 z 4 10 CODB BINARY CODE CONVERSION ettet IV 7 4 11 PROGRAM JUMPING IV 9 4 12 LBL PROGRAM JUMPING LABEL IV 9 4 13 CALL SUBPROGRAM CALLING IV 10 4 14 SP START of SUBPROGRAMD SPE END of SUBPROGRAMD IV 10 4 15 ROTB BINARY ROTATION CONTROL teretes IV 11 4 16 PART PARITY CHECK 22200544400 ee teetiettiet i been iu IV 13 4 17 ADDB BINARY DATA ADDING D IV 14 4 18 SUBB BINARY DATA SUBTRACTING tette trente IV 15 4 19 DIFU DRIFT UP SET 25 3 tr dise Ut IV 16 4 20 DIFD DRIFT DOWN SET IV 16 IV 17 4 22 ALT ALTERNATIVE OUTPUT tert dtd IV 18 II Chapter 1 Sequential Program Chapter 1 SEQUENTIAL PROGRAM a 5 1 1 PLC SPECIFICATION For different PLC there are different program capacity processing speed function instructions and S nonvolatile memory addresses Specifications of GSK980TD PLC are as follows Specification 980TD PLC Programming language Chinese ladder Programming software GSKCC exe Programming grades 2 Executive cycle of grade one program 8ms Average processing time of basic instruction 2nus Max step of program 5000 steps Programming instruction Basic instruction function instruction Internal relay address R 0000 0999 Information displaying reques
15. Y0003 7 m e z d Je Block 1 Program explanation As above ladder ORB represents the parallel serial circuit block in block 2 and ANB represents block 1 and 2 in series 4 Chapter 4 PLC Function Instructions Chapter 4 PLC FUNCTION INSTRUCTIONS 5 Some functions completed by function instructions instead of basic ones The function instructions in the ai system are as follows gt Instruction Function Instruction Function S name name ENDI End of grade one program ROTB Binary rotation control END2 End of grade two program DECB Binary decoding 7 SET Set CODB Binary code conversion RST Reset JMPB Program jumping CMP Comparative set LBL Program jumping label CTRC Counter CALL Subprogram calling TMRB Timer SP Start of subprogram MOVN Binary Data copy SPE End of subprogram PARI Parity check DIFU Ascending edge set ADDB Binary data adding DIFD Descending edge set SUBB Binary data subtracting MOVE And ALT Alternative output 4 1 END1 END of GRADE ONE PROGRAM Instruction function There must be in the sequential program one time located at the end of grade one program It should be located at the home of the second when there is no grade one program Ladder format END1 4 2 END2 END of GRADE TWO PROGRAM Instruction function There must be END2 at the end
16. 0003 d 1 10084 0001 0 Syntactic error 0002 0 0002 0 0004 0003 0 0003 0 00040 x0005 0 x0006 0 X0007 0 0004 0 e C 0008 0 0009 0 0010 0 0011 0 Syntactic error 00120 0013 0 0005 0 0007 0009 0014 0 0006 0 Syntactic error 0010 0011 END2 Syntactic error 0005 0006 z Addresses are used for distinguishing signals Different addresses separately correspond to input output signal at machine side and CNC side internal relay counter timer holding relay and data list An address number is Chapter 2 Address Chapter 2 ADDRESS consisted of address type address number and bit number as follows Address type X Address number Bit number octal number 0 7 separately expressing byte 07 7 bit of front address number 980TD PLC addresses are divided into fixed addresses and definable addresses Signal definitions of the fixed addresses cannot be changed and are defined by CNC the definable addresses can be defined again by user X 0001 6 T Bit number Address number Address type Y R F G K A T DT DC C D L P decimal number to express one byte according to the actual requirements Address types are as follows Address Explanation Range X Machine PLC X0000 X0029 Y machine 0000 0019 NC PLC 0000 0255
17. 441 GSK980TD Turning Machine System 4 22 ALT CALTERNATIVE OUTPUT Instruction function It is alternative output instruction The output signal outputs reversely when the ascending edge of input signal changes 0 21 Ladder format ACT 2 E gt e z d Je The output signal Add b outputs reversely when the input signal ACT changes 0 gt 1 every time Control condition Relative parameter Add b itis the output signal and its address is Y G R A and K Program example 0003 3 0002 ALT R0033 0 Explanation R0033 0 oversets one time when X0003 3 reaches the ascending edge every time 2 FUNCTION Chapter 1 Axes Control Signal Chapter 1 AXES CONTROL SIGNAL GSK980TD defines 4 axes Axis 1 2 3 and 4 The detailed functions of each axis vary from one software version to another Now only Axis 1 and 2 are controllable 1 Axis X and 7 1 1 AXIS MOVING STATUS NC can transmit current axis moving status to PLC and then PLC works according to the status of axis moving 1 1 1 Feed Axis and Direction Selection Signal 1 4 G100 0 G100 3 1 4 G102 0 G102 3 e Signal type PLC e Signal functions For detailed functions please refer to section 3 1 1 1 1 2 Axis Moving Signal MV1 MV4 102 0 102 3 e Signal type NC PLC e
18. 5 5 light in MDI mode F0003 5 Y 0005 6 mU 0030 5 6 light in Auto mode F0003 6 Y0005 7 T 0031 5 7 light in Edit mode 0045 5 0032 pu i Y5 4 light in Machine reference F0004 6 YO006 2 return mode 0033 Y6 2 ligh in program reference point return mode 0034 ENp2 2 7 STATUS OUTPUT 2 7 1 Rapid Feed Signal gt ze RPDO 002 1 e Signal type gt e Signal function CNC feeds signals rapidly e Notes When an axis feeds rapidly NC sets F2 1 to be 1 If the feeding stops F2 1 remains at the same status and then selects the un rapid feeding moves the axis or resets CNC then F2 1 will change to 0 e Signal address p Je ro op co Ee 2 7 2 Cutting Feed Signal CUT F002 6 e Signal type NC PLC e Signal function when 15 performing cutting feed linear interpolation circular interpolation helical interpolation thread cutting skip cutting or fixed cycle cutting NC sets F2 6 to 1 and then transmits to PLC When it changes to rapid feed F2 6 turns to be 0 e Signal address L derj J 1 1 j j 2 7 3 Tap Cutting Signal F1 5 e Signal type NC PLC e Signal functions when CNC is performing tap cutting NC sets 1 5 to 1 When CNC is not performing tap cutting and under the state of emergency stop or reset NC sets F1 5 to 0 e Signal address pon Chapter 2 Preparation
19. Signal type Signal function it informs PLC whether the external cycle startup signal is shielded MST 0 the external cycle startup input signal is valid MST 1 the external cycle startup input signal is shielded Signal address o wr 1 1 14 14 4 12 8 PARAMETER SIGNAL KEYS on OPERATOR PANEL These signals inform PLC that CNC defines complex usages of keys on the operator panel and usages of special definitions Such as complex usage of OUT key and lubrication key reset key of output interface direction selection of motion key 12 8 1 Signal of OUT Key Startup Programs DCS 201 2 Signal type NC PLC Signal function it informs PLC whether pressing OUT key starts programs in MDI mode DCS 0 pressing OUT key cannot start programs 1 pressing OUT key can start programs Signal address Lug 2 XII 7 4155 GSK980TD Turning Machine 12 8 2 Complex Signal of Lubrication Spindle Jog Key RHDO F214 7 Signal type NC PLC Signal function it informs PLC of functions of lubrication jog key on the operator panel 0 Lubrication Jog key as Lubrication key RHDOcz 1 Lubrication Jog key as JOG key Signal address 12 8 3 Selection Signal of Reset Key for Output Interface RSJG F204 3 Signal type NC PLC Signal function it informs whether PLC resets M03 M04 M32 M08 when the reset key is pressed RSJG 0 P
20. Unde Ctrl C Paste Ctrl Delete Coil Function Search Ctrl F Fig 2 8 Contact Insert one contact normally open closed in the selected position Pop up a dialog to set the contact s style and address after executing the operating command Contact Coil Style Contact m CANCEL Address 2 5 2 5 gt 5 72 gt Fig 2 9 Insert a output coil in the selected position Pop up a dialog to set the coil s style and address after executing the operating command Contact Coil Setting Style coi A Address 6431 2 10 44 Sx GSK980TD Turning Machine CNC 1Function Instruction Insert a function instruction the selected position Pop up a dialog the screen after executing the operating command and then press OK to pop up a dialog of the corresponding function instruction setting after selecting the function instruction For example execute the operation Edit Insert Function Instruction for inserting a CODB instruction Select in the Left List Box or Input Function Instruction Directly in the Right Edit Box 2008 Fig 2 11 Pop up setting window as Fig 2 12 after sel
21. 0001 3 0 Y0002 3 1 0003 3 0 but Y0003 3 1 or 0002 3 1 1 4 4 Interlock Signal For safety the signals must be employed with soft interlock in sequence control and with hard interlock to relay control circuit of power electric box at machine side at the same time Because the hardware is failure the interlock is invalid in executing sequential program even if it is employed logically with soft interlock which can ensure the operator is not injured and the machine is prevented from damage 1 5 EDITING SEQUENTIAL PROGRAM Edit the sequential program from ladder which is composed of relay contacts symbols and function instructions Logic relationship in ladder consists of sequential program which is edited by two methods one is employed with input to use program instructions and the other is with relay symbols by their corresponding contactor symbol and function instruction Edit the sequential program employed with the ladder format instead of mnemonic code language when the system is employed with the relay symbol In actual editing sequential program use programming instruction or ladder to edit it according to PLC In the User Manual the system is employed with ladder as follows 1 7 WI GSK980TD Turning Machine System 1 5 1 Distributing Interface Step 1 The interfaces can be distributed after control target is defined and the corresponding input output signal points are counted Refer to i
22. 0021 0004 Max feed override C0005 K0023 3 0022 K0023 4 Y 0008 4 0023 8 4 indicator for max feed override K0023 1 Y 0008 1 0024 Y8 1 indicator for m feed override 0025 6 4 OVERRIDE CANCEL SIGNAL OVC G006 4 eSignal type PLCNC eSignal function PLC sets G6 4 to 1 and transmits to NC NC will set the feed override to be 100 VI 5 4155 GSK980TD Turning Machine eNote when OVC is 1 CNC operates as follows A no matter how the feed override signal is adjusted the feed override remains unchanged 100 B rapid traverse override and spindle override are not affected eSignal address Mar ERES 27 2 ERES I VI 6 Chapter7 MST Functions 7 MS T Functions When a maximum 8 digit number following M S T address is specified the corresponding code signals and strobe signals are sent to PLC PLC starts logic control according to these signals as shown below Program End signal Function address Code signal Strobe signal Distribution of PLC NC end signal Miscellaneous M M00 M31 F10 F13 MF F7 0 function Spindle speed 5 500 531 F22 F25 SF F7 22 DEN 13 FIN 64 3 function Tool function T 00 31 26 29 7 3 The process is as follows change M code to S T code i e the process of spindle speed func
23. 5 0088 7 R0088 1 0007 MOVN 0004 2 C0001 R0010 1 0008 MOVN 0001 C0001 R0234 R0010 2 0009 CMP 0004 3 Max rapid traverse override C0001 K0022 0 0010 CMP 0004 0 Min rapid traverse override C0002 K0022 3 Chapter 6 Feed speed Control 0011 CODB 0001 Encode computation number K0000 0 G0014 0 0012 I Rapid traverse override encode K0000 1 G0014 1 0013 MG 0008 2 Y8 2 indicator for max 0014 rapid traverse override 0015 Y8 5 indicator for min rapid traverse override 0016 6 3 FEED OVERRIDE Feed speed can be adjusted by feed override and can be used for checking programs For example if the feed speed 5 A I specified in the program is 100mm min when the feed override is adjusted to 50 the tool moves at a speed of 50mm min 6 3 1 Feed Override Signal FV0 FV7 G012 eSignal type PLCNC eSignal function PLC sets a value to G12 and transmits to NC NC can set a feed override according to the value of G12 The relationship between FVO FV7 binary codes and feed override is shown below FV7 FVO0 6012 7 6012 0 Cutting feed override 0000 1111 0 0000 1110 10 0000 1101 20 0000 1100 30 0000 1011 40 0000 1010 50 0000 1001 60 0000 1000 70 0000 0111 80 0000 0110 90 0000 0101 100 0000 0100 110 0000 0011
24. 6 0 51 gt 52 0 0 1 51 52 0 1 0 51 lt 52 1 0 0 Relative parameter Length specify data length when it is set to 1 2 4 the corresponding data length is 1byte 2bytes 4 bytes S1 S2 compare source data 1 with data 2 and the comparative result can be constant or address number it is not address bit For example add b is illegal Address number is X Y A D T C DC and DT add b itis the comparative result and can be R Y G K and A Relative operation information register P Program example 0002 1 CMP R0100 R0200 R0300 0 Explanation When X0002 1 is 0 the system does not compare the data and R0300 0 is reserved When X0002 1 is 1 the system compares the data as follows R0300 2 R0300 1 R0300 0 R0100 gt R0200 0 0 1 R0100 R0200 0 1 0 R0100 lt R0200 1 0 0 IV 3 GSK980TD Turning Machine System d 1 3oog z 4 6 TMRB TIMER Instruction function Delay connecting the timer Ladder format ACT TMRB TIMER TIME add b Control condition ACT 0 reset TIMER and add b 1 TIMER times from 0 and add b 1 when TIMER reaches the preset time Logic relation is as follows Relative parameter TIMER timer number range T0000 T0099 TIME timing constant or data register with DT in front DT range is from 0 21 4748 3647 ms add b itis
25. A DC DT D C and T Addr Errb itis the output address of mistake operation result and its address is Y G R A and K Q Relative operation information register ______ ______ Program example IV 14 Chapter 4 PLC Function Instructions 0003 3 ADDB 0001 0030 0 0040 0050 0 Explanation When X0003 3 1 the system executes ADDB instruction When R0040 R0010 R0020 and if the operation is mistake R0050 0 is 1 otherwise it is 0 When R0030 0 is 1 0040 is reserved and 0050 0 is reset to 0 4 18 SUBB BINARY DATA SUBTRACTING Instruction function Subtract the binary data Ladder format ACT SUBB Length MIND SUBD Control condition 1 the system executes Addr Out MIND SUBD If the operation is mistake Err b is 1 otherwise it is 0 ACT 0 the system does not execute instruction and and Err b are reserved Relative parameter Length 1 1 2 2 4 4 byte MIND itis minend and can be constant or address Its address number is R X Y F G A K D T C DC and DT SUBD it is subtrahend and can be constant or address Its address number is R X Y F A K D T C DC and DT Addr_Rst b when it is 1 Err b is reset Its address number is X Y F G A and Addr Out it is the output data address of run result Its address is Y G R A K DC DT D C and T Addr Errb itis the output address of
26. Address range X0020 0 X0026 0 are fixed addresses which correspond to press keys on operator panel and which signal definitions cannot be changed by user Chapter 2 Address Relationship between addresses and press keys is as follows MACHINE EN x ORAE 290 M S T LOCK 3UIUIUIE I30Jq 19004 22 PLC MACHINE ADDRESS Y 980TD PLC Y address are divided into two Y0000 0 Y0003 7 are mainly distributed to 542 and 539 interfaces including fixed address and definable address Y0004 0 X0009 7 which are mainly distributed to indicators the operator panel Other addresses are reserved ones Their values are 0 or 1 2 2 1 Y Address in I O Interface Address range Y0000 0 Y 0003 7 are separately distributed to XS42 and 539 I O interfaces and their signal definitions can be defined by user according to requirements to connect to external II 3 GSK980TD Turning Machine System electric circuit and ladder Distribution graph of 980TD output interfaces address is as follows a e 14 Y0003 1 14 Y0000 1 z 5 pers 15 00025 27 100002 15 0000 3 8 22 2 16 0002 4 16 Y0000 5 17 0002 3 bi 17 0000 7 5 Y0002 0 18 5 0001 0 18 i 7 Y0003 2 2 DOM 7 0001 2 20 8 Y0003 3 8 0001 3 21 9 0003 4 COM 9 00
27. PLC NC G0000 G0255 R Intermediate relay R0000 R0999 D Data register D0000 D0999 C Counter C0000 C0099 T Timer T0000 T0099 DC Counter preset value register DC0000 DC0099 DT Timer preset value register DT0000 DT0099 A Information displaying request signal A0000 A0024 K Hold relay K0000 K0039 L Jump label L0000 L9999 P Subprogram label P0000 P9999 Note address R900 R999 K30 39 are used for reserved area of CNC program instead of output relay 2 1 MACHINE 980TD PLC X addresses are divided into two types the first one is X0000 0 X0003 7 which are mainly distributed to XS40 and XS41 I O interfaces including fixed addresses and definable addresses and the second one is X0020 0 X0026 7 which are fixed addresses and mainly be distributed to input keys on operator PLC ADDRESS X panel Other addresses are reserved ones The value range is O or 1 I e 2 gt m e d Je INS GSK980TD Turning Machine System 2 1 1 X Address in I O Interface Address range X0000 0 X0003 7 are separately distributed to CNC XS40 and XS41 I O interface Fixed address X0000 3 X0000 5 X0001 3 separately corresponds to XDEC ESP ZDEC signal which can be directly distinguished by CNC in CNC run Example ESP signal is can be connected to X0000 5 CNC directly distinguishes signals on it and judge if there
28. PLCNC eSignal function PLC sets G6 4 to 1 and transmits to NC NC will set the feed override to be 100 VI 5 4155 GSK980TD Turning Machine eNote when OVC is 1 CNC operates as follows A no matter how the feed override signal is adjusted the feed override remains unchanged 100 B rapid traverse override and spindle override are not affected eSignal address Mar ERES 27 2 ERES I VI 6 Chapter 6 Feed speed Control Chapter 6 FEED SPEED CONTROL 6 1 RAPID TRAVERSE SIGNAL The rapid traverse speed of each axis can be controlled by parameters NO 022 and NO 023 rather than program setting But rapid traverse speed can also be controlled by adjusting rapid traverse override RPDO F2 1 eSignal type NC PLC eSignal function When CNC is executing moving commands at a rapid traverse speed NC sets F2 1 to 1 and transmits to PLC Notes A If RPDO is 1 this indicates that an axis is moving after selecting rapid traverse mode if RPDO is 0 it means an axis is moving after selecting null rapid traverse override B In the automatic operation rapid traverse includes all rapid traverse modes such as fixed cycle amp position machine zero return etc not only for GOO command Manual rapid traverse also includes the rapid traverse in machine zero return C Once rapid traverse is selected the signal keeps to 1 even during th
29. Signal address 1 12 1 6 Selection Signal of FS1 S4 Output SUOS F211 0 Signal type NC PLC Signal function it informs PLC of S1 S4 output selection when the system is in spindle gear shifting mode SUOS 0 S1 S4 output is valid in gear shifting spindle mode 5005 1 51 S2 output is valid and 53 S4 output is invalid in spindle gear shifting mode Signal address 21 4899 12 2 PARAMETER SIGNALS for REFERENCE POINT RETURN T These parameter signals determine whether a valid level of deceleration signal the reference point return keys are self hold when CNC executes machine reference point return and program reference point return 12 2 1 Selection Signal of Valid Level of Deceleration Signal DECI F201 5 Signal type NC gt PLC Signal function the signal informs PLC of valid level of current deceleration signal DECI 0 low level of deceleration signal is valid DECI 1 high level of deceleration signal is valid Signal address Lo qj 1 14 4 12 2 2 Self hold Signal of Motion Key Reference Point Return ZNIK 205 2 Signal type NC PLC Signal function The signal informs whether the motion key is self hold when the machine reference point return or the program reference point is executed ZNIK 0 the motion key is not self hold when the reference point return is executed ZNIK 1 t he motion key is self hold
30. T11 T12 are runtime to execute the first 21 T22 T2n separately corresponds to runtime of No n block in executing the second when No n cycle is execute Tcl Tc2 Tcn separately corresponds to hold time by CNC when No n cycle is executed The program returns to its beginning to continue execution when the last fraction block of the second is executed completely The first is executed every 8ms No n block of the second is done every 8n and runtime 1 4 Chapter 1 Sequential Program of one cycle is 8n ms The more the fraction number of the second is the longer the runtime of one cycle is I 2 1 4 PROCESSING INPUT OUTPUT SIGNAL Processing of input output signal is as the following figure X signal of machine interface F signal of NC are separately input to input memories at machine side and NC side and directly used by the first grade program they separately input to synchronous input memories are used by the second Output signals of the first and the second are separately output to output memories at NC side and machine side and then separately output to NC and I O interface of machine Signal states of the above mentioned memories are displayed by diagnostic interface and the diagnostic number corresponds to address number of program Grade one program Input memory at CN side Output memory at CN side Grade two program 1 4 1 Proce
31. 0 is reset to 0 4 8 MOVN BINARY DATA COPY Instruction function Transmit data at source address or specified binary data to destination address Ladder format ACT MOVN Length ADD S CON ADD D Control condition ACT 0 ADD D is reserved 1 copy the value in ADD S or constant CON to ADD D Relative parameter Length it is the copy data 1 2 4 byte ADD S CON it is initial byte of source data address or constant and its address number is R X Y F G K A D T C DC and DT ADD D it is initial byte of target address and its address number is R Y G K A D T C DC DT Program example 0003 3 102 0001 R0100 00043 Explanation 0100 value is transmitted to 00043 when X0003 3 is 1 IV 6 Chapter 4 PLC Function Instructions 4 9 DECB BINARY ENCODING Instruction function 00g DECB can decode the binary code data When there is the same one between one of 8 successive data and the EX code data the corresponding output data is 1 when there is no the same one the output data is 0 DECB is used d for encoding data of M or T function Ladder format ACT Control condition ACT 0 reset the 8 data bits of ADD2 ADD2 1 compare the content value of decoding address ADD1 with 8 successive data beginning with DATA When the value of ADDI is equal to one of 8 data and the output address ADD2 s corresponding
32. 40000 3 0000 4 40000 5 Aw Z Fig 4 6 4 4 LADDER Edit the ladder program and annotation after opening its view Refer to Chapter 2 and Chapter 3 about operations of each menu and toolbar S GSKCC project 980TD Ladder 1 nj xj File Edit View PLC Tool Windows Help 8 x DG Bea MHL 1 Workspace Comment Input less than 30 charactors E ml Project 980TD 0001 Yellow light c ri PLC Data setting table A Message table 5 2 5 be 5 Dn gt Ladder informations X0000 5 X0001 5 0000 0 E A configuring 0001 Signal emerger Parameter 0001 2 RO000 0 0003 2 G0008 4 Tooler offset 0002 it 14 O Emergent stop GS Screw pitch R0000 4 NC Programs 0003 004 gone 007 3 0001 3 0055 0 0004 m Interlock signal R0569 7 0005 R0402 4 4 1 Output Ready Fig 4 7 144 Sx GSK980TD Turning Machine CNC 4 5 PROGRAM VERSION Double click the menu to pop up its input box and input the corresponding message GSKCC Project 980TD the information of the application Designer GSK Version n 80 Comment se0TD 2 standard ladder 9807 interfaced 4 6 PARAMETER SR GSKCC project 980TD Parameter 1 E lal x HEH Edit View PLC
33. 8 6 Handwheel Step 0 1mm Selection Signal SINC F211 1 Signal type NC PLC Signal function it selects whether 0 1mm increment is valid in Handwheel Step mode SINC 0 0 1mm increment is valid in Handwheel Step mode SINC 1 0 1mm increment is invalid in Handwheel Step mode Signal address 1 1 14 4 4 12 9 PARAMETER SIGNALS RELATED to TAILSTOCK FUNCTION CNC informs PLC of signals related to tailstock control function Valid signal of tailstock function SLTW F208 2 Signal type NC PLC Signal function it informs PLC whether the tailstock function is valid SLTW 0 tailstock function is invalid SLTWZI tailstock function is valid 5 I Signal address E no XII 9 3 CONFIGURATION SOFTWARE 5 2 Q p 5 D Contents Chapter 1 OVERVIEW osito t i RD E a ee Mies 1 1 I 4GSKCC SOPTWABE 1 1 dad ace ence te tot erect eee I 1 Chapter 2 MENU COMMANDS ainsi E II 1 2 GBNERAISINTEREFAGE ttt eis nV DNE 1 2 2 MAIN MENU rennen nennen 2 2 2 Fe
34. F94 0 F94 3 ZP1 ZP4 return 4 1 ZRFI K F120 0 F120 3 Machine reference point creation signal ZRF4 G100 7 17 4 Selection signal of feed axis and direction 3 1 1 JOG feed G102 J1 J4 incremental feed F214 0 X selection XVAL 12 8 F214 1 Z selection ZVAL feed G10 G11 Manual traverse override signal JVO JV15 3 1 2 incremental feed G19 7 Manual rapid feed selection signal RT 3 1 3 F1 7 CNC ready signal MA 2 2 CNC ready signal F0 6 Servo ready signal SA 1 2 F2 1 Rapid feed signal RPDO F2 6 Cutting feed signal CUT State output signal ERE 2 6 F1 5 Tapping signal TAP F2 3 Thread cutting THRD i G46 1 Single block signal SBK Single block 5 5 F4 3 Single block test signal MSBK Start locked G7 1 Start locked signal STLK 2 4 Appendix 4 Apendix G46 7 Dry run signal DRN Dry run 54 2 7 Dry run test signal MDRN Function Address Signal name Code Chapter Rapid feedrate G14 0 G14 1 Rapid feedrate override signal ROVILROV2 622 override 0 5 Emergent stop Emergent stop signal ESP 2 1 F10 F13 Auxiliary function code signal 00 31 711 7 0 Auxiliary function strobe signal MF di F9 4 DM30 F9 5 DM02 M decode signal 7 1 2 F9 6 1 ae 9 7 Auxiliary function 22 25 Spindle speed code signal 500 531 F7 2 Spin
35. Fig 4 14 Chapter 4 Software 4 8 SCREW PITCH COMPENSATION Number Fi Project 98070 PLC Data setting table A Message table Ladder Informations CNC configuring Parameter Tooler offset lt coa NC Programs 0 pjojojojojojojojojojojojojojojo o 00456 010 Output Fig 4 15 4 9 PART PROGRAM Workspace mx Project 98010 eR Data setting table Message table Ladder Informations CNC configuring BB Parameter Tooler offset Screw pitch compensation o0 iz e 2 a 2 E yo e Load file Fig 4 16 As Fig 4 16 right click CNC Program to pop up New and Load file New file is to create one CNC part program to project and Load file is to load a existed one on disk to project Their methods are as follows 1 ES 12 GSK980TD Turning Machine 4 9 1 Create a New NC Program Pop up a dialog box as Fig 4 17 after executing New in Fig 4 16 prompting to input program name note is at program name s home and 1 4 digits are followed Create a New NC Program x Input File Name __ OK 00001 CANCEL Fig 4 17 After confirming part program the workspace the created part progr
36. Selection Signal of Tool Change Mode PB5 F223 0 Signal type NC PLC Signal function it informs PLC that CNC selects tool change mode or B refer to GSK980TD Turning Machine CNC Connection 3 lez e T Cr GSK980TD Turning Machine 5 1 select tool change mode A 5 0 select tool change mode B Signal address 12 3 5 Selection Signal of In position Test PB6 223 2 Signal type NC PLC Signal function the signal informs PLC whether CNC tests the tool selection signal after the tool change is completed PB6 1 test the tool selection signal PB6 0 do not test the tool selection signal Signal address 12 4 PARAMETER SIGNAL RELATED to CHUCK FUNCTION CNC inform PLC of signals related to the chuck control function including valid signal of chuck function internal external chuck chuck in position test and valid level of chuck in position signal and so on 12 4 1 Valid Signal of Chuck Function SLQP 208 0 Signal type NC PLC Signal function it informs PLC whether the current chuck function is valid SLQP 0 the chuck function is invalid SLQP 1 the chuck function is valid Signal address LH de deo 12 4 2 Valid Signal of Chuck Clamping Test Function SLSP F208 1 Signa
37. Signal functions MV1 2 MV4 are moving signals for Axis 1 2 3 4 respectively When an axis is moving NC sets corresponding axis moving signal to 1 When an axis stops moving the axis moving signal is 0 e Signal addresses 1 1 3 Axis Moving Direction Signal MVD1 MVD4 F106 0 F106 3 e Signal type NC PLC e Signal functions MVDI MVD2 MVD3 MVDA are axis moving direction signals for Axis 1 2 3 4 respectively When an axis 15 moving backwards NC sets the axis moving direction signal to 1 when an axis 15 moving forward the axis moving direction signal 15 0 If an axis stops moving the direction signal will be 1 or 0 depending on the moving status before the axis stopping e Signal addresses 1 2 SERVO READY SIGNAL SA 000 6 e Signal type NC PLC WI GSK980TD Turning Machine e Signal functions When CNC gives out a warning NC sets SA signal to 0 to stop axis moving When the warning 18 cancelled NC sets SA to 1 to move axis again e Signal address cuc i ee 5 1 2 Chapter 2 Preparation for Operation Chapter 2 PREPARATION for OPERATION 2 1 EMERGENT STOP Emergency stop signal ESP X0 5 Signal type machine tool e Signal function If external emergency stop signal 0 5 is not shielded and is detected to be 0 CNC will give out an emergency stop warning no matter whether PLC p
38. e perte seed defe 1 4 2 Processing Input 1 rente eR Le eae UR 1 4 3 Synchronous Procession of Short Pulse Signal TALS Titer lock Stendal ius es ote is pv aed 1 5 EDITING SEQUENTIAL PROGRAM cech leet hate ege 1 5 1 Distributing Interface Step 1 iine tha toe 1 5 2 Editing Ladder Step 2 n ett een pep e lee xai eise udis 1 5 3 Debugging Ladder Step idee e decine taie 15 Program DATES irai ipa Chapter 2 ADDRESS 1 5 5 2X2 2 1 X Address i VO 2 1 2 X Xddress Om Operator Panel deter 22 PLC MACHINE ADDRESS CY 2 2 T Y Interface asinis eoe CU Iesse oe Midi 2 2 2 Y Addresses on Operator Panel cte uitae 23 PEC ENC ADDRESS COL ne AVR M ADDRESS 25J NTERNAL RELAY ADDRESS re eee te ieu 2 6 INFORMATION DISPLAYING REQUEST ADDRESS 27 HOLD RELAY ADDRESS EERE 2 8 COUNTER ADDRESS C Usted n pen tels dta 2 9 COUNTER
39. figure 0002 3 and Y0002 5 output simultaneously when contactor X0000 0 X0002 0 and X0002 2 are closed in PLC sequence control every relay outputs in order For example Y0002 3 outputs and then Y0002 5 does when X0000 0 X0002 0 and X0002 2 are closed namely outputs are executed in order as ladder Y0002 3 Y0002 5 ES 5 GSK980TD Turning Machine System 1 3 2 Cycle Execution of Sequential Program Cycle execution of sequential program is defined that PLC executes ladder from its home to end and again from its home to end after the run is completed Processing cycle is defined to runtime of ladder from home to end The shorter the processing cycle is the d 1 3oog stronger the response of signal is 1 3 3 Priority Order of Executing Sequential Program z GSK980TD PLC programs are divided into grade one and grade two programs which processing cycles are different The first one is executed per 8ms to do with short pulse signal with quick reaction and the second one is executed per 8n ms in which n is fraction times PLC divides the grade two program into n blocks according to runtime and executes one block per each 8 ms End of grade one program Fraction 1 0004 0006 f Fraction 1 0007 0011 End of grade Fraction of the grade two program 15 to execute the first and execution process is as the following figure when the fraction number is n
40. files when 15 in Edit mode When the system transmits the screw pitch compensation or PLC program the user level of CNC is not less than 2 and the parameter switch is ON for transmitting When the system transmits the parameter the user level of CNC is not less than 3 and the parameters switch is ON for transmitting When the system transmits tool offset the user level of CNC is not less than 4 and the parameters switch is ON for transmitting When the system transmits part program the user level of CNC is not less than 4 and the program switch is ON for transmitting Press 7 transmit files to pop up a dialog box as follows Download Project x Select Files Ladder program file EM configuring Parameter Tooler offset 0 screw pitch compensation EINE program file 100000 100001 CANCEL 100002 100003 Fig 5 5 Chapter 5 Communication Click the left box in Download Project to select the required files The system selects files when there is a red otherwise the system does not Click Download to transmit files There is a prompting box in transferring to display the current communication state rate and so on GSKCC File Transferring HH C Documents and Settingss amp dministratorNDesktop 1 O0003 cnc HH C Documents and Settingss amp dministratorNDesktop 1 O00004 cnc C Documents and SettingssdministratorSDesktop 1 500035 cnc 7817
41. high level Q Signal address 1 4 14 14 4 4 12 7 PARAMETER SINGALS of SHIELDING EXTERNAL SIGNALS These signals inform PLC whether CNC shields some external input signals Shielded external input signals include an external emergent stop an external cycle startup an external pause an external override signal and 50 on 12 7 1 Shielding External Feedrate Override Input Signal SOVI F210 0 Signal type NC PLC Signal function it informs PLC whether the external feedrate override signal is shielded SOVI 0 the external feedrate override signal is valid MESz 1 the external feedrate override signal is shielded Q Signal address 12 7 2 Shielding External Emergent Stop Signal MESP F210 3 6 Chapter 12 Function parameter signal Signal type NC PLC Signal function it informs PLC whether the external emergent stop signal is shielded MESP 0 the external emergent stop signal is valid MESP 1 the external emergent stop signal is shielded Signal address r1 12 7 3 Shielding External Pause Signal MSP F210 5 Signal type NC PLC Signal function it informs PLC whether the external pause signal is shielded MST 0 the external pause signal is valid MST 1 the external pause signal is shielded Q Signal address L j j Jj 12 7 4 Shielding External Cycle Startup Signal 5 A I MST F210 6
42. is ESP signal CNC alarms to emergently stop when G8 4 signal is valid by PLC control Namely CNC alarms to emergently stop when X0000 5 is 0 CNC alarms to emergently stop when G8 4 is 0 by PLC control Input signal of fixed addresses Signal Symbol Address Emergent stop signal ESP X0000 5 Deceleration signal of machine reference point return in X direction XDEC X0000 3 Deceleration signal of machine reference point return in Z direction ZDEC X0001 3 Definable address their functions can be defined by user according to requirement and used for connecting with external electric circuit and ladder Distribution graph of X address in I O interface is as follows 13 Y0001 7 525 com 12 10001 6 on oO 12 X0002 2 e 24 COM 11 24V e 23 24V e 25 24V 10 X0000 5 ESP 22 X0000 4 109 X0002 3 e 22 X0002 4 9 X0001 3 21 0001 2 9 0002 5 e 21 0002 6 8 X0001 1 e 20 xo001 0 8 X003 1 20 0003 2 7 X0001 4 e 19 0001 5 7 0003 3 e 19 0003 4 6 0001 6 e 18 COM 6 0003 6 8 5 0001 7 e 17 5 0003 5 17 4 X0000 0 16 4 0003 7 e 16 COM 3 X0000 1 e 15 col 3 0003 0 4 15 2 0000 2 14 2 0002 7 14 1 0000 3 1 X0002 0 XS40 female XS41 female 2 1 2 X Address on Operator Panel
43. it code to inpu Transmit from PLC RI2I ROID Spindle enabling signal output Transmit from PLC motor speed Output to PLC SIND 0 SIND 1 se NO 021 and NO 036 to regulate the offset alue and to output spindle instruction 0 10V Spindle motor Output to PLC lez e 5 5 I lez e N m z ze e 5 ES 32 GSK980TD Turning Machine Spindle stop signal SSTP G29 6 Signal type Signal function stop output the spindle speed instruction The signal sets S instruction NC to be 0 Its relative time sequence is as follows Caution when the spindle stop signal SSTP is 0 the output voltage is When the signal is 1 the analog voltage outputs instruction value When the signal is not used the signal is set to 1 to make CNC control spindle speed Signal address G29 dese __ 5_ __ Input instruction M03 M05 M04 500 f p N Auxiliary function i 17 d E Spindle stop signal SSTP Analog voltage ae E sepes Enabling signal ENB 0 Spindle speed override signal SOV0 SOV7 G30 4 Signal type PLC NC Signal function PLC evaluates G30 to transmit it to NC which will determine the spindle speed override according to G30 value Relation between SOVO0 SOV7 and override valu
44. mistake operation result and its address is Y G R A and K Q Relative operation information register ees Note the reset has related R900 Program example IV 15 2 e gt m e d Je ES E E GSK980TD Turning Machine CNC System x0003 3 0002 SUBB 0001 0030 0 R0040 R0050 0 Explanation When X0003 3 1 the system executes SUBB instruction When R0040 R0010 R0020 and if the operation is mistake R0050 0 is 0 otherwise it is 1 When R0030 0 is 1 R0040 is reserved and R0050 0 is reset to 0 4 19 DIFU ASCENDING EDGE SET Instruction function Set the output signal to 1 when the ascending edge of input signal is valid Ladder format DIFU Add b ACT Input signal ACT the output signal is set to 1 at the ascending edge of ACT 0 gt 1 Control condition Output signal Add b when it is executed one scanning period of Add b in ladder is 1 Relative parameter add b itis the operation result output address and its address is Y G R A and K Program example 0003 3 0002 DIFU 200440 Explanation R0040 0 output is 1 when X0003 3 reaches the ascending edge 4 20 DIFD DESCENDING EDGE SET Instruction function Set the output signal to 1 when drift down of input signal is valid Ladder format ACT DIFD Add b Input signal ACT the output signal is set to 1 at the descen
45. transmits SIMSPL to PLC and informs PLC of current spindle speed control mode EY G Signal action SIMSPL 1 CNC sets analog spindle control S code is converted into analog value and is 5 transmitted SIMSPL 0 CNC sets gear spindle control S code is converted into switching value and is z transmitted 5 Signal address S __ 1 JJSMs 8 1 GEAR SPINDLE Gear spindle is defined that the actual spindle speed is controlled by gears of machine and CNC converts S code into switching value to control gears of machine to realize spindle speed control Refer to Section 7 2 8 2 ANALOG SPINDLE 8 2 1 Analog Spindle Speed Control S instruction for analog spindle control it is input by part programs and used for specifying analog spindle speed controlled by CNC For constant surface speed cutting G96 CNC converts the specified constant surface speed into spindle speed S code SF signal output analog spindle control function in CNC outputs S instruction with binary code to PLC and does not output SF Gear shifting although S instruction specifies spindle speed actual control of CNC is spindle motor CNC outputs the corresponding spindle speed when the machine gear shifts to some gear Gear shifting method to execute gear shifting max spindle speed corresponding to each gear is set by 037 040 Selection signal of gear shift is 2 bit code signal GR1 GR2 Relationship between signal and gear is as follows
46. until the reference point return is executed completely XII 2 Chapter 12 Function parameter signal Signal address 1 14 14 4 12 3 PARAMETER SIGNALS RELATED TOOL CNC inform PLC of signals related to tool control function including total tool selections valid level of tool selection valid level of toolpost clamping 12 3 1 Total Tool Selection Signal TMAX 207 Signal type NC PLC Signal function the signal informs PLC of total tool selections on the toolpost The tool selection is represented with binary code For example the total tool selection is 4 TMAX 00000100 Signal address DT 7 12 3 2 Level Selection Signal for Tool Selection Signal lez e 5 5 I TSGN F205 1 Signal type NC PLC Signal function the signal informs PLC of the valid level of current tool selection signal TSGN 0 high level of tool selection signal is valid TSGN z1 low level of tool selection signal is valid Signal address Lo 14 14 4 4 12 3 3 Level Selection Signal of Toolpost Clamping TCPS 205 0 Signal type NC PLC Signal function the signal informs PLC of the valid level of current tool selection signal TSGN 0 low level of toolpost clamping signal is valid or the system does not test the toolpost clamping signal TSGN 1 high level of toolpost clamping signal is valid Q Signal address 1 14 14 14 14 4 12 3 4
47. 0 and transmits to NC NC starts automatic operation e Signal address had ub PES oid 5 1 2 Feed Hold Signal SP G008 5 e Signal type PLCNC e Signal function PLC sets G8 5 to 0 and transmits to NC NC starts automatic operation If G8 5 1s 0 programs cannot restart e Signal address Epod cup dr x i 5 1 3 Cycle Start Light Signal T STL 000 5 e Signal type gt e Signal function when NC is on automatic operation STL is set to 1 and transmitted to PLC e Signal address Ln emp od ls ii su s 5 1 4 Feed Hold Light Signal SPL 000 4 e Signal type NC PLC e Signal function when NC is paused SPL is set to 1 and transmitted to PLC e Signal address 1 1 1 j j 5 1 5 Automatic Operation Signal OP 000 7 e Signal type NC PLC e Signal function when NC is on automatic operation OP is set to 1 and transmitted to PLC The relationship among STL SPL and OP is as follows Cycle start light STL Feed hold light SPL Automatic operation OP Cycle start status 1 0 1 Feed hold status 0 1 1 Chapter 5 Automatic Operation Automatic operation 0 0 0 status Reset status 0 0 0 e Signal address _________ 5 2 Under the following conditions CNC starts reset status A Emergency stop signal ESP 150 B External reset signal ERS is
48. 0 0000 1001 60 20 0000 0000 0000 1000 70 32 0000 0000 0000 0111 80 50 S 0000 0000 0000 0110 90 79 0000 0000 0000 0101 100 126 0000 0000 0000 0100 110 200 0000 0000 0000 0011 120 320 0000 0000 0000 0010 130 500 0000 0000 0000 0001 140 790 0000 0000 0000 0000 150 1260 e Signal addresses 3 1 3 Rapid Traverse Selection Signal G019 7 e Signal type e Signal functions PLC sets G19 7 to 1 and transmits to NC to select jog rapid traverse During the time of rapid traverse either G19 7 changes from 1 to 0 or from 0 to 1 feed speed will drop to 0 at first and then increase up to stated value In the process of speed decreasing feed axis and direction selection signal remains unchanged e Signal addresses 3b oi 2 Chapter 3 Manual Operation 3 1 4 Manual Feed Override Control Flowchart 0001 R0111 7 0002 0003 F0210 0 0004 F0210 0 MOVN 0001 External override OV P0000 Tl ovs is valid 0006 P0001 panel is valid Resume manual feed override after power on R0111 7 Override key on MDI 5 N 5 T 5 Subprogram for external 0007 P0000 manual feed override X0000 4 G0010 0 0008 X0 4 OV1 0010 0 0009 0001 2 G0010 1 0010 iH O X1 2 0V2 K0010 1 0011 Q 0001 0 G0010 2 0012 0 X1 0 OVA 0010 2 0013 X0001 5 G0010 3 0014 m 1 570 8 K0
49. 0 4 2X00205 00213 R00822 0006 Input X20 2 by MDI mode key X0020 0 X0020 2 00203 00204 2X00205 00213 R00823 Input X20 3 by machine reference point return key X0020 0 00201 00202 00203 2X0020 4 2X00205 00213 R00824 Input X20 4 by handwheel incremental mode key X0020 0 X0020 2 00203 X0020 4 2X00205 00213 R00825 Input X20 5 by JOG mode key X0020 0 X0020 2 00203 X0020 4 2X00205 00213 Input X21 3 by program reference point return 0082 0 MOVN 0001 Select G43 11 in Edit mode 1 4 Captor 2 Preparation for Operation 2 Preparation for Operation 0082 1 0012 0001 Select G43 1 in Auto mode R0082 2 0013 0001 Select G43 0 MDI mode R0082 3 Select G43 10000101 in 0014 MOVN 0001 5 machine reference point return mode 0015 SET 600437 N 0082 4 Select G43 100 in Handwheel 0016 M 5 0001 5 incremental mode S 2 RO082 5 Select G43 101 in Manual 0017 mode 0082 6 0018 Select G43 10 in program reference point return mode 0019 x00200 Save G43 100 in current mode MOVN 0001 X0020 1 0020 X0020 2 0021 X0020 3 0022 X0020 4 0023 X0020 5 0024 X0021 3 0025 F0003 0 0005 3 5 3 light in Handwheel 0026 incremental mode F0003 1 0027 1 5 Wisi GSK980TD Turning Machine F0003 2 0005 2 0028 5 2 light in Manual mode F0003 3 Y 0005 5 0029
50. 0000000 00000000 00000000 00000000 00000001 01 00000000 00000000 00000000 00000010 T02 00000000 00000000 00000000 00000011 T03 00000000 00000000 00000000 00000100 04 Chapter7 MST Functions eSignal addresses 7 4 MST Function End 7 4 1 End Signal FIN G004 3 eSignal type PLC NC eSignal function When auxiliary functions spindle speed function and tool function are all finished executing PLC sets FIN to 1 and transmits to NC 5 e e I eSignal address d pm o n gr 7 4 2 Distribution End Signal DEN F001 3 eSignal type NC PLC eSignal function If auxiliary functions spindle speed function tool function and other commands e g move command pause command are all in a single block after other commands are finished executing waiting for FIN signal then NC sets DEN to 1 Every time a block ends executing DEN will be set to 0 eSignal address 1 14 14 7 5 AUNCTION LOCK SIGNAL 7 5 1 Auxiliary Function Lock Signal AFL G0005 6 eSignal type PLC NC eSignal function PLC sets G5 6 to 1 then transmits to NC to disenable the execution of M S T functions e Notes When AFL signal is 1 CNC works as below For operations with automatic method and inputting method doesn t execute specified M S and T functions i e code signal and
51. 00000010 M02 00000000 00000000 00000000 00000011 M03 00000000 00000000 00000000 00000100 M04 00000000 00000000 00000000 00000101 05 00000000 00000000 00000000 00000110 06 00000000 00000000 00000000 00000111 07 00000000 00000000 00000000 00001000 08 e Notes The following auxiliary function commands cannot be output even if they instructed programs A M98 M99 B M code for subprogram call C M code for custom macro program call eSignal addresses 5 5 e e I 7 1 2 M Code Signal DM00 F009 7 DM01 F009 60 DM02 009 5 DM30 009 4 eSignal type NC PLC eSignal function When CNC is executing M00 M01 M02 M30 commands NC sets corresponding code signals DM00 DM01 DM02 DM30 to 1 Program command Code signal M00 01 1 M02 DM02 M30 DM30 e Notes 1 Under the following conditions M code signal is 1 related auxiliary function is specified and other move commands and pause commands are finished in a same block If NC receives FIN signal before move command and pause command end M code signal will not be outputted 2 When FIN signal is 1 or the tool is reset M code signal is 0 3 While executing M00 M01 M02 M30 code signals DM00 DM01 DM02 DM30 and code signals M31 and strobe signal MF are all outputted at the same time eSignal add
52. 01 4 22 COM 10 0003 5 10 Y0001 5 23 11 0003 6 los 1 00006 o 9 54 12 Y0003 7 12 X0000 7 13 424V 13 24 XS42 male 839 male 2 2 2 Y Addresses on Operator Panel Address range Y0004 0 Y0009 0 are fixed addresses which correspond to indicators on the operator panel and which signal definitions cannot be changed by user Relationship corresponding to each state indicator is referred to Appendix2 Output signal Y 2 3 PLC NC ADDRESS Address range G0000 0 G0255 7 value range 0 or 1 Refer to Appendix3 F signals about definitions of address signals 2 4 NC PLC ADDRESS Address range F0000 0 F0255 7 value range 0 or 1 Refer to Appendix3 G signal about definitions of address signals 2 5 INTERNAL RELAY ADDRESS Address range 0000 0 0999 7 value range 0 1 They zero after CNC is switched on 1 4 Chapter 2 Address Address number 0000 R0001 Definable addresses 6 5 4 3 2 1 0 0900 I e 0999 2 6 INFORMATION DISPLAYING REQUEST ADDRESS A Address range A0000 0 A00024 7 and they are zero after CNC is switched on Address number A0000 A0001 7 6 5 4 3 2 41 0 A0024
53. 010 3 0015 3 GSK980TD Turning Machine CNC F0210 0 0016 Min override K0010 0200 0 0017 K0010 Y8 4 light for min override in manual feed R0201 0 R0200 1 0008 4 Y8 4 light for min override in manual feed 0018 R0201 1 0019 Y0008 1 Y8 1 light for max override in manual feed 0020 0021 lez e 5 e 00246 00243 02021 0022 L n CTRC 0000 R0770 0 0023 MOVN 0004 4 Subprogram for manual feed override on MDI panel X24 6 down key for manual feed override R0770 1 C0016 Upload computation number C0017 Chapter 3 Manual Operation X0024 6 X00243 R0203 1 0024 Wc 0001 C0017 Y24 3 up key for manual feed override R0770 3 0 R0770 2 0025 Upload computation number F0210 0 0026 Upload override value N 0027 Save override data I 2 0028 Max override C0016 R0202 0 0029 0 Min override C0017 R0203 0 R0202 1 yooos 1 8 1 light for manual 0030 feed max override R0203 1 Y0008 4 0031 i Y8 4 light for manual feed min override 3 2 HANDWHEEL FEED In manual handle feed mode the tool can be minutely moved by rotating the handle An axis can be selected according to the handle feed axis selection signal 5 441 GSK980TD Turning Machin
54. 1 C Press the reset button on the panel Except the above conditions after the time specified by parameter NO 071 reset signal RST changes to 0 RST time T 44 reset processing time reset signal output time parameter 071 Reset ON 4 Reset processing V 1 4 1 Reset signal gt Parameter NO 071 N 5 5 Treset During automatic operation once CNC is reset automatic operation stops and the tool slows down along the controlled axis until stops in the end If CNC is executing M S T commands when it is reset MF SF TF signals will change to 0 in 8ms 5 2 1 External Reset Signal ERS G008 7 e Signal type PLCNC e Signal function when PLC sets G8 7 to 1 and transmits to NC CNC resets and RST signal becomes 1 e Signal address fers 5 2 2 Reset Signal RST F001 1 e Signal type NC PLC e Signal function when NC is reset it sets RST to 1 and transmits to PLC This is to inform PLC that CNC is reset e Note Under the following conditions RST is set to 1 A external emergency stop signal ESP is set to 0 B external reset signal ERS is set to 1 C press the reset button on the panel Except the above conditions after the time specified by parameter NO 071 reset signal RST changes to 0 41 7 GSK980TD Turning Machine e Signal address VEN
55. 1 END1 F0210 0 Subprogram for calling 0002 it CALL P0210 external feed override Subprogram for calling F0210 0 0003 0211 external feed override MDI panel EY 0004 o r3 Subprogram for external 0005 H sp 210 EP feed override MDI panel e X0000 4 G0012 0 0006 x04 0012 0 0007 O X0001 2 G0012 1 0008 1 2 OV2 K0012 1 0009 0001 0 600122 0010 O X1 0 K0012 2 0011 Pl X0001 5 G0012 3 0012 1 5 OV8 K0012 3 e 0013 0014 0015 Subprogram for feed override override on MDI panel X0024 6 00231 00243 0016 1 A CTRC 0000 X24 6 down key for feed override R0770 0 0770 1 Chapter 6 Feed speed Control 0017 MOVN 0004 C0004 Feed override C0005 X0024 3 K0023 44 0024 6 0018 X24 3 up key for feed override 0001 0005 R0770 3 R0770 2 Feed 0019 0004 C0005 C0004 N X0024 6 e 0020 0004 15 Min feed override C0004 K0023 0 X0024 3 0021 0004 Max feed override C0005 K0023 3 0022 K0023 4 Y 0008 4 0023 8 4 indicator for max feed override K0023 1 Y 0008 1 0024 Y8 1 indicator for m feed override 0025 6 4 OVERRIDE CANCEL SIGNAL OVC G006 4 eSignal type
56. 120 0000 0010 130v 0000 0001 140 0000 0000 150 Note In automatic operation actual feed speed cutting feed speed x feed override eSignal address VI 3 Gr 12 x12 GSK980TD Turning Machine CNC 6 3 2 Feed Override Control Flowchart 0001 END1 F0210 0 Subprogram for calling 0002 it CALL P0210 external feed override Subprogram for calling F0210 0 0003 0211 external feed override MDI panel EY 0004 o r3 Subprogram for external 0005 H sp 210 EP feed override MDI panel e X0000 4 G0012 0 0006 x04 0012 0 0007 O X0001 2 G0012 1 0008 1 2 OV2 K0012 1 0009 0001 0 600122 0010 O X1 0 K0012 2 0011 Pl X0001 5 G0012 3 0012 1 5 OV8 K0012 3 e 0013 0014 0015 Subprogram for feed override override on MDI panel X0024 6 00231 00243 0016 1 A CTRC 0000 X24 6 down key for feed override R0770 0 0770 1 Chapter 6 Feed speed Control 0017 MOVN 0004 C0004 Feed override C0005 X0024 3 K0023 44 0024 6 0018 X24 3 up key for feed override 0001 0005 R0770 3 R0770 2 Feed 0019 0004 C0005 C0004 N X0024 6 e 0020 0004 15 Min feed override C0004 K0023 0 X0024 3
57. 2 0 F223 2 Whether the in position signal is detected at the end of PB6 NO 182 2 tool changing APPENDIX 4 GSK980TD STANDARD FUNCTION CONFIGURATION Appendix 9 A DT address definition Address Definition Parameter D T0000 Gear shifting time 1 NO 065 D T0001 Gear shifting time 2 NO 066 D T0002 Alarm time width for low pressure NO 069 D T0003 Time upper limit for moving one tool when executing tool change NO 076 D T0004 Time upper limit for tool change from the first tool to the last one NO 078 D T0005 Executive duration for M code NO 080 D T0006 Executive duration for S code NO 081 D T0007 Delay from stop of toolpost clockwise rotation to start of NO 082 counterclockwise locked DT0008 Alarm time without receiving TCP NO 083 D T0009 Locked time for toolpost counterclockwise rotation NO 085 DT0010 Output time from spindle stop to braking NO 087 2 DT0011 Spindle braking output time 089 DT0012 Spindle rotational time when spindle jogging NO 108 DT0013 Lubrication output pulse time NO 112 DT0016 Automatic lubrication meantime DT0017 Automatic lubrication output time DT0018 Chuck pulse output width Wz GSK980TD Turning Machine DT0021 Spindle stop chuck operation enabling delay B X Y address definition WONDER 14 3 M43 1102 YO 1 dcs RAMS dis 15 M R S YO 3 2 E ld Ms Y0 5 5
58. 208 5 Level selection for gear shifting in positon signal AGIM NO 164 5 F208 6 Check gear shifting in position signal when gear shifting AGIN NO 164 6 to 1 2 F208 7 Automatic gear shifting is valid AGER NO 164 7 F209 0 Chuck mode selection 1 NO 168 0 F209 2 Detection function for chuck in position signal is valid PB2 NO 168 2 F209 4 Pressure low detection is valid PB3 NO 168 4 Appendix 8 Apendix Function Address Signal name Code F209 5 Level selection for pressure signal SPB3 NO 168 5 F209 6 Safteguard detection function is valid 4 NO 168 6 F209 7 Level selection for safeguard input signal 5 4 NO 168 7 F210 0 EINEN NS for external feedrate override switch SOVI NO 172 0 is valid F210 3 Shield the external emergent stop signal ESP ESP NO 172 3 F210 5 Shield the external pause signal SP MSP NO 172 5 F210 6 Shield the external cycle start signal ST MST NO 172 6 F211 0 51 54 output selection SUOS NO 173 0 F211 1 0 1mm feedrate selection signal on SINC NO 173 1 Handwheel Incremental mode F212 2 The system is executing G04 dwell CDWL F212 3 The system is executing check CINP F212 4 Override of 096 COVL F213 0 Outputtingm message by RS232 interface CTPU F213 1 Inputting message by RS232 interface CTRD F214 0 Select X direction XVAL NO 175 0 F214 1 Select Z direction ZVAL NO 175 1 F214 7 Spindle jog lubrication NO 175 7 F223 0 Select a tool change mode PBS NO 18
59. ALS RELATED to SPINDLE CNC informs PLC of signals related to spindle including spindle control mode automatic gear shifting rotation enabling test 12 1 1 Spindle Control Mode Signal SIMSPL 200 4 G Signal type NC PLC refer to Chapter 8 in the book 5 I 12 1 2 Spindle Rotation Enabling Signal SPEN F208 3 Signal type NC PLC Signal function set whether the spindle rotation enabling signal test is valid SPEN 0 the spindle rotation enabling signal test is invalid SPEN I and AGIN F208 6 0 the detection for spindle rotation enabling signal is valid Signal address 1 14 1 12 1 3 Automatic Gear Shifting Function Signal AGER F208 7 Signal type NC PLC refer to 8 2 2 12 1 4 Checking Gear Shifting In position Signal When Automatic Shifting to Gear 1 or 2 AGIN F208 6 Signal type NC PLC refer to 8 2 2 12 1 5 Gear Shifting In position Signal Level Selection of Spindle Enabling Signal AGIM F208 5 Signal type NC PLC Misi GSK980TD Turning Machine Signal function It informs PLC of valid levels of gear shifting in position signal and spindle enabling signal AGIM 0 high level of spindle gear shifting in position signal is valid low level of its enabling signal is valid AGIM 1 low level of spindle gear shifting in position signal is valid high level of its enabling signal is valid
60. G LABEL Instruction function Specify one label in ladder namely jumping target position specified by JMPB One Lx is only specified one time by LBL Ladder format ES 15 GSK980TD Turning Machine System Relative parameter Lx specify jumping target label The label number is specified with beginning L address t and it can specify one of L1 to L999 d 1 10084 4 13 CALL SUBPROGRAM CALLING Instruction function e B Call the specified subprogram with characteristics as follows call instructions can use the same subprogram call instruction can be embedded cannot call a subprogram in grade one program a subprogram is edited following END2 ACT Control condition ACT 0 execute the next instruction following CALL Ladder format 1 call subprogram which number is specified Relative parameter Px specify the called subprogram label its label number is specified with beginning P address and it can specify one of from 1 to P999 4 14 SP START of SUBPROGRAM SPE END of SUBPROGRAM Instruction function SP is to create a subprogram which number is used for subprogram name and SPE is taken as end symbol of program when SPE is executed the main program will be returned to SP and SPE are together used for specifying the subprogram range and the subprogram must be edited following END2 Ladder format Relative parameter P
61. GSK980TD Turning PLC User Manual Ent 452 22 GSK CNC EQUIPMENT CO LTD Book 1 PROGRAMMING PLC specification PLC address ladder SUIMIMIBISOIg T YOog Book 2 FUNCTION PLC function control logic and relative signals lez e 5 A 5 Book 3 CONFIGRUTION SOFTWARE GSKCC software and usage JIBMIJOS UONVANSIFUOD 4004 APPENDIX Appendix 1 input signal appendix 1 Appendix 2 output signal appendix 2 Appendix 3 G F signal appendix 3 Appendix 4 GSK980TD standard function configuration appendix 8 1 PROGRAMMING Contents Chapter 1 SEQUENTIAL PROGRAM i eie iet ated tte tec cunt LE PECCSPECIEICALDICIN ond imita eto reponses tUm cond mcdium ated 1 2 STRUCTURE of SEQUENTIAL PROGRAM 2 2 2 111 1 2 T SUBDEOPFPAETL 1 2 2 Subprogram Embedding nett e e tesi oreet tati Ro teens 1 2 Branch aee el es 1 3 EXECUTING SEQUENTIAL PROGRAM 1 3 1 Execution Process of Sequential Program eicere dee eite BAe 1 3 2 Cycle Execution of Sequential Program 1 3 3 Priority Order of Executing Sequential Program eene 1 4 PROCESSING INPUT OUTPUT SIGINALD 1 4 1 Brecessmg Input Signal wel poe
62. Help Disconnect CNC Modify Dog Password Write To Read From Coammunicatinn Settinns Fig 2 19 Connect CNC Execute the command and connect to CNC by serial communication interface Disconnect To CNC Disconnect to CNC and release serial communication interface Write To CNC Write the current file to CNC to store Read From CNC Read a file from CNC to PC Communication setting Set parameters of serial communication interface including selecting serial number and baud rate Options Set the relative program options Pop up a dialog as follows after executing the command 5 Application Start Load last project automatically 4 Open the project Open the ladder view automatically when Language English 5 2 5 gt 5 Dn gt Fig 2 20 Chapter3 Toolbar Chapter 3 TOOLBAR 3 1 MAIN BOOLBAR amp amp Ganz re Fig 3 1 Create new project Open project Save project Print Print Preview Ri Connect to CNC E Disconnect with CNC Write to ww Read From CNC 5 2 5 gt 5 Dn gt 3 2 TOOLBAR for EDITING LADDER 58 Fig 3 2 TE Insert a contact at the cursor a
63. In the mode of automatic or inputting method when automatic operation start signal ST 15 effective programs start running 1 Under the following conditions ST signal is ignored A any other methods except automatic method or inputting method feed hold signal SP is 0 emergency stop signal ESP is 0 external reset signal ERS is 1 B E press reset button on the operator s panel F CNC is warning G automatic operation has already started program restart signal SRN is 1 I CNC is searching for a sequence number 2 During automatic operation CNC performs feed hold under the following conditions A feed hold signal SP is 0 change to manual method wheel method single step method machine zero return or program zero return single block command is finished already finished inputting is warning F After changing to editing method single block command is finished 4 During automatic operation CNC keeps in reset status and stops running under the following conditions emergency stop signal ESP 150 B external reset signal ERS is 1 C press reset button on the operator s panel Feed hold pause automatic operation During automatic operation when the feed hold signal SP is 0 CNC pauses and stops running At the same time cycle start indictor signal STL is set to 0 feed hold signal SPL is set to 1 even though SP is set to 1 the machine will not restar
64. J1 J4 G102 0 G102 3 e Signal type PLC NC e Signal functions In the jog feed or incremental feed mode select a feed axis and a direction perform axis moving and NC sets the corresponding axis and direction selection signal to 1 indicates feed direction The number indicates axis number J 1 1 Axis 1 feed 2 Axis 2 feed 3 Axis 3 feed 4 Axis 4 feed Forward feed Backward feed Notes A In the jog feed mode CNC makes the selected axis moving continuously In the incremental feed mode CNC makes the selected axis moving according to the specified rate defined by MP1 2 signals B When an axis is moving NC sets the axis and direction selection signal to 1 When the axis stops moving the signal changes to 0 Signal addresses 102 1 41 5 GSK980TD Turning Machine 3 1 2 Manual Feed Override Signal JV00 JV15 G10 G11 e Signal type PLC Signal functions Select manual feed override The following table shows the relationship between signals and manual feed override PLC sets a value to G10 G11 and transmits to NC Then NC sets override based on the value of G10 G11 G11 G10 Override Feed speed mm min 0000 0000 0000 1111 0 0 0000 0000 0000 1110 10 2 0 0000 0000 0000 1101 20 3 2 0000 0000 0000 1100 30 5 0 0000 0000 0000 1011 40 7 9 0000 0000 0000 1010 50 12 6 4 0000 000
65. LC automatically closes M03 M04 M32 MOS output signal when the reset key is pressed RSJG 1 M03 M04 M32 MOS output signals are reserved when the reset key is pressed T Signal address IG 12 8 4 Direction Selection Signal for Motion Key in X Direction XVAL F214 0 Signal type NC PLC Signal function it defines the relationship between motion key in X direction and X axis positive negative direction XVAL 0 up motion key in X direction corresponds to X axis negative direction down motion key in Z direction corresponds to Z axis positive direction XVAL 1 up motion key in X direction corresponds to X axis positive direction down motion key in Z direction corresponds to Z axis negative direction Signal address 12 8 5 Direction Selection Signal for Motion Key 7 Direction ZVAL F214 1 Signal type Signal function it defines the relationship between motion key Z direction and Z axis positive negative direction ZVAL 0 left motion key in Z direction corresponds to Z axis negative direction right motion key in Z direction corresponds to Z axis positive direction ZVAL 1 left motion key Z direction corresponds to Z axis positive direction left motion key in Z direction corresponds to Z axis negative direction XII 8 Chapter 12 Function parameter signal Signal address 1 14 14 4 4 12
66. N IV 7 4 11 JMPB PROGRAM JUMPING eiie IV 9 4 12 LBL PROGRAM JUMPING LABEL 02 0 IV 9 4 13 CALL SUBPROGRAM CALLING eene ene IV 10 4 14 SP START of SUBPROGRAM SPE END of SUBPROGRAM IV 10 4 15 ROTB BINARY ROTATION CONTROL eee IV 11 PARD CPARIT YGHEOKY 2 2 MERO IV 13 4 17 ADDB BINARY DATA ADDING IV 14 4 18 SUBB BINARY DATA SUBTRACTING IV 15 4 19 DIFU ASCENDING EDGE SET iii Ria Ane theta ird IV 16 4 20 DIFD DESCENDING EDGE SET teet ee oae reto oe teo tie IV 16 2 2 EL CONI DO IV 17 4 22 ALT ALTERNATIVE OUTPUT IV 18 Chapter 5 COMMUNICATION iicet ive Ta c rnt RR Sd SUSPEN a V 1 S T ERANSMIT EIEES to uiii iiim V 1 5 2 UPLOAD FILES from CNG tecti tei t re nii e n ett a V 3 5 3 DISCONNECT waithiGNn Ganis ennah er costo ere ee CRT a V 4 5 2 Q p 5 D 2 oO Chapter 1 Overview Chapter 1 OVERVIEW 1 1 GSKCC SOFTWARE With a brief software interface GSKCC is a configuration software of GSK 980TD used for editing PLC ladder and part
67. O 032 In automatic method or manual method including machine zero return program zero return actual moving rate 1s obtained through multiplying the value set by parameters NO 022 NO 023 by the rate value 6 2 1 Rapid Traverse Override Signal ROVI ROV2 6014 0 G014 1 eSignal type PLCNC eSignal function PLC sets values to G14 0 G14 1 and transmits to NC NC then sets the rapid traverse override according to the values of G14 0 G14 1 The override values of ROV2 are shown in the following table ROV2 6141 ROVI G14 0 Override value 0 0 100 1 0 50 0 1 25 1 1 eSignal address 1 14 14 RV VI 1 41 5 GSK980TD Turning Machine 6 2 2 Rapid Traverse Override Control Flowchart 0001 END1 X0024 5 R0010 1 0002 T X24 5 down key for rapid traverse override X0024 2 0010 2 24 2 up key for rapid traverse override 0003 O R0010 1 R0010 2 K0022 1 0004 Ht Vt CTRC 0000 C0001 Rapid traverse override R0088 7 3 R0088 0 0005 MOVN 0004 0001 C0002 R0010 2 00101 0022 4 0006 11 Vt Vt 0001 Rapid traverse override N z 5 0088 7 R0088 1 0007 MOVN 0004 2 C0001 R0010 1 0008 MOVN 0001 C0001 R0234 R0010 2 0009 CMP 0004 3 Max rapid traverse override C0001 K0022 0 0010 CMP 0004 0 Min rapid traverse override C0002 K0022 3
68. P 1 0 Alarm signal AL 1 1 Reset signal RST F1 3 Distribution end signal DEN F1 5 Tapping signal TAP F1 7 CNC ready signal CNC MA F2 1 Rapid feed signal RPDO F2 3 Thread cutting THRD F2 6 Cutting feed signal CUT F2 7 Dry run test signal MDRN F3 0 Increment mode detection signal MINC F3 1 Handwheel mode detection signal MH F32 JOG mode detection signal MJ F3 3 MDI mode detection signal MMDI F3 5 Auto mode detection signal MMEM F3 6 Edit mode detection signal MEDT F4 0 Optional block jump detection signal MBDTI F4 1 All axes on machine locked detection signal MMLK F4 3 Single block detection signal MSBK F4 4 Detection signal for auxiliary function locked MAFL F4 5 Detection signal for machine reference point return mode MREF F4 6 Detection signal for program reference point return mode MPST F7 0 Auxiliary function strobe signal MF Appendix 7 gt z S aak VES E GSK980TD Turning Machine CNC Function Address Signal name Code F7 2 Spindle speed function strobe siganl SF F7 3 Tool function strobe signal TF F9 4 DM30 F9 5 DM02 M encode signal F9 6 1 9 7 F10 F13 Auxiliary function code signal 00 31 F22 F25 Spindle speed code signal S00 S31 F26 F29 Tool function code signal T00 T31 F53 4 Background busy sign
69. PB3 0 the pressure low test function is invalid PB3z 1 the pressure low test function is valid Signal address ppp i c E 12 5 2 Valid Level Selection Signal of Pressure Low Input Signal SPB3 F209 5 Signal type NC PLC Signal function it informs PLC of valid level of current pressure low SPB3 0 CNC alarms when the high level of pressure low input signal is valid SPB3 1 CNC alarms when the low level of pressure low input signal is valid Signal address sl o up rj XII 5 ES GSK980TD Turning Machine 12 6 PARAMETER SIGNALS of SAFEGUARD TEST FUNCTION CNC inform PLC of signals related to safeguard test function including valid signal of safeguard test function selection signal of valid level of safeguard input signal 12 6 1 Valid Signal of Safeguard Test Function 4 209 6 Signal type NC PLC Signal function it informs PLC whether the current safeguard test function is valid 4 0 the safeguard test function is invalid 4 1 the safeguard test function is valid Signal address 12 6 2 Selection Signal of Valid Level of Safeguard Input Signal I SPB4 F209 7 Signal type NC PLC Signal function it informs PLC of the valid level of current safeguard input signal SPB4 0 the safeguard is closed in low level 5 I the safeguard is closed in
70. PRESET VALUE ADDRESS 2 AO TINIBR ADDRESSSCT tuo d ptu avete d uaa Feliu 2 11 TIMER PRESET VALUE ADDRESS DT 2 I2 DATA TISTADDRESS 49275 tot av nena dpi edP DAD IDABBICADDRESS aed 2 14 SUBPROGRAM NUMBER aep daa Chapter SPEC BASIC INSTRUCTIONS csiis itean ah ee BA Dd ud 3 1 LD LDI OUT INSTRUCTION iiir pet t reete tret ni epe Ges od aree esci S ORB ORLINSPRUIGTIOBN sets as DAPORB INSTRUGTION teste teas a deus Dacia coi us do le Ease 32 ANB INSTRUCTION UL IRE SU EVANS DEDERE NM HU D Chapter 4 PLC FUNCTION INSTRUCTIONS ete eei t e ES 18014 1904 gt GSK980TD Turning Machine System 4 1 ENDI END of GRADE ONE PROGRAM eret IV 1 4 2 END2 END of GRADE TWO PROGRAM IV 1 e EE lt A RST inne Nd ces IV 2 EM 45CMP BINARY COMPARATIVE SET s in IV 3 EE 46TMRB TIMER 22 5386 em Ripa 1 4 7 4 7 CTRC BINARY COUNTER IV 5 5 4 8 MOVN BINARY DATA COPY
71. Tool Windows Help l x 5 A ipe Spo rpm Workspace x Number Illustration E Project 980TD 00011001 BIT ok ACS ML XRC El 00100000 BIT 232 Data table 4 Message table a 2 Ladder a Informations State Par Data Par e CNC configuring Parameter State parameter Parameter Input Tooler offset D I ata parameter 99 apiid compe Number 1 0001 1001 eg rograms S 00456 ze Bit Esplain 5 BIT71 0 Standby n 1 0 Standby 1 0 lt BIT5 1 0 Standby E 4 1 0 Spindle control transducer BIT3 1 0 Handwheel or incremental feed BIT2 1 0 Radius or diameter programing BIT1 1 0 Standby 120 Standby x Output mx Ready 2 4 9 Chapter 4 Software 4 6 1 Modifying Parameters by Sequence Number User interface is as Fig 4 11 and the right property window is the to edit parameters when selecting sequence number to modify parameters State Par Data Par Set by Serial Number Mode El Setting by serial number State parameter Parameter Input Data parameter wnn Number 1 Value 00011001 Explain BIT 1 0 Standby BIT6 1 0 Standb
72. achine control panel 08 1 Min feedrate override indicator on Y08 6 Max spindle override indicator on machine control panel machine control light 08 2 rapid override indicator on Y08 7 Spindle jog indicator on machine machine control panel control panel 08 3 Min spindle override indicator on Y09 0 Feed dwell indicator on machine machine control panel control panel 08 4 Max feedrate override indicator on Y09 1 Dry running indicator machine control panel APPENDIX 3 G F SIGNAL Function sequence Function Address Signal name Code Chapter Alarm signal F1 0 Alarm signal AL 2 3 Cancel override G6 4 Override canceling signal 6 4 12 Feedrate override signal FVO FV7 6 3 1 Feedrate override External feedrate override switch input F210 0 F SOVI 12 7 1 0V1 0V8 is valid Optional block jump G44 0 Optional block jump signal BDT 56 signal 4 0 Detection signal for optional block jump MBDT User macro program G54 G55 User macro program input signal UIO UII5 10 1 signal F54 F55 UO0 UO15 User macro program output signal U0100 me 10 2 00131 210 6 Shield external cycle start signal ST MST 127 210 5 Shield external pause signal SP MSP G7 2 Cycle start signal ST 5 1 G8 5 Feed pause signal SP 0 5 Cycle start alarm signal STL Appendix 3 GSK980TD Turning Machine CNC
73. al BGEACT F54 F55 UO0 UOI5 User macro program output signal F56 F59 U0100 U0131 75 1 Auxiliary function locked soft key AFLO F75 2 Program optional jump soft key BDTO F75 3 Block soft key SBKO F75 4 Machine locked soft key MLKO F75 5 Dry run soft key DRNO F76 3 Rigid tapping process signal RTAP F94 0 F94 3 End signal of machine reference point return ZP1 ZP4 F102 0 102 3 Axis traversing signal MV1I MV4 F106 0 106 3 Axis motion direction signal MVD1 MVD4 F120 0 F120 3 Reference point creation signal ZRF1 ZRF4 F197 1 OUT key in MDI mode MDI F198 0 F198 3 End signal of program reference point return PRO1 PRO4 F199 0 Spindle jog detection signal MSPHD F200 4 Analog spindle is valid SIMSPL NO 001 4 F201 2 If OUT key starts programs only in MDI mode DCS NO 004 2 F201 5 Level selection for deceleration signal when executing DECI NO 004 5 reference point return F204 3 Selection Signal with Reset key for output interface RSJG NO 009 3 F205 0 Level selection for toolpost locked signal TCPS NO 011 0 205 1 Level selection for toolpost in position signal TSGN NO 011 1 F205 2 Self hold of axis motion is valid in reference point return ZNIK NO 011 2 F207 tool selection TMAX NO 084 F208 0 Chuck function 15 valid SLQP NO 164 0 F208 1 Do not check chuck clamping signal SLSP NO 164 1 F208 2 Tailstock control function is invalid valid SLTW NO 164 2 F208 3 Spindle rotating enables the input signal is valid SPEN NO 164 3 F
74. al programs and executing 1 bit operation There are basic instructions al for GSK980TD PLC as follows gt Instruction Function Component name S LD Read normally open contact LDI Read normally closed contact X Y EGR K A OUT Output coil Y GR K A AND Normally open contact in series X Y F GR K A ANI Normally closed contact in series X Y EGR K A OR Parallel normally open contact X Y EGR K A ORI Parallel normally closed contact X Y F GR K A ORB Parallel series circuit block ANB Parallel circuit block in series 3 1LD LDI OUT INSTRUCTION Mnemonic code and function Mnemonic code Function Ladder symbol LD Read normally open contact k LDI Read normally closed contact OUT Output coil Instruction explanation A LD LDI are used for connecting contact to bus bar Each one can combine with instruction ANB and can be used at starting point of branch B OUT is used for driving output relay internal relay coil instead of input relay C Parallel instruction OUT can be continuously used Programming example 0002 1 003 7 0100 3 G0120 0 Program explanation When X0002 1 is 1 the system outputs 0003 7 When 0100 3 is 0 the system outputs G0120 0 1 WI GSK980TD Turning Machine System 3 2 AND ANI INSTRUCTION EY Mnemonic code and function 5 Mnemonic code Function Ladder sy
75. am is displayed and is opened to edit programs Save them after editing the programs 00456 Eft Project 980TD 5500 650 X0 0 70 0 Data setting table 60 X30 0 7130 0 A Message table G92 X 0 6 70 0 F2 0 Ladder X 0 8 Informations X 1 0 E A CNC configuring X 1 1 EA Parameter GO X30 0 2130 E Tooler offset M30 69 Screw pitch compensation E NC Programs 00457 Fig 4 18 4 9 2 Load to CNC Part Program 5 5 2 gt be 5 2 oO Pop up a dialog box as Fig 4 19 after executing Load File in Fig 4 16 and select the stored CNC part program on the disk Chapter 4 Software 5552 00035 00100 File name pog Files of type NC Program fileen Cancel p Fig 4 19 Click Open to pop up a dialog box as Fig 4 20 x Name CANCEL 00015 Fig 4 20 After confirming the file name load it to the current project The system prompts to set a new program name again if there is the same one 4 9 3 NC Part Program management Manage part programs after operating the above methods including modification deletion Open the 5 2 5 gt 5 Dn gt corresponding program after double clicking program file menu as Fig 4 20 Sx 15 GSK980TD Turning Machine CNC
76. apter 8 Spindle Speed 8 4 SPINDLE SPEED IN POSITION SIGNAL CNC can start the cutting feed when the spindle speed in position SAR is input signal Usually when the spindle speed is the specified one the cutting feed is started At this time sensor detects the spindle speed and the detected one is transmitted to NC by PLC When PLC program is edited for spindle speed in position if instructions of spindle speed changing and cutting feed are transmitted simultaneously CNC changes its state according to the spindle speed to confirm SAR signal to start cutting feed To avoid the above mentioned problem CNC needs to delay SAR signal and delay time is set by NO 072 after S instruction and cutting feed are transmitted NO 175 BIT6 is set to 1 when signal is used Spindle speed in position signal G029 4 Signal type PLC NC Signal function when PLC sets G29 4 to 1 it transmits to NC and informs NC that the cutting feed can be started When G29 4 is 0 the cutting feed cannot be started lez e 5 5 Caution the signal is used for informing CNC that the spindle speed is in position And so the signal is set to 1 after the actual spindle speed is the specified one CNC detects signal in the following states A After CNC switches from rapid traverse movement mode to cutting feed before the first feed block is distributed and after CNC reads the feed block and runs a period of
77. automatic gear shifting Signal address ursi ode Test gear shifting in position signal AGIN F208 6 in automatic gear shifting to 1 2 Signal type NC PLC Signal function NC transmits AGIN F208 6 to PLC When AGIN F208 6 is 1 the system automatically gear shifts to 1 or 2 and AGIN F208 6 is 0 PLC does not test the gear shifting in position signal Signal address qune 4 __ 8 3 SPINDLE JOG FUNCTION When the spindle jog function is valid the spindle rotates at the speed set by NO 109 for some time set by NO 108 after it is started The function is valid for analog spindle control and executed in JOG Handwheel Increment Machine Reference Point Return and Program Reference Point Return mode 8 3 1 Spindle Jog Signal SPHD 6200 0 Signal type PLC NC Signal function when the analog spindle function is valid PLC sets G200 0 to 1 and transmits to 1 to specify that the spindle jog function is valid G200 0 is 1 when the spindle rotates normally Signal address 8 8 3 2 Spindle Jog Detection Signal MSPHD 199 0 Signal type NC PLC Signal function when CNC is executing the spindle jog NC sets F199 0 to 1 and transmits to PLC to inform PLC that NC is executing the spindle jog F199 0 is 0 when NC is not the spindle jog mode Signal address __ SPD 8 Ch
78. bit which sequence number is that of equal data in these 8 data is set to 1 Q Relative parameter Length specify the length 1 2 4 of ADDI ADDI it is initial address of encoding and the address number is R X Y F G K A D T C DC and DT DATA reference value of comparative constant ADD2 output comparative result Its address number is Y G and A Program example 0003 3 0002 DECB 0001 20010 0003 3 1 When 0010 8 0010 0 1 When 0010 9 ROO10 1 1 When 0010 15 0010 7 1 4 10 CODB BINARY CODE CONVERSION Instruction function The instruction is used for binary code conversion Ladder format 441 GSK980TD Turning Machine System ACT CODB Length ADD1 Length ADD2 Control condition ACT 0 ADD2 is reserved value of conversing input data address ADD1 is taken as list number of conversion list from which d 1 10084 the conversion data corresponding to the list number is transmitted to output address ADD2 of conversion data z Conversion data list Converting input data Address ADD2 Converting input data Address ADDI Relative parameter Length1 binary data length and output address length of conversion data in conversion list 1 1 2 2 4 4 byte Length2 conversion length 1 2 2 4 3 8 4 16 5 32 6 64 7 128 8 256 ADD1 input address of conversion data Its address has
79. ccess key F1 Insert a parallel contact at the cursor Insert coil at the Caccess key 22 Insert a parallel contact at the cursor and press the small arrowhead to pop up menu to select the function instruction access key F3 1 417 GSK980TD Turning Machine 8 Workspace END1 K Addres 2 9 Project END2 0003 Sey 0003 BE A Output Fig 3 3 Insert a horizontal connecting line at the cursor access key F4 Insert a vertical connecting line at the cursor Delete the selected element of ladder access key Delete Delete a left vertical connecting line of the selected element Display line number of ladder or not Display annotation of ladder or not e e o P 2 e 5 p 5 E e 2 2 Chapter 4 Software Chapter 4 SOFTWARE 4 1 WORKSPACE WINDOW Workspace gx 5 Project wanmei eR PLC Data setting table Message table Ladder Informations CNC configuring Parameter Tooler offset 62 Screw pitch compensation Cmq NC Programs 00456 Fig 4 1 Submenu items including Data setting table Message table Ladder Parameter Tool offset Screw pitch compensation are operated by pressing right key of mouse Pop up a menu by pressing right key for Ladder Workspace gx E HH Project wanmei
80. code is specified I After commands in a same block is finished CNC starts executing next block In application the following sequences can be selected as per logical requirements If there is one auxiliary function in the block PLC uses the following sequence 41 5 GSK980TD Turning Machine M00 M31 PLC operati DEN When move command and auxiliary function are in a same block if PLC executes auxiliary function before move command ends it executes in the following sequence 5 N m z ze e 5 DEN 0 When move command and auxiliary function in a same block if PLC executes auxiliary function after move command ends it executes in the following sequence Move command M00 M31 N 7 1 AUXILIARY FUNCTION M FUNCTION 7 1 1 Code Signal and Strobe Signal Code signal M00 M31 F010 F013 strobe signal MF F007 0 eSignal type NCO PLC eSignal functions After CNC executes M code NC sends M code to PLC via F10 F13 and sets MF to 1 to start logical control For related output conditions and executing processes please refer to above descriptions The relationship between M command and code signal number is as follows Chapter7 MST Functions F013 F012 F011 F010 M command 00000000 00000000 00000000 00000000 M00 00000000 00000000 00000000 00000001 MOI 00000000 00000000 00000000
81. ction Refer to Chapter 7 about tool change 9 2 MANUALLY SEQUENTIAL TOOL CHANGE The current tool number adds 1 as the next tool to execute tool change in manual sequential tool change If the current tool number adding 1 is more than the total tool selections set by NO 084 the required next tool number 15 1 Execution process of manual sequential tool change is the same that of tool change with T instruction NC transmits the tool selection number and general signal of the next tool and waits for PLC executing tool change CNC transmits the tool number which the current one adds 1 in manual sequential tool change but one is specified by T instruction in tool change with T instruction Manually sequential tool change HDT G44 7 Signal type PLC NC Signal function PLC sets G44 7 to 1 and transmits to NC NC will execute tool change sequentially according to current tool number IX 1 ES GSK980TD Turning Machine Q Signal address 1 4 414 4 4 T I Chapter 10 Programming instruction Chapter 10 PROGRAMMING INSTRUCTION In programming although subprogram is useful for repetitively executing the same operations macro program is useful for editing general program because it can use variable arithmetical operation logic operation and condition branch A part program can call a user macro program like calling a subprogram as follows O0001 main p
82. d and axis slows down and stops Unless G7 1 signal is 0 program can restart e Signal address Lp oe Chapter 2 Preparation for Operation 2 6 MODE SELECTION Mode selection signals include MD1 MD2 MD4 DNC1 and ZRN Eight types of work mode can be selected Edit mode Auto mode MDI mode Jog mode Handwheel mode Increment mode Machine Reference Point Return mode and Program Reference Point Return mode CNC outputs work mode detection signals and informs PLC which working mode CNC is using 2 6 1 Mode Selection Signal MD1 MD2 MD4 G043 0 G043 2 DNC1 G043 5 ZRN G043 7 e Signal type PLC e Signal function Work mode codes are as follows No Code signal unn ZRN DNC1 MD2 MDI 5 1 0 0 0 1 1 N 2 Auto mode 0 0 e MDI mode 0 0 0 0 0 4 Handwheel mode Increment mode 0 0 1 0 0 HANDLE INC 5 Jog mode JOG 0 0 1 0 1 9 Machine Reference Point Return mode 1 0 1 0 1 REF 10 Program Reference Point Return mode 0 0 0 1 0 PROG_ZERO PLC sets a value digit to a Code signal and then transfers to NC NC will determine the working method of CNC according to the code signal value Signal addresses wp Mbi 2 6 2 Work Mode Detection Signal MINC F3 0 MH F3 1 2 MMDI F3 3 5 MEDT F3 6 MREF F4 5 MPST F4 6 e Signal t
83. data with only one byte Its address is R X G K and D ADD2 output address of conversion data and its address is G and D Program example 0003 3 DER CODB 0001 R0100 0002 R0200 Example Conversion data list X0003 3 1 X0003 3 1 R0100 0 R0200 1 X0003 3 1 R0100 1 R0200 2 X0003 3 1 R0100 2 R0200 3 X0003 3 1 R0100 3 R0200 4 E NINE AE Chapter 4 PLC Function Instructions 4 11 JMPB PROGRAM JUMPING Instruction function Immediately jump the program to the position set by label with characteristics as follows jump instructions can use the same label forbid jumping END1 and END2 forbid jumping subprogram jump forward or backward Ladder format ACT e Control condition ACT 0 do not jump and execute the next instruction following JMPB execute the next instruction following the label after jumping to the specified label Q Relative parameter Lx specify the jumping target label label number must be specified with beginning L address t and it can specify one of L1 to 1 999 Program example X0003 3 0002 JMPB 10004 R0100 0 0001 0 0003 2014 10004 R0012 0 00001 0 0005 Explanation When X0003 3 is 1 the program jumps 0003 and orderly executes from 0004 when X0003 3 is 0 the system orderly executes the program from 0003 4 12 LBL PROGRAM JUMPIN
84. ding edge of ACT 1 gt 0 Control condition IV 16 Chapter 4 PLC Function Instructions Output signal Add b when it is executed one scanning period of Add b in ladder is 1 Relative parameter Add b itis the operation result output address and its address is Y A and DIFD R0044 0 Program example d 1 10084 AXD003 3 Explanation R0040 0 output is 1 when 0003 3 reaches the descending edge 4 21 MOVE Instruction function Logic multiply and input data execute logic and operation and then the system output the result to the specified address Ladder format ACT HIGH4 In LOW4 Addr Out Control condition 1 Logic multiply HIGH4 LOW4 and input data CAddr execute logical operation and output the result to the specified address Addr Out which can remove the needless number of bit from 8 bit signal of the specified address ACT 0 Out is reserved Relative parameter HIGH4 high 4 bit logic multiply LOWA low 4 bit logic multiply Addr In input data address Its address number is R A K X Y F G and D Addr Out output data address Its address number is A X Y and D Program example X0003 3 MOVE 0100 R0010 1110 R0020 Explanation When X0003 3 is 1 logically execute R0010 and 01001110 to save its result to R0020
85. ditions If CNC overtravel signal is 0 the control unit will response as follows During automatic operation if any one of the axis overtravel signal is 0 all axes will slow down and stop also alarm will be given out During manual operation only the axis with a moving signal of 0 is going to slow down and stop The axis can move backwards after it stops Once an axis overtravel signal turns to 0 the moving direction will be saved in the memory Even though the signal changes to 1 again before the warning is cancelled the axis cannot move on in the foregoing direction Signal addresses ee 2 4 ALARM SIGNAL N m z ze e 5 AL F001 0 e Signal type gt e Signal functions When an alarm is given out the cause message of the alarm will be displayed and NC will set F1 0 signal to 1 There are two types of alarm PLC alarm and CNC alarm When the alarm is cancelled and CNC resets F1 0 will turns to 0 e Signal address ee 2 5 START LOCK SIGNAL STLK G007 1 e Signal type PLCNC e Signal functions When PLC sets G7 1 to 1 and transmits to NC NC control axis slows down and stops During automatic operation if G7 1 is 1 and the commands before axis moving command block contain M 5 T commands M S T commands can execute constantly until all the axis moving command blocks are finishe
86. dle motor speed instruction signal R12I RO1D specified by PLC The spindle speed instruction is set in R121 ROII if the spindle speed is transmitted from PLC Voltage offset after the system receives the spindle speed 512 bit code 0 4095 it compensates and regulates instruction value of spindle speed by setting NO 021 it is voltage compensation value when the analog voltage outputs and NO 036 it is voltage compensation value when the analog voltage outputs Operation formula is as follows 99994N0 021 NO 036 4095 Output value of spindle speed 9999 XS12 code N0 036 999 Conditions of stop output when SO is commanded SSTP 0 or 50 the instruction output to spindle is reset to 0 An instruction from NC to spindle cannot be reset to 0 with 05 emergent stop or reset mode Analog spindle interface the system outputs analog voltage of the regulated spindle speed to the spindle motor by analog spindle interface circuit Control instruction flow of analog spindle speed S instruction in part program 50 59999 S code SF output Spindle override signal SOV0 SOV7 Output to PLC ransmit from PLC Transmit from PLC Spindle stop signal SSTP ear shifting S gt spindle Input gear selection signal GR1 GR2 Result after NC outputting speed 512 bit code output 12 T E Output selection by SIND Transmit from PLC PL ifi 12 bit code to i C specifies S
87. dle speed strobe signal SF F26 F29 Tool function code signal T00 T31 13 F7 3 Tool function strobe signal TF G4 3 End signal of auxiliary function FIN 7 4 1 F1 3 End signal of distribution DEN 7 4 2 G44 7 Manual sequential tool change signal HDT 92 205 0 Level selection for toolpost locked signal TCPS Level selection for toolpost in position Tool change F205 1 TSGN signal function 12 3 F207 Total tool selection TMAX F223 0 Tool change mode selection PB5 F2232 If in position of tool change end is tested PB6 Auxiliary function G5 6 Auxiliary function locked signal AFL 75 locked F4 4 Auxiliary function locked test signal MAFL 44 1 axes on machine locked signal MIK Machine locked 5 3 4 1 axes machine locked test signal MMLK F75 1 Auxiliary function locked AFLO F75 2 Program jump BDTO Soft operator panel F75 3 Single block SBKO 11 75 4 Machine locked MLKO 75 5 DRNO F197 1 OUT key OUTO Memory defence G46 3 Memory defence signal KEYI 11 2 Mode selection F3 0 Increment mode detection signal MINC 2 5 F3 1 Handwheel mode detection signal MH F3 2 JOG mode detection signal MJ F3 3 MDI mode detection signal MMDI F3 5 Auto mode detection signal MMEM F3 6 Edit mode detection signal MEDT Machine reference point return detection F4 5 MREF mode signal Appendix 5 GSK980TD Turning Machine CNC
88. e 3 2 1 Handwheel Feed Axis Selection Signal HS1A 18 0 HSIB G18 1 e Signal type PLC NC e Signal type PLC sets a value to handwheel feed axis selection signal G18 0 G18 1 and transmits to NC NC selects appropriate axis to feed based on the value of G18 0 G18 1 The relationship between signals G18 0 G18 1 and handwheel feed axis is as follows HS1B G18 1 HS1A G18 0 Feed axis 0 0 No feed axis selected 0 1 Axis 1 is selected 1 0 Axis 2 is selected 1 1 Axis 3 is selected Signal addresses pss 3 2 2 Handwheel Increment Override Signal 1 619 4 MP2 G19 5 e Signal type PLC NC e Signal functions MP1 MP2 can select the moving distance of each pulse during the handwheel feed and also can T select the moving distance of each step during the incremental feed PLC sets a value to G19 4 G19 5 and transmits to NC NC adjusts override according to the value of G19 4 G19 5 See below table for detailed relationship MP2 MP1 G19 4 Moving distance G19 5 mm 0 0 0 001 0 1 0 010 1 0 0 100 1 1 1 000 Signal addresses 6 Chapter 3 Manual Operation 3 2 3 Handwheel Override Control Flowchart 0001 1 X0022 1 F0003 1 0002 e RST X22 1 Z handwheel selection signal K0018 0 K0018 1 00217 F0003 1 0004 L 00181 H X21 7 X handwheel selection signal
89. e by access key Ctrl O or mouse selecting inthe main toolbar After executing the open project command there is a dialog box to open project is displayed and then you select the project gpr and press Open to open it Open project 2 x Look in quanbu t E3 GPR File Size 10 4 KB File name quanbu Files of type Configuring project file gt 2 Fig 2 5 Close project Close the current open project 5 2 5 gt 5 72 gt Save Project Save the current open project by access key or pressinghael in the main toolbar Save As The current is saved as ones which is to open After executing the command pop up a dialog similar to that of New project set its name and path to save Import Lad File ldx Import ladder file ldx to project Execute the command and a dialog is displayed as follows IES 32 GSK980TD Turning Machine Importing ladder program Idx Saving Project Importing to a new prc Importing to the current projec File path Browse CANCEL Saving project select importing to a new project File path press Browse and a dialog box to select files is displayed Press OK and import ladder project after selecting the saving project and file path Print Execu
90. e is as follows SOV7 SOVO G30 7 G30 0 Spindle override 0000 0111 50 0000 0110 60 0000 0010 70 0000 0011 80 0000 0001 90 0000 0000 100 0000 0100 110 0000 0101 120 Caution The spindle override function is value in tapping cycle and thread cutting Signal address Chapter 8 Spindle Speed PLC control flow of spindle override X0024 1 00201 2X00244 X24 1 k f 0002 mn 0000 cooos spindle override R0075 0 7 R0075 1 0003 MOVN 0004 0006 C0007 X0024 4 K00204 X0024 1 X24 4 down key for 0004 s A 4 CTRC 0001 C0007 spindle override R0075 7 0 R0075 6 0005 0004 C0007 C0006 X0024 4 0006 MOVN 0001 X0024 1 0007 Max spindle override in position 0006 K0020 0 0008 0004 Min spindle override in position C0007 K0020 3 Spindle override encode 0009 CODB 0001 0003 5 N 5 5 44155 GSK980TD Turning Machine 0008 3 spindle override Y8 3 light for min spindle override Spindle enabling signal ENB 001 4 Signal type NC PLC Signal function it represents whether there is the spindle instruction Caution when an instruction sets the spindle speed it is not zero to output to the spindle NC set F1 4 to 1 if it is 0 ENB signal is set to O In analog spindle
91. e stop time but changes until other feed speed is selected and moving is started eSignal address E y ae 6 2 RAPID TRAVERSE OVERIRDE Rapid traverse override has four levels FO 25 50 and 100 FO override is specified by parameter NO 032 In automatic method or manual method including machine zero return program zero return actual moving rate 1s obtained through multiplying the value set by parameters NO 022 NO 023 by the rate value 6 2 1 Rapid Traverse Override Signal ROVI ROV2 6014 0 G014 1 eSignal type PLCNC eSignal function PLC sets values to G14 0 G14 1 and transmits to NC NC then sets the rapid traverse override according to the values of G14 0 G14 1 The override values of ROV2 are shown in the following table ROV2 6141 ROVI G14 0 Override value 0 0 100 1 0 50 0 1 25 1 1 eSignal address 1 14 14 RV VI 1 41 5 GSK980TD Turning Machine 6 2 2 Rapid Traverse Override Control Flowchart 0001 END1 X0024 5 R0010 1 0002 T X24 5 down key for rapid traverse override X0024 2 0010 2 24 2 up key for rapid traverse override 0003 O R0010 1 R0010 2 K0022 1 0004 Ht Vt CTRC 0000 C0001 Rapid traverse override R0088 7 3 R0088 0 0005 MOVN 0004 0001 C0002 R0010 2 00101 0022 4 0006 11 Vt Vt 0001 Rapid traverse override N z
92. ecting CODB and pressing OK CODB Binary Data Conversion Setting DataList bytes Length Length of Data 2 Y Length2 Lenath of List 00003 Add In Input 0001 3 Add Out Output 5 5 2 gt be 5 gt Fig 2 12 Set the corresponding parameter in the instruction setting dialog box and press OK Find Find the required instruction or address in the ladder program Pop up a dialog for finding after executing the command Chapter2 Menu Commands x Find Method Address uP DOwNO Find What 684 AL Fig 2 13 Select Address Function Address for finding type Input the finding content in Address and press UP DOWN or ALL located at the right side to gradually find The result of finding is displayed item by item in Output window as Fig 2 14 Finding 00008 4 Found item No 0 Line 2 Column 8 Searching for 80008 4 1 occurrence s have been found Fig 2 14 Double click Found item No XX Line 8 Column 1 to scroll ladder to the corresponding position Goto Rapidly scroll the current ladder to the required position and pop up a menu as follows File Edit View PLC Tool Windows Help Undo Cut Ctrl X Copy Ctrl C Paste
93. ed pause signal SP G8 7 External reset signal ERS G10 G11 Manual traverse override signal JVO JV15 G12 Feedrate override signal FVO FV7 G14 0 G14 1 Rapid feedrate override signal ROV2 G18 0 G18 1 Handwheel feed axis selection signal HS1A 5 G19 4 G19 5 Handwheel Incremental override signal MP1 MP2 G19 7 Manual rapid feed selection signal RT G29 4 Spindle speed in position signal SAR G29 6 Spindle stop signal SSTP Appendix 6 Apendix Function Address Signal name Code G30 Spindle override signal 5 0 5 G43 0 G43 2 MDI MD2 G43 5 G43 7 Mode selection signal MD4 DNCI ZRN G44 0 Optional block jump signal G44 1 All axes on machine locked signal MIK G44 7 Manually sequential tool change signal HDT G46 1 Block signal SBK G46 3 Memory defence signal KEY1 G46 7 Dry run signal DRN G54 655 User maro program input signal UIO UII5 G74 4 Spindle clockwise rotation in rigid tapping SRVB G74 5 Spindle counterclockwise rotation in rigid tapping SFRB G100 J1 J4 Feed axis and direction selection signal G102 J1 J4 G114 L1 L4 Overtravel signal G116 L1 L4 G200 0 Spindle jog function signal SPHD G201 G204 Current tool selection signal F0 4 Feed dwell lamp signal SPL F0 5 Cycle start lamp signal STL F0 6 Servo ready signal SA F0 7 Automatic run signal O
94. ei PLC Data setting table Message table 5 9 2 5 gt 5 Dn gt E A ran Pari Delete Properties e Scr NC Programs 00456 4 2 Open function is the same as that of double clicking left key 144 Sx GSK980TD Turning Machine CNC 4 2 DATA SETTING TABLE Set data in internal data register D DC DT of PLC by Data Setting Table as Fig 4 3 GSKCC project wanmei Data setting table E ni xj E File Edit View PLC Tool Windows Help 8 x OSHA mA S TA gt t Workspace Address 1byte Valve decimal Comment Input less than 30 charactors f Project wanmei 00000 Data setting table A Message table Ladder Informations Address 4 bytes Valve decimal Comment Input less than 30 charactors E A CNC configuring 0000 H Parameter 00001 Tooler offset DCO002 gt Screw pitch compe md NC Programs 00456 NNNNA 0 Address 4 bytes Comment Input less than 30 charactors 0000 Used Modified 65 0001 Used Modified 66 Fig 4 3 4 3 MESSAGE TABLE Double click Message table by left key or click by right key to pop a menu and execute Open to open the message table as follows Norkspace x Add
95. ering any functions for control units Their corresponding variables are as follows BH Iz me e e 54 00007 00006 00005 00004 0003 00002 00001 00000 1107 1106 1105 1104 1103 1102 1101 1100 55 00015 00014 00013 00012 0001 00010 00009 00008 1115 1114 1113 1112 1111 1110 1109 1108 56 Iz um e e F57 T I 58 59 Signal address 1132 1133 Chapter 11 Display Set Edit Chapter 11 DISPLAY SET EDIT 11 1 SOFT OPERATOR PANEL Soft operator panel function is to replace some control switches on the machine operator panel with soft switches Connect or disconnect with soft switches by using keys on MDI panel CNC informs PLC that states of all soft switches are indicated by their output signals For example soft switch SBKO is set to 1 and CNC is not in Single Block mode Only when PLC set SBK to 1 CNC can select Single Block mode Auxiliary function locked soft key AFLO F75 1 Program jump soft key BDTO F75 2 Single Block soft key SBKO F75 3 Machine locked soft key MLKO F75 4 Dry run soft key DRNO F75 5 OUTO soft key F197 1 5 I Signal type NC PLC Signal function NC sets the above mentioned F signals a
96. for Operation 2 7 4 Thread Cutting Signal THRD F2 3 e Signal type NC PLC e Signal functions when CNC is executing thread cutting NC sets F2 3 to 1 While on the contrary F2 3 is 0 e Signal address 1 1 1 onm jJ 5 5 I Chapter 3 Manual Operation Chapter 3 MANUAL OPERATION 3 1 JOG FEED INCREMENTAL FEED Jog feed In the jog mode if the feed axis and direction selection signal is set to 1 the tool moves continuously along the selected axis in the selected direction Incremental feed In the incremental mode if the feed axis and direction selection signal is set to 1 the tool moves one step along the selected axis in the selected direction The minimum distance the tool is moved is the least input increment Each step can be 0 001 0 010 or 0 100 times The only difference between jog feed and incremental feed is the method of selecting feed distance In the jog mode when the feed axis and direction selection signal J1 J1 J2 J2 J3 J3 is 1 the tool can move feed continuously While in the incremental mode the tool only moves one step By pressing the jog rapid traverse feed selection switch the tool can be moved at the rapid traverse federate In the incremental feed mode the distance of each step can be selected by MP1 MP2 5 N 5 5 3 1 1 Feed Axis and Direction Selection Signal Jl J4 6100 0 6100 3
97. h error compensation Chapter2 Menu Commands Chapter 2 MENU COMMANDS 2 1 GENERAL INTERFACE Ladder editing toolbar project wanmei Ladder 1 jal xi fic Fie 8 OSE MRO amp gt w o Workspace x Comment Ingut less than 30 charactors FR Project wanmei nc Data setting table A Message table E Ladder E Informations X0000 5 0001 5 E A CNC configuring Parameter 3 Tooker offset R0000 0 Signal emergent s 60008 4 Emergent stop sigi 0001 2 RO000 0 0003 2 69 Screw pitch compe NC Programs RO000 4 E 00456 F0007 3 0001 3 R0055 0 amp Interlock signal R0569 7 R0402 4 R0055 0 G0008 0 Q 00027 R0001 1 00026 00247 00008 5 7 al Preprocess Compiling 95 I 2 A Q 5 ge e 5 gt E Ready NUM Fig 2 1 Main menu software operating commands Main toolbar Normal operating commands Ladder editing toolbar Operating commands for editing ladder Workspace window Manage all configurations of project Message table Output compile message of adder and search content message User editing area User can select all types of view to execute many operations including editing ladder and setting parameter
98. irst block of the fractional second When the lag time is the second 8ms 0001 0 0 and the system executes the first one 0001 0 1 And then the system executes the second block of the fractional second but X0001 0 1 which state is still the previous synchronous input memory and Y0002 3 1 after execution 1 4 2 Processing Input Signal A Signal to NC PLC transmits output signal to the output memory at NC side every 8ms and then directly outputs to NC B Signal to machine PLC transmits output signal to the output memory at machine side and then directly outputs to memory every 2ms 1 6 Chapter 1 Sequential Program 1 4 3 Synchronous Procession of Short Pulse Signal The first is used for processing the short pulse signal When it is less than 8ms namely when the system executes the first the input signal state may be changed which may execute programs by mistake d 1 10084 0001 3 0002 3 0003 3 End of grade 5 z program As above 0001 3 0 is changed to X0001 3 1 after 0002 3 1 is executed and if the system executes the next line of ladder and 0003 3 1 at the moment 0002 3 1 and 0003 3 1 To avoid the above process synchronously the short pulse signal as follows 0001 3 0001 0 0001 0 Y0002 3 0001 0 0003 3 End of the first grade program After the program is executed synchronously and when 0001 3 1 0003 3 1 Y0002 320
99. ive in the automatic operation mode At dry run time the tool moves at an invariable override instead of moving at a override specified in the program This function is used for checking the movement of the tool under the state that the workpiece is removed The movement speed depends on manual feed override signal 15 Rapid traverse selection signal Dry run speed 1 Rapid traverse override 0 Manual feed override 5 4 1 Dry Run Signal DRN G46 7 e Signal type PLC e Signal function PLC sets G46 7 to 1 and transmits to NC Then the dry run starts e Notes If G46 7 15 1 the tool moves at a override specified for dry run If G46 7 15 0 the tool moves normally 5 B When the tool is moving and when G46 7 changes from 0 to 1 from 1 to 0 the movement speed of the tool first drops down to 0 and then accelerates to a specified override Signal address DRN ppp 5 4 2 Detection Signal of Dry Run MDRN 002 7 e Signal type NC PLC e Signal function when a CNC is in the status of dry run NC sets F2 7 to 1 and then transmits to PLC e Signal address MDRN 0 pz Edu 5 5 SINGLE BLOCK Single block execution 15 effective in the automatic operation mode only During the time of automatic operation 1 single block signal SBK is set to 1 after the current block is executed CNC starts feed hold If single b
100. l type NC PLC Signal function it informs PLC whether the chuck clamping signal is tested SLSP 0 test whether the chuck is clamping otherwise the spindle cannot be started SLSP 1 do not test whether the chuck is clamping Signal address F208 Eu vp 34 12 4 3 Selection Signal of Chuck Mode 209 0 XII 4 Chapter 12 Function parameter signal Signal type NC PLC Signal function it informs PLC that the current machine is in the internal chuck mode or the external chuck mode 1 0 internal chuck mode 1 1 external chuck mode Signal address pron a eee 12 4 4 Valid Signal of Chuck In position Signal Test Function PB2 F209 2 Signal type NC PLC Signal function it informs PLC whether the chuck in position signal is tested PB2 0 do not test the chuck in position signal 2 1 test the chuck in position signal Signal address l 12 5 PARAMETER SIGNALS of PRESSURE LOW TEST FUNCTION I CNC informs PLC of signals related to pressure low test function including valid signal of pressure low test function valid level selection signal of pressure low input signal 12 5 1 Valid Signal of Pressure Low Test Function PB3 209 4 Signal type NC PLC Signal function it informs PLC whether the current pressure low test function is valid
101. lock signal SBK 15 set to 0 programs run normally 5 5 1 Single Block Signal SBK G046 1 e Signal type PLC e Signal function When PLC sets G46 1 to 1 and transmits to NC CNC starts single block executing e Signal address 1 4 4 5 41 5 GSK980TD Turning Machine 5 5 2 Detection Signal of Single Block MSBK F004 3 e Signal type NC PLC e Signal function when CNC is executing single block NC sets F4 3 to 1 and transmits to PLC e Notes A thread cutting during the time of thread cutting SBK changes to 1 The executing stops until the first non thread cutting block is finished B fixed cycle executing during the time of fixed cycle executing if SBK is set to 1 the executing stops when approaching drill and cutting withdrawal instead of at the end of the program block e Signal address __ sok O 5 6 OPTIONAL BLOCK JUMP During automatic operation if a slash at the start of a block is specified and the block jump signal is set to 5 1 the program block is jumped and ignored 5 6 1 Optional Block Jump Signal G44 0 e Signal type PLC NC e Signal function If PLC sets G44 0 to 1 and transmits to NC CNC starts executing block jumping Any program block with a slash at the start of the block will not executed e Signal address G44 1 1 14 14 14 4 r 5 6 2 Detection Signal of J
102. m is switched on T0080 T0099 are saved after it is switched off Value range 0 21 4748 3647 Address number T0000 31 30 29 28 3 2 1 0 T0001 ro Chapter 2 Address 2 11 TIMER PRESET VALUE ADDRESS DT The address area is used for storing preset value of timer and data are saved after the system is switched off EY Address range DT0000 DT0099 and value range 0 21 4748 3647 5 a Address 2 JI 205 20 29 1 22 9 99 95 05 558 3 72 1 0 5 number e i EDEN E 099 2 12 DATA LIST ADDRESS D0000 D0299 are zero when CNC is switched on D0300 D0990 are saved after it is switched off Value range 0 255 Address number D0000 7 6 5 4 4 2 1 0 00001 00299 00300 00999 2 13 LABELADDRESS L It is used for specifying jump target label and LBL label Range LO L9999 2 14 SUBPROGRAM NUMBER P It is used for specifying the target subprogram number to call in CALL and subprogram number in SP Range P0000 P9999 Chapter 3 Basic Instructions Chapter 3 PLC BASIC INSTRUCTIONS om Basic instructions are used for editing sequenti
103. mbol Normally open contact in series 1 4 r 5 S ANI Normally closed contact in series aA B Instruction explanation AND ANI can connect one contact in serial There can be many contacts in serial and the instructions can be used many times Programming example X0002 1 0100 3 x0008 6 0003 7 0002 14 1 Program explanation Use X0002 1 Use F0100 3 and X0002 1 in series Use X0008 6 and F0100 3 and X0002 1 in series If 0002 1 1 0008 6 1 and F0100 3 is 0 the system outputs 0003 7 3 3 OR ORI INSTRUCTION Mnemonic code and function Mnemonic code Function Ladder symbol I OR Parallel normally open contact 4 4 ORI Parallel normally closed contact 14 Instruction explanation A OR ORI can be connected to one contact in parallel When more than two contacts are connected in series and the serial loop is connected with other loop in parallel the system should use ORB B The system executes OR ORI from its current step with LD LDI in parallel Programming example 0002 1 0003 7 0100 3 2 Chapter 3 Basic Instructions Program explanation Use X0002 1 Use F0100 3 and X0002 1 in series If X0002 1 1 and F0100 3 is 0 the system outputs 0003 7 EY T 3 4 ORB INSTRUCTION IV Mnemonic code and function Functi
104. mode even if the input spindle instruction is O namely analog voltage is OV the spindle motor rotates with low speed owing the voltage excursion of inverter At this time ENB signal is used for stopping spindle motor Signal address L 1 j Gear selection signal GR1 GR2 28 1 G28 2 Signal type N m z ze e 5 Signal function it informs of current selected gear and its operations is referred to the above mentioned Signal address 1 1 1 1 49 gm S 12 bit code signal RO1O R120 F036 0 F037 3 Signal type NC PLC Signal function it converts instruction value of spindle speed counted by NC spindle control function into 0 4095 and outputs to PLC Signal address __ RR 8 2 2 spindle output control of PLC PLC can be used for control spindle gear shifting as follows 1 Set SIND to 1 to convert its control mode from NC to PLC 2 Set the spindle motor speed data counted by PLC in PLC spindle control signal RO1I R12I When the spindle motor speed is controlled by PLC it is influenced by any signals such as spindle override signal which are related to CNC spindle speed instructions or parameter settings 6 Chapter 8 Spindle Speed Instruction selection signal of spindle motor speed SIND G33 7 G Signal type Signal function it is used for selecting CNC or PLC to control
105. n Select Files click Upload to upload the selected file to the project and the corresponding setting view is automatically updated by the uploaded data 5 3 DISCONNECT with CNC After the communication is executed E is clicked to disconnect with CNC in order that the serial is released or it is used by other application programs when GSKCC is connected to CNC 5 5 2 5 2 oO BOOK APPENDIX APPENDIX Apendix APPENDIX 1 INPUT SINGAL X X Input Input ESP Input XDEC Input Input Input Pin 539 12 X839 11 540 10 540 22 540 1 540 2 540 3 540 4 X Input Input Input Input ZDEC Input Input Input Pin 540 5 XS40 6 XS40 19 XS40 7 XS40 9 XS40 21 540 8 540 20 X2 Input Input Input Input Input Input Input Input Pin XS41 2 XS41 21 XS41 9 XS41 22 XS41 10 XS41 12 XS41 13 XS41 1 wW Input Input Input Input Input Input Input Input Pin 541 4 XS41 6 541 5 541 19 541 7 541 20 541 8 541 3 8 20 Key SNMP X21 oe x Key dhe POE ZEMO M 5 T LOCK X22 lt 23 gt 24 r 25 7 6 5 4 3 2 1 0 Appendix 1 er APEENDIX 2 OUTPUT SIGNAL GSK980TD Turning Machine CNC L Ke ua
106. n it stops SRVB SFRB are set to 0 Caution PLC must set SRVB SFRB and informs CNC of current spindle rotating direction in rigid tapping Signal address G74 __ seve lez e I 10 Chapter 9 function Chapter 9 TOOL FUNCTION When the T code or HDT signal is specified NC compares the required tool number with the current tool number NTOO0 NT31 and it does not execute the tool change if the tool numbers are not consistent with each other which generates a code signal and general signal of the required tool number and the machine selects tool according to the generated signal The tool change can be executed with T instruction in Auto MDI Manual mode and the sequential tool change is executed by HDT signal Current tool number NT00 NT31 G201 G204 Signal type PLC NC Signal function After PLC has tested the current tool selection signal it sets NTOO NT31 G201 G204 to the corresponding value transmits to NC and informs NC of current tool number These signals are to represent tool numbers with binary code Signal address N 5 I 9 1 TOOL CHANGE with T INSTRUCTION User can specify T instruction to tool change in Auto MDI mode NC transmits tool selection number and general signal specified by T instruction and then waits for PLC to execute tool change after it explains T instru
107. nd its address is Y G R A and K Program example GSK980TD Turning Machine System 0003 3 PARI 0000 R0020 R0010 0 R0030 0 Explanation When 0003 3 is 1 the system executes PARI instruction 0000 to execute the even check When R0010 0 is 1 R0030 0 is reset to O and the system does not execute the check When R0010 0 is 0 it does When there is an even number for 1 in R0020 R0030 0 is 0 When there is an odd number for 1 in R0020 R0030 0 is 1 d 1 10084 z 4 17 ADDB DATA ADDING Instruction function Add binary data Ladder format ACT ADDB Length Addr_Rst b AGD1 Addr_Out AGD2 Addr Err b Control condition 1 the system executes Addr_Out AGD1 AGD2 If the operation is mistake Addr Err b is 1 otherwise it is 0 ACT 0 the system does not execute instruction Addr Out Err b are reserved Relative parameter Length 1 1 2 2 4 4 byte AGDI itis asummand and can be constant or address Its address number is X Y E GA K D T C DC and DT AGD2 itis addend and can be constant or address Its address number is X Y F A T C DC and DT Addr Rst b when it is 1 Addr_Err b is reset to 0 and Out is reserved Its address number is R X Y G A and K Addr Out itis the output data address of run result Its address is Y G
108. nd transmits them to PLC PLC sets the corresponding F signals and then transmits them to NC to select their corresponding functions Signal address F75 Auxiliary function signal AFL G5 6 Program jump signal BDT G44 0 Single Block signal SBK G46 1 Machine locked signal MLK G44 1 Dry run signal DRN G46 7 Signal type PLC NC Signal function PLC sets the above mentioned signals and transmits to NC which will define their corresponding functions Signal address G44 G46 11 2 MEMORY PROTECTION KEY The memory protection key is used for protecting part programs offset values and parameters from being modified by mistake Memory protection signal KEY1 G46 3 4155 32 GSK980TD Turning Machine Signal type PLC NC Signal function Set whether memory content be modified KEY1 1 inputs of programs offset values and parameters are valid KEY1 0 inputs of programs offset values and parameters are invalid Signal address 646 T I 2 Chapter 12 Function parameter signal Chapter 12 FUNCTION PARAMETER SIGNAL The function parameter signals are defined that CNC converts function parameters related to PLC to F signals to output it PLC optionally executes a concrete function set by CNC parameter according to these function parameter signals 12 1 PARAMETER SIGN
109. nput output interface signal list d 1 10084 1 5 2 Editing Ladder Step 2 Edit the software GSKCC EXE by 980TD ladder to represent the required control operations of machine Counter timer which are not done by relay symbol is represented by the specified function instructions The edited ladder is downloaded to CNC by serial S 3 1 5 3 Debugging Ladder Step 3 After the ladder is downloaded to 980TD the ladder is debugged as follows A emulator Use one emulator instead of machine to debug it Machine signal state is represented with switch ON OFF and output signal state is done with indicator ON OFF Observe if every indicator on the emulator is correct when executing CNC B diagnosis Observe if the diagnostic state of every signal is consistent with the function requirement when executing CNC Check the ladder by checking each function in order C actual run There may be an unexpected result in the actual debugging machine and so do preventive measures before debugging 1 5 4 Program Editing Limit In program END1 and END2 are needed which are taken separately as ending character of the first and the second and END1 must be before END2 The system only supports parallel output instead of multi grades output and there are syntactic errors as follows 1 8 Chapter 1 Sequential Program End of grade one program 00000 0001 0 0000 0 Syntactic error 0002
110. of grade two program which representing end of grade two program Ladder format END2 ES 1 GSK980TD Turning Machine System 4 3 SET Instruction function Specified address is set to 1 Ladder format d 1 10084 z Control condition ACT 0 add b is reserved add b is set to 1 Q Relative parameter add b setaddress bit which can be a contact or output coil and add is Y G R K or A SET R 002 0 Explanation When X0002 1 is 1 R0002 0 is set to 1 when X0002 1 is 0 0002 0 is reserved Program example AD002 1 4 4 RST RESET Instruction function Specified address is set to 0 Ladder format Control condition ACT 0 add b is reserved add b is set to 0 Relative parameter add b reset address bit which can a contact or output coil and add is Y G R K or A RST 0020 0 Explanation When 0002 1 is 0 0002 0 is reserved when 0002 1 is 1 0002 0 is set to 0 Program example 0002 1 Chapter 4 PLC Function Instructions 4 5 CMP BINARY COMPARATIVE SET Instruction function Compare two binary data and output its result Ladder format lez p e Control condition ACT 0 is reserved 1 compare 51 52 and output the result as follows 6 2 6 1
111. on Ladder symbol H B ORB Parallel series circuit block Instruction explanation A Serial loop block is defined to its loop combined by more than contacts in series When the serial loop is connected in parallel starting point of branch uses LD and its end point uses ORB B ORB is sole instruction without address Programming example X0002 1 0002 2 k 0100 3 F0100 6 0003 7 R0022 1 Program explanation As above figure there are three branches 0002 0003 0004 from left bus line to node and 0002 and 0003 are serial circuit blocks There is parallel serial circuit block between bus line and node or among nodes the following ending of branch use ORB except for the first one Use OR instruction if the branch 0004 is not serial circuit block ORB and ANB are instructions without operation function representing or and relationship among circuit blocks 3 5 ANB INSTRUCTION Mnemonic code and function Mnemonic code Function Ladder symbol ANB Parallel circuit block in series 4 Instruction explanation A Use ANB when the branch loop is serially connected with the previous loop Use LD LDI at the starting 3 441 GSK980TD Turning Machine System point of branch and use ANB to serially connect with the previous loop B ANB is sole instruction without address Programming example E
112. on the values of NO 049 NO 050 4 1 1 Machine Reference Point Return End Signal ZP1 ZP4 F094 0 F094 3 e Signal type NC PLC e Signal function When an axis ends the machine reference point return NC will set the related F signal to 1 and transmit to PLC This is to inform the axis that the machine reference point return already 5 ends ZP1 ZP2 ZP3 ZP4 signals are machine reference point return end signals for Axis 1 2 3 S 4 respectively Notes When machine reference point return has already ended and G28 command returns to zero and the current position is within the specified area the machine reference point return end signal turns to 1 When the tool moves away from machine reference point point the machine reference point return end signal changes to 0 4 1 2 Deceleration Signal in Machine Reference Point Return XDEC 09 0 ZDEC X09 1 e Signal type machine tool gt NC Signal functions As soon as NC receives the deceleration signal in machine reference point return the moving speed will be decelerated until the machine tool returns to machine reference point position at a low rate XDEC ZDEC signals are machine reference point return deceleration signals for Axis X Z respectively Signal addresses Lo 1 4 4 XDEC 4 1 3 Machine Reference Point Setting Signal ZRF1 ZRF4 F120 0 F120 4 e Signal type NC PLC e Signal functions After ending NC machine reference point retu
113. output its result to E add and add b Relative parameter Format Count position number or steps 0 Count position number 1 Count steps Count position 0 Count target position 1 Count the position before target Short circuit selection 0 No selection Positive rotation i e add b 0 1 Selection Its direction is defined by specifics Specify the initial number of swivel table 0 Position number of swivel table is from 0 1 Position number of swivel table is from 1 CNT centigrade position number of swivel table length specify the length of W add D add and E add l 2 4 byte W add itis current position address used for storing current position number Its address number is R X Y E G K A D DC and DT D add itis target position address used for storing target position number Its address number is R X Y F G K A D DC and DT E add itis used for counting the result output address Its address number is R Y G K A D DC and DT O add b it is used for outputting the rotary direction to ensure adding position number of swivel table is positive FOR if it is subtracting its direction is negative rev When add b 0 the rotary direction is positive add b 1 it is negative Its address number is G K and A Program example Example The current position corresponds to No 1 tool selection when the toolpost is rotating Current position Position D Nega
114. programs setting CNC parameters tool offset pitch compensation GSKCC runs in WINDOWS98 2000 XP editing PLC ladder setting parameters relative to CNC saving them and printing PLC program by printer Its characteristics are as follows Edit component comment block comment in ladder to contribute to easy reading programs for user nstruction system supports subprograms and program jumping contributed to flexible programming Software with user environment menus and access keys is easy to operate Download current engineering to CNC or transmit related configuration files from CNC by serial communication interface Refer to Programming of GSK9SOTD Turning Machine CNC PLC User Manual about CNC PLC ladder program rules and component settings detailing operations and usages of GSKCC software CV1 1 Bulid050901 System requirements Operating system Windows98 2000 XP CPU Pentium 133MHz or more Hard disk over 10M Memory over 32M 5 2 Q gt 5 Dn 2 oO Display resolution 1024 768 16 colors Keyboard mouse Serial communication interface 1 2 DEFINITION of PROJECT Project is defined to be an integrated file used for managing PLC CNC configuration and part programs PLC includes data setting list displaying information list ladder programs and program version information CNC configuration includes parameters tool offset and pitc
115. ram Embedding GSK980TD CNC PLC can realize 20 grades subprogram embedding as the following figure Subprogram P0001 can be called when contractor X0000 0 is closed in main program subprogram P0002 can be called when contractor X0002 0 is closed in the subprogram P0001 0001 Sub P0001 B UM 0004 Subprogram P0001 0010 0 0002 0 0002 0 0006 Call subprogram P0002 1 2 Chapter 1 Sequential Program Subprogram P0002 Y0002 5 d 1 10084 1 2 3 Conditional Branch 5 z The system judge whether the setting conditions to execute a corresponding subprogram are satisfactory when a main program is executed circularly otherwise the system executes subprograms in order as the above mentioned figure 1 3 EXECUTING SEQUENTIAL PROGRAM The edited sequential programs ladder program are downloaded to 980TD by serial CNC reads the ladder and converts into some format identified by it after it is switched on again and then CPU decodes and operation processes them to store into RAM and last reads every instruction in memory to execute it by arithmetical operation 1 3 1 Execution Process of Sequential Program PLC sequence control is executed by software and there is different from general relay circuit and so its method is understandingly considered in editing PLC sequential programs Every relay can output simultaneously for general relay control circuit as the following
116. ress 44157 GSK980TD Turning Machine 7 2 Spindle Speed Function S Function Spindle speed code signal S00 S31 F022 F025 spindle speed strobe signal SF F007 2 eSignal type eSignal function After CNC executes S code NC sends S code to PLC via F22 F25 and then sets SF to 1 and transmits to PLC for logical control For output conditions and executing progresses please refer to related description The relationship between S command and binary code signal is shown in the below table F025 F024 F023 F022 S command 00000000 00000000 00000000 00000000 500 00000000 00000000 00000000 00000001 501 00000000 00000000 00000000 00000010 502 00000000 00000000 00000000 00000011 503 4 00000000 00000000 00000000 00000100 504 5 o eSignal addresses 7 3 Tool Function T Function Tool function code signal T00 T31 F026 F029 tool function strobe signal F007 3 eSignal type eSignal function After CNC executes T code NC sends T code to PLC via F26 F29 and then sets TF to 1 and transmits to PLC for logical control For output conditions and executing progresses please refer to related description The relationship between T command and binary code signal is shown in the below table F029 F028 F027 F026 T command 00000000 00000000 00000000 0
117. ress Code Message 2481 Project wanmei 40000 0 1000 Long tool change time E 40000 1 1001 Alarm when the toolpost is not in position Data setting table 255552 1002 Alarm when the tool change is not completed A Message table _ 31 40000 3 1003 5 2 gt be 5 gt Ladder Informations 80000 4 1004 configuring 40000 5 1005 HE Parameter 40000 6 1006 E Tooler offset anann 7 Fig 4 4 Three lines in Message Table are as follows address 0 0 A24 7 can set 25 X 8 200 points for outputting coil Code Double click Code and there is prompt signal to input 1000 9999 as alarm code when CNC displays messages Chapter 4 Software Address Code 40000 0 1000 Long tool change time 0000 1 1001 Alarm when the toolpost is not in position 0000 2 1002 Alarm when the tool change is not completed 0000 3 40000 4 40000 5 Fig 4 5 Message There is a prompt signal after inputting the coil and the input method is to double click the list box by left key and character strings are input after there is a prompt cursor as Fig 4 6 Code Message 40000 0 1000 Long tool change time 40000 1 1001 Alarm when the toolpost is not in position 0000 2 1002 Alarm when the tool change is not completed
118. rn and setting a machine reference point point the corresponding machine reference point establish signal is set to 1 and then it is transmitted to PLC ZRF1 ZRF2 ZRF3 ZRF4 signals are machine reference point establish signals for Axis 1 2 3 4 respectively 4155 32 GSK980TD Turning Machine e Signal addresses Dmm 4 1 4 Sequence of Machine Reference Point Return Signal 1 Machine reference point return F4 5 0 mU Start Machine reference point return in X Z direction x Stop Machine reference point 1 return end signal F094 Machine reference point establish signal F120 i i 1 Machine reference point return end indicator Y4 7 Y4 5 0 4 2 PROGRAM REFERENCE POINT RETURN N m 5 Under the status of Program reference point Return Program reference point Return executes and makes the tool moving to G50 position at a rapid speed While during the time of program automatic executing if a program stops the program returns to zero the tool will return to program start position and cancel tool offset If program reference point is not saved in the memory when the program reference point return command is executing an alarm occurs If program reference point 15 saved then the program is started up the position of the tool when G50 block is executing will be saved in the memory automatically Once the
119. rogram Subprogram custom M61 N10 G50 X100 Z100 O9064 N20 600 050 F100 N10 G65 P 1104 01 N30 G01 UO 8 G65 H82 20 1004 R1 N40 M61 e 9999999999999999999999 N50 GO X100 7100 G65 01 P 1100 00 N60 M99 M99 P50 Some function programmed by macro program is usually used for module Programs can be edited by data lez e N E 5 5 variable be compiled by macro program to form the machining technology 10 1 INPUT SIGNALS of USER MACRO PROGRAM UI000 UI015 G054 G055 G Signal type PLC Signal function They are used for CNC variable of user macro program read write and for interface signal between user macro program and PLC instead of offering any functions for control units Their corresponding variables are as follows G54 UI007 1006 1005 01004 01003 01002 01001 1000 1007 1006 1005 1004 1003 1002 1001 1000 G55 01015 01014 11013 01012 01011 UIOI10 01009 01008 1015 1014 1013 1012 1011 1010 1009 1008 Signal address Wisi GSK980TD Turning Machine 10 2 OUTPUT SIGNALS of USER MACRO PROGRAM UO000 UOO015 F054 F055 UO100 UOI131 056 059 Signal type CNC PLC Signal function They used for CNC variable of user macro program read write and for interface signal between user macro program and PLC instead of off
120. rogram is configured in CNC or not At this time CNC resets and the machine tool stops running Signal address _____ Emergency stop signal ESP 68 4 e Signal type gt e Signal function If the voltage of G8 4 is 0 once NC detects this signal an emergency stop warning will be given lez e e e I out e Signal address ESP 2 2 CNC READY SIGNAL MA 001 7 e Signal type NC PLC e Signal function CNC Ready Signal indicates that CNC is ready for working e Output conditions When CNC 15 powered on without warning F1 7 will be set to 1 in several seconds otherwise CNC ready signal will be 0 e Signal address Mm S 2 3 OVERTRAVEL SIGNAL L1 L4 G114 0 G114 3 L1 L4 G116 0 G116 3 Signal type PLC NC e Signal functions If a tool moves beyond the distance which the machine limit switch sets the limit switch starts working the tool slows down and then stops and overtravel alarm is given out This signal indicates that control axis already reaches the limit distance Every direction of each control axis has this signal and displays the direction and the number means corresponding axis name Wisi GSK980TD Turning Machine Axis 1 overtravel Axis 2 overtravel Axis 3 overtravel A WwW N Axis 4 overtravel forward overtravel backward overtravel Output con
121. s 417 32 GSK980TD Turning Machine 2 2 MAIN MENU COMMAND 2 2 1 File Menu File Edit View PLC Tool Windows Help New Project Open Project Ctrl 0 Close Project Save Project Ctr S Save As Import Lad File Idx Print Ctrl P Print Preview Print Setup 1 1 gpr 2 2 gpr 3 D ceshi beifen2 2 2 gpr 4 D ceshil quanbu quanbu gpr Exit Fig 2 2 New Project Create new project by pressing access key Ctrl N or mouse selecting ni in the main toolbar After executing the new project command dialog box is displayed as follows x Project S380TD CANCEL Path to c Browse Fig 2 3 Input one project name in the first editing box and its path to memory in the second or select a button to 5 2 o a gt be 5 gt browse files at the right side and there is a dialog box as follows then select one file to confirm it and there is the selected path to memory in the second editing box Chapter2 Menu Commands 1 Desktop y My Documents Computer 51 09 Local Disk C ACAD2000 Documents and Settings C Inetpub C lenovo driver C LX CHIP C LX C LX SOUND C LX YGA 1 1 1 Pronram Files z m e E E Fig 2 4 Open Project Open a project stored in hardwar
122. spindle motor speed SIND 1 control the spindle motor according to speed instruction 011 121 transmitted by PLC SIND 0 control the spindle motor according to speed instruction transmitted by PLC The spindle speed is output by specified by S instruction Signal address S 12 bit code input signal ROIT R12I G32 0 G33 3 Signal type PLC NC Signal function it is instruction value the spindle motor speed transmitted from PLC It specifies the spindle motor speed in binary and its speed is 0 4095 N 5 5 Q Signal address Instruction signal of spindle gear shifting SFTREV_L SFTREV_H F215 F216 Signal type NC PLC Q Signal function the signal informs PLC of the spindle motor speed instruction in gear shifting and specifies the spindle motor speed in binary Its speed is 0 4095 Relation between the speed and 10V is as follows F216 F215 067 X 4095 10000 NO 067 10V 512 pit code input 011 121 4095 Signal address F215 SFTREV L F216 SFTREV H lez e T I SA aak ES E E GSK980TD Turning Machine CNC Valid signal of automatic gear shifting AGER F208 7 Signal type NC gt PLC Signal function NC transmits AGER F208 7 to PLC and PLC executes logical control based whether AGER F208 7 is 1 When AGER F208 7 is 1 the automatic gear shifting is valid and PLC executes the
123. ssing Input Signal Input signal of grade one program Input memory at NC side is scanned every 8ms and stores F signal from NC and the system directly use its state when the first is executed B Input signal of grade two program Input signal of the second is the one stored by the first The first directly use F and X signal and so the input 1 5 ES E E GSK980TD Turning Machine CNC System signal of the second lags the first one and its max lag time is runtime of one grade two program C Difference of input signal states of the first and the second EY For the same input signal its states are different in the first and the second when PLC reads input signals gt because the first reads input memories at NC side and machine side but the second reads the synchronous input memory at NC side and ones at machine side The input signal of the second lags behind that of the first and its lag time is 8nms which should be noted E 5 Example z 0001 0 0001 0 R End of grade one program 0001 3 0002 3 Fractionl 0001 5 3 0003 0005 104 0001 7 0005 0 5 0001 0 Y0002 3 Fractionl 2 10006 0007 0002 0 Y0007 0 7 End of grade two END2 program When the lag time is the first 8ms 0001 0 1 and the system executes the first 0001 0 1 When the system starts to execute the second X0001 0 1 inputs to the synchronous input memory and starts to execute the f
124. strobe signal are not outputted B If AFL is set to 1 after code signal is outputted CNC works in a normal way until execution finishes until FIN signal is received and strobe signal is set to 0 GSK980TD Turning Machine CNC C When AFL is 1 M00 M01 M02 and M30 commands can be executed and corresponding code signal strobe signal coding signal are all outputted in a normal way D If AFL is 1 auxiliary functions M98 and M99 still works in a normal way but no results are outputted E If AFL is 1 spindle analog value can be outputted eSignal address 1 1 4 4 14 7 5 2 Detection Signal of Auxiliary Function Lock MAFL 004 4 eSignal type lez e eSignal function When is executing auxiliary function lock NC sets F4 4 to 1 and transmits to PLC eSignal address L 1 j Jj Chapter 8 Spindle Speed Chapter 8 SPINDLE SPEED The spindle is divided into gear spindle and analog spindle according its control mode CNC converts S code into switching value to output to spindle to control spindle speed in gear spindle mode CNC converts S code into analog value to spindle to control spindle speed in analog spindle mode CNC transmits SIMSPL signal to inform PLC of current spindle control mode Spindle mode signal SIMSPL 200 4 Signal type Signal function NC sets SIMSPL to 0 or 1 sets control mode of spindle speed
125. t COMM port of PC with CNC communication interface and set the corresponding parameters of GSKCC Baud rate should be set same as that of CNC as follows Select Tool Communication Settings to pop up a dialog box Fig 5 2 and set the port and baud rate Start the next operation after confirming File Edit View PLC Tool Windows Help Connect To CNC Disconnect Modify Dog Password Write To Read From Communication Settings Options Fig 5 1 Communication Settings 1 Baudrate bps 115200 cc 5 2 5 gt 5 72 gt Fig 5 2 5 1 TRANSMIT FILES to CNC 1 Connect with CNC Run GSKCC and open the required project Click E or Tool Connect to CNC in Fig 5 1 and GSKCC prompts a dialog box Connect To CNC successfully 44157 GSK980TD Turning Machine 5 5 2 gt be 5 gt ee Connect successfully Fig 5 3 After GSKCC is connected to CNC successfully the toolbar is as follows RRJ Ja LAO RAAR Fig 5 4 E Disconnect with CNC Transfer current project to CNC Read Files from CNC are in high light to execute the next operations 2 File transmitting Start to transmit
126. t address A 0000 0024 Timer address T T0000 T0099 Counter address C C0000 C0099 2 Data tablet address D D0000 D0999 5 Hold relay address K0000 K0039 Counter preset value address DC DC0000 DC0099 8 Timer preset value address DT DT0000 DT0099 3 Subprogram address P P0000 P9999 5 Label address L L0000 L9999 Machine PLC address X 0000 0029 PLC machine address Y 0000 0019 CNC PLC address 0000 0255 PLC CNC address G0000 G0255 1 2 STRUCTURE of SEQUENTIAL PROGRAM Sequential program is defined to logically control the machine and relative devices according to sequence of ladder The sequence of ladder is compiled in a traditional PLC but GSK980TD CNC PLC is integrated by traditional one and advanced structured programming employed with subprogram embedded subprogram and conditional branch and with apparent advantages compared to the traditional 1 2 1 Subprogram In GSK980TD CNC PLC program a special subprogram can be called according to requirements of programming For example subprogram P0001 can be called when contactor X0000 0 is closed as follows 1 1 ES GSK980TD Turning Machine System x0000 0 Call subprogram P0001 0000 1 0001 2 2 e gt m e z d Je Subprogram P0001 0002 0 0100 0 0010 0 Y0002 0 1 2 2 Subprog
127. t and operate automatically Unless SP is set to 1 and ST signal is effective the machine can restart and operate automatically When executing program blocks with only M S T commands SP signal is set to 0 STL will be 0 immediately SPL signal is 1 and CNC performs feed hold When FIN signals are received from PLC CNC continues executing the paused program blocks After finish executing SPL signal is 0 STL signal is 0 CNC stops automatic operation While G92 command thread cutting cycle is executing SP signal is 0 and SPL signal changes to 1 immediately but the operation keeps running until cutter withdrawal is finished after thread cutting While G32 command thread cutting is executing SP signal is 0 and SPL signal changes to 1 immediately but the operation keeps running until the non thread cutting program block is finished executing after the thread cutting block While G84 command fixed tap cycle is executing SP signal is 0 SPL signal changes to 1 immediately but the operation keeps running until the cutter returns to start position or R position after tap cutting 1s finished While executing macro command after macro command is finished it stops operating 5 5 41 7 GSK980TD Turning Machine 5 1 1 Cycle Start Signal ST G007 2 e Signal type e Signal function under the automatic or editing method PLC sets G7 2 to 1 and then sets to
128. te the command to print the ladder when the ladder editing view is current activation one Print Preview Firstly preview the file on screen not to print Last File List Print Ctrl P Print Preview Print Setup 1 wanmei gpr 2 D ceshi beifen2 2 2 gpr 3 1 gpr 4 2 gpr Fig 2 6 Menu Print Setup lists files in which there are last 4 open files directly press one of them to open it Exit Exit from the current application program When the current file is not save the program indicates if the current file is saved before exiting 5 5 2 gt be 5 D q 2 oO 2 2 2 Edit Menu File Edit View PLC Tool Windows Help Unda Cut Ckri X Copy Ctrl C Paste Ctrl V Insert Delete Search Ctrl F Goto Fig 2 7 1 4 Chapter2 Menu Commands Cut Delete the selection contents to copy to clipboard by pressing access key Ctrl X or in main toolbar Copy Copy the selected contents to clipboard by pressing access key Ctrl C or in main toolbar Paste Paste the contents in clipboard to the selected position by pressing access key Ctrl C or Bj in main toolbar Delete Delete the selected content by access key Delete Insert Pop up three operating commands and insert the corresponding in the selected position File Edit View PLC Tool Windows Help
129. time set by NO 072 CNC starts to detect SAR B After S code is commanded and before the first feed block is distributed its dwell time is the same as the above mentioned A C When 5 code and the cutting feed are in the same block and after S code is output dwell a period of time set by NO 072 and starts to detect SAR signal If SAR signal is 1 CNC starts to cutting feed Q Signal address j 8 5 RIGID TAPPING Rigid tapping is defined that the tapping axis and the spindle are executed synchronously in general tapping fixed cycle CNC needs to test directional signal of spindle rotating in rigid tapping to ensure that the cutting feed direction and machining process are executed normally Execution process spindle rotating tool infeed to tapping in Z direction transmit MO5 to spindle wait for spindle complete stop transmit instruction for spindle counterclockwise rotation 1001 retraction to starting point in Z direction spindle stop To execute the rigid tapping the ladder must be edited to inform CNC of rotating direction of external spindle GSK980TD Turning Machine SRVB G74 4 SFRB G74 5 Signal type PLC NC Signal function PLC sets G74 4 G74 5 in rigid tapping transmits to NC and inform it that the spindle rotates clockwise or counterclockwise to start cutting feed when the spindle rotates clockwise SRVB 1 when it rotates counterclockwise SFRB 1 whe
130. timer output address and can be R Y G K and A TIMER is executed every 8ms and timing with 8ms as unit Program example A0002 1 TMRB T0002 0 0004 RO300 0 Explanation When 0002 1 is 0 0002 and 0300 0 0 When X0002 1 is 1 T0002 starts to count and 0300 0 is set to 1 after it reaches the time set by DT0004 Chapter 4 PLC Function Instructions 4 7 CTRC BINARY COUNTER Instruction function Data in the counter is binary and the functions of CTRC is as follows A reset counter it resets count value and the system outputs the corresponding signal when the count value d I 10084 reaches the resetting count value B ring counter input the count value signal when the counter reaches the reset value and count again the counter reset to initial value C adding subtracting counter bit bidirectional counter used for addition and subtraction D initial value selection it can be O or 1 Ladder format ACT CTRC Format R addb NCOUNT Control condition ACT is at ascending edge Adding COUNTER counts from its setting initial value adds the count one time when it reaches the ascending edge and O add b 1 when it reaches the reset count value O add b 0 when COUNTER is less than NCOUNT COUNTER resumes and starts to count and add b 0 when it reaches the ascending edge again Subtracting COUNTER subtracts from its setting initial value s
131. tion and tool function A Supposed M_ _ is specified in the program while CNC doesn t specify an alarm occurs 5 B After sending code signals M00 M31 to PLC and strobe signal 15 set to 1 code signal uses binary system to express program command value _ _ If moving is paused spindle speed or other functions are commanded together with auxiliary functions after code signals of the auxiliary functions are sent other functions start executing C When strobe signal MF is 1 PLC reads the code signal and executes corresponding operations D If move command and pause command is included in a program block in order to execute auxiliary functions after move commands and pause commands are finished have to wait until DEN signal changes to 1 E When operation stops PLC sets the end signal FIN to 1 End signal is used for auxiliary functions spindle speed functions and tool functions If all these functions are executed at the same time end signal FIN changes to 1 until all functions are stopped F When end signal FIN becomes 1 for a period of time CNC can set the strobe signal to 0 and confirm end signal 15 received G Until strobe signal is 0 PLC can set FIN to 0 When FIN 15 0 CNC sets all code signals to 0 and stops all the sequence operation of the auxiliary function While executing spindle speed function and tool function code signal keeps unchanged until a new
132. tive Positive 10 Position A 4 m 5 Position C 8 6 Position B IV 12 Chapter 4 PLC Function Instructions 0003 3 0002 ROTB 1110 0007 0012 20026 0001 R0027 d I 10084 0037 0 Count the previous position number before target position when the toolpost rotates in short circuit When the current position number 0007 1 and centigrade position number of swivel table 12 0003 3 1 When F0026 10 and the target position is A R0027 11 R0037 0 1 When F0026 8 and the target position is R0027 9 0037 0 1 When F0026 5 and the target position is R0027 4 0037 0 0 When F0026 3 and the target position is D R0027 2 0037 0 0 4 16 PARI CPARITY CHECK Instruction function Check parity of input data which is 1 byte 8 bits Ladder format ACT Control condition 1 Execute the parity check for input data If the input data is inconsistent with the one specified by O_E Addr_Err b is 1 otherwise Addr_Err b is 0 0 Do not execute instructions and Addr_Err b is reserved Relative parameter OE 0 numberof 1 in put data is even numberof 1 in put data is old number Addr Rstb when it is 1 Addr Err b is reset to 0 and its address is X Y GR E A 16 Err b Addr In itis the input data address and its address is X Y G R E A K and D Addr Errb itis the output address of check result a
133. turn in Z direction 04 6 Endindicator for program Y05 6 Auto mode indicator on machine reference point return machine control panel reference point return in Y direction Y04 7 End indicator for program Y05 7 Edit mode indicator on machine reference point return machine control panel reference point return in X direction Apendix Y06 0 Spindle stopped indicator on machine 07 0 Tool change indicator on machine control panel control panel Y06 1 Rapid feed indicator on machine Y07 1 Spindle counterclockwise rotation control panel indicator on machine control panel Y06 2 Program reference point return mode 07 2 Handwheel indicator Z direction on indicator on machine control panel machine control panel Y06 3 Dry run indicator on machine control Y07 3 Handwheel indicator in Y direction on machine control panel Y06 4 Auxiliary function locked indicator Y07 4 Handwheel indicator in X direction on on mchine control panel machine control panel Y06 5 Machine locked indicator on machine 07 5 0 1 feedrate indicator on machine control panel control panel Y06 6 Optional block jump indicator on Y07 6 0 01 feedrate indicator on machine machine control panel control panel 06 7 Single block indicator on machine 07 7 0 001 feedrate indicator on machine control panel control panel Y08 0 Cycle start indicator on machine Y08 5 Min rapid override indicator on control panel m
134. ubtracts the count one time when it reaches the ascending edge and O add b 1 when it reaches the reset count value add b 0 when COUNTER is more than NCOUNT COUNTER resumes and starts to count and O add b 0 when it reaches the ascending edge again ACT 0 COUNTER and O_add b are reserved Relative parameter Data format 0 0 CNO U D Specify adding subtracting count 0 adding count and counting from 0 1 subtracting count and counting from reset value Specify the counter initial value 0 count from 0 1 count from 1 R_add b when itis 1 whatever ACT is COUNTER add b 0 R_add can be X Y GE R K A COUNTER specify the counter number Cxxx is digit 0 99 d 1 10084 z GSK980TD Turning Machine System NCOUNT it is counter preset value constant and also be data register beginning with DC If it is constant its value is 0 21 4748 3647 add b when it reaches to the count value the output is 1 and add can be Y and A Q Program example x0002 1 0000 0100 0 RO500 0 Explanation When 0100 0 is 1 0001 0 and 0500 0 0 When 0100 0 is 0 0002 1 reaches the drift up one time C0001 adds the count one time and 0500 0 is 1 if the count reaches 10 When X0002 1 reaches the drift up again 0001 is reset to 0 and start to count and 0500
135. ump Block MBDT F04 0 e Signal type NC PLC e Signal function when CNC is executing block jumping NC sets F4 0 to 1 and transmits to PLC which informs that PLC is running block jumping e Signal address O O O r Chapter 6 Feed speed Control Chapter 6 FEED SPEED CONTROL 6 1 RAPID TRAVERSE SIGNAL The rapid traverse speed of each axis can be controlled by parameters NO 022 and NO 023 rather than program setting But rapid traverse speed can also be controlled by adjusting rapid traverse override RPDO F2 1 eSignal type NC PLC eSignal function When CNC is executing moving commands at a rapid traverse speed NC sets F2 1 to 1 and transmits to PLC Notes A If RPDO is 1 this indicates that an axis is moving after selecting rapid traverse mode if RPDO is 0 it means an axis is moving after selecting null rapid traverse override B In the automatic operation rapid traverse includes all rapid traverse modes such as fixed cycle amp position machine zero return etc not only for GOO command Manual rapid traverse also includes the rapid traverse in machine zero return C Once rapid traverse is selected the signal keeps to 1 even during the stop time but changes until other feed speed is selected and moving is started eSignal address E y ae 6 2 RAPID TRAVERSE OVERIRDE Rapid traverse override has four levels FO 25 50 and 100 FO override is specified by parameter N
136. x specify the call subprogram label its label number is specified with beginning P address and it can specify one of P1 to P999 IV 10 Chapter 4 PLC Function Instructions Program example 0003 3 0002 CALL 0100 0 YO0001 0 0003 a gt 20012 0 50001 0 0004 5 124 0005 H END2 0006 0021 0 R 055 0 0007 R 055 0 G0023 0 0009 Explanation When X0003 3 is 1 the program calls subprogram and jumps to execute 0006 and the system orderly executes the program from 0003 after executing 0009 When 0003 3 is 0 the system does not call P0000 subprogram and orderly executes subprograms from 0003 4 15 ROTB BINARY ROTATION CONTROL Instruction function The instruction is used for rotation control such as toolpost rotary worktable Its functions are as follows to select rotation direction of short path count steps from current position to target position or to count steps from the previous one of current position to the previous one of target position to count the position number of the previous one of target position Ladder format ACT ROTB Format CNT Length d 1 10084 S Wi GSK980TD Turning Machine System Control condition ACT 0 do not execute instructions and add and add b are reserved execute instruction and
137. y BIT5 1 0 Standby BIT4 1 0 Spindle control by transducer BIT3 1 0 Handwheel or incremental feed BIT2 1 0 Radius or diameter programing BIT1 1 0 Standby BITO 1 0 Standby Fig 4 11 Color cord circle in the above figure D Editing box for parameter 2 Choice box for bit parameter set In the box click the corresponding bit parameter set 1 0 by left key and the corresponding bit value will be updated in D 3 Menu of parameter data can be switch by right clicking the above property menu 5 2 5 gt 5 Dn gt oO 44 Sx GSK980TD Turning Machine CNC Mode Set by Serial Number 71 State Par Data Par Setting by serial number State parameter Parameter Input Data parameter Number 44 E Value 13200 Baudrate Fig 4 12 4 7 TOOL OFFSET S GSKCC project 980TD Tooler offset Edit View Tool Windows Help 81 xl Bac BS x e os e Number m z n x roject 98070 Data setting table Message table Ladder Informations configuring HE Parameter 62 Screw pitc mg NC Programs 00456 91 A3J0s UONBINSIFUOD JNO 1004
138. ype NC PLC e Signal functions when CNC is working under a certain mode if related signal 1s set to 1 and transmitted to PLC PLC can be informed about the current working method Increment mode detection signal MINC Handwheel mode detection signal MH Jog mode detection signal MJ MDI mode detection signal MMDI Auto mode detection signal MMEM Edit mode detection signal MEDT Machine Reference Point Return mode detection signal MREF Program Reference Point Return mode detection signal MPRO lez e N m z e e 44155 E E GSK980TD Turning Machine CNC Signal addresses O 2 6 3 Sequence of Work Mode Signals Work mode keys X20 0 1 X20 1 X20 2 X20 3 X20 4 20 5 21 3 0 1 Work mode selection ET x signal G43 0 Work mode detection signal 0 1 Ts X 1 F3 2 F3 3 5 6 F4 5 F4 6 1 Work mode indicator CY5 3 1 Y5 2 5 5 Y5 6 5 7 5 4 Y6 2 0 2 6 4 Work Mode Control Flowchart 0001 RO111 7 0002 y MOVN 0001 K0009 Resume hold mode after power on G0043 0003 R0111 7 X0020 0 00201 2X0020 2 00203 2X0020 4 00205 X0021 3 00820 0004 Input X20 0 by edit mode key X0020 0 00201 00202 00203 2X0020 4 2X00205 X0021 3 0005 Input X20 1 by auto mode key X0020 0 00201 X0020 2 00203 X002
139. zero point is saved it will keep unchanged until a new zero point is saved i e when executing Program A zero point A is saved Then when executing Program B if G50 is included zero point A will be replaced by zero point B 4 2 1 Program Reference Point Return End Signal PRO1 PRO4 F198 0 F198 3 e Signal type NC PLC e Signal functions When program reference point return ends the tool will stay at the program reference point point NC will set the program reference point return end signal to 1 and transmit to PLC which informs PLC that the program reference point return is ended PROI PRO2 PRO3 PROA are program reference point return end signals for Axis 1 2 3 4 respectively e Note When the tool moves away from program reference point the signal of program reference point return turns to 0 e Signal addresses T T PROD PROT Chapter 4 Machine Program Reference Point Return 4 2 2 Sequence of Program Reference Point Return Signals 1 Program reference point F4 6 X N Program reference point return Start 2 in X Z direction P Stop Program reference point return end signal F198 e N 0 A Program reference point return 1 end indicator Y4 7 4 5 0 5 N 5 5 IV 3 Chapter 5 Automatic Operation Chapter 5 AUTOMATIC OPERATION 5 1 CYCLE START FEED HOLD Cycle start start automatic operation
Download Pdf Manuals
Related Search
Related Contents
Verbatim DVD-RW Colours 4x XPE RーA Z3 00mpact Valueline VLTP90100B20 telephony cable TP-Link TL-WN951N V3 User Guide G4LC32 USER'S GUIDE MATRIX® FILTER - Westek Electronics User Manual`s in English La pyramide magique de Noé Manuel d`utilisation PUPPYカタログ Copyright © All rights reserved.
Failed to retrieve file