
C. WINDOW FUNCTION DESCRIPTION
(PMC–NB/NB2/NB6)
B–61863E/15
APPENDIX
1382
[Description]
The sequence number of the running machining program is read from the
CNC. If the blocks of the running machining program have no sequence
numbers, the sequence number of the block most recently executed is
read.
0
Function code
25
Completion code
—
Data length
—
Data number
0
Data attribute
0
Data area
(6 byte)
2
4
6
8
10
Set data
16
0
2
4
6
8
14
Read data
Function code
25
Completion code
Data length
6
Data number
Data attribute
15
16
FLAG 1
FLAG 2
10
FLAG 1 Data format
7 6 5 4 3 2 1 0
#0 to 3 : Number of decimal places
#4 : Whether the decimal point is provided
(0: Not provided, 1: Provided)
#5 : Positive or negative
(0: Positive, 1: Negative)
#6 : Whether only one digit is provided
(0: Not only one, 1: Only one)
#7 : Not defined
FLAG 2 Data format
7 6 5 4 3 2 1 0
#3 : Whether at least one address in the
range of D to the second miscellaneous
function is specified after the NC is reset
(0: Not specified, 1: Specified)
#7 : Whether the read data is specified in the
current block of the part program
(0: Not specified, 1: Specified)Other bits
are not defined.
Sequence number
(4 byte)
C.3.7
Reading the Current
Sequence Number
(Low–speed Response)