Page 2
YOUR PARTNER IN MAINTENANCE Repair this product with RGB ELEKTRONIKA ORDER A DIAGNOSIS LINEAR ENCODERS SYSTEMS INDUSTRIAL COMPUTERS ENCODERS CONTROLS SERVO AMPLIFIERS MOTORS MACHINES OUR SERVICES POWER SUPPLIERS OPERATOR SERVO PANELS DRIVERS At our premises in Wrocław, we have a fully equipped servicing facility. Here we perform all the repair works and test each later sold unit.
Page 3
GSK 218M CNC System Connection and PLC Manual...
Page 4
GSK218M CNC System Connection and PLC Manual The user manual describes all items concerning the operation of this CNC system in detail as much as possible. However, it’s impractical to give particular descriptions for all unnecessary and/or unavailable operations on the motor due to the limit of the manual, specific operations of the product and other causes.
Page 5
GSK218M CNC System Connection and PLC Manual This manual is the property of GSK CNC Equipment Co., Ltd. All rights reserved. It is against the law for any organization or individual to publish or reprint this manual without the express written permission of GSK CNC Equipment Co., Ltd.
Page 6
China and abroad. The pursuit of “excellent product and superexcellent service” has made the GSK what it is now, and we will spare no efforts to continue to consummate this South China NC industry base and enhance our national NC industry by our...
Page 7
Please carefully read this manual before usage! This manual is reserved by final user. All specifications and designs herein are subject to change without further notice. We are full of heartfelt gratitude to you for supporting us in the use of GSK’s products.
Page 8
GSK218M CNC System Connection and PLC Manual Warning and precautions Warning, notice and explanation This manual contains the precautions to protect user and machine. The precautions are classified as warning and notice by safety, and supplementary information is regarded as explanation. Read the warnings, notes and explanations carefully before operation.
GSK218M CNC System Connection and PLC Manual Contents VOLUME ONE PROGRAMMING ........………..12 .......... 13 EQUENCE ROGRAM REATING ROCESS GSK218M PLC specification......................13 What is a sequence program ......................13 ( ) Establishment of interface specifications step 1 ..............14 ( ) Establishment of ladder diagram step 2 ................14 (...
Page 10
GSK218M CNC System Connection and PLC Manual 4.5 AND.STK instruction..........................35 5 PLC F ............36 UNCTIONAL NSTRUCTIONS ( ) END1 level sequence program end ..................37 ( ) END2 level sequence program end .................37 ( ) CALL call subprogram ......................37 ( )...
Page 11
GSK218M CNC System Connection and PLC Manual Alarm signal ............................76 Machine ready signal ........................77 Interlock activation ...........................77 Mode selection ..........................78 Status output signal .........................78 VRDY OFF alarm ignore signal .....................79 2.10 Abnormal load check........................79 ................81 ANUAL PERATION JOG feed/incremental feed......................81 MPG(Handwheel) feed........................82 MPG interruption ..........................83 ..............
Page 12
GSK218M CNC System Connection and PLC Manual 10 T ................119 UNCTION 10.1 T instruction executing tool change................... 119 10.2 Tool life management ........................119 11. P ............123 ROGRAMMNG NSTRUCITON 11.1 Custom macro program ......................123 11.2 Canned cycle ..........................126 11.3 Metric/Inch conversion ........................127 11.4...
Page 13
GSK218M CNC System Connection and PLC Manual ..........158 YSTEM TRUCTURE AND NSTALLATION 1.1 System composition ...........................158 1.2 System installtion & connection......................158 1.3 CNC system installation dimension....................159 ................ 162 EVICE ONNECTION 2.1 CNC external connection........................162 2.2.1 System interface ............................162 2.2.2 Interface signal list.............................
Page 14
2. Allocation and definition of PMC IO address, auxiliary relay and register..........196 3. Usage and maintenance of GSK 218M CNC System matching with turret tool magazine ..... 218 4. Macro program statement of GSK218M CNC System matching with turret tool magazine ....223...
GSK218M CNC System Connection and PLC Manual 1 Sequence Program Creating Process GSK218M PLC specification Specifications of GSK218M PLC are as follows: Specification GSK218M PLC Programming method language Ladder Number of ladder level level execution period Mean processing time of basic instruction 10μs Program capacity 4700 step...
For input/output interface signals, see Chapter 4. Establishment of ladder diagram(step 2) Express the control operations decided by 218M ladder diagram. For the timer, meter, etc, which cannot be expressed with the functional instructions. The edited ladder should be converted into the corresponding PLC instruction to store.
GSK218M CNC System Connection and PLC Manual 2 Sequence Program Since PLC sequence control handled by software and operates on principle difference from a general relay circuit, the sequence control method must be fully understood in order to design PLC sequence program.
In Fig. (A) and (B), the operations are the same. Turning on A turns on B and C. Turning on C turns off B. (2) 218M PLC program In Fig.(B), as in the relay circuit, turning on A turns on B and C, and after one cycle of the PLC sequence, turns off B.
END2 Specifies the end of the level sequence part 218M PLC is solely executed in PLC-AVR single unit, and the second 2ms of every 4ms is the communication time of CNC reading or writing PLC data. 1st level Division 1...
Page 21
GSK218M CNC System Connection and PLC Manual 3.When an operation error occurs, the cause can be found easily. Three major structured programming capabilities are supported: 1) Subprogram A subprogram can consist of a ladder sequence as the processing unit. Job A Job B 2) Nesting Ladder subprograms established are combined to structure a ladder sequence.
GSK218M CNC System Connection and PLC Manual Processing I/O (input/output) signals Input signal processing: CNC—PLC Share memory level sequence part level sequence part sequence starting memory part sequence part input signal memory Input signals from machine tool IO interface Output signal processing: level sequence part CNC—PLC...
GSK218M CNC System Connection and PLC Manual 2.5.1 Input signal processing (1)Input memory of NC The input signals from NC are loaded in memory of NC and are transferred to the PLC at intervals of 4ms. Since the 1 level sequence part directly refer to these signal and process operations. (2)Input signal memory to machine tool The input signal memory stores signals transferred from the machine tool at intervals of 2ms period.
GSK218M CNC System Connection and PLC Manual END1 When A=0, and B1=1, A becomes 1, at this time, the next line of ladder is executed, B2=1. B1 and B2 are also 1. END1 B1 and B2 are not 1 simultaneously after the signal A is processed synchronously by the medium relay.
GSK218M CNC System Connection and PLC Manual END1 2st division of 2st level sequence part When the processing is 1st 4ms, A=1, and B=1 after 1st sequence part is executed. At the same time, 2nd sequence part is started to execute A=1 is stored to the 2nd sequence part and the 1st division of 2nd sequence part is executed.
Tpye: including X, Y, R, F, G K, A, D ,C, P, L, T Address number: decimal serial number stands for one byte. Bit number: octal serial number, 0~7 stands for 0~7 bit of byte of front address number 218M PLC address type is as follows: Character Signal descrition Length Machine tool→PLC(64 byte)
GSK218M CNC System Connection and PLC Manual interface of XS 43, XS44 and XS45. The signal specification of X addresses can be customed by customer according to the actual operation. X addresses are used to connect the machine tool with the ladder. For the initial definition of input address, see Connection.
GSK218M CNC System Connection and PLC Manual the initial definition of input address, see Connection. 3.2.2 Assignment of IO module Y address The addresses are from Y12 to Y19, 8 bytes. They correspond to the indicators on MDI panel, and their signal definitions cannot be changed by user.
GSK218M CNC System Connection and PLC Manual Internal relay address(R) The address area is cleared to zero when the power is turned on. Type: INT8U, with 512 bytes. Address number R relay area R511 Address of keep relay(K) The area is used as keep relays and PMC parameters. In each modal, the following number of bytes can be used.
GSK218M CNC System Connection and PLC Manual Address number Address of meter(C) The area is used as storing current counting value in meter.The address area is cleared to zero when the power is turned on. Type: 128 addresses. 3.9 Meter preset address(DC) . The address area is used to store the meter preset value.
GSK218M CNC System Connection and PLC Manual 3.12 Address of data table(D) The content of the memory do not disappear even when the power is turned off. Tpye: 256 addresses. D240~247 are for tool magazine. 3.13 Lable address(L) Label addresses are used to specify jump destination labels and LBL labels in JMPB instructions. Range: 0~99 3.14 Subprogram numbers(P)...
GSK218M CNC System Connection and PLC Manual 4 PLC Basic Instruction Desigining a sequence program begins with writing a ladder diagram. The ladder diagram is written using relay contact symbols and functional instruction code. Logic written in the ladder diagram is entered as a sequence program in the Programmer. There are two sequence program entry methods.
GSK218M CNC System Connection and PLC Manual 4.1 RD, RD.NOT, WRT, WRT.NOT Instructions and functions Instruction Function Shifts left the conten by one bit in register and sets the state of a specified signal in ST0. RD.NOT Shifts left the content by one bit in register and sets the logic state of a specified signal in ST0.
GSK218M CNC System Connection and PLC Manual Programming X002.1 AND.NOT F100.3 AND X008.6 WRT Y003.7 4.3 OR, OR.NOT instructions Instructions and functions Instruction Function Indues a logical sum. OR.NOT Inverts the state of a specified signal and induces a logical sum. Instruction specification: OR, OR_NOT can connect with one contact in parallel.
GSK218M CNC System Connection and PLC Manual Programming X002.1 AND.NOT X002.2 Node N1 RD.NOT F100.3 AND F100.6 OR.STK RD R022.1 WRT Y003.7 As the above figure, there are three branch circuit ①,②, ③ from left bus to the node N1, among which ①,...
GSK218M CNC System Connection and PLC Manual 5 PLC Functional Instructions Basic instructions such as controlling operations of machine tool are difficult to program, therefore, functional instructions are available to facilitate programming. 218M functional instruction as follows: Instruction Processing END1...
GSK218M CNC System Connection and PLC Manual Logical Add Logical Negation Exclusive OR END1(1 level sequence program end) Function: Must be spedifies once in a sequence program, either at the end of the 1 level sequence, or at the beginning of the 2 level sequence when there is no 1 level sequence.
GSK218M CNC System Connection and PLC Manual Control condition: ACT=0,execute the next instruction behind CALL. ACT=1,call subprogram which number is specified. Parameter: Subprogram: specifies the subprogram number of a subprogram to be coded following this instruction. Range: 0~99. SP(Subprogram) Function: The SP functional instruction is used to create a subprogram.
GSK218M CNC System Connection and PLC Manual Format: Example: CALL END2 SET(set) Function: Set to 1 for the specified address. Format: Add.b address Control condition: ACT=0,add.b keep invariably. ACT=1,add.b set to1. Parameter: Add.b:set element address bit can be the output coil, Add= Y,G,R,K,A. RST(reset)...
GSK218M CNC System Connection and PLC Manual Format: address Add.b Control condition: ACT=0,add.b keep invariably. ACT=1,add.b set to1. Parameter: Add.b:reset element address bit can be the output coil, Add= Y,G,R,K,A. JMPB(label jump) Function: The JUMP functional instruction transfer control to a Ladder immediately after the lable set in a Ladder program.
GSK218M CNC System Connection and PLC Manual destination for JMPB functional instruction. Note: one Lx label is only specified one time with LBL. Otherwise, the system alarms. Format: Label Parameter: Lx: specifies the label of the jump destination. Label number range: 0~99 Example: JMPB JMPB...
GSK218M CNC System Connection and PLC Manual Parameter: TIMER :timer serial number is named with xxx which are numbers (0~127). Output: W : output coil. W=1 when the output reaches the preset value. W=0 when the output does not reach the preset value. Note: The setting time is every 4ms for the timer.
GSK218M CNC System Connection and PLC Manual CN0=0: begins the value of the counter with 0. CN0=1 begins the value of the counter with 1. Specify up or down counter (UPDOWN): UPDOWN=1: Up counter UPDOWN=0: Down counter Reset (RST): RST=0: release reset. RST=1: enable reset.
GSK218M CNC System Connection and PLC Manual ACT=0 : resets all the output data bit. ACT=1 : decode data. Results of processing is set in the output data address. Parameter: length Set the size of code data to the 1 digit of the parameter.
Page 48
GSK218M CNC System Connection and PLC Manual Format: Length1 Length2 (W) Format Conversion conversion conversion destination table input data output capacity address data address .。 。 。 。 。 。 .。 。 。 。 。 。 Control conditions: Reset (RST): RST=0: do not reset.
GSK218M CNC System Connection and PLC Manual 1:2 bytes 2:4 bytes 3:8 bytes 4:16 bytes 5:32 bytes 6:64 bytes 7:128 bytes 8:256 bytes S1 :Data in the conversion data table can be taken out by specifying the table number. The address specifying the table number is called conversion input data address, and 1-byte memor is required from the specified address.
GSK218M CNC System Connection and PLC Manual Format: (W) COM execution range (W) COME Control condition: ACT=0: The specified number of coils or the coils within the region specified are unconditionally turned off (W=0). ACT=1: No processing is performed. Note: 1.
GSK218M CNC System Connection and PLC Manual 5.16 ROT(Binary rotation control) Function: Controls rotors, such as the toolpost, rotary table, etc., and is used for the following functions. 1. Selection of the rotation direction via the shorter path. 2. Calculation of the number of steps between the current position and the goal position; calculation of the position on position before the goal to the number of steps up to one position before the goal.
Page 52
GSK218M CNC System Connection and PLC Manual position and the goal position is to be calculated, specify INC=1 and POS=0. Execution instruction (ACT): ACT= 0:the ROT instruction is not executed. W does not change. ACT = 1 : executed. Normally, set ACT=0. If the operation results are required,set ACT=1.
GSK218M CNC System Connection and PLC Manual (W) Perform the short path rotation, and calculate the postion number of previous one position of goal position. Current position number S2=1, position number of rotation graduation S1=12,RNO=1,DIR=1 POS=1,INC=0: When S3=10 goal position is A, and ACT=1, S4=11,W=1. When S3=8 goal position is B, and ACT=1, S4=9,W=1.
GSK218M CNC System Connection and PLC Manual Control conditions: Shift direction specification (DIR) DIR=0: Left shift DIR=1: Right shift Condition specification (CONT) CONT=0: do not cycle shift CONT=1: cycle shift Reset(RST) The shifted out data(W=1) is reset (W=0). RST=0: W is not reset. RST=1: W is reset (W=0).
GSK218M CNC System Connection and PLC Manual The DIFU instruction sets the output signal to 1 for one scanning cycle on a rising edge of the input signal. Format: (W) L : rising edge number DIFU Control condition: Input signal: On a rising edge(0 1)of the input signal, the output signal is set to 1. Output signal: The output signal level remains at 1 for one scanning cycle of the ladder level where this functional instruction is operating.
GSK218M CNC System Connection and PLC Manual Parameter: : rising edge number, range 0~255. Another DIFU instruction or DIFD instructin in the ladder uses the same number, the system will alarm. Operation: Execution period 5.20 COMP(binary comparison) Function: Compares binary values. Specifies enough byte to store input data and comparison data in the memory.
GSK218M CNC System Connection and PLC Manual constant and also be address number. Address number: R, X, Y, F, G, K, A, D, T, C. Output: W=0: input data>comparison data W=1: input data ≤comparison data 5.21 COIN(concidence check) Function: Checks whether the input value and comparison value coincide. Format: COIN Length...
GSK218M CNC System Connection and PLC Manual Output: : W=0: input value≠comparison value W=1: input value=comparison value 5.22 MOVN(transfer of data) Function: The MOVN instruction transfers data from source address and a specified binary data to a specified destination address. Format: MOVN Length transfer S1 transfer...
GSK218M CNC System Connection and PLC Manual 1.When S1 is the constant 5 and S2 is R60,R60=00000101,R61=00000101 2.When S1 is the constant 5 and S2 is D60,D60=1285 3.When S1 is the constant 500 and S2 is D60,D60=62708 4.When S1 is the constant D50 and S2 is D60,D60=D50 5.23 XMOV(Binary index data transfer)...
GSK218M CNC System Connection and PLC Manual : Storage address of number of data table elements. The address is used to store the data number of data table, its byte should correspond to the length specified in Length format specification, and the effective range of number of data table element is as follows with the byte length which set in Length1 format.
GSK218M CNC System Connection and PLC Manual Format: DSCH Length (W) Format Storage Data Search Output address table data address of data head address in data address search table result Control conditions: Reset(RST) RST=0:Release reset. RST=1:Reset. W=0. Activation instruction (ACT): ACT=0 : Do not execute DSCH instruction, W does not change.
Page 62
GSK218M CNC System Connection and PLC Manual This instructin performs binary addition between 1-, 2-byte data. In the operation result register, operation data is set besides the numberical data representing the operation results. The required number of bytes is necessary to store each augend, the added, and the operation output data. Format: Length (W)...
GSK218M CNC System Connection and PLC Manual 5.26 SUB(binary subtraction) Function: This instruction executes the subtraction operation in the binary format of 1 or 2 bytes. In the operation result register, operation data is set besides the numberical data representing the operation.
GSK218M CNC System Connection and PLC Manual Output: W=0: Operation correct. W=1: Operation incorrect. When W=1, the result of subtraction exceeds the specified data length. 5.27 ANDF(logical and) Function: The ANDF instruction ANDFs the contents of address A with a constant( or the contents of address B), and stores the result at address C.
GSK218M CNC System Connection and PLC Manual : Address used to store the result of an ANDF operation. The result of and ANDFoperation is stored starting at this address, and has the data length specified in Length format specification. Example:: When address A and address B hold the following data: Address A Address B...
GSK218M CNC System Connection and PLC Manual Parameter: Length :Specify a data length(1 or 2 bytes), and an input data format(constant or addressspecification). :Specify the input data to ORed. The data that is held starting at this address and has the data length specified in Length format specification is treated as input data.
GSK218M CNC System Connection and PLC Manual Length :Specifies a data length(1 or 2 bytes). O O O Data length specification 1:1 byte length data 2: 2 bytes length data :Input data to be inverted bit by bit. The data that is held starting at this address and has the data length specified in Length format specification is treated as input data.
Page 68
GSK218M CNC System Connection and PLC Manual ACT=1 : The EOR instruction is executed. Parameter: Length :Specify a data length (1 or 2 bytes) and an input data format(constant or address specification). Data length specification Format specification 1:1 byte length data 0:Constant 2:2 bytes length data 1:Address...
GSK218M CNC System Connection and PLC Manual 6 Ladder Writing Limit 1. Sequence program must have END1 and END2 which are taken as the end marks of 1 level and 2 level sequence part, and END1 must be before END2. 2.
GSK218M CNC System Connection and PLC Manual 1 Controlled Axis Outputting of movemtn state of an axis General The movement state of each axis can be output to the PLC. Signal Axis moving signals MV1~MV4 (F017#0~F017#3) Output signal [Classfication] [Function]These signals indicate that a controlled axis is moving. MV1:X is moving.
GSK218M CNC System Connection and PLC Manual Caution: These signals maintain their condition during a stop, indicating the direction of the axes’ movment before stopping. Signal address #7 #6 #5 #4 #3 #2 #1 #0 F017 F019 MVD4 MVD3 MVD2 MVD1 Servo ready signal Singal...
Page 73
GSK218M CNC System Connection and PLC Manual appended to a signal represents a controlled axis number. SVFx axis servo OFF axis servo OFF axis servo OFF [Operation] These signals put the axes for which the signals are 1 in the servo off state(the current to the servo motor is stopped).
GSK218M CNC System Connection and PLC Manual Mirror image Mirror image can be applied to each axis, either by signals or by parameter(setting General input is acceptable). Al movement directions are reversed during automatic operation along axes to which a mirror image is applied. However, the following directions are not reversed: 1.
Page 75
GSK218M CNC System Connection and PLC Manual machine tool. These signal are provided for every controlled axis. The numeral in the signal name indicates the relevant control axis number. MMI x 1: 1 axis mirror image. axis mirror image. axis mirror image. [Output state] The signals are 1 when: Mirror image signal Min of the corresponding axis is “1”.
GSK218M CNC System Connection and PLC Manual Note: When the mirror image is used and mirror image instruction is not executed(automatic reference point return and manual operation), the mirror image check signal MMI1~MMI4 are not influenced. 1.5 Position switch Position switch signals can be output to the PMC which the machine coordinates alogn General a controlled axes are within a specified ranges.
GSK218M CNC System Connection and PLC Manual 2 Preparation for Operation Emergency stop If you press Emergency Stop button on the machine operator’s panel, the machine General movement stops in a moment. Emergence stop The button is locked when it is pressed, Although it varies with the machine too builder, the button can usually be unlocked by twisting it.
GSK218M CNC System Connection and PLC Manual [Function] The CNC ready signal indicates that the CNC is ready. [Output conditions]When the CNC is turned on and becomes ready for operation, the signal is set to 1. Normally, it takes several seconds to establish this state after the power is turned on.
GSK218M CNC System Connection and PLC Manual becomed 0 is decelerated to a stop, and the axis an be moved in the opposite direction. Once the axis overtravel signal has becomed 0, the axis direction is registered. Even if the signal returns to 1, it is not possible to move that axis in that direction until the alarm is cleared.
GSK218M CNC System Connection and PLC Manual Machine ready signal General report the machine has been the ready state. Signal machine ready signal MRDY(G009#4) [Classfication] Input signal [Function]Must input the signal when CNC automatically runs. [Operation]MRDY signal becomes 1 without the alarm signal. Interlock activation General These signals disable machine movement along axes.
GSK218M CNC System Connection and PLC Manual decelerated, and they start moving again when interlock is released. This function is also effective during dry run. Signal address #7 #6 #5 #4 #3 #2 #1 #0 G009 MRDY G015 Mode selection Signal mode check signal F003#0~F003#7...
GSK218M CNC System Connection and PLC Manual automatic operation. [Output conditions] These signals are 1 when: When cutting feed is being performed by automatic operation(cutting feed linear interpolation, circular interpolation, helical interpolation, thread cutting, skip cutting, or cutting in canned cycle). Note: Do not output the signal in the state of feed hold.
Page 83
GSK218M CNC System Connection and PLC Manual servo and spindle motors, compared with normal rapid traverse or cutting feed. This function detects the load torque on the motors and sends this value as an estimated load torque to the PMC. If the detected load torque value is abnormally great compared with th e value specified in the parameter, the function stops the servo motor as early as possible or reverses the motor by an appropriate value specified in a parameter, in order to minimize possible damage to the machine.( The function...
GSK218M CNC System Connection and PLC Manual 3 Manual Operation JOG feed/incremental feed General JOG feed In JOG mode, setting a feed axis and direction selection bit to 1 on the machine operator’s panel moves the machie along the selected axis in the selected direction.
GSK218M CNC System Connection and PLC Manual [Operation]When the sigal is set to 1, the control unit operate as follows: When JOG feed or incremental feed is allowed, the control unit moves the specified axis in the specified direction. When the signal is set to 1 in JOG feed, the control unit continues to feed tha axis while the signal is set to 1.
GSK218M CNC System Connection and PLC Manual (G027#0~G027#3) Signal Input signal [Classfication] [Function]Select the MPG feed axis Signal MPG/Incremental select signal (G026#0~G026#3) [Classfication] Input signal [Function] When the signal selects the MPG feed, MPG generates the movement distance of every pulse which also can select the movement distance per step of incremental feed .
GSK218M CNC System Connection and PLC Manual Note: 1. MPG interrupt cannot be used in MPG feed mode. 2. MPG interruption is disabled when the machine tool is locked or interlocked. 4 Reference Point Return Manual reference point return In manual reference point return mode, the machine tool move in the specified General direction by setting the position parameter N0:...
Page 88
GSK218M CNC System Connection and PLC Manual No. Y axis reference point return end signal. No. Z axis reference point return completion signal. No. A axis reference point return completion signal. [Output conditions]When these signals becomes 1: Manual reference point return is completed and the current position is in the in-position area.
Page 89
GSK218M CNC System Connection and PLC Manual point return. When the reference point is established using the absolute-position detector at initial power-on. These signals become 0 when: The reference point is lost. Signal address #7 #6 #5 #4 #3 #2 #1 #0 X001...
Page 90
GSK218M CNC System Connection and PLC Manual [Data Classfication] bit-axis Direction of reference point return 0:positive direction 1:negative direction #7 #6 #5 #4 #3 #2 #1 #0 0009 [Data Classfication] Bit ZCL Local coordinate system after the manual reference point return is executed.
GSK218M CNC System Connection and PLC Manual 5 Automatic Operation Cycle start/feed hold General Start of automatic When automatic operation start signal ST is set to 1 then 0 while the CNC Operation(cycle start) is in memory mode, DNC operation mode or MDI mode, the CNC enters the automatic operation start state then starts operating.
Page 92
GSK218M CNC System Connection and PLC Manual * Halt of automatic operation (Feed hold) When the feed hold signal SP is set to 0 in automatic operation, the CNC enters the feed hold state and stops operation. At the same time, cycle start lamp signal STL is set to 0 and feed hold lamp signal SPL is set to 1.
Page 93
GSK218M CNC System Connection and PLC Manual Signal Cycle start signal ST(G023#6) Input signal [Tpye] [Function]Start the automatic operation. [Operation]When signal ST is set to 1 then 0 in automatic operation(Auto), DNC and MDI mode, the CNC enters the cycle start state and starts operations.
GSK218M CNC System Connection and PLC Manual [Classfication] Output signal [Function] The signal reports PLC that the feed hold is entered. [Output conditions] The signal is set to 1 or 0, which is determined by CNC state as Fig. 5.1. Automatic operation signal OP(F000#7)...
Page 95
GSK218M CNC System Connection and PLC Manual Reset processing Reset signal Value set by No.203 reset When the CNC is reset in automatic operation, the automatic operation is stopped and tool movement along the controlled axis is decelerated and stopped. When the CNC is reset during the execution of the M, S, T function, signal MF,SF or TF is set to 0 within 16ms.
GSK218M CNC System Connection and PLC Manual Testing a program General Before machining is started, the automatic running check can be executed. It checks whether the established program can operate the machine as desired. This check can be accomplished by running the machine or view the position display change without running the machine.
GSK218M CNC System Connection and PLC Manual set to 0. Signal address #7 #6 #5 #4 #3 #2 #1 #0 F004 MMLK G011 MLK4 MLK3 MLK2 MLK1 5.3.2 Dry run Dry run is valid only for automatic operation. The machine moves at a constant General feedrate regardless of the feedrate specified in the program.
GSK218M CNC System Connection and PLC Manual Signal address #7 #6 #5 #4 #3 #2 #1 #0 G021 F002 MDRN 5.3.3 Single block General The single block operation is valid in automatic operation mode (Auto mode). When the single block signal (SBK) is set to 1 during automatic operation, the CNC enters the automatic operation stop state after executing the current block.
GSK218M CNC System Connection and PLC Manual block. The SPL singal becomes 1 while the STL signal becomes 0, showing that the end of the block has not been reached. When the execution of one block is completed, the STL and SPL signals becomes 0 and the operation is stopped. Signal address #7 #6...
GSK218M CNC System Connection and PLC Manual Program restart General A program may be restarted at a block by specifying the sequence number of the block, after automatic operation is stopped because of a broken tool or for holidays. There are two types ofrestart method as follows: P :restart after a tool is broken down Q :restart after holidays Signal...
GSK218M CNC System Connection and PLC Manual 6 Interpolation Function Thread cutting 6.1.1 Thread cutting General Tool movement can be synchronized with spindle rotation when cutting threads. The spindle speed is continuously read through the postion coder attached to the spindle. Then, it is converted to a cutting federate(feed per minute) to feed the tool.
GSK218M CNC System Connection and PLC Manual 7 Feedrate Control Rapid traverse rate General A rapid traverse rate is set for each axis by P0088~0092, so no rapid traverse rate need be programmed. The following overrides can be applied to a rapid traverse rate with the rapid traverse override signal: F0,25%,50%, 100%.
GSK218M CNC System Connection and PLC Manual increase with the feedrate can be suppressed. The tool can then follow specified path accurately and errors during the machining profile can be reduced. This funcitno becomes effective when advanced preview control mode as follows: (1) Linear acceleration/deceleration before interpolation for cutting feed (2) Automatic corner deceleration function Signal...
GSK218M CNC System Connection and PLC Manual The servo error of the corresponding control axis is withduring the specified allowance. These signals become “0” when: The servo erro of the corresponding control axis exceeds the specified allowance. Signal address #7 #6 #5 #4...
GSK218M CNC System Connection and PLC Manual Override 7.5.1 Rapid traverse override F0,25%,50%,100% can be used for the rapid traverse rate. General F0 is set by P093. Feedrate Actual federate is obtained by multiplying the rapid traverse rate preset by parameter P088~092 by the override value determined by this signal, whether during automatic or manual operation(including manual refernce point return).
GSK218M CNC System Connection and PLC Manual [Operation] Actual feedrate is obtained by multiplying the specified speed by the override value selected by this signal. 7.5.3 Override cancel General The override cancel signal fixes the feedrate override to 100%. Signal Override cancel signal OVC(G024#1)...
GSK218M CNC System Connection and PLC Manual 8 Miscellaneous Function (M, S, T function) Miscellaneous function General * miscellaneous function (M code) When up to 8-bit numbers after the address M is specified, the code signal and strobe signal are transmitted to the machine which use these signals to start or cut off its relative functions.
Page 108
GSK218M CNC System Connection and PLC Manual to 0 and reports that the completion signal has been received. (7) When the strobe signal is 0, the FDURING signal is set to 0. (8) When the FDURING signal is 0, all code signals are set to 0 and all sequence operations of miscellaneous function is completed.
Page 109
GSK218M CNC System Connection and PLC Manual Move instruction and a miscellaneous function during the same block. Execution of a miscellaneous function after move instruction completion: Move instruction M00~M31 PLC operation Signal Miscellaneous function code signal M00~M99(F030~F033) Miscellaneous function strobe signal MFEFD(F007#0)...
Page 110
GSK218M CNC System Connection and PLC Manual DM30(F009#4) [Classfication] Output signal These signals report particular miscellaneous function s are specified. [Function] The mistcellaneous functions during a instruction program correspond to output signals as reportd below. Instruction Output signal DM00 DM01 DM02 DM30 [Output conditions]...
Page 111
GSK218M CNC System Connection and PLC Manual [Output conditions]For the output conditions and procedure, see Basic Procedure. Note: Binary T00~T31 outputs to T code. For example, T corresponds to 00000000, 00000000, 00000000, 00000011. Miscellaneous function completion signal FIN(G000#0) [Classfication] Input signal The signal reports the completion of miscellaneous function, spindle [Function]...
GSK218M CNC System Connection and PLC Manual F033 F022 F023 F024 F025 F026 F027 F028 F029 Auxiliary function lock Inhibits execution of a specified M, S, and T function. That is, code signals and General strobe signals are not issued. This function is used to check a program. Signal Auxiliary function lock signal AFL(G021#3)...
GSK218M CNC System Connection and PLC Manual control unit without outputting their execution results are executed during the ordinary manner. Even when this signal is “1”, spindle analog output or spindle serial output is Waring executed. Auxiliary function lock check signal MAFL(F004#4)...
Page 114
GSK218M CNC System Connection and PLC Manual completion signal FDURING down edge (“1” to “0” ), the operation is ended. For the new mode, when CNC has detected the skip of one completion signal, it confirms the operation is ended. Besides, for the general mode, M/S/T/B function have one common completion signal(FIN), but for the new mode, they have different endsignal, the completion signal of M, S, T, B function are separately MFIN, SFIN, TFDURING and BFIN.
Page 115
GSK218M CNC System Connection and PLC Manual [Operation] For the operation and procedure of the control unit, see Basic Procedure. M completion signals MFIN2,MFIN3 <G000#2,#3> [Classfication] Input signal [Function] Report that the execution of 2 M function using the high-speed M/S/T/B interface is completed.
Spindle speed control mode General For 218M system, the spindle is divided into gear spindle and analog spindle: 1. During gear spindle mode, CNC changes S code to switch value to output to the spindle to control the spindle speed.
GSK218M CNC System Connection and PLC Manual 9.1.2 Analog spindle The analog spindle is defined that the spindle speed is controlled by the analog General voltage value from CNC. So, CNC changes S code into the analog voltage value to output to the spindle of machine tool to control the spindle speed.
GSK218M CNC System Connection and PLC Manual S and spindle motor speed instruction the voltage (0~10V)and gear select signal. (GR1,GR2,GR3)is as the above figure. Signal: Gear select signal GR1,GR2,GR3 <F034#0~#2> [Classfication] Output signal [Function] These signals report PMC the selected gear. [Output conditions] For the definition of these signals, see Gear change Mode.
GSK218M CNC System Connection and PLC Manual cutting feed and before 1 feed (traverse instruction) block is distributed and when the feed block is read and its time is set by the parameter No. 72. 2. After the S code is commanded and before the 1 feed block is distributed, CNC check wait time is the same that of the above.
GSK218M CNC System Connection and PLC Manual [Classfication] Output signal [Function] The signal reports the constant surface speed control is executed. [Output conditions] “1” reports the constant surface speed control (G96) is executed, and “0 “ reports it is not executed. Signal address #7 #6...
Page 121
GSK218M CNC System Connection and PLC Manual Signal address #7 #6 #5 #4 #3 #2 #1 #0 G003 RGTAP Signal Spindle rotation direction RGSPM,RGSPP 〈F012#1,#0〉 〔Classfication〕Output 〔Function〕Report to PMC that the spindle is CW/CCW during rigid tapping. Spidnle during rigid tapping: RGSPP:1:clockwise rotation(CW)0:non clockwise.
GSK218M CNC System Connection and PLC Manual 10 Tool Function 10.1 T instruction executing tool change During Auto and MDI mode, the T instruction is specified to execute the tool change. CNC interprets T instruction to transmit it to the specified tool selection number and strobe signal to wait for PLC to complete the tool change.
Page 123
GSK218M CNC System Connection and PLC Manual ·after individual tool change reset signal is executed. Tool change reset signal TLRST<G007#2> [Classfication] Input signal [Function] Clear all executable data including life count of the group, *,and @. To clear the data, specify a group number by tool grouop number select signal after replacing the worn-out tools that are displayed on the CRT.
Page 124
GSK218M CNC System Connection and PLC Manual signals are input. TL01~~1 28 the tool group number is given during advance. [Operation] A specified tool group is selected. Tool skip signal TLSKP<G007#0> [Classfication] Input signal [Function] A tool which has not reached its lifespan may be changed by one of two methods: (i) Designate the group number for the tool by tool group number select signal then turn the tool skip signal.
Page 125
GSK218M CNC System Connection and PLC Manual *TLV0 × 0.1 *TLV1 × 0.2 *TLV2 × 0.4 *TLV3 × 0.8 *TLV4 × 1.6 *TLV5 × 3.2 *TLV6 × 12.8 *TLV7 × 25.6 *TLV8 × 51.2 *TLV9 (For example)When*TLV7,*TLV6 and TLV3 are set to 0, the override value is counted as follows: 12.8+6.4+0.8=20.0,the life count value multiplies 20.0.
GSK218M CNC System Connection and PLC Manual 11. Programmng Instruciton 11.1 Custom macro program Although subprograms are useful for repeating the same operation, the custom macro General function also allows use of variables, arithmetic and logic operations, and conditional branches for easy development of general programs. A machining program can call a custom macro with a simple instruction, just like a subprogram.
Page 127
GSK218M CNC System Connection and PLC Manual UI006 G54#6 #1006 UI007 G54#7 #1007 UI008 G55#0 #1008 UI009 G55#1 #1009 UI010 G55#2 #1010 UI011 G55#3 #1011 UI012 G55#4 #1012 UI013 G55#5 #1013 UI014 G55#6 #1014 UI015 G55#7 #1015 UI000~ G54, #1032 UI015 Note: #1032 is variable with 16-bit as follows: Signal address...
GSK218M CNC System Connection and PLC Manual 11.2 Canned cycle Canned cycles make it easier for the programmer to create programs. With a canned General cycle, a frequently-used machining operation can be specified during a signgle block with a G function; without canned cycles, normally more than one block is required. During addition, the use of canned cycles can shorten the program to save memory.
GSK218M CNC System Connection and PLC Manual Tapping signal During the tapping cycle, output the tapping signal. When the tapping cycle G code is valid, CNC also outputs the tapping signal. Override During the tapping, the cutting feedrate override is always set to 100%.
GSK218M CNC System Connection and PLC Manual [Data Classfication] Bit INI Unit of input: 0:mm 1:inch Note: When this parameter is set, the power must be turned off before operation is continued. 11.4 Small hole peck drilling cycle During peck drilling, the tool enters and retracts from hole based on an overload General torque check signal (skip signal) unitl the designed hole depth is reached.
GSK218M CNC System Connection and PLC Manual 12 Display/Set 12.1 Clock Function Time is displayed during the hour/nimute/secod format on set screen. General The custom macro system variable can be used to read the time. Time reportation can be read and written. 12.2 Displaying operation history This function displays a history of the key stroke and signal operations, performed...
GSK218M CNC System Connection and PLC Manual When the required number parts are zero, this signal is not set. The PRTSF signal is set to 0 when: Maching of the specified number of parts has not yet been completed. The system is reset. General-purpose integrating counter start signal TMRON <G009#0>...
Page 134
GSK218M CNC System Connection and PLC Manual [Operation] When a signal is set to 0, the associated operations are disabled. When a signal is set to 1, the associated operations are enabled. Signal address #7 #6 #5 #4 #3 #2 #1 #0 G005...
GSK218M CNC System Connection and PLC Manual 13 Measurement 13.1 Skip function General Linear interpolation can be commanded by specifying axial following the G31 instruction, like G01. If an external skip signal is input during the execution of this instruction, execution of the instruction is halted and the next block is executed. The skip function is used when the end of machining is not programmed but specified with a signal from the machine, for example, during grinding.
GSK218M CNC System Connection and PLC Manual G001 SKIPP 13.2 Torque limit skip Sepcifying a move instruction after G31 P99 (or G31 P98) with a motor torque limit General set (for example, specifying a torque limit on the PMC screen) allows the same cutting feed as that specified with G01 to be performed.
GSK218M CNC System Connection and PLC Manual Appendix Signal list (During order of address) F signal Address Signal name Symbol Reference item F000#4 Feed hold alarm signal F000#5 Cycle start alarm signal F000#6 Servo ready completion signal F000#7 Automatic operation signal F001#0 Alarm signal F001#1...
Page 138
GSK218M CNC System Connection and PLC Manual F004#4 Auxiliary function lock signal MAFL F004#5 Manual reference point return MREF check F007#0 Miscellaneous function strobe MFEFD signal F007#2 Spindle speed function strob signal F007#3 Tool function strob signal F009#4 Decode M signal DM30 F009#5 DM02...
Page 139
GSK218M CNC System Connection and PLC Manual F064#0 Tool change signal TLCH 10.3 F064#1 New tool select signal TLNW 10.3 Individual tool change signal TLCHI 10.3 G signal Address Signal name Symbol Reference item G000#0 Miscellaneous function completion signal G000#1 M function completion signal MFIN1 G000#2...
INFO interface. There is the version number of GSK218M, modification data, PLC I/O interface definition state and so on on INFO interface. PLCINFO VERSION N5.0 MT NAME NTONG VINDICATOR GSK Coder MODIFY DATE : 2007-1-6 LADDER MAX ROW : 1000 EXECUTE MAX ROW: 3000 X(MT- > PMC) X0-X63...
GSK218M CNC System Connection and PLC Manual 1.2.2 PLCGRA interface Press 【PLCGRA】to enter PLCGRA interface or define the bit parameter N0: 26#6=1 to press <INFO> key on the PMC interface to enter PLCGRA interface as Fig.1-2-2. PLCGRA Ln:000/429 X001.4 G001.0 G012.0 X000.0 X000.1...
GSK218M CNC System Connection and PLC Manual 2 PLC Programming Operation General GSK218M CNC PLC operations are performed during the corresponding interfaces. There are maduring two interfaces: 1. PLCGRA interface include: basic instruction, function instruction and instruction list. Press 【 PLCGRA 】 to enter PLCGRA interface as Fig. 1-2-2. Press agaduring 【...
Page 148
GSK218M CNC System Connection and PLC Manual the previous one. Insert element: position the cursor to the required, press <INSERT> to insert empty position, and then add the new element as the above method. The cursor can insert orderly. (Note: ensure the indicator above <CTRL> key is OFF when inserting element.) Delete element: press <DELETE>...
GSK218M CNC System Connection and PLC Manual Search: directly input the required element name, press 【 】 to search up and press 【 】 to search down after the data on screen is displayed, Save: press <STORE> to save the modified ladder. Ladder programming example: 【...
Page 150
GSK218M CNC System Connection and PLC Manual PLCGRA Ln:000/429 G001.0 X001.4 G012.0 X000.0 G012.1 X000.1 X000.2 G012.2 CT R T M R RO T COM P M O VN X000.3 G012.3 D SCH COIN CA LL X000.4 G013.0 END 1 EN D2 AD D SU B...
GSK218M CNC System Connection and PLC Manual Instruction list Press 【 INSTRUCTION LIST 】 during PLCGRA interface as Fig.2-1-1 to enter the operation interface of instruction classification as Fig. 2-5-1. PLCREPER Step:0000/1263 REPER 0000 X001.4 0001 G001.0 0002 X000.0 0003 G012.0 0004 X000.2...
GSK218M CNC System Connection and PLC Manual PLC operation step PLC operation step: 1. During PLCPAR interface, press 【 KPAR 】 to enter the viewing and setting interface of keep relay, operate PLC by modifying the related bit of K000, K001. (setting K000.0 to 1 can modify the ladder after saving).
GSK218M CNC System Connection and PLC Manual 3 PLC Address, Parameter Setting During PLC, the addresses and parameters of counter, timer, data list, keep relay are used, viewing and setting must be during the corresponding interface. During PLCPAR interface, press 【 PLCPAR 】 to enter PLC address, parameter setting interface as Fig. 3-1, including counter, timer, data list, keep relay and so on, used for viewing and setting the addresses, parameter and data list.
GSK218M CNC System Connection and PLC Manual Fig. 3- 1- 1 Contents and operations on counter interface: OPERATION : operation state of ladder. : counter number, cannot be changed. ADDRESS : counter address, cannot be changed. CURRENT : counter current value, cannot be changed. :...
GSK218M CNC System Connection and PLC Manual OPERATION : operation state of ladder 。 : counter number, cannot be changed. ADDRESS : counter address, cannot be changed. CURRENT : counter current value, cannot be changed. : counter preset value, can be changed during MDI mode. Data/serial number: displaying input data.
GSK218M CNC System Connection and PLC Manual : data list number, cannot be changed. ADDRESS : data list address, cannot be changed. DATA : data list setting value, can be changed during MDI mode. Data/serial number: displaying input data. The serial number appears by pressing <SEARCH>...
GSK218M CNC System Connection and PLC Manual N.0~N.7 : bit number state of keep relay address. 1: After the CNC is turned off, the address keeps the state which is before power-off. 0: after the CNC is turned off, the address resets to the default state.
Page 159
GSK218M CNC System Connection and PLC Manual F026-F033 : setting range of F address. RUN : run status of ladder. MCODE : M function number. MEANING : M function explanation. ADDR : F address can be modified in MDI mode by inputting one which is higher than the terminal user password, and the modified is valid after the system restarts.
GSK218M CNC System Connection and PLC Manual 1 System Structure and Installation 1.1 System composition GSK218M CNC system mainly consists of the following units as Fig. 1.1. ( 1 ) GSK218M CNC system ( 2 ) Additional operator panel(optional) ( 3 ) Stepper driver(number AC servo driver) (...
GSK218M CNC System Connection and PLC Manual the CNC system is turned on. The system panel cannot be damaged by hard thing and sharp weapon when the CNC system is installed; the CNC system should be carried down to avoid dirtying the system panel.
Page 163
GSK218M CNC System Connection and PLC Manual 2. Side view 3. Overlook Without PC2 power supply...
Page 164
GSK218M CNC System Connection and PLC Manual 4. Back view OUTPUT1 OUTPUT2 OUTPUT3 INPUT1 INPUT2 INPUT3 SPINDLE X AXIS Y AXIS Z AXIS 4TH AXIS RS232 REMOTE MPG XS20 XS21 XS22 XS23 XS30 XS31 XS32 XS33 XS40 XS41 XS42 XS43 XS44 XS45...
GSK218M CNC System Connection and PLC Manual 2.2.2 Interface signal list X S 3 0 : D B 1 5 fe m a le ( X a xis ) X S 3 1 : D B 1 5 fem a le ( Y a xis ) XCP+ YCP+ XCP-...
Page 167
GSK218M CNC System Connection and PLC Manual 2 ) Driver alarm signal ALM (input) The receiving method of signal at the CNC side is as follows. The parameter 019bit0 set if the driver fault is the low level “0” or the high level. +12V R=2K Signal to CNC...
Page 168
GSK218M CNC System Connection and PLC Manual R=4.7K Signal to CNC Fig. 2-2-3-4 Wave of PC signal provided by customer is as follows: Direction of reference point return Deceleration signal Encode PC signal (one-turn signal) Neglect Proximity switch signal) (PC) Reference point Fig.
2.4.1 Interface signal list The 218M CNC system can be matched with MPG or hand unit. When it is matched with MPG, the MPG signal is connected to XS21 interface; with hand unit, the MPG signal of hand unit is connected to XS21 interface and other signals are connected to XS22.
GSK218M CNC System Connection and PLC Manual H*1, H*10, H*100 : are separately the override of MPG pulse equivalent; VCOM : hand uint common terminal. 2.5 Spindle unit connection 2.5.1 Interface signal list The CNC interface is DB15 male and its pduring definition is as follows: XS23:DB15 male SCOM SDALM...
GSK218M CNC System Connection and PLC Manual DC input signal A DC input signal A is from the machine to the CNC, and they are from the press key at the machie side, limit switch and contact of relay. a)Contacts at the machine side should meet the following: Contact capacity: over DC30V, 16mA.
Page 174
GSK218M CNC System Connection and PLC Manual normally close contact is OFF. IN05 X0.5 Z-axis negative travel limit switch is enabled when the normally close contact is OFF. IN06 X0.6 4-axis positive travel limit switch is enabled when the normally close contact is OFF. IN07 X0.7 4-axis negative travel limit switch is enabled when the...
GSK218M CNC System Connection and PLC Manual IN27 X3.3 Undefined IN28 X3.4 Undefined IN29 X3.5 Undefined IN30 X3.6 Undefined IN31 X3.7 Undefined XS45 input 3 Markign Label Function IN32 X4.0 Undefined IN33 X4.1 The spindle gear stage 1 completion is enabled when the normally close contact is ON.
GSK218M CNC System Connection and PLC Manual 200mA. ② When the output is ON and the current is 200mA, the saturation voltage is 1.6V and the typical value is 1V . ③ When the output is OFF, the withstand voltage including instantaneous voltage is below 24+20%.
GSK218M CNC System Connection and PLC Manual 4 Debugging Machine The chapter introduces the trial operation methods and steps after GSK218M CNC system is turned on firstly, and the corresponding machine operation can be performed after the following steps are done. 4.1 Debug preparation GSK218M debug is as follows: System connection:...
GSK218M CNC System Connection and PLC Manual The power air switch during the electric cabinet is turned on. The air switch or the fuse is connected with DC 24V, and ensure DC24V is normal. Ensure other power supplies are normal. GSK218M CNC device is turned on.
GSK218M CNC System Connection and PLC Manual System parameter number G23 =1: The soft limit function is ON when the power is turned on. =0: The soft limit function is OFF when the power is turned on. 4.4 Gear ratio adjustment When the machine move distance is not uniform with the displacement distance of coordinate display, NO.160~ NO.169 are modified to adjust the electronic gear ratio to meet to the different machine driving ratio.
GSK218M CNC System Connection and PLC Manual 4.5 Backlash compensation Use the gauge, micrometer gauge or laser master gauge to measure the backlash, the backlash compensation must be precise, otherwise it cannot improve the precision of processing and it is suggested that the following methods should be adopted to measure the leading screw backlash instead of MPG(handwheel) or single step: Edit program: O0001 ;...
GSK218M CNC System Connection and PLC Manual 4.6 Parameter for servo System parameter number RVCS =1: in feedforward control mode, the cutting feed and rapid traverse are enabled. =0: In feedforward control mode, only cutting feed is enabled. =1: the cutting feed and the rapid traverse separately executes the backlash. the cutting feed and the rapid traverse does not execute separately the backlash.
Page 183
GSK218M CNC System Connection and PLC Manual defaults 0.001. ⑤ The compensation is not executed when the input compensation backlash is zero. ⑥ After the pitch error parameter is set, the CNC is turned on again, and the pitch error parameter is enabled after the machine zero return is executed.
Page 184
GSK218M CNC System Connection and PLC Manual compensation can be executed when the positive/negative coordinate system of machine zero moves Operation during the positive coordinate: the first compensation length is No. 000 set compensation value during 【 Compensation X 】 , the second is that of No. 001 and the N is that of No.
GSK218M CNC System Connection and PLC Manual State parameter No.011 ZNLK ZNLK =0 : When the zero return is executed, the direction key is not locked by its self by pressing it continuously. =1 : When the zero return is executed, the direction key is locked, and the zero return runs to the zero to stop after the direction key is pressed one time.
GSK218M CNC System Connection and PLC Manual state X4.7 X4.6 address XS45.06 XS45.18 X4.6=spindle speed arrival signal input ; X4.7 = spindle zero speed check signal input. Data parameter No.243 2 4 3 Spindle motor min. clamp speed . Data parameter No.244 2 4 4 Spindle motor max.
Page 188
GSK218M CNC System Connection and PLC Manual can support 4-gear shpindle automatic gear change control and 4-gear change completion check function. Signal diagnosis Parameter diagnosis(machine side output state) state Y3.6 Y3.5 Y3.4 address XS44.25 XS44.12 XS44.24 Y3.4=spindle gear 1 output ; Y3.5=spindle gear 2 output ; Y3.6=spindle gear 3 output. Parameter diagnosis(machine side input state) state X4.3...
GSK218M CNC System Connection and PLC Manual ⑤ When some S** is executed, the corresponding S** output is enabled and kept, and CNC automatically stops other S** output. 4.11 External cycle start and feed hold Signals ST : external automatic cycle start signal has the same function that of automatic cycle start key on the machine panel.
GSK218M CNC System Connection and PLC Manual Signals M08 : cooling ON M32 : lubricant ON M35 : Chip removal ON Signal diagnosis Parameter diagnosis(machine side output state) State Y0.1 address XS40.14 Y0.1=cooling switch control Parameter diagnosis(machine side output state) State Y1.2 Y1.1...
GSK218M CNC System Connection and PLC Manual =0: Z-axis feed reverse. System parameter number MALX MALX =1: When the driver alarms, high level is enabled. =0: When the driver alarms, low level is enabled. =1: Each-axis lock signal is disabled. =0: Each-axis lock signal is enabled.
Page 192
GSK218M CNC System Connection and PLC Manual =0: Manual rapid traverse during the period from power-on time to the completion of the reference point return is disabled. LRP =1: The positioning(G00) interpolation is performed with the linear. =0: The positioning(G00) interpolation is performed with the non-linear. RFO =1: The machine tool stops moving when the feedrate override is F0 during rapid traverse.
Page 193
GSK218M CNC System Connection and PLC Manual 0091 4TH-axis rapid operation speed 5000 Set range:0 ~ 9999.9999 0092 5TH-axis rapid operation speed 5000 Set range: 0 ~ 9999.9999 0093 All-axis rapid operation override F0 speed (all axes) Set range: 0 ~ 9999.9999 0094 Max.
GSK218M CNC System Connection and PLC Manual 0101 Y-axis reference point return speed 2000 Set range: 0 ~ 9999.9999 0102 Z-axis reference point return speed 2000 Set range: 0 ~ 9999.9999 0103 4TH-axis reference point return speed 2000 Set range: 0 ~ 9999.9999 0104 5TH-axis reference point return speed 2000...
Page 195
GSK218M CNC System Connection and PLC Manual =0: The relative position display is not preset when a coordinate system is set. The relative position display takes into account the the tool length compensation. =0: The relative position display does not take into account the the tool length compensation.
Page 196
GSK218M CNC System Connection and PLC Manual =0: The MPG halt relative position displaye is not changed. WOF =1: The tool offset value by MDI key input is disabled. =0: The tool offset value by MDI key input is not disabled. =1: The tool geometric offset value by MDI key input is disabled.
GSK218M CNC System Connection and PLC Manual MAB =1: Use parameters to set the absolute or relative during MDI mode. =0: Use G90/G91 to set the absolute or relative during MDI mode. ABS =1: The instruction is absolute during MDI mode. =0: The instruction is relative during MDI mode.
Page 198
GSK218M CNC System Connection and PLC Manual =0: The corner rounding function is disabled during radius compensation mode. CN1 =1: The tool nose radius compensation (C) is executed the halt check. =0: The tool nose radius compensation(C) is not executed the halt check.
GSK218M CNC System Connection and PLC Manual Appendix: Guide for GSK218M matching with ladder 1. Notices of GSK218M matching with turret tool magazine (1) Install wiring according to the ladder. (2) Set PMC parameters correctly to ensure that the ladder matches with the machine tool when the ladder is used (3) The machine tool has special control requirements.
Page 200
GSK218M CNC System Connection and PLC Manual X0024 External clamping/releasing tool control Normally open conatact X0025 Releasing tool check Normally open conatact X0026 Clamping tool check Normally open conatact X0027 Undefined X0030 Undefined X0031 Undefined X0032 Undefined X0033 Undefined X0034 Undefined X0035 Undefined...
Page 201
GSK218M CNC System Connection and PLC Manual Y0001 Cooling Y0002 Tool releasing/clamping Y0003 Undefined Y0004 Spindel brake Y0005 Spindel impulse Y0006 Red alarm light Y0007 Yelloe alarm light Y0010 Green alarm light Y0011 Chip removal control Y0012 Lubrication control Y0013 Machine light control Y0014 Undefined...
Page 202
GSK218M CNC System Connection and PLC Manual Y0055 Undefined Y0056 Undefined Y0057 Undefined Note: (1) Refer to Volume Four about PMC input (X) connection method. (2) When the ladder is used, the user can add the new function for the undefined input. Table 3 KAPA address definition Address Definition...
Page 203
GSK218M CNC System Connection and PLC Manual K0026 Reversed K0027 Reversed K0030 Reversed K0031 Reversed K0032 Reversed K0033 Reversed K0034 Reversed K0035 Reversed K0036 Reversed K0037 Reversed K0040 Whether the spindle uses the gear control(I/O point) K0041 If the manual reference point controls one Many axes 1 axis axis...
Page 204
GSK218M CNC System Connection and PLC Manual K0067 Reversed K0070 X axis limit alarm reverse K0071 Y axis limit alarm reverse K0072 Z axis limit alarm reverse K0073 4TH axis limit alarm reverse K0074 Reversed K0075 Reversed K0076 Reversed K0077 Reversed K0080 Whether the 4...
Page 205
GSK218M CNC System Connection and PLC Manual open close K0106 Whether the tool origin point setting is enabled Disabled Enabled K0107 Whether tool magazine enters regulation mode K0110 Whether the manual tool clamping/releasing prompts the tool number which corresponds to the spindle K0111 Whether the manual operation returns the tool change position...
Page 206
GSK218M CNC System Connection and PLC Manual which is used when the sytem is being tested, when the system run normally, the parameter is set to 0, otherwise, there may be the unexpected accidence. 8. K0100, K0101, K0102, K0103, K0104, K0105, K0106, K0107, K0110, K0111 Table 4 PLC external alarm definition PMC alarm number A address...
Page 207
GSK218M CNC System Connection and PLC Manual 1222 A0026 Spindle unit temperature check abnormal 1223 A0027 Spindle speed check abnormal 1224 A0030 Spindle motor enabling check abnormal 1225 A0031 Spindle orientation in-position check abnormal 1226 A0032 Spindle gear change abnormal 1227 A0033 The tool magazine canot rotate...
Page 208
GSK218M CNC System Connection and PLC Manual 1242 A0052 The tool magazine retraction check abnormal 1243 A0053 tool magazine zero position setting is valid 1244 A0054 Stop the abnormal tool change 1245 A0055 There is no T number or there is the repetitive tool nubmer 1246 A0056...
Page 209
GSK218M CNC System Connection and PLC Manual 1261 A0075 retraction cannot executed in the origin position 1262 A0076 Exceed the safety position 1263 A0077 The cycle start cannot be executed in the debugging mode PLC alarm diagnosis: Alarm information: 1200 the air pressure check is abnormal. Fault cause: defined by customer Troubleshooting: no Alarm information: 1201 the lubricant check is abnormal.
Page 210
GSK218M CNC System Connection and PLC Manual Fault cause: defined by customer Troubleshooting: no Alarm information: 120 the machine control box temperature check is abnormal. Fault cause: defined by customer Troubleshooting: no Alarm information: 1209 the machine bed temperature check is abnormal. Fault cause: defined by customer Troubleshooting: no Alarm information: 1210 the machine vibrivation frequency check is abnormal.
Page 211
GSK218M CNC System Connection and PLC Manual spindle CCW, CW, JOG, POSITIION, or execute M03,M04, M19 in AUTO mode, the spindle will rotate. Troubleshooting: in Manual mode, press”CLAMP/RELEASE”, and the tool is clamped (i.e. Y2=0) to check whether the tool clamp check switch is 1, when it is 1, the rotating spindle does not appear alarm.
Page 212
GSK218M CNC System Connection and PLC Manual 3. regulate again T009 time. Alarm information: 1222 the spindle unit temperature check is abnormal Fault cause: defined by customer Troubleshooting: no Alarm information: 1223 the spindle speed is abnormal Fault cause: defined by customer Troubleshooting: no Alarm information: 1224 the spindle motor enabling check is abnormal.
Page 213
GSK218M CNC System Connection and PLC Manual Alarm information: 1229 please set the spindle tool number Fault cause: press “CLAMP/RELEASE” when the tool number is 0, which causes the alarm appears. Troubleshooting: the alarm only prompts the tool cannot be installed on the spindle but KAPA0110 is modified to shield the alarm when the tool number is 0 Alarm information: 1230 the tool change cannot be executed when the spindle tool is released.
Page 214
GSK218M CNC System Connection and PLC Manual Alarm information: 1237 the tool magazine needs to return to zero because its origin is lost. Fault cause: Troubleshooting: Alarm information: 1238 the infeed in-position check is abnormal Fault cause: Reversed Troubleshooting: Reversed Alarm information: 1239 the retraction in-position check is abnormal.
Page 215
GSK218M CNC System Connection and PLC Manual Troubleshooting: set K0106 to 0. Alarm information: 1244 the tool change is stopped because of its abnormal run Fault cause: when the tool magazine executes automatically the tool change, the tool change stops because of its abnormal run, which causes the system alarms and prompts there may be the disorder of tool magazine and the spindle tool number Troubleshooting: press”RESET”...
Page 216
GSK218M CNC System Connection and PLC Manual Troubleshooting: rotate the tool magazine to ensure the tool number on the spindle is the same that of current tool magazine. Alarm information: 1251 please turn off the power supply Fault cause: the modified parameter is enabled after power-off. Troubleshooting: start the system again.
Page 217
GSK218M CNC System Connection and PLC Manual Alarm information: 1257 the spindle cannot return the tool chan Fault cause: Z axis is executed to return to the tool change position when the tool magazine is in the infeed position and the spindle is not positioned. Troubleshooting: 1.
Page 218
GSK218M CNC System Connection and PLC Manual Table 5 TMR parameter definition Address Statement Initial value Setting value by (ms) customer (ms) T0001 Delay timer for spindle CCW completion T0002 Delay timer for spindle CW completion T0003 Delay timer for spindle gear change completion 500 T0004 Delay timer for spindle positioning completion T0005...
Page 219
GSK218M CNC System Connection and PLC Manual Notes: PLC pulse signal period is 1s, set T0011 and T0012 to 500. T016 setting will change C101 unit. For example: C101 unit is 600000ms(i.e. 1m) when T0016 is set to 60000. T017 setting will change C102 unit. For example: C102 unit is 10000ms(i.e. 1s) when T0017 is set to 10000.
Page 220
GSK218M CNC System Connection and PLC Manual C100 Tool magazine capacity setting C101 Automatic lubricating OFFtime setting 30 C102 Automatic lubricating ON time setting 30 Notes: 1. CTR100 setting value must be less than 100 and must be the same that of D100, otherwise there may be the abnormal.
F0274 Judge whether the spindle has the tool Reversed 3. Usage and maintenance of GSK 218M CNC System matching with turret tool magazine Tool magazine preparation and use 1. Tool magazine installation and related PLC parameter setting Operation aim: ensure the ladder fit to the allocation of tool magazine A.
Page 222
GSK218M CNC System Connection and PLC Manual contact X0051 Tool magazine forward in-position Normal open or normal close X0052 Tool magazine backward in-position Normal open or normal close X0053 Tool magazine CCW/CW in-position Normal open or normal close X0054 Tool magazine zero return in-position Selection 2 )...
Page 223
GSK218M CNC System Connection and PLC Manual the normal stop position, the tool magazine count switch has responded the block(See Fig. B). Fig. A Fig. B K0101=0 K0102=0 K0103=0 K0104=0 K0105=0 K0100=0 For example: the tool magazine has no zero return switch, all check switches are normal open and the rotation in-position is A mode, the parameter setting is as follows: K0101=0 K0102=0 K0103=0 K0104=0 K0105=0 K0100=0 D ....
Page 224
GSK218M CNC System Connection and PLC Manual When D1 and D2 are set to 8, and T8M6 is executed, the system alarms. F. Time parameter setting related to the tool magazine: Addresss Statement Setting range Initial value (ms) T0004 Delay timer spindle More than or less than 0...
Page 225
GSK218M CNC System Connection and PLC Manual through the following No. 2 setting and operation(i.e. 2. Tool magazine manual and zero return operation). 1. Tool magazine manual and zero return operation Operation aim: check whether the each operation of tool magazine is normal. The detailed operation is as follows: A.
GSK218M CNC System Connection and PLC Manual Warning: the tool must not be installed on the spindle when the spindle tool number is 0, otherwise, there maybe the accidence when the tool change is executed to damage the machine. 4. Macro program statement of GSK218M CNC System matching with turret tool magazine Macro program statement of GSK218M CNC System matching with turret tool magazine O91001;...
Page 227
Add: No.52, 1 . Street, Luochong North Road, Luochongwei, Guangzhou, 510165, China Website: http://www.gsk.com.cn E-mail: gsk@gsk.com.cn Tel: 86-20-81796410/81797922 Fax: 86-20-81993683 All specifications and designs are subject to change without notice July 2007/Edition 2 Aug. 2007/Printing 2...
Need help?
Do you have a question about the 218M and is the answer not in the manual?
Questions and answers