Products Catalogue Home     |     About Us    |     Retrofit     |     Download     |     News     |     Tech Support     |     Contact Us     |     
ppr fittings-NF-4011-Newsun Industry Co., Ltd
Home > Tech Support >

Custom instruction function of GSK928TD-L and 928Ti




The machine tool manufacturer can set some custom instructions to control the additional device, and the operator only needs to enter the instruction to easily operate the additional device.
In response to this situation, the GSK928TD-L/928Ti system has specially developed a custom command function to solve this problem. The system provides 25 custom commands from M50 to M74. The specific number of commands required is edited by the machine tool manufacturer. The user-defined instruction must be edited in the %4 program. First, the single-segment debugging of the %4 program is successful in the automatic working mode, and then the program is solidified in the editing working mode; after the program solidified successfully, in the manual mode and other programs (
01 program format
In the %4 program, the system custom instruction programming format is: input a section of program starting with the start character "-M50" and ending with "M99" in the program, this section of program constitutes the M50 instruction. Other blocks starting with "-M51~-M74" and ending with "M99" constitute M51~M74 commands.
Figure 1
 
 
02 related parameters
No. 254 program solidification restriction, parameter P404_d0:0-prohibited, 1-allowed, as shown in Figure 2;
This parameter needs to be turned on when editing and curing or extracting No. 254 program, and it needs to be turned off after the operation is completed.
 
 
No. 254 program restriction: Parameter P404_d2:0-Motion prohibited code, 1-Allow.
If there is a motion code G command in the No. 254 program custom command (except G04), this bit parameter needs to be turned on, otherwise the system alarms.
 
 
03 program programming and operation
Custom instruction program read/solidify/delete:
For example, as shown in Figure 4: Edit work mode and enter the 254 program, press the hp6 key corresponding to the number key 4: 254 to read the program, the corresponding number key 5: 254 to solidify the program, and the corresponding number key 6: 254 to delete the program
 
 
 
M50~M74 can carry field K
When executing M50-M74, set K to r150...r174; users can use this function to program branch judgments for custom instructions.
M50-M74 can have field K, if not, it defaults to K-0. (K--9999999~ 9999999)
 
In manual or automatic program, you should enter the command:
M51K0 (or M51); Turn off the two signal outputs: r2001=1, r2002=1, if there is no K, the default K is zero. For example, Figure 5/6:
M51K1: Output r2001=0, r2002=1
M51K2; output r2001=1, r2002=0
M51K3 (when K>3, it is equivalent to K3); output r2001=0,r2002=0
 
In program No. 254, when programming M50~M74 commands, parameters can be included, but they are not required.
After executing this command, in manual or automatic working mode, press the key to pop up the I/O signal observation interface. In this interface, you can observe the functional status of the input/output port signals behind the I/K. If there are multiple pages in the display window, you can check the function status of the I/O signal by pressing the up/down page buttons.
Input port signal. After I, there can be a total of 32 numbers from 1 to 32, and the numbers are separated by a dot ".";
K: Output port signal. There can be 32 numbers from 1 to 32 after K, and the numbers are separated by a dot ".". For example, Figure 7~9: as shown in Figure 7, Figure 8, Figure 9.
 
 
04 Execution call of M72/M73/M74 when drive alarm/reset/emergency stop
In manual/automatic working mode, when the reset button is pressed, the system executes the standard reset function, and then executes an additional M73 custom command (only in manual/automatic working mode, and the system has a solidified M72/M73/ Only when M74 is commanded, it will be executed additionally). This function is suitable for some special machine tool parts, and is used when the output signal is only partially closed and partially saved. If various related alarms occur during the execution of the M73 custom instruction, the operation will be terminated.
Related parameters: P412_d3/d2/d1 parameter sets whether to call and execute M72/M73/M74 custom instructions when the drive alarms/resets/emergency stop. For example, Figure 10:
 
 
 
05 External control execution function of M51~M58, M61~M68 commands
Related parameters: The parameters related to the external control execution function of M51~M58 and M68 commands are: P557~P560, P535~P538. The relevant parameters are defined as follows:
When parameters P561~P564, P535~P538=0, it means that there is no external control function;
When the parameters P561~P564, P535~P538 are entered with xx, it means that the foot switch controls the execution command function, and one port controls a pair of M commands; parameter range: (1~32);
For example, as shown in Figure 11, fill in the I/O name corresponding to the input pin of the foot switch in parameter P535, make the wiring connection correctly, and solidify the corresponding M61~M68 commands. At this time, pedal once to execute M61, and then pedal to execute M62, alternately and cyclically.
 
 
When the parameters P561~P564 and P535~P538 are entered as 100xx, it means that the knob controls the execution command function, and one port controls a pair of M commands; the parameter range: (10001~10032);
For example, Figure 12: When P535=10005, it means that UI05 executes M61/M62 with the knob control; executes M61 from off to on, and executes M62 from on to off.
 
 
When the parameters P561~P564, P535~P538 are entered in 2xxyy, it means that the button controls the execution command function, and one port controls one M command. Parameter range: (2xx00~2xx32, 200yy~232yy).
For example, Figure 13: When P535=20506, it means that the UI05 button executes M61 and the UI06 button executes M62;
 
 
For example, Figure 14: When P535=20500, it means that the UI05 button executes M61;
For example, Figure 15: When P535=20005, it means that the UI05 button executes M62;
 
When the system input interface is not enough, you can set the parameters P535~P538 to 99; in the manual/automatic mode, you can control the M61~M68 to perform custom execution:
For example, Figure 16: When P535=99, press 3, execute M63, and press 4, execute M64. For P537-99, press 5 to execute M65, and press 6 to execute M66. When P538=99, press 7 to execute M67, and press 8 to execute M68.
 
The external control execution function of M51~M58 instructions is basically the same as the external control execution function of M61~M68 instructions, the only difference is that it can’t "key-press control to execute M51~M58 instructions".
 
 
 
05 State switching calls M50-M72 function
Fix the corresponding M command in No. 254 program, then modify the parameters P344~P347, the corresponding numbers correspond to the corresponding M commands;
For example, Figure 17: If P344 (call before processing) is set to 50, execute M50 before executing the first processing program each time.
 
06 Manual 0 key call M50-M72 function
Fix the corresponding M command in the No. 254 program, then modify the parameter P348, the corresponding number corresponds to the M command;
For example, Figure 18: Modify P348 to 50, then in the manual interface, press the 0 key to call M50.


—[Close]— —[ Back]— —[ Print]—