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.
Summary of Contents for 988T
Page 6: ...GSK988T Turning CNC System User Manual VI ...
Page 14: ...GSK988T Turning CNC System User Manual XIV ...
Page 15: ...Chapter 1 Programming Fundamentals 1 Ⅰ Programming Ⅰ PROGRAMMING ...
Page 16: ...GSK988T Turning CNC System User Manual 2 Ⅰ Programming ...
Page 194: ...GSK988T Turning CNC System User Manual 180 Ⅰ Programming ...
Page 195: ...Chapter Ⅰ Overview 181 Ⅱ Operation Ⅱ OPERATION ...
Page 196: ...GSK988T Turning CNC System User Manual 182 Ⅱ Operation ...
Page 217: ...Chapter Ⅲ Windows 203 Ⅱ Operation ...
Page 267: ...Chapter Ⅲ Windows 253 Ⅱ Operation Fig 3 51 Fig 3 52 ...