![GSK GSK928TE User Manual Download Page 123](http://html1.mh-extra.com/html/gsk/gsk928te/gsk928te_user-manual_2275225123.webp)
Programming Chapter Three Commands and Functions
118
M91
:
check the state of No. 1 user. When the state is valid (input terminal connects with 0V), skip
to the block specified by P, otherwise the next block is executed.
M92: check the state of No. 1 user, when the state is invalid (input terminal cuts off 0V), skip to
the block specified by P, otherwise the next block is executed.
M93: check the state of No. 2 user, when the state is valid (input terminal connects with 0V), skip
to the block specified by P, otherwise the next block is executed.
M94: check the state of No. 2 user, when the state is invalid (input terminal cuts off 0V), skip to
the block specified by P, otherwise the next block is executed.
Note 1: Any of
M91, M92, M93, M94 is independently in the block without other commands.
Note 2: M91, M92, M93, M94 skips to the target block, and the absolute programming must be
used, otherwise, the command cannot correctly run to the specified coordinates.
3.3 S function
— Spindle Function
The code signals are transferred to the machine by the address character S and the following
data to control the spindle speed.
Whether the spindle function is to control the multi-gear motor or the converter motor is
determined by P12 Bit0 according to the specific configuration.
3.3.1 Multi-Gear Motor Control
When P12 Bit0=0, S function is used for controlling the multi-gear motor which also is executed
by outputting the No. 4 gear control signal or No. 16 gear BCD code signal. P11 Bit3=1, display
the actual spindle speed. After executing S command, add G04 behind the command to wait for
the stable speed, and then the system displays the accurate speed. Bit3=0, only displays the
spindle speed in programming.
The output mode of spindle multi-gear control is defined by P11 Bit4.
Bit4=0, it is 4 gears direct output control S0
~
S4 and one gear corresponds to one output point;
Bit4=1, it is 16 gears BCD code output control
S0
~
S15.
Command format: S0
~
S4
;
Bit4=0
or S0
~
S15
;
Bit4=1
S code output list
Code
Output
point
S00 S01 S02 S03 S04 S05 S06 S07 S08 S09 S10 S11 S12 S13 S14 S15
S1
★
★
★
★
★
★
★
★
S2
★
★
★
★
★
★
★
★
S3
★
★
★
★
★
★
★
★
S4
★
★
★
★
★
★
★
★
Note: the output of output point with “ ”is valid.
★
3.3.2 Inversion Frequency Motor Control
P12 Bit0=1, the inversion frequency motor is controlled by S function which can output 0 –
10VDC signal to control the converter to gain the stepless timing of spindle motor.