
B–62073E–1/04 2. INTERFACE BETWEEN CNC AND PMC–NA OR NB
– 241 –
2.3.50 External workpiece number search
(a) External workpiece number search signals (WN1 to WN16 [#1, #2])
[Classification]
Input signals
[Function] Select the number of a workpiece to be machined in the memory mode.
Five code signals are provided. These signals are set as binary code to designate a work-
piece number as follows:
WN
16
0
WN
8
WN
4
WN
2
WN
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
WN
16
10
WN
8
WN
4
WN
2
WN
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
Work
Number
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
00
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
Work
Number
( 0 : Signal low
1 : Signal high)
Workpiece number 00 is used for special designation “no search.” Thus, a workpiece number
ranges from 01 to 31. A workpiece number is associated with a program number (Oxxxx) by
one of the following methods. The method used is specified by parameter setting.
1 A workpiece number is used as a program number. For example, specifying workpiece
number 21 causes a search for O0021.
2 A workpiece number is set in the first 2 digits of a program number, and any number is
set in the last 2 digits.
If workpiece number 21 is specified, for example, memory is searched for O0021, O0121,
O0221, O0321, ..., or O9921.
The number searched for is determined by the order of registration in the program num-
ber directory in memory. As a result, the number cannot be specified. When this method
is used, therefore, care must be taken not to register programs with program numbers
whose first 2 digits are the same in memory.
3 A workpiece number is set in the first 2 digits of a program number, and a number specified
by parameter setting is set in the last 2 digits. If workpiece number 21 is specified when the
parameter–set value in the last 2 digits is 15, for example, 01521 is searched for.
[Operation] A program number associated with a workpiece number specified by these signals is
searched for when:
⋅ The system is reset in the memory mode.
⋅ After automatic operation is reset (automatic operation in–progress signal OP is low), it is
started in the memory mode (automatic operation start signal goes high).
When the workpiece number is 00, no search is performed.
The searched program is used for the following:
⋅ Automatic operation in the memory mode
⋅ Foreground editing in the part program storage and edit mode