GSK988T Turning CNC System User Manual
134
Ⅰ
Programming
#101=10
(
the binary is: 00001010
)
#102=12
(
the binary is: 00001100
)
#103=#101 OR #102
(
or the operation result is : 00001110
)
The window display result of macro variable is #101=10.000000 #102=12.000000
#
103=14.000000
(
12
)
The function BIN converses the decimal into the binary displayed in 8421 format
BCD. The system cannot display and alarms when some digit in BCD code after
conversion exceeds 9.
The function BCD converses the BCD code displayed in 8421 format into the
decimal.
Example 1
:
#101=55
(
The binary: 00110111
)
#102=BIN[#101]
Macro variable window display #102=37.000000
Example 2
:
#101=37
(
BCD 37 corresponds to the binary : 00110111
)
#102=BCD[#101]
Macro variable window display #102=55.000000
(
2
)
Transfer and repetition commands
The transfer and the repetition commands can change the control flow, and there are three
kind of transfer and repetition operation: the unconditional transfer GOTO, the conditional transfer
IF…GOTO, IF…THEN and WHILE DO repetition.
Command format:
GOTO n;
Command function:
Skip to the line number n without condition;
Command format:
IF <Logical expression> THEN <expression>;
Command function:
When the logical expression is valid, the system executes one following THEN, otherwise,
it executes the next block.
Command format:
IF < Logical expression > GOTOn;
Command function:
When the logical expression is valid, the system skips the block with the line number n to
execute, otherwise, it executes the next block;
Command format:
WHILE < Logical expression > DOn;
…………
;
ENDn
Command function:
When the logical expression is valid, the system executes the block between Do and END,
otherwise, its execute the block following END. The numerical value n following DO and END is
used to specify the execute range label of the specified program, n value is 1, 2, 3. The system
alarms when n is not 1, 2, 3.
Содержание 988T
Страница 6: ...GSK988T Turning CNC System User Manual VI ...
Страница 14: ...GSK988T Turning CNC System User Manual XIV ...
Страница 15: ...Chapter 1 Programming Fundamentals 1 Ⅰ Programming Ⅰ PROGRAMMING ...
Страница 16: ...GSK988T Turning CNC System User Manual 2 Ⅰ Programming ...
Страница 194: ...GSK988T Turning CNC System User Manual 180 Ⅰ Programming ...
Страница 195: ...Chapter Ⅰ Overview 181 Ⅱ Operation Ⅱ OPERATION ...
Страница 196: ...GSK988T Turning CNC System User Manual 182 Ⅱ Operation ...
Страница 215: ...Chapter Ⅲ Windows 201 Ⅱ Operation Note It can be displayed after U disk is inserted in the U disk catalog ...
Страница 217: ...Chapter Ⅲ Windows 203 Ⅱ Operation ...
Страница 267: ...Chapter Ⅲ Windows 253 Ⅱ Operation Fig 3 51 Fig 3 52 ...
Страница 412: ...GSK988T Turning CNC system User Manual 398 Appendix Fig 3 5 Horizontal operation panel appearance dimension ...