GSK988TA/GSK988TA1/GSK988TB Turning Center CNC System User Manual
【
Programming & Operation
】
140
Ⅰ
Programming
(
CCR(No.3405#4)=“0”
)。
Note 12
:
In compound fixed cycle, although the program for graphic dimension directly input is used in the
blocks between the serial number specified by P or Q, the last block specified by Q cannot be in the
code for the graphic dimension directly input.
2.27 Macro Code
GSK988TA/TB provides the macro code which is similar to the high language, and can realize
the variable assignment, and subtract operation, logic decision and conditional jump by user macro
code, contributed to compiling part program for special workpiece, reduce the fussy counting and
simplify the user program.
2.27.1 Variable
(
1
)
variable use
The variable can specify the address value in the program. The variable value is assigned
by the program code or is set directly by the keyboard. One program can use many variables
which can be distinguished by their variable number.
z
Variable expression
Use “#”+variable number to express;
Format
:
#
i
(
i=200
,
202
,
203
,
……
);
Example
:
#205
,
#209
,
#225.
Besides, the expression can be used to specify the variable number. At the moment, the
expression must be in the brackets.
Example
:
#[#20+#30/4]
z
Variable reference
1. Use variable to permute the number following address.
Format:
﹤
address
﹥
+“# i” or
﹤
address
﹥
+“
-
# i” means to take the variable value or
the negative value of value of the variable as the address value.
Example: F#203…#203=15: it is the same those of F15 functions;
Z-#210…#210=250: it is the same those of Z-250 functions;
G#230…#230=3: it is the same those of G3 functions.
When the variable value is used in program, the decimal point can be omitted. Example:
#1=123: the actual value of #1 is 123.000.
When the variable value followed the axis code address has the decimal point, the data
less than the least setting unit executes the rounding. For example: #1=1.23456; the axis
least setting unit is 0.001, the tool to execute G00 X#1 positions to 1.235 position.
2. Use variable to permute variable number.
Format: “#”+[variable number]
Example: 5 uses #30 to execute the permutation in #5, is written to #[#30].
3. Refer the undefined variable.
When the variable is not defined, it becomes the “Null” variable. When the variable #0 is
Null, it is only read instead of being written.
Содержание GSK988TA
Страница 6: ...GSK988TA GSK988TA1 GSK988TB Turning Center CNC System User Manual Programming Operation VI ...
Страница 19: ...1 Ⅰ Programming PROGRAMMING ...
Страница 20: ...GSK988TA GSK988TA1 GSK988TB Turning Center CNC System User Manual Programming Operation 2 Ⅰ Programming ...
Страница 176: ...GSK988TA GSK988TA1 GSK988TB Turning Center CNC System User Manual Programming Operation 158 Ⅰ Programming ...
Страница 227: ...209 Ⅱ Operation OPERATION ...
Страница 228: ...GSK988TA GSK988TA1 GSK988TB Turning Center CNC System User Manual Programming Operation 210 Ⅱ Operation ...
Страница 242: ...GSK988TA GSK988TA1 GSK988TB Turning Center CNC System User Manual Programming Operation 224 Ⅱ Operation ...
Страница 298: ...GSK988TA GSK988TA1 GSK988TB Turning Center CNC System User Manual Programming Operation 280 Ⅱ Operation ...
Страница 336: ...GSK988TA GSK988TA1 GSK988TB Turning Center CNC System User Manual Programming Operation 318 Ⅱ Operation ...
Страница 348: ...GSK988TA GSK988TA1 GSK988TB Turning Center CNC System User Manual Programming Operation 330 Ⅱ Operation ...
Страница 352: ...GSK988TA GSK988TA1 GSK988TB Turning Center CNC System User Manual Programming Operation 334 Ⅱ Operation ...
Страница 358: ...GSK988TA GSK988TA1 GSK988TB Turning Center CNC System User Manual Programming Operation 340 Ⅱ Operation ...
Страница 369: ...Chater 10 Machining Example 351 Ⅱ Operation ...
Страница 370: ...GSK988TA GSK988TA1 GSK988TB Turning Center CNC System User Manual Programming Operation 352 Appendix APPENDIX ...
Страница 371: ...353 Appendix ...
Страница 465: ...Appendix 1 Parameters 447 Appendix ...
Страница 479: ...Appendix 3 Interface Explanation 461 Appendix ...
Страница 527: ...Appendix 5 Installation Layout 509 Appendix ...