SET FD & KEY IN ‘OK’,‘KILL’ OR ‘NO’ FD=OK <@FILE NAME> FD0=OK <DRIVE><@NAME OR : NUMBER> FD0=
4 Insert the floppy into the disk and enter the following data
5 ’OK @LADDER2 [NL]
File name
6 The screen is switched and the ROM format program is started from the floppy disk.
7 After reading is ended, the screen is automatically changed to the program menu screen if no problem occurs. When an error is detected during reading, ’PART’ = is displayed on the left lower part of the screen. Check the error and key in ’E [NL]’ to return the screen to the program menu screen.
(3) Method of inputting from the FA writer and PMC writer 1 Check the setting of the ROM writer. (See Section 3.4, ”Setting
of I/O Device.”)
2 Put the FA Writer in the REMOTE mode by the [REMOTE/LOCAL] key before using it.
3 Turn on the F9 key. (Turn on the F12 key at the same time when the C language program is included.)
4 If the menu number ‘3 <NL>’ is keyed in, the message shown below will be displayed. PMC-RA1/RA2/RB/RC is not displayed. Key in the type of ROM module to be used from now on. (Refer to Note 1 when selecting ROM module B, C or D.)
SELECT THE TYPE OF ROM MODULE ACCORDING TO THE FOLLOWING NO.
ROM MODULE 0:A 1:B, 2:C, 3:D NO.=
ww w.
cn cc
en ter
.co m
B–61863E/10 4. OPERATIONPMC PROGRAMMER (SYSTEM P series)
649
5 The screen is switched and the message shown below is displayed.
SET EPROM OR ROM MODULE & KEY IN ‘OK’ OR ‘NO’ KEY IN=
6 Check the above message. For the PMC-RA1/RA2/RB, insert the EPROM for the PMC into the FA Writer or PMC Writer. For the PMC-RC, insert the ROM module for the PMC into the FA Writer or PMC Writer. Note, however, that ROM modules are not available with the PMC Writer.
7 Key in ’OK <NL>’ or ’NO <NL>’. When ’OK <NL>’ is keyed in, the sequence program written into the EPROM and ROM module for PMC is entered into P-G memory. The screen returns to the menu screen if it ends with no problems occurring. When ’NO <NL>’ is keyed in, the screen returns to the menu screen.
NOTE When using the SYSTEM P Mate, if ROM module B, C or D is selected, overlay occurs. When cassette B or C is selected, set the work floppy disk for external memory in drive 1.
ww w.
cn cc
en ter
.co m
4. OPERATION B–61863E/10PMC PROGRAMMER (SYSTEM P series)
650
By selecting ’04 <NL>’ (OUTPUT LADDER PROGRAM) from menu no.4, the following detail menu is displayed.
SET I/O KEY & KEY IN ONE OF THE FOLLOWING NO.S WHICH YOU WANT.
NO. ITEMS 01 OUTPUT ALL DATA. 02 OUTPUT SYSTEM PARAMETER. 03 OUTPUT TITLE DATA 04 OUTPUT SYMBOL DATA. 05 OUTPUT MESSAGE DATA. 06 OUTPUT I/O MODUL DATA. 07 OUTPUT LADDER PROGRAM (MNEMONIC). 08 OUTPUT LADDER DIAGRAM (ONLY FANUC PRINTER). 09 OUTPUT CROSS REFERENCE (SEQUENCE NO.) 00 END F5 : PRT (O) , F10 : FANUC PRINTER (O) F6 : PTP (O) , F13 : CROSS REFERENCE (NO.8) F7 : FD (O)
NO. =
Select a desired data and device from the above details menu screen by combining the menu numbers and F keys.
(1) OUTPUT ALL DATA
All data of system parameters, titles, symbols, messages, I/O modules and ladder programs (source format) are output to a device specified by an F key. Turn on an F key corresponding to the device to be output, and key in detail menu number ’01 <NL>’. If F10 key is turned on, all data are output to the FANUC printer (external printer) and the ladder diagram is output last. If F13 key is turned on furthermore, the ladder diagram is output with a cross reference.
(2) OUTPUT SYSTEM PARAMETER
System parameter data are output to a device specified by an F key. Turn on an F key corresponding to the device to be output, and key in detail menu number ’02 <NL>’.
(3) OUTPUT TITLE, DATA
Title data are output to device specified by an F key. Turn on an F key corresponding to a device to be output, and key in detail menu No. ’03 <NL>’.
(4) OUTPUT SYMBOL DATA
Symbol data are output to device specified by an F key. Turn on an F key corresponding to a device to be output and key in detail menu number ’04 <NL>’. The screen is switched and the following display appears.
OUTPUT = ’L@@@@ (,@@@@)’ OUTPUT =_
Specify the output range by line numbers as follows.
4.5 OUTPUT OF PROGRAM
4.5.1 Source Program
ww w.
cn cc
en ter
.co m
B–61863E/10 4. OPERATIONPMC PROGRAMMER (SYSTEM P series)
651
Example)
Key in ’L1, 100 NL’
Output end liner number (If this parameter is omitted, data are output to the last one.)
Output start line number
(5) OUTPUT MESSAGE DATA
Message data are output to a device specified by an F key. Turn on an F key corresponding to a device to be output, and key in detail menu number ’05 <NL>’. The screen is switched and the following display appears.
OUTPUT = ’A@@.@ (,@@.@)’ OUTPUT =_
Specify the output range by addresses as follows.
Example)
Key in ’A1.0,10.1’
Output end address (If this parameter is omitted, data are output to the last one.)
Output start address
(6) OUTPUT I/O MODULE DATA
I/O module data are output to a device specified by an F key. Turn on an F key corresponding to a device to be output, and key in detail menu number ’06 <NL>’.
(7) OUTPUT LADDER PROGRAM (MNEMONIC)
Ladder program (source format) data are output to a device specified by an F key. Turn on an F key corresponding to a device to be output, and key in detail menu number ’07 <NL>’.
The screen is switched and the following display appears.
OUTPUT = ’L@@@@ (,@@@@)’ OUTPUT =_
Specify the output range by line numbers as follows.
Example)
Key in ’L1,100 NL’
Output end line number (If this parameter is omitted, data are output to the last one.)
Output start line number
(8) OUTPUT LADDER DIAGRAM (ONLY FANUC PRINTER)
A ladder diagram is output to the FANUC printer (external printer). Key in detail menu number ’08 <NL>’, and then, turn on F10 key. Turn on F13 key furthermore, if it is desired to output the ladder diagram with a cross reference. The screen is switched and the following display appears.
OUTPUT = ’L@@@@ (,@@@@)’ OUTPUT =_
Specify the output range by line numbers as follows. (Partial output is also possible.)
ww w.
cn cc
en ter
.co m
4. OPERATION B–61863E/10PMC PROGRAMMER (SYSTEM P series)
652
Example)
Key in ’L1,100 <NL>’
Output end line number (If this parameter is omitted, data are output to the last one.)
Output start line number
ITEMS
* ALL ADDRESS ’ALL’ * HEAD CHARACTER ’G’ * ADDRESS ’G14.6’ * ADDRESS TO ADDRESS ’G14.6,R142.5’ * ADDRESS TO END ’G14.6-END’
* END ; PUSH ’NL’ KEY
ADDR=
NOTE � It takes time more or less from the end of operation on end
to the start of printer operation when outputting the LADDER diagram with cross reference. (EXECUTING is displayed on the screen.) This time depends upon the size and complexity of sequence programs. The cross reference is displayed by the page number and the line number of the LADDER diagram every contact. See Appendix printout example.
� If R1 key is pressed when each data is being output to the FANUC printer (External printer), the output is cancelled.
(9) OUTPUT CROSS REFERENCE (SEQUENCE NO)
Addresses (symbols, comments) are printed with cross reference Nos. by FANUC external PRINTER. These Nos. correspond to the Mnemonic format list (screen) or Ladder diagram (RD command line number). Key in above detailed memo No. ’09 <NL>’ and turn F10 key on. The screen changes to display the key in example and ’ADDR=’ as below.
Key in addresses to be output according to examples.
Key in example Address to be output
ALL ALL <NL> All addresses (G,F,Y,X,A,R,T,K,C,D in order)
Address initial R <NL> All address with the specified initial
Bit address X1.0<NL> Only bit address specified address
Byte address R58 <NL> Bit 0 - 7 of specified
Address range specification F8.0, X7.2<NL> Specified addresses in order of G,F,Y,X,A,R,T,K, C,D
X0.2-END<NL> All address after specified address
ww w.
cn cc
en ter
.co m
B–61863E/10 4. OPERATIONPMC PROGRAMMER (SYSTEM P series)
653
*** CROSS REFERENCE LIST *** PAGE=1
ADDRESS SYMBOL COMMENT DATA
G0000.0 *IT 653 G0000.1 *CST 653 G0000.4 *ESP 22 568<PHONE_NUMBER> 1189 1288 2800 G0000.5 *SP 45 2802 G0000.7 ERS 3435 3512 G0001.0 *AIT 656
NOTE 1 When the same address performs double writing,”*
MULTIPLE COIL USED *” is displayed. 2 If the F10 key is set to OFF and output performed, the cross
reference table is displayed on the screen.
A 12-inch chart is also applicable to the FANUC printer (external printer).
(The standard chart size is 11 inches.) Enter the command for changing the chart by the following operation.
(1) Press [R3] key from the R key menu screen.
(2) ’REQUEST=’ is displayed at the lower left part of the screen.
(3) Key in ’PAPER <NL>’.
(4) The following message is displayed at the lower left part of the screen.
KEY IN NUMBER OF PAPER LENGTH EXAMPLE 11-INCH;0,12-INCH;1.
LINE NUM.=
(5) Key in ’0 <NL>’ for 11-inch chart, or ’1 <NL>’ for 12-inch chart.
4.5.2 Paper Command
ww w.
cn cc
en ter
.co m
4. OPERATION B–61863E/10PMC PROGRAMMER (SYSTEM P series)
654
(1) Transfer of sequence program into PMC-RA1/RA2/RB/RC
A generated sequence program is transferred into PMC-RA1/RA2/RB/RC. Connect SYSTEM P series to CNC by using a Reader/Puncher interface cable. (For this cable, see Appendix 1.) for the connection method and places, see Section 3.2. Steps 1 to 6 show the operation on the CNC side.
1 Pressing soft keys <SYSTEM> and [PMC] displays the PMC screen. Steps 2 to 4 below must be performed when [I/O] is not displayed on the PMC screen. For a 9-inch CRT, press soft key [NEXT] to check that [I/O] is not on the screen.
2 Pressing soft keys [PMCPRM] and [KEEPRL] on the PMC screen displays the keep relay setting screen.
3 Set K17.1 to 1 on the keep relay setting screen.
4 Pressing soft key [RETURN] displays the PMC screen.
5 On the PMC screen, pressing soft key [I/O] displays the I/O screen. For a 9-inch CRT, press soft key [NEXT] before pressing soft key [I/O].
6 Pressing soft key [EXEC] on the I/O screen puts the system in the EXECUTING state.
7 Turn on F8 key from the SYSTEM P series menu screen. (Also turn on F12 key when the C language program is included.)
8 Key in menu number ”5 <NL>”.
Now, the program transfer is started. In SYSTEM P series, the transfer screen is displayed and the transfer counter is counted up. After transfer, the screen is reset to menu screen. In CNC screen, the COUNTER display is counted up.
i) When an alarm 31 occurs on SYSTEM P series screen;
Cause 1 : Reader/Puncher interface cable is defective. Remedy : Use the specified cable. Cause 2 : Reader/Puncher interface connector is not
connected to correct channel SYSTEM P series. Remedy : Connect the connector correctly.
ii) When the transfer counter of SYSTEM P series screen is counted up and normally terminated, but data are not transferred to the PMC RAM correctly;
Cause 1 : Reader/Puncher interface connector is not connected to CNC.
Remedy : Connect it correctly. Cause 2 : CNC screen is not set to ”I/O of PMC” screen. Remedy : Set the I/O screen by the soft key. Cause 3 : An error occurs in ACI channel due to a certain
cause. Remedy : Turn off the power supply once, and turn it on
again.
(2) Output method to floppy
1 Turn on F7 key. (Also turn on F12 key when the C language program is included.)
4.5.3 ROM Format Program
*Procedure when a program cannot be transferred from SYSTEM P series to RAM of PMC
ww w.
cn cc
en ter
.co m
B–61863E/10 4. OPERATIONPMC PROGRAMMER (SYSTEM P series)
655
2 Set the floppy to the disk.
3 Key in menu number ”5 <NL>”.
4 The screen is switched and the following message is displayed:
SET FD & KEY IN ”OK”,”KILL” OR ”NO”. FD0= OK <INT OR ADD><P OR NP,></DATE,> <DRIVE>@NAME FD0 =
When loading data starting with the start of the floppy, specify INT. When loading data after the loaded files, specify ADD. After outputting all data, the screen is reset to the program menu screen. The menu screen is also reset by keying in ”NO <NL>”.
(3) Method of outputting data to FA writer or PMC writer (EPROM for PMC/ROM module write)
1 Check the setting of the ROM writer. (See Section 3.4, ”Setting of I/O Device.”)
2 Put the FA writer in the REMOTE mode by the [REMOTE/LOCAL] key before using it.
3 Turn on F9 key. (Turn on F12 key when the C language program is included.)
4 Key in menu number ”5 NL”.
5 The screen is switched to the title screen, and the following message is displayed.
SET EPROM OR ROM MODULE & KEY IN ”OK” OR ”NO”. KEY IN =
Check the above message. For the PMC-RA1/RA2/RB, insert the EPROM for the PMC into the FA Writer or PMC Writer. For the PMC-RC, insert the ROM module for the PMC into the FA Writer or PMC Writer. Note, however, that ROM modules are not available with the PMC Writer.
6 Key in ”OK <NL>” or ”NO <NL>”.
When ”OK <NL>” is keyed in, data are output from the SYSTEM P series memory to the EPROM for PMC or ROM module. After normal end, the screen is reset to the menu screen.
ww w.
cn cc
en ter
.co m
4. OPERATION B–61863E/10PMC PROGRAMMER (SYSTEM P series)
656
*** TRANSFER ROM DATA TO PMC WRITER ***
01 MACHINE TOOL BUILDER NAME 02 MACHINE TOOL NAME 03 PMC & NC NAME 04 PMC PROGRAM NO 05 EDITION NO 06 PROGRAM DRAWING NO 07 DATE OF PROGRAMING 08 PROGRAM DESIGNED BY 09 ROM WRITTEN BY 10 REMARKS
PMC CONTROL PROGRAM SERIES : 4061 EDITION :01
MEMORY USED : 00.0 KBYT SCAN TIME : 008 MSEC
SET EPROM OR ROM MODULE & KEY IN ’OK’ OR ’NO’ KEY IN =
*** TRANSFER ROM DATA TO PMC WRITER ***
01 MACHINE TOOL BUILDER NAME 02 MACHINE TOOL NAME 03 PMC & NC NAME 04 PMC PROGRAM NO 05 EDITION NO 06 PROGRAM DRAWING NO 07 DATE OF PROGRAMING 08 PROGRAM DESIGNED BY 09 ROM WRITTEN BY 10 REMARKS
PMC CONTROL PROGRAM SERIES : 4061 EDITION :01 MEMORY USED : 00.0 KBYT SCAN TIME : 008 MSEC
MODE=BLANK ROML=10 ROMH=EF MEM FF AD=000000 ALARM=083
OUTPUT=
Display mode
BLANK : Blank check
PROGRAM : Write
VERIFY : Compare
Enter ’E NL’, and restart from menu.
Error number
ww w.
cn cc
en ter
.co m
B–61863E/10 4. OPERATIONPMC PROGRAMMER (SYSTEM P series)
657
Enter source programs from the designated input unit, and compare them. The operation method is the same as source program entry, except that ”6” shall be designated as the menu number.
(1) Comparison with PTR
1 Turn on F1 key.
2 Key in menu number ”6 NL”.
(2) Comparison with FD
1 Turn on F2 key.
2 Key in menu number ”6 <NL>”.
3 The screen is switched, and the following message is displayed.
SET FD & KEY IN ”OK”, ”KILL” OR ”NO”, FD0=OK<DRIVE> <@NAME OR : NUMBER> FD0=
Specify the file name to be compared.
After normal end, the screen is automatically reset to the menu screen.
Also, this menu screen is reset by keying in ”KILL
Compare ROM format program by reading it from the specified input device. The operation method is the same as in ROM format program input, except that menu number ”7” is specified.
(1) Comparison with FD
1 Turn on F2 key.
2 Key in menu number ”7 <NL>”.
3 The following operation is the same as in 4.6.1 2)– 3 and later.
(2) Comparison with PMC–RAM
Display the I/O of PMC screen on the CRT/MDI before executing the following operation.
1 Turn on F8 key.
2 Key in menu number ”7 <NL>”.
Note when comparing P–G and PMC–RAM : The comparison between P–G and PMC–RAM should be performed immediately after the data transfer. (When the comparison is made after the output of ROM format data, the parity portion of data may become error.)
(3) Comparison with EPROM for PMC and ROM module
1 Turn on F9 key.
2 Key in menu number ”7 <NL>”.
The screen is switched, and the comparison of ROM program is started. After normal end, the screen is automatically reset to the menu screen.
4.6 COLLATION OF PROGRAM
4.6.1 Collation of Source Programs
4.6.2 ROM Format Program
ww w.
cn cc
en ter
.co m
4. OPERATION B–61863E/10PMC PROGRAMMER (SYSTEM P series)
658
Delete ladder programs, symbols, message, titles, and I/O module data being loaded into SYSTEM P series memory according to the following procedure.
1 Put the screen to menu screen.
2 Key in menu No. ”9 <NL>”.
3 The screen is switched, and the following message is displayed at the lower left part of the screen. See Fig. 4.7.
KEY IN ”1,2,3,4 OR 5” OR ”NO” CLEAR/KEEP =
4 Key in data number of the data to be deleted or key in ”NO <NL>”, if it is not desired to delete any data. After processing, the screen is automatically reset to the programmer menu screen.
KEY IN ONE OF THE FOLLOWING NO.S WHICH YOU WANT TO CLEAR DATA
NO. ITEMS 01 TITLE DATA 02 SYMBOL DATA 03 LADDER DATA 04 MESSAGE DATA 05 I/O MODULE DATA 06 ALL DATA CLEAR
KEY IN ’1. 2. 3. 4. 5 OR 6 OR ’NO’ CLEAR/KEEP =
����4.7 Delection of sepuence programs
Example)
i) When all title data are to be deleted;
Key in ”1 <NL>”.
ii) When all symbol data are to be deleted;
Key in ”2 <NL>”.
iii) When all ladder programs are to be deleted;
Key in ”3 <NL>”.
iv) When all message data are to be deleted;
Key in ”4 <NL>”.
v) When I/O module data are to be deleted;
Key in ”5 <NL>”.
vi) When all titles, symbols, ladders, messages and I/O module data are to be deleted;
Key in ”6 <NL>”.
vii) When no data are to be deleted;
Key in ”NO <NL>”.
4.7 DELETION OF PROGRAMS
ww w.
cn cc
en ter
.co m
B–61863E/10 4. OPERATIONPMC PROGRAMMER (SYSTEM P series)
659
Key in <NL> alone at the menu screen to display the R key menu screen. Key in R3 at the R screen, and the display ’REQUEST=’ will appear at bottom left of the screen, making key inputs possible. Key in <NL> on this screen to return to the R key menu screen.
R3 executes a large number of processings. For the FAPT LADDER system, however, note the following two points:
(1) Floppy file name output
1 Press R3 key at the R key menu screen.
2 This will change the screen contents, displaying ’REQUEST=’ at its left bottom.
3 Key in FDLIST <NL>.
4 The file name will appear on the CRT display. To print out the file name, turn on the F5 (printer) key in advance.
(2) Change of I/O devices (for output to a printer other than that of PPR)
1 Key in IO PRT, CN3, F5 <NL> while the screen displays ’REQUEST=’. When the F5 key has been turned on in advance, the data is printed on the printer connected to connector CN3 on the SYSTEM P series rear side.
4.8 SPECIAL USES OF THE R3 KEY
ww w.
cn cc
en ter
.co m
4. OPERATION B–61863E/10PMC PROGRAMMER (SYSTEM P series)
660
Using the P–G Mate/Mark II software keys (in the case of P–G Mate, the F keys), sequence program creation and editing can be performed directly by the ladder diagram.
In the following explanation, [P–G Mate] is called [Mate] and [P–G Mark II] is called [Mark II]. When it is possible to use this function, in the R key menu screen
R1: EDIT
is displayed. (In systems where [UNUSED] is displayed, it cannot be used.)
The following items are present in the edit function.
� Ladder diagram direct editing by software key and cursor (input, addition, deletion and substitution)
� Copying, moving and deletion of multiple lines of the ladder
� Optional relay and coil reference
� Comment display on ladder diagram
(1) This function operates only when the P–G Mate main unit is version 04 and later. (When the power supply is turned on, it is displayed in the lower right part of the initial screen.)
(2) The function keys <F keys> are used instead of the soft keys (P–G Mark II). In the description that follows, an explanation for the soft keys (P–G Mark II) is given. When P–G Mate is used, operate with the function keys. At this time, in order to make the F key respond and display the screen bottom line, the F key lamp illuminates to correspond to those items displayed with shaded characters on the screen.
The program menu appears in order to operate this function.
The program menu is displayed when the <R1> key is pressed from the R menu screen. The program menu is displayed above the soft keys (in the case of P–G Mate, the function keys) as shown in the screen below, and gives significance to the keys.
(1) Keyboard
Refer to Section ”3.3 SYSTEM P keyboard”.
(2) Relationship betweeen program menus and soft keys
The relationship between the program menus and the soft keys is shown in the following for each function. These menus are changed by pressing the related keys. For menu contents, refer to the explanations described later. Utilize this figure when operating.
4.9 DIRECT EDITING BY LADDER DIAGRAM
4.9.1 Outline
4.9.2 Limitations in SYSTEM P Mate
4.9.3 Selection of Program Menu by Soft Keysww
w. cn
cc en
ter .co
m
B–61863E/10 4. OPERATIONPMC PROGRAMMER (SYSTEM P series)
661
Press the <R1> key
54321
[ COMAND ]
R0 : PROGRAMMER R1 : EDIT R2 : UNUSED R3 : REQUEST
FUNCTN or or COMAND
[ COMAND ]
SEARCHADRESS COPY MOVE
R keys menu screen
INSNET DELNET INSERT
1 [ DELNET ]
C-UPC-DOWNSEARCHEXEC CANCEL
2 [ INSERT ]
INSNET INSLIN INSELM
3 [ ADRESS ]
SEARCHINSNET DELNET SYMBOLINSERT COPY MOVE
4 [ SEARCH ]
TOP BOTTOM W-SRCHSRCH N-SRCH F-SRCH C-DOWN C-UP
5 [ COPY/MOVE ]
C-UPCANCEL C-DOWNSEARCHUNTIL
C-UPTO CANCEL C-DOWNSEARCH
ww w.
cn cc
en ter
.co m
4. OPERATION B–61863E/10PMC PROGRAMMER (SYSTEM P series)
662
In order to input the sequence program, press the <R1> key from the R key menu. The soft key menu program is displayed, and in the case that the sequence program has not yet been input, only the left and right vertical lines of the ladder diagram are displayed on the screen.
Start inputting a program with the screen in this state.
Input a ladder diagram program by moving the cursor to the desired input position using the cursor key.
The following description shows an example of the input of a program of basic instruction and a program of functional instruction.
(1) Basic instruction program input
R0.1 R10.2 R20.2R1.7
X2.4
1 Press the soft key [ ] after moving the cursor to the start position.
Symbol [ ] is input at the cursor position and HORIZONTAL LINE ILLEGAL is displayed at the lower right part of the screen. This is a cautionary message which shows that the ladder diagram horizontal line is not yet completely created. Input the continuation address and bit data.
2 Press the <NL> key after inputting R0.1 using the keyboard. The address is set on the contact and the cursor shifts rightward.
3 Input A contact with address R10.2 by the above methods 1 and 2.
4 Input B contact R1.7.
Press the soft key [ ], input address R1.7, and then press the <NL> key. The address is set on the B contact and the cursor shifts rightward.
5 Press software key [ ] with the cursor position unchanged.
A right horizontal line is automatically drawn, and a relay coil symbol is entered near the right vertical line.
6 Press the <NL> key after inputting address R20.2.
The cursor automatically shifts to the input start position of the next line.
7 Next, input the OR condition.
Press the soft key [ ], input address X2.4, and then press the <NL> key. The address is set on the B contact and the cursor shifts rightward.
4.9.4 Sequence Program Input
ww w.
cn cc
en ter
.co m
B–61863E/10 4. OPERATIONPMC PROGRAMMER (SYSTEM P series)
663
8 Press the soft key [ ] to input a horizontal line
When inputting the horizontal bar key [ ], by keying in a numerical value and pressing this bar key, a horizontal line for the frequency will be drawn. However, this horizontal line will not be drawn over the LINE.
9 Because the upper right line OR is necessary, press the soft key [ ] and input the upper right vertical line to end.
Net is repeated
Downward from the net is erased
Section C is erased
A
B
C
NOTE 1 When the ladder program displayed on the screen is incomplete (when, for example, addresses
have not been entered) or erroneous, the screen cannot be scrolled even when a page key is pressed. Before attempting to scroll the screen, therefore, ensure that the ladder program is complete and error–free.
2 Since 8 contacts + coil are specified to be inputtable per line from the screen, any more contacts in excess of this amount cannot be input. However, this restriction does not apply to a sequence program created with mnemonic format. When a sequence program, transferred from the offline programmer to the PMC, exceeds the length which can be displayed on a single line, the program is displayed using two or more lines, linked with a continuation symbol. This continuation symbol is not erasable by software key [±±±±].
3 Below is shown an example with an error net, or part of it, erased with no error display.
1 Case of multiple nets on 1 LINE
2 Case of multiple WRT results in 1 NET difference as shown in the diagram below.
ww w.
cn cc
en ter
.co m
4. OPERATION B–61863E/10PMC PROGRAMMER (SYSTEM P series)
664
NOTE 3 Case of exceeding the highest rank WRT in 1 NET
Section B is erased
A
B
C
(2) Case of functional instruction program input
To input a functional instruction, input the soft key [FUNCTN], and then input the functional instruction name or SUB number. Further, when inputting a functional instruction, after keying in the functional instruction number, it does not matter if the [FUNCTN] key is pressed. When you can not remember the instruction name or SUB number, the functional instruction table corresponding to the instruction symbol and SUB number can be displayed on the screen. The functional instruction table is automatically displayed after inputting an incorrect instruction name or SUB number and then pressing the [FUNCTN] key, or by pressing the [FUNCTN] key only without inputting any other key. In order to return from the functional instruction table to the original ladder diagram, press the [FUNCTN] key.
(1) (2) (3) (4) MOVE
(SUB 8)
Output address
Input address
Low rank 4 bit logic data
High rank 4 bit logic data
When inputting a functional instruction with this function, the functional instruction parameters are input vertically as shown in the diagram below.
ACT
Control condition
MOVE
(SUB 8)
(1)
(2)
(3)
(4)
ww w.
cn cc
en ter
.co m
B–61863E/10 4. OPERATIONPMC PROGRAMMER (SYSTEM P series)
665
1 Input a control condition.
Press soft key [ ], input the address and bit data, and then press the <NL> key. The cursor shifts rightward.
2 Input an instruction
Press the soft key [FUNCTN], input SUB number 8, and then press the <NL> key. A functional instruction diagram appears as shown in the above figure.
3 Input an instruction parameter
Input the high rank 4 bit logic data of the first parameter, and then press the <NL> key. The cursor automatically lowers downwards. Input the three residual parameters in order.
The method of substituting a created sequence program is the same as that described earlier in Section 4.9.4.
Move the cursor to the program part you want to alter and input the change data.
From the soft key program menu, press the soft key [COMAND] and operate with the soft keys shown below.
When you want to end the program menu shown below, press the soft key at the extreme left.
COPYDELNET ADRESSINSERTINSNET MOVESEARCH
INSNET INSLIN INSELM
A sequence program is added in four ways on the ladder diagram as described below.
(1) Case of adding a relay contact in the horizontal direction
When the addition is horizontal
Case of adding
Move the cursor to the position where you want to add, and input te program by the method described in Section 4.9.4.
4.9.5 Substitution of Sequence Programs
4.9.6 Additions to Sequence Programs
ww w.
cn cc
en ter
.co m
4. OPERATION B–61863E/10PMC PROGRAMMER (SYSTEM P series)
666
When a vertical line influences the addition
Case of adding
ÕÕÕ ÕÕÕ
Cursor
1 Move the cursor to the above position.
2 Press the soft key [] in order to erase the upper left vertical line.
The upper left line, vertical to the cursor disappears.
3 Press the soft key [ ] in order to produce an upper right line vertical to the cursor. Then, press the soft key [ ]. Both vertical and horizontal lines are created.
4 Shift the cursor to a line of contact addition position.
5 Press the soft key [ ] to add contacts.
(2) Adding a vertical line
For adding a vertical line as shown in the above diagram, the area to be added is required. In order to produce this area, shift the entire part after the part to be added by one line by moving the cursor to the ladder diagram within the dotted line range (an optional part is allowable) and then pressing the soft key [INSNET].
The lower ladder diagram shifts downward by one line, each time the [INSNET] key is pressed thereby producing the area to which a line is to be added.
If a surplus addition area remains unused after the addition processing ends (for example, if an area corresponding to 3 lines has been reserved when two lines have been added), there is no problem if the area is left remaining.
Addition
1 Move the cursor to the ladder diagram bounded by a dotted line.
2 Press the soft key [INSNET].
ww w.
cn cc
en ter
.co m
B–61863E/10 4. OPERATIONPMC PROGRAMMER (SYSTEM P series)
667
3 Pressing the [INSNET] key without keying in numeric values will cause one line to be inserted.
4 Pressing the [INSNET] key with keying in numeric values will cause the line to be inserted the number of times specified by the numeric value input.
5 After setting the cursor to a position to which you want to add, press the soft key [ ]. After setting address data, press the <NL> key. The cursor shifts rightward.
6 Press the shift key [ ] to create an OR circuit.
(3) Inserting the 1 NET sequence program LINE.
Space lines are inserted in units of 1 LINE.
1 Key in the number of lines you want to insert and press the [INSLIN] key. The inputted number of lines will be inserted. (If the number of lines to be inserted is not keyed in, but the [INSLIN] key is pressed, one line will be inserted.)
ÕÕÕ ÕÕÕ
Crusor
ÕÕÕ ÕÕÕa
b
If the [INSLIN] key is pressed with the cursor in the above position, the state shown in the diagram on the right will occur.
(4) Inserting the 1 NET sequence program elements
Elements are inserted in 1 element units.
1 Key in the number of elements you want to insert and press the [INSELM] key. The inputted number of elements will be inserted. If a number of elements prefixed by the character ”A” are keyed in and the [INSELM] key is pressed, the elements are inserted after the cursor. (If the number of elements to be inserted is not keyed in, but the [INSELM] key is pressed, one element is inserted.)ww
w. cn
cc en
ter .co
m
4. OPERATION B–61863E/10PMC PROGRAMMER (SYSTEM P series)
668
Cursor
ÕÕÕ ÕÕÕ
ÕÕÕ ÕÕÕ
a
b
If the [INSELM] key is pressed with the cursor in the position on the left, the state shown in the diagram on the right will occur.
Cursor
ÕÕÕ ÕÕÕ
ÕÕÕ ÕÕÕ
b
a
If the character ”A” is keyed in and the [INSELM] key is pressed with the cursor in the position on the left, the state shown in the diagram on the right will occur.
(1) For deleting part of a program, use the following three kinds of soft keys and delete after setting the cursor to the unnecessary part.
[– – – –] : Deletion of horizontal lines, relay contacts coils, etc.
[ ] : Deletion of upper left vertical line to the cursor
[ ] : Deletion of upper right vertical line to the cursor
(2) For the deletion of a program net (part corresponding to the section from RD instruction to WRT instruction), use the [DELNET] key.
(3) Deleting multiple NETs in NET units
SEARCHDELNET ADRESSINSERTINSNET MOVECOPY
EXEC CANCEL SEARCH C-DOWN C-UP
4.9.7 Deleting a Sequence Program
ww w.
cn cc
en ter
.co m
B–61863E/10 4. OPERATIONPMC PROGRAMMER (SYSTEM P series)
669
1 Deletion
Move the cursor to the NET you want to delete and press the [DELETE] key. The net you want to delete will be displayed in red. (In the case of Mate, in reversal display.)
2 Deleting multiple nets
Move the cursor with the cursor DOWN key, [C–DOWN] key, or [SEARCH] key to display in red the NET you want to delete. (In the case of Mate, in reversal display.) Further, key in a numerical value and press the [C–DOWN] key to move the cursor the number of times specified by this value.
3 Execution Press the [EXEC] key. . . . . .
Cancellation Press the [CANCEL] key. . . .
4 If you already know the NET you want to delete, move the cursor to the first NET, key in the number of NETs, and press the [DELNET] key to omit steps 1 and 2.
Search a sequence program by using the following soft keys.
(1) Soft key [TOP]
When this key is pressed, the start of the sequence program is desplayed on the screen and the cursor also sifts to the program start position.
(2) Soft key [BOTTOM]
When this key is pressed, the last of the sequence program is displayed on the screen and the cursor also shifts to this program end position.
(3) Soft key [SRCH]
In this search, you specify an address you want to search and it searches the specified address from the program of the cursor part on this screen to the last part of the program and displays the address on the screen. There are two methods to specify the address you want to search.
(a) Method of specifying the address by the cursor
Set the cursor to the relay contact part of the address you want to search and press the soft key [SRCH].
The system searches the same address as the address specified by the cursor from the cursor part of the program currently displayed on the screen to the end of the program.
When the same address is found, the program part is displayed on the screen, and the cursor shifts to that address part. If the same address is not found as a result of this search, the cursor remains in the same position.
When finishing, press the soft key on the extreme left.
(b) Method of specifying the address by input
Input the address you want to searcch by using address and numeric keys, then press the soft key [SRCH].
The same address as specified is searched from the program of the cursor part currently displayed on the screen to the last part of the program.
4.9.8 Searching a Sequence Program
ww w.
cn cc
en ter
.co m
4. OPERATION B–61863E/10PMC PROGRAMMER (SYSTEM P series)
670
When the same address is found, the program part is displayed on the screen, and the cursor shifts to that address part. If the same address is not found as a result of this search, an error is displayed.
(4) Soft key [W–SRCH] This key specifies an address of the relay coil to be searched, and then searches the relay coil of the specified address from the program at the cursor part to the end of the program on this screen. Then, it displays the relay coil on the screen. Two methods are available to specify the address of the relay coil to be searched. (a) Method of specifying the address by cursor
Set the cursor to the relay contact of the relay coil to be searched, and press the soft key [W–SRCH]. The corresponding relay coil is searched from the program of the cursor part to the end of the program. When the relay coil is found, the program part is displayed on the screen, and the cursor shifts to the relay coil. If no corresponding relay coil is found as a result of the search, an error occurs.
COPYDELNET ADRESSINSERTINSNET MOVESEARCH
TOP BOTTOM SRCH W-SRCH C-UPN-SRCH F-SRCH C-DOWN
When you want to search the same address as specified here. Set the cursor to this position and press the soft key [SRCH].
X2.0
R0.5
R5.0
R21.0
R20.1
R0.4
R0.5
ÕÕÕ ÕÕÕ
ÕÕÕ ÕÕÕ
R20.1
X4.2
R6.4
R20.2
Y2.0
R2.2
R10.5
The same address is searched and the cursor shifts to this position.
Y1.2
(b) Method of specifying the address by input Input the address of the relay coil to be searched by both address and numeric keys, and then press the soft key [W–SRCH]. The specified address relay coil is searched from the program of the cursor part currently displayed on the screen to the end of the program.
ww w.
cn cc
en ter
.co m
B–61863E/10 4. OPERATIONPMC PROGRAMMER (SYSTEM P series)
671
When the specified address relay coil is found, the program part is displayed on the screen, and the cursor shifts to the relay coil.
If no relay coil is found as a result of the search, an error occurs.
(5) Soft key [N–SRCH]
This displays the ladder with the specified NET number from the top of the screen. If the number is not keyed in, but the [N–SRCH] key is pressed, the display is scrolled down by one NET.
(6) Soft key [S–SRCH]
Key in the functional instruction name or number and press the [S–SRCH] key to start searching the functional instruction. When the [S–SRCH] key is pressed during execution of a functional instruction, the functional instruction with the same number as this instruction is searched.
(7) Searching with cursor keys (<�> , <�> )
� Key in the address or symbol and press the cursor to start searching the NET No.
� Key in the NET NO. and press the cursor key to start searchng the NET NO.
� Key in the functional instruction name or functional instruction number starting with ”S” and press the cursor key to start searching the functional instruction.
Example) Key in ”END1” or ”S1” and press the cursor to search functional instruction END1.
The sequence program with multiple NETs is copied in units of NETs. Specify the NET to be copied and specify the copy position with the cursor. When copying, the number of copies can also be specified.
1 Copying
Move the cursor to the NET you want to copy and press the [COPY] key. The NET you want to copy will be displayed in yellow (in the case of Mate, in reversal display).
2 Copying multiple NETs
Move the cursor with the cursor UP/DOWN key, [C–UP] key, [C–DOWN] key, or [SEARCH] key to display in yellow the NET to be copied. (In the case of Mate, in reversal display.) Further, if you in a numerical value and press the [C–UP] or [C–DOWN] key, you can scroll up or down the screen by the number of times specified by this value.
3 Setting the NET to be copied
Press the [UNTIL] key.
4 Specifying the copying address
Copying is performed by the [TO] key. At this time, the NET is copied in the direction above the cursor. If the number of copies is keyed in before the [TO] key is pressed, the NET is copied that specified number of times.
5 Further, if the NET you want to copy is already known, if the cursor is moved to the first NET and the number of NETs is keyed in, then by pressing the [COPY] key, steps 1 to 3 can be omitted.
4.9.9 Copying a Sequence Program
ww w.
cn cc
en ter
.co m
4. OPERATION B–61863E/10PMC PROGRAMMER (SYSTEM P series)
672
COPYDELNET ADRESSINSERTINSNET MOVESEARCH
UNTIL CANCEL SEARCH C-UPC-DOWN
TO CANCEL SEARCH C-UPC-DOWN
NOTE An error NET cannot be copied.
A sequence program with multiple NETS is moved in units of NETs. Specify the NET to be moved and specify the move position with the cursor. When moving, the number of moves can also be specified.
1 Moving
Move the cursor to the NET you want to move and press the [MOVE] key. The NET you want to move will be displayed in yellow. (In the case of Mate, in reversal display.)
2 Moving multiple NETs
Move the cursor with the cursor UP/DOWN key, [C–UP] key, [C–DOWN] key, or [SEARCH] key to display in yellow the NET to be moved. (In the case of Mate, in reversal display.) Further, if you key in a numerical value and press the [C–UP] or [C–DOWN] key, you can scroll up or down the screen by the number of times specified by this value.
3 Setting the NET to be moved
Press the [UNTIL] key.
4 Specifying the moving address
Moving is performed by the [TO] key. At this time, the NET is moved in the direction above the cursor.
5 Further, if the NET you want to move is already known, if the cursor is moved to the first NET and the number of NETs is keyed in, then by pressing the [MOVE] key, steps 1–3 can be omitted.
4.9.10 Moving a Sequence Program
ww w.
cn cc
en ter
.co m
B–61863E/10 4. OPERATIONPMC PROGRAMMER (SYSTEM P series)
673
COPYDELNET ADRESSINSERTINSNET MOVESEARCH
UNTIL CANCEL SEARCH C-UPC-DOWN
TO CANCEL SEARCH C-UPC-DOWN
NOTE An error NET cannot be copied.
(1) Symbol and comment data display
Symbol data and comment are displayed together with a ladder diagram on the screen as follows.
When symbol data and comment are defined in signal addresses in the program, the signal name and comment are displayed as shown in the above diagram. When converting the symbol and address display, press the shift key [ADRESS or SYMBOL].
(2) Symbol input and search in the sequence program
When symbol data is defined in signal addresses in the sequence program, input and reference can be performed by the symbols. (Address and symbol are only different in operation.) If neither symbol data nor comment is defined at an address, the address is displayed as it is.
4.9.11 Symbol Data Display
ww w.
cn cc
en ter
.co m
4. OPERATION B–61863E/10PMC PROGRAMMER (SYSTEM P series)
674
An address is displayed if a symbol is not defined.
MA
R5.4
SPDALM
Signal name (within 6 characters)
X2.4 R2.2 Y4.3 ATCALM R100.1 MRDY
APCALM MALM
R120.1 TIND D20.7 R52.1
APC
MACHINE
READY
10 lines
Comment (within 30 characters)
MACHINE
ALARM
Signal name (within 6 characters)
The main function of each soft key can be directly selected from the [COMAND] key.
After keying in the characters shown below, press the [COMAND] key. [ ] shows parts that can be omitted. Further, the ”n” appearing after the characters signifies that it is also posssible to input a numerical value. For example, after keying in ”D2”, pressing the [COMAND] key results in the same operation as keying in 2 and pressing the [DELNET] key.
I [NSERT]
D [ELNET] [n ]
A [DRESS]
SY [MBOL]
S [EARCH]
C [OPY] [n ]
M [OVE] [n ] n :numerical value
The creation and search of programs is performed by pressing the software keys of the above menu.
4.9.12 Compressed Input by [COMAND] Key
ww w.
cn cc
en ter
.co m
B–61863E/10 4. OPERATIONPMC PROGRAMMER (SYSTEM P series)
675
NOTE The software keys [ or ] and [ or ] are used to create or delete the upper left vertical line or the upper right vertical line on the ladder diagram. The solid line display of the vertical line indicates creation; the dotted line display of the vertical line indicates deletion. As to which menu will appear above the software keys, is decided by the ladder diagram form and the cursor position.
In the program menu shown below, press the extreme left software key.
FUNCTN or or COMAND
NOTE When an error NET exists, ERROR NET NO. is displayed and you cannot end the edit. End after correcting the erroneous NET.
4.9.13 Ending Edit of a Sequence Program
ww w.
cn cc
en ter
.co m
4. OPERATION B–61863E/10PMC PROGRAMMER (SYSTEM P series)
676
The ladder program can be stored in or fetched out of a floppy cassette/FA card by connecting P–G and floppy cassette adapter/FA card adapter by using this function enables reading the program stored in a floppy cassette/FA card by using PMC RAM into P–G or reading the program stored in a floppy cassette/FA card by using P–G into PMC RAM. The usable adapters are as follows:
� FANUC cassette adapter 3 (A13B–0131–B001)/cassette F1 (A87L–0001–0038)
� FANUC floppy cassette adapter (A13B–0150–B001)/floppy cassette (A87L–0001–0039)
� FA card adapter (A13B–0148–B001)/FA card (A87B–0001–0108)
When using the FANUC floppy cassette adapter/FA card adapter, change the settings of the input/output devices by the following ‘IO commands’.
1 Press the R3 key on the R key menu screen. ‘REQUEST=’ is displayed lower left on the screen, and keying in is permitted.
2 Key in ‘IO BCA, CN2, F13, F14 [NL]’. The floppy cassette adapter/FA card adapter is assigned to channel 2.
3 To return the assignment to channel 2 to PMC WRITER, key in ‘IO AUX, CN2, F9 [NL]’.
1 Turn on F13 key.
(Turn on F12 too, when C language program is included.)
2 Key in the menu No. ‘3 [NL]’.
3 (For PMC–RC only) Enter the type of a ROM module to be used. (See the following note for selecting ROM module B or C.)
SELECT THE TYPE OF ROM MODULE ACCORDING TO THE FOLLOWING NO. ROM MODULE 0:A, 1:B, 2:C No. =
4 The message is displayed lower left on the screen. SET BC & KEY IN ‘OK’ OR ‘NO’ BC = OK <FILE NO. OR NEXT> BC =
5 Set the floppy cassette/FA card in the adapter, and enter the following data.
4.10 INPUT/OUTPUT OF LADDER PROGRAM WITH P–G AND FLOPPY CASSETTE/FA CARD
4.10.1 General
4.10.2 Setting I/O Commands
4.10.3 Program Input
ww w.
cn cc
en ter
.co m
B–61863E/10 4. OPERATIONPMC PROGRAMMER (SYSTEM P series)
677
6 ‘OK 1 [NL]’ (specify file No.) or ‘OK NEXT [NL]’ (read the next file).
7 The screen changes, and reading the program from the floppy cassette/FA card starts.
8 When the program reading ends normally, the screen will automatically return to the programmer menu. If any error is detected during the program reading, ‘PART=’ is displayed lower left on the screen. Check the error contents, and key in ‘E [NL]’. The screen will return to the programmer menu.
NOTE When ROM module B or C is selected during use of SYSTEM P Mate, the program is overlaid. In this case, insert the work floppy disk for the external memory into drive 1.
1 Turn on F14 key.
(Turn on F12 too, when C language program is included.)
2 Key in the menu No. ‘5 [NL]’.
3 The message is displayed lower left on the screen. SET BC & KEY IN ‘OK’ OR ‘NO’ BC = OK <INT OR ADD OR FILE NO.> BC =
4 Set the floppy cassette/FA card in the adapter, and enter the following data.
5 ‘OK INT [NL]’ (write at the floppy head), ‘OK ADD [NL]’ (write in the next file) or ‘OK1 [NL]’ (specify file No.).
CAUTION When specifying file number, put the numbers in the ascending order. If the file No. located at the middle of a floppy disk is specified, the files after that will be deleted.
6 The screen changes, and writing the program into the floppy cassette/FA card starts.
7 When the program writing ends normally, the screen will automatically return to the programmer menu. If any error is detected during the program reading, ‘PART=’ is displayed lower left on the screen. Check the error contents, and key in ‘E [NL]’. The screen will return to the programmer menu.
4.10.4 Program Output
ww w.
cn cc
en ter
.co m
4. OPERATION B–61863E/10PMC PROGRAMMER (SYSTEM P series)
678
1 Turn on F13 key.
(Turn on F12 too, when C language program is included.)
2 Key in the menu No. ‘7 [NL]’.
3 The following operations are the same as those after 3 in ‘Program input’.
NOTE For the program which is output from PMC–RA1/RA2/RB/RC RAM board to the floppy cassette/FA card by specifying LADDER of ALL, there is no problem in the input/collation. It is impossible to make input/collation for the program which is output by specifying PARAM.
4.10.5 Program Collation
ww w.
cn cc
en ter
.co m
B–61863E/10 5. FILE EDITING FUNCTIONPMC PROGRAMMER (SYSTEM P series)
679
5 FILE EDITING FUNCTION
ww w.
cn cc
en ter
.co m
5. FILE EDITING FUNCTION B–61863E/10PMC PROGRAMMER (SYSTEM P series)
680
This function edits floppy disk data in the unit of file. When key in only <NL> the menu screen of R key appears key in R3 key on the R key menu. ’REQUEST=’ will be displayed on the left below part of the screen to show a key–in enable condition.
NOTE The format for file designation is as follows: [drive No.] @ file name
: file No.
The file attributes are as shown below.
(1) File number
(2) File name
(3) File creation date
(4) Identification of protection file (protect)
(5) File size
(6) Multi–volume number
These file attributes are attached when writing data into floppy disk.
When writing, the next floppy disk set request message is displayed, so specify date and protection file.
File editing command table
Contents of jobs Name of
command (Instruction)
Contents inputted from keyboard (NL key is inputted at the end of a
command)
Display of file name, or file size
FDLIST FDLI [D, [P,] [S,] [F,] [L,] File designation
Change of file name, date, etc.
RENAME RENA file designation [, ] [,/date] [,@ new file name]
P NP
Deletion of file SCRATCH SCRA file designation
File area condensation CONDENSE COND [drive No.]
Copy of file (This command is effective for SYSTEM P series with 2–floppy disk unit.)
REMOVE REMO [ ,] [file designation]
[, ] [, ] [,/date]
[,@ new. file name]
M A
INT ADD
P NP
Set FD, and key in ’OK’, KILL, or ’NO’.
FD=OK <INT or ADD,> <P or NP,> </data> <drive> <@name>
FD=_
Set the floppy disk and key in as follows.
5.1 GENERAL
ww w.
cn cc
en ter
.co m
B–61863E/10 5. FILE EDITING FUNCTIONPMC PROGRAMMER (SYSTEM P series)
681
OK INT. P , [/date] [drive] [@ file name]
ADD NP
NO
KILL
When reading, the following floppy set request message is displayed.
Set FD, and key in ’OK’, KILL, or ’NO’.
FD=OK <drive.> <@name or : nember>
FD=_
Set floppy disk and key in as follows.
OK [drive number] @ file name
: file number
NO
KILL
In file editing function, the above floppy disk set request message key input parameter can also be used. Now, parameter used in common here here has the following meaning. Specify ’OK’, ’NO’, ’KILL’ and instruct the answer to the set request.
OK After instructing execution of read and write, specify. . . parameter.
NO Cancel read/write to floppy only.. . .
KILL Cancel the specified process.. .
Parameters instructing details of read and write is as follows.
ww w.
cn cc
en ter
.co m
5. FILE EDITING FUNCTION B–61863E/10PMC PROGRAMMER (SYSTEM P series)
682
Parameter Function Notes
INT When writing, write from the head of the floppy
When omitted, it is regarded as ADD. If INT is specified to protection file an error generaters
ADD When writing, add after exising fie protection file, an error generaters.
P Prepare as protection file When omitted, it is regarded as NP. Ready files can be changed by
NP Prepare as ordinary file Ready files can be changed by RENAME command.
Date Specify file preparation date with 6 numbers
Blank when omitted.
Drive number Specify drive number 0 or 1 set with read/write floppy disk. 0 ; Upper unit 1; Lower unit
When omitted, it is regarded as 0. See Note).
@ File name Specify file name (Max. 17 characters). When reading, the first name correspond–ing to the specified names is vallid.
Always specify when writing. When reading, if omitted, the file is valid.
; File number When reading, specify the necessary file number after the :.
With the FDLIST command, file number and file name list can be displayed.
NOTE When specifying drive number and file name or file number, specify without separating, as follows. Example) 0 @ ABC or 1 : 5
When displaying set request message, drive number is decided by the system, and ’FD0=’ or ’FD1=’ is displayed, instead of the ’FD=’ message, to check the drive (unit) to be used. If a drive number is specified then, it will be ignored. (FD0 shows drive 0, and FD1, drive 1).
ww w.
cn cc
en ter
.co m
B–61863E/10 5. FILE EDITING FUNCTIONPMC PROGRAMMER (SYSTEM P series)
683
(1) General form of command
Operation Space Operand
Command name or its abbreviated form (4 leading characters)
_ List of one or more parameters delimited by delimiter symbol ’ , ’ (comma).
A command name consists of plural alphabetic characters, and it can be abbreviated by four leading characters.
An operand consists of parameters peculiar to commands and parameters specified in floppy disk mounting request message.
(2) Execution of operands and commands
If operands are fully designated, a command is executed without displaying any floppy disk mounting request message.
However, a certain command may require many parameters. If these parameters cannot be recalled, specify the command name only. Necessary parameters are indicated in the floppy disk mounting request message. Accordingly, parameters can be input from the keyboard according to this display. The message may be displayed twice separately according to commands. (Old and new names are requested separately in RENAME command, for example.)
5.2 CONFIGURATION OF COMMAND
ww w.
cn cc
en ter
.co m
5. FILE EDITING FUNCTION B–61863E/10PMC PROGRAMMER (SYSTEM P series)
684
This command displays the attributes of files in the floppy disk, such as file name, file size, etc.
a) Input format
[D,] [P,] [S,] [F,] FDLIST
[L,]
@ file name [Drive No.]
: file No.
b) Operand
D : Display of file creation date consisting of 6 characters P : Identification display of protection files S : Display of file size F : Display of size of unoccupied area L: Executes all display by parameters D, P, S, F.
@ file name Displays a file having the designated file name or designated
: file No. file number only. If this designation is omitted, all files are treated as processing objects.
c) This command displays the information (attributes) on the floppy disk files.
If no attribute to be displayed is designated, the file number, file name, and multi–volume number only are displayed. The following example shows the display of all information (L designation)
NO. FILE NAME V. DATE SIZE P. 001 DATA1 830928 72 P 002 DATA2 831028 60 003 DATA3 831028 8 P **** DELETED FILE **** 10 005 DATA4 901022 10 P 006 DATA5 901022 5
FILE USED AREA = 155 DELETED FILE AREA = 10 FREE AREA = 1019
NOTE The numeric characters shown in SIZE, FILE USED AREA, DELETED FILE AREA, and FREE AREA are displayed assuming that 256 characters are 1.
5.3 FDLIST COMMAND — FILE ATTRIBUTE DISPLAY
ww w.
cn cc
en ter
.co m
B–61863E/10 5. FILE EDITING FUNCTIONPMC PROGRAMMER (SYSTEM P series)
685
This command designates a change of the file name, file creation date, and the designation of protection file.
a) Input format
Designation of file to be changedDesignation of file to be changed
@ file name : file No.
P NP
[,/date] [@ new file name]RENAME [drive No.]
b) Function
File attributes are renewed when they are designated by operand parameters. Attributes which are not designated are stored as they are. Protection files can be cancelled, but neither dates nor file names are changeable. The designation of protection files must be cancelled once before changing their attributes.
If all operands are omitted, the system displays an input message to request the designation of a file to be changed. When the file to be changed is designated by keying operation, a message is displayed to input attributes of the file to be changed by keying operation. Designate new data.
If the file to be changed only is designated together with the command, the system asks the file attributes to be changed.
(RENAME: 5 <NL>, for example)
Old attributes (B) and new attributes (A) are displayed by executing this command as shown below, for example.
Example)
RENAME :3, @ NEWNAME <F11>NL> RENA : 3,@NEWNAME NO. FILE NAME V. DATE P.
B: 003 DATA3 901020 A: 003 NEWNAME 901020
5.4 RENAME COMMAND — FILE ATTRIBUTE CHANGE
ww w.
cn cc
en ter
.co m
5. FILE EDITING FUNCTION B–61863E/10PMC PROGRAMMER (SYSTEM P series)
686
This command deletes files of floppy disk.
a) Input format
SCRATCH [drive No.] @ file name : file No.
b) Function
This command deletes the designated file. Even if the file name is displayed by FDLIST, the file name is not displayed any longer. The area occupied by the deleted file must be released by CONDENSE command before writing new data into the area.
This command releases the deleted file area to be employable.
a) Input format
CONDENSE [drive No.]
b) Function
The area occupied by the file deleted by SCRATCH command cannot be employed for writing new data under that condition. By executing this command, all unemploy–able areas can be released. Since it takes time to execute this command, it is recommended to arrange these areas when there are many files to be deleted and the residual capacity of the floppy disk is small.
5.5 SCRATCH COMMAND — DELETION OF FILES
5.6 CONDENSE COMMAND — RELEASE OF DELETED AREA
ww w.
cn cc
en ter
.co m
B–61863E/10 5. FILE EDITING FUNCTIONPMC PROGRAMMER (SYSTEM P series)
687
This command copies files to another floppy disk by using two floppy disk units.
a) Input format
Designation of copying method
Input designation
M input drive @ file name A, No. file No.
INT , P , [/date] , @ new file ADD NP nameREMOVE
Output designation
b) Operand
No. M,A designation:
Specified file is copied with specified file attributes.
M (manual):
Copies designated files one by one.
Floppy disk mounting request message is displayed every file to ask if the file is to be copied or not. If input file is not designated, all files becomes the object to be copied.
If new file name is not designated, input file name is produced. Accordingly, the output designation of REMOVE command is meaningless, because the request for output designation is performed every file.
i) When a file name is designated as an input;
All coincident files having the designated length are treated as processing objects. If @A is desig–nated, for example, all files starting with A are asked.
ii) When a file number is designated as an input;
Files from a file having the designated file number to the last file are treated as processing objects.
A (auto):
All files conforming to the designated conditions are copied. The output designation file name is meaningless. However, P, NP and / date are designated to all copied files with new attributes.
i) If the file name or file number is not designated by input designation, all files of the input floppy disk are copied.
ii) If the file name or file number is designated in input designation, processing is done in the same way as in M designation.
c) Function
This command copies floppy disk files to another floppy disk. Files are output to a floppy disk opposite to the drive number (0, if omitted) designated by input designation. These files are copied by the following three methods.
i) Copy of one file only (Neither M nor A is designated.)
(Ex. 1) REMOVE : 3,P, @ NEW <NL>
In this example, the input/output designations are as follows; Input designation : 3rd file of drive No.0 floppy disk
5.7 REMOVE COMMAND — FILE COPY
ww w.
cn cc
en ter
.co m
5. FILE EDITING FUNCTION B–61863E/10PMC PROGRAMMER (SYSTEM P series)
688
Output designation : File name is ”NEW”, drive No.1 floppy disk with protection
ii) The system asks every file to check if the file is to be copied or not. (M designation)
(Ex. 2) REMOVE M,1 @ A <NL>
In this example, the system asks to copy or not every file with file name starting with ”A” of drive No.1 floppy disk.
A change of attributes such as file name, date, and file protection can be designated.
iii) All designated files are copied. (A designation)
(Ex. 3) REMOVE A,: 3, INT,/830920 <NL>
In this example, files with file name starting with ”A” and with file No.3 and later of drive No.0 floppy disk are copied to drive No.1 floppy disk from the head of it with designated date ”830930”. The copied file names cannot be changed in this method.
When this command is executed, input file attributed (I) and output file attributes (O) are displayed. The next display example shows the execution of ’REMOVE A, 1 @TO, INT, P <NL>’.
NO. FILE NAME V.DATE P. I:001 T01 ZX 1. 100/40 830920 O:001 T01 ZX 1. 100/40 830920 P I:002 T02 ZX 1. 150/50 830920 O:002 T02 ZX 1. 150/50 830920 P I:003 T04 ZX 1. 100/50 830920 O:003 T04 ZX 1. 100/50 830920 P I:004 T05 ZX 1. 20/50 830920 O:004 T05 ZX 1. 20/50 830920 P
If REMOVE command is only designated, key in operands according to the request message. The following are general designation format for file copy.
i) Without M, A designation (One file is copied.)
0 @ file name INT P REMOVE , ,
1 : file No. ADD NP
[,/ date] [, @ new file name] <NL>
ii) With M designation (request message is displayed for each objected file.)
0 @ file name REMOVE M,
1 : file No
iii) With A designation (All subjected files are copied.)
0 @ file name INT P REMOVE , ,
1 : file No. ADD NP
[,/ date] <NL>
ww w.
cn cc
en ter
.co m
APPENDIX
ww w.
cn cc
en ter
.co m
B–61863E/10 A. ERROR CODES LIST
(FOR FAPT LADDER P–G)APPENDIX
691
A ERROR CODES LIST (FOR FAPT LADDER P–G) Error codes Details of errors
01 Sequence program area over
02 No. of divisions has exceeded 99.
03 High level program time over
05 An error block was detected.
07 No designated step number is found.
08 An undefined instruction was specified.
09 An undefined address was specified.
10 Parameter data error
11 An address was employed in OR.STK and AND.STK.
12 An unemployable subroutine number was specified.
13 An unemployable timer number was specified.
14 A comparison error occurred.
15 A jump instruction was specified, exceeding END1 and END2.
16 A common instruction was specified, exceeding END1 and END2.
17 An instruction format error
18 An attempt was made to delete a parameter.
19 An attempt was made to add a parameter.
20 An erroneous system parameter data
21 A parameter was specified in a mode other than subroutine mode.
24 END2 is not specified.
25 WRT instruction is not specified in WRT instruction subroutine.
27 END1 is not specified.
29 A data sent from PMC–RB/RC is in error.
30 R1 key is pressed during data transmission between SYSTEM P series and PMC–RB/RC.
31 Input/output unit error
32 Read error
33 Hardware error of floppy disk
34 No designated file name is found.
41 An error occurred when inputting ROM data from ROM writer.
43 An error occurred when writing ROM data into ROM writer.
44 An error is deleted during comparison between SYSTEM P series–memory data and floppy data.
45 An error occurred when comparing ROM data with ROM writer data.
46 Key input data over
47 No designated symbol name is found.
48 A numeric value was directly specified to address parameters.
49 Counter number error
50 Decode functional instruction error
ww w.
cn cc
en ter
.co m
A. ERROR CODES LIST (FOR FAPT LADDER P–G) B–61863E/10APPENDIX
692
Error codes Details of errors
51 Symbol name (max. 6 characters) over
52 Input data error
53 Comment data are in error.
54 Symbol table over
55 Comment data area over
56 Designated symbol name is already employed.
57 Symbol table sequence is in error.
58 Designated symbol name is not found.
59 END1 was detected in COM mode.
60 END1 was detected in JMP mode.
61 END2 was detected in COM mode.
62 END2 was detected in JMP mode.
63 END 3 was detected in COM mode.
64 END 3 was detected in JMP mode.
65 END 3 is not specified.
66 COM functional instruction was specified in COM mode.
67 JMP functional instruction was specified in JMP mode.
68 Message address error
69 Message data area over
70 Message data error
71 No symbol table is prepared.
72 NC model error in title
73 Title number error
74 Title data error
75 I/O port address error
76 Group number error
77 Base number error
78 Slot number error
79 I/O module name error
80 I/O port data are not prepared yet.
81 I/O port data were doubly specified.
82 Specified symbol or address is missing.
83 An invalid unit is loaded in the ROM WRITER or the specification of ROM WRITER does not meet the unit.
84 ROM module type is different from the specified one.
87 Output (or input) module was specified as an input (or output) address.
88 The same slot number was specified in the same group and the same base number.
89 The model of PMC is different.
93 The number of coils is specified by the COM or JMP command. (This causes an error for PMC–RA1 and PMC–RA2.)
150 Parity error of transfer data (check the cable.)
151 Excessive or insufficient data to be transferred (Check the cable.)
152 An EPROM or ROM module is not inserted in the ROM writer, or specification of the ROM writer is invalid.
ww w.
cn cc
en ter
.co m
B–61863E/10 A. ERROR CODES LIST
(FOR FAPT LADDER P–G)APPENDIX
693
Error codes Details of errors
153 Blank check error (Ultraviolet ray is not sufficiently irradiated or the EPROM, ROM module is defective.)
154 Write error (EPROM or ROM module is defective.)
155 Verifyerror (EPROM or ROM module is defective.)
156 Data output level error (EPROM or ROM module is defective.)
157 Timer test error is ROM writer (ROM writer is defective.)
158 I/O test error in ROM write (ROM writer is defective.)
159 A/D converter test error in ROM writer (ROM writer is defective.)
160 Power test error in ROM writer (ROM writer is defective.)
161 Power (VPP) is defective (EPROM, ROM module or ROM writer is defective.)
162 Power supply (VCC) is defective (EPROM, ROM module or ROM writer is defective.)
163 ROM test error in ROM writer (ROM writer is defective.)
164 RAM test error in ROM writer (ROM writer is defective.)
170 An initialization error in the external memory floppy disk.
171 The inputted ROM format data is greater than the specified cassette type. The PASCAL origin of the inputted PASCAL load module is unsuitable.
172 The specified ROM format data cannot be edited with the P–G Mate. Outputting data in the ROM format is possible, however.
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
694
B WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2)
This window function is a functional instruction by which the data on the CNC is read or is written.
In the way to process, there are window function high speed and one processed at low speed.
In case of a low–speed response, The data is read or written by the control between CNC and PMC
Therefore, it is necessary to ACT=1 of the window instrucion must be held until the transfer completion information (W1) becomes 1 (interlock).
In a high–speed response, it is not necessity for take the interlock because the data is directly read.
CAUTION The window instruction of a low–speed response is controlled exclusively with the other window instructions of low–speed response. Therefore, when the data is read or written continuously, it is necessary to clear ACT of the functional instruction once when the completion information (W1) become 1. It does not work about ACT=1 of the other window instructions of low–speed response such as W1=1 and ACT=1 of the window instruction of a low–speed response. The window instruction of a high–speed response is not exclusively controlled like a low–speed response. Therefore, when the data is read or written continuously, yow need not make ACT=0. The scan number of times to complete the processing is summarized on the following table.
TYPE SCAN TIMES UNTIL PROCESSING ENDS
LOW TWO SCAN TIMES OR MORE(This depends on the state of CNC)
HIGH 1SCAN TIME
B.1 FUNCTION
B.2 LOW–SPEED RESPONSE AND HIGH–SPEED RESPONSE OF WINDOW FUNCTION
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
695
NOTE Enter the desired function code (to which 1000 is added when data of the second tool post (HEAD2) is read or written in the TT series, or when data of the second path is read or written in two–path control of the Power Mate–D. To perform path 3 read/write operation in 3–path control, enter a function code + 2000.
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
696
Number Description Function code R/W
1 Read CNC system information 0 R
2 Read the tool offset 13 R
3 Write a tool offset �Low–speed response 14 W
4 Read the work origin offset *PM �Low–speed response 15 R
5 Write work origin offset *PM �Low–speed response 16 W
6 Read parameters *RB56 �Low–speed response 17 R
7 Write parameters �Low–speed response 18 W
8 Read setting data *RB56 �Low–speed response 19 R
9 Write setting data �Low–speed response 20 W
10 Read custom macro variables *RB56 �Low–speed response 21 R
11 Write custom macro variables �Low–speed response 22 W
12 Read the CNC alarm state 23 R
13 Read the current program number 24 R
14 Read the current sequence number 25 R
15 Read an actual velocity for controlled axes 26 R
16 Read an absolute position (absolute coordinate value) on controlled axes 27 R
17 Read a machine position (machine coordinate value) on controlled axes 28 R
18 Read a skip operation (G31) stop position (coordinate value) on controlled axes 29 R
19 Read a servo delay amount 30 R
20 Read acceleration/deceleration delay amount on controlled axes 31 R
21 Read modal data 32 R
22 Read diagnosis data *RB56 �Low–speed response 33 R
23 Read a feed motor load current value (A/D conversion data) 34 R
24 Reading tool life management data (tool group No.) *PM *21T 38 R
25 Reading tool life management data (number of tool group s) *PM *21T 39 R
26 Reading tool life management data (number of tools) *PM *21T 40 R
27 Reading tool life management data (usable life of tool) *PM *21T 41 R
28 Reading tool life management data (tool usage counter) *PM *21T 42 R
29 Reading tool life management data (tool length compensation No. (1): Tool No.) *PM *21T
43 R
30 Reading tool life management data (tool length compensation No. (2): Tool order No.) *PM *21T
44 R
31 Reading tool life management data (cutter compensation No. (1): Tool No.) *PM *21T
45 R
32 Reading tool life management data (cutter compensation No. (2): Tool order No.) *PM *21T
46 R
33 Reading tool life management data (tool information (1): Tool No.) *PM *21T 47 R
34 Reading tool life management data (tool information (2): Tool order No.) *PM *21T
48 R
35 Reading tool life management data (tool No.) *PM *21T 49 R
36 Reading the actual spindle speed 50 R
B.3 LIST OF WINDOW FUNCTIONS
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
697
Number R/WFunction codeDescription
37 Entering data on the program check screen �low–speed response *PM *21T
150 W
38 Reading clock data (date and time) 151 R
39 Writing torque limit data for the digital servo motor�low–speed response 152 W
40 Reading load information of the spindle motor (serial interface) 153 R
41 Reading a parameter *PM *21T 154 R
42 Reading setting data *PM *21T 155 R
43 Reading diagnosis data *PM *21T 156 R
44 Reading a character string of the CNC program being executed in the buffer *C 157 R
45 Reading the relative position of a controlled axis 74 R
46 Reading the remaining travel 75 R
47 Reading CNC status information 76 R
48 Reading an operator message 83 R
49 Reading value of the P– code macro variable *RB56 �low– speed response 59 R
50 Writing value of the P– code macro variable �low– speed response 60 W
51 Reading the Tool life management data (Tool life counter type) 160 R
52 Registering the Tool life management data (Tool group) �low– speed response 163 W
53 Writing the Tool life management data (Tool life) �low– speed response 164 W
54 Writing the Tool life management data (Tool life counter) �low– speed response 165 W
55 Writing the Tool life management data (Tool life counter type) �low– speed response
166 W
56 Writing the Tool life management data (Tool length offset number (1): Tool number) �low– speed response
167 W
57 Writing the Tool life management data (Tool length offset num–ber (2): Tool opera- tion sequence number) �low– speed response
168 W
58 Writing the Tool life management data (Cutter compensation number (1): Tool number) �low– speed response
169 W
59 Writing the Tool life management data (Cutter compensation nu–mber (2): Tool operation sequence number) �low– speed response
170 W
60 Writing the Tool life management data (Tool condition (1): Tool number) �low– speed response
171 W
61 Writing the Tool management data (Tool condition (2): Tooloperation sequence number) �low– speed response
172 W
62 Writing the Tool life management data (Tool number) �low– speed response 173 W
63 Reading the Estimate disturbance torque data 211 R
�� �,%�+!&% �&��* + �+ �-� � !% + � ��� �&#,$% �)� .!%�&. )��� �,%�+!&%* *'��!�!��#� .!+ + � ��� � �,%�+!&% �&$$�%�� �,%�+!&% �&��* + �+ �-� � !% + � ��� �&#,$% �)� .!%�&. .)!+� �,%�+!&%* *'��!�!��#� .!+ + � ��� � �,%�+!&% �&$$�%��
� �&).!%�&.�,%�+!&%*$�)".!+ 0�&.�*'���)�*'&%*���)���!%��%�.)!+!%�'�)�$�+�)*� *�++!%���+���!��%&*+!���+� �%� *& &% *+�)+* ��+�) + ���� )���!-�* + � )�*'&%*� �&) )�(,�*+ &� )���!%� �%�.)!+!%� �)&$ + ������% + � �&%+)�)/� + � &+ �) .!%�&. �,%�+!&%* ��% )��� &) .)!+� ��+� �+ &%�� !% )�*'&%*� +& + � )�(,�*+ �)&$ ����
� �,%�+!&%* $�)"�� .!+ ��� �)� %&+ ')&-!��� �&) + � �&.�) ��+�� &) ��
�� �,%�+!&%* $�)"�� .!+ � �� �)� %&+ ')&-!��� �&) + � ��)!�* ���
*5 Functions marked with *RB56 support high–speed window response for the RB5/RB6.
*6 Functions marked with *C are not provided for the RB5/RB6.
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
698
(1) In the explanation of the window functions, minuses (–) in the data structure fields indicate that input data need not be set in these fields or that output data in these fields is not significant.
(2) All data is in binary unless otherwise specified.
(3) All data block lengths and data lengths are indicated in bytes.
(4) Output data is valid only when window processing terminates normally.
(5) Output data always includes one of the following completion codes. Note, however, that all of the completion codes listed are not always provided for each function.
Completion code Meaning
0 Normal termination
1 Error (invalid function code)
2 Error (invalid data block length)
3 Error (invalid data number)
4 Error (invalid data attribute)
5 Error (invalid data)
6 Error (necessary option missing)
7 Error (write–protected)
Input and output control data has the following structure.
Top address +0
2
4
6
8
10
Function code
Completion code
Data length (M) (Byte length of data area)
Data number
Data attribute
Data area
� �
These data set as input data are remain unchanged in the output data.
*Data length Depends on the function.
B.4 FORMATS AND DETAILS OF CONTROL DATA
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
699
[Description]
System information peculiar to the CNC can be read. Such system information includes the series name of the CNC (16 as series name, for example), the machine type applied to the CNC, such s a machining center (M) and a lathe (T), the series code and version of the ROM containing the CNC system software, and the number of controlled axes.
[Input data structure]
Top address + 0
2
4
6
8
10
(Function code) 0
(Completion code) —
(Need not be set)
(Data length) —
(Need not be set)
(Data number) —
(Need not be set)
(Data attribute) —
(Need not be set)
(Data area) —
(Need not be set)
� �
42
[Completion codes]
0 : CNC system information has been read normally.
B.4.1 Reading CNC System Information
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
700
[Output data structure]
Top address + 0
2
4
6
8
10
(Function code) 0
(Completion code) 0
(Always terminates normally.)
(Data length) 14
(Data number) —
(Data attribute) —
CNC series name (2 bytes) ASCII characters (16)
Machine type M/T/TT (2 bytes) ASCII characters ( M, T. TT, . . . )
ROM series of CNC system software(4 bytes)
ASCII characters (B 0 0 0 1, . . . )
ROM version of CNC system software(4 bytes)
ASCII characters (0 0 0 1, 0 0 0 2, , . . )
Number of controlled axes (2 bytes) ASCII characters ( 2, 3, 4, . . . )
Value
12
14
18
22
NOTE 1 Data is stored from the upper digit in each lower byte. 2 In the Power Mate–D and –F, the data corresponding to the
CNC series name and machine type are left as spaces. 3 In two–path control of the Power Mate–D, the data for the
first path is the same as that for the second path.
ww w.
cn cc
en ter
.co m
If the type of tool offset need not be specified, enter 0.
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
701
[Description]
A tool offset value recorded in the CNC can be read.
Wear offset data, geometry offset data, cutter compensation data, and tool length offset data can be read as a tool offset.
[Input data structure]
Top address + 0
2
4
6
8
10
(Function code) 13
(Completion code) —
(Need not be set)
(Data length) —
(Need not be set)
(Data number) N
(N = offset number)
(Data attribute) M
(M = offset type)
(Data area) —
(Need not be set)
� �
42
(a) Offset types (for machining centers, Power Mate–D, F)
Cutter Tool length
Wear 0 2
Figure 1 3
NOTE In the Power Mate–D and –F, read tool offsets without specifying the classification (i.e. cutter compensation, tool length, tool wear, and tool geometry).
(b) Offset types (for lathes)
X axis Z axis Tool tip R Virtual tool tip Y axis
Wear 0 2 4 6 8
Figure 1 3 5 7 9
B.4.2 Reading a Tool Offset
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
702
[Completion codes]
0 : The tool offset has been read normally.
3 : The offset number specified for reading is invalid. (This completion code is returned when the specified offset number data is not from 1 to the maximum number of offsets.)
4 : There are mistakes in the data attribute that specifies the type of the offset to be read.
6 : For the offset number specified for reading, an additional tool offset number option is required, but it is missing. The offset number is not available for Power Mate–D/F.
[Output data structure]
Top address + 0
2
4
6
8
10
(Function code) 13
(Completion code) ?
(See the explanation of the completion codes.)
(Data length) L (Normally set to 4)
(L: Byte length of offset value)
(Data number) N
(N = offset number)
(Data attribute) M
(M = offset type),,
Tool offset value Signed binary (A negative value is represented in 2’s complement.) Upper 3 bytes are always “0” for virtual tool tip
Value
Output data unit
Input system Incrementsystem IS–B Increment
system IS–C
Machining center system
mm, deg system 0.001 0.0001y
Power Mate–D, F inch system 0.0001 0.00001
Radius specification mm, deg
0.001 0.0001
Lathe Diameter specification
g system
0.002 0.0002
system Radius specification
inch system 0.0001 0.00001
Diameter specification
inch system 0.0001 0.00001
ww w.
cn cc
en ter
.co m
If the type of tool offset need not be specified, enter 0.
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
703
[Description]
The tool offset value can be directly written into the CNC.
Wear offset data, geometry offset data, cutter compensation data, and tool length offset data can be written as a tool offset.
[Input data structure]
Top address + 0
2
4
6
8
10
(Function code) 14
(Completion code) —
(Need not to be set)
(Data length) 4
(Data number) N
(N = offset number)
(Data attribute) M
(M = offset type)
Tool offset value Signed binary (A negative value is represented in 2’s complement.) Upper 3 bytes are always “0” for virtual tool tip
Value
(a) Offset types (for machining centers, Power Mate–D, F)
Cutter Tool length
Wear 0 2
Figure 1 3
In the Power Mate–D and –F, write tool offsets without specifying the classification (i.e. cutter compensation, tool length, tool wear, and tool geometry).
(b) Offset types (for lathes)
X axis Z axis Tool tip R Virtual tool tip Y axis
Wear 0 2 4 6 8
Figure 1 3 5 7 9
B.4.3 Writing a Tool Offset (�Low–Speed Response)
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
704
Input data unit
Input system Incrementsystem IS–B Increment
system IS–C
Machining center system
mm, deg system 0.001 0.0001y
Power Mate–D, F inch system 0.0001 0.00001
Radius specification mm, deg
0.001 0.0001
Lathe Diameter specification
g system
0.002 0.0002
system Radius specification
inch system 0.0001 0.00001
Diameter specification
inch system 0.0002 0.00002
[Completion codes]
0 : The tool offset has been written normally.
2 : The data byte length for the tool offset specified for writing is invalid. (It is not set to 4.)
3 : The offset number specified for writing is invalid. (This completion code is returned when the specified offset number data is not from 1 to the maximum number of offsets.)
4 : There are mistakes in the data attribute that specifies the type of the offset to be written.
6 : For the offset number specified for writing, the additional tool offset number option is required, but it is missing. The specified offset number is out of range. (Power Mate–D, F)
[Output data structure]
Top address + 0
2
4
6
8
10
(Function code) 14
(Completion code) ?
(See the explanation of the completion codes.)
(Data length) L
(L: Input data)
(Data number) N
(N = Input data)
(Data attribute) M
(Input data)
Tool offset value: Input data Signed binary (A negative value is represented in 2’s complement.)
Value
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
705
[Description]
The workpiece origin offset recorded in the CNC can be read.
A workpiece origin offset is provided for each controlled axis (the first axis to the eighth axis) in the CNC. Either the workpiece origin offset for a specific axis can be read, or the workpiece origin offsets for all axes can be read at one time. If the additional axis option is not provided, however, the workpiece origin offset for the additional axis cannot be read.
[Input data structure]
Top address + 0
2
4
6
8
10
(Function code) 15
(Completion code) —
(Need not be set)
(Data length) —
(Need not be set)
(Data number) N
(N = 0 to 6)
(Data attribute) M
(M = 1 to n or –1)
(Data area) —
(Need not be set)
� �
42
N = 0: External workpiece origin offset N = 1: G54 · · · ·
N = 6: G59 With “addition of workpiece coordinate system pair” N=7 : G54.1 P1 · ·
N=306 : G54.1 P300
M = 1 to n: Workpiece origin offset number of a specific axis. n is the axis number.
M = –1: Read for all axes
B.4.4 Reading a Workpiece Origin Offset Value (Not Supported by the Power Mate–D or –F)
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
706
[Completion codes]
0 : The workpiece origin offset has been read normally.
3 : The specified data number is invalid because the number is not from 0 to 6.
4 : The specified data attribute is invalid because the attribute data is neither –1 nor a value from 1 to n (n is the number of axes). Alternatively, the specified axis number is greater than the number of controlled axes.
6 : There is no workpiece coordinate shift option added.
[Output data structure]
Top address + 0
2
4
6
8
10
(Function code) 15
(Completion code) ?
(See the explanation of the completion codes.)
(Data length) L
(L: Byte length of the workpiece origin offset value)
(Data number) N
(N = Input data)
(Data attribute) M
(M = Input data)
Workpiece origin offset value Signed binary number (A negative value is represented in 2’s complement.)
Value
L = 4: The workpiece origin offset value for a specific axis is read.
L = 4*n: Workpiece origin offsets for all axes are read.
Output data unit
Input system Incrementsystem IS–B Increment
system IS–C
Machining center system
mm, deg system 0.001 0.0001y
Power Mate–D, F inch system 0.0001 0.00001
Radius specification mm, deg
0.001 0.0001
Lathe Diameter specification
g system
0.002 0.0002
system Radius specification
inch system 0.0001 0.00001
Diameter specification
inch system 0.0001 0.00001
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
707
[Description]
Data can be written directly as a workpiece origin offset value in the CNC.
A workpiece origin offset is provided for each controlled axis (the first axis to the eighth axis) in the CNC. Either the workpiece origin offset value for a specific axis can be written, or the workpiece origin offset values for all axes can be written at one time. If the additional axis option is not provided, however, the workpiece origin offset value for the additional axis cannot be written.
[Input data structure]
Top address + 0
2
4
6
8
10
(Function code) 16
(Completion code) —
(Need not be set)
(Data length) L
(L: Byte length of the workpiece origin offset value)
(Data number) N
(N = 0 to 6)
(Data attribute) M
(M = 1 to n, or –n)
Workpiece origin offset value Signed binary (A negative value is represented in 2’s complement.)
Value
L = 4 : Workpiece origin offset value for a specific axis is written.
L = 4*n Workpiece origin offset values for all axes are written.
N = 0: External workpiece origin offset N = 1: G54 · · · ·
N = 6: G59
M = 1 to n: Workpiece origin offset number of a specific axis. n is the axis number.
M = –1: Write for all axes
Input data unit
Input system Incrementsystem IS–B Increment
system IS–C
Machining center system
mm, deg system 0.001 0.0001y
Power Mate–D, F inch system 0.0001 0.00001
Radius specification mm, deg
0.001 0.0001
Lathe Diameter specification
g system
0.002 0.0002
system Radius specification
inch system 0.0001 0.00001
Diameter specification
inch system 0.0002 0.00002
B.4.5 Writing a Workpiece Origin Offset Value (�Low–Speed Response) (Not Supported by the Power Mate–D or –F)
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
708
[Completion codes]
0 : The workpiece origin offset has been written normally.
2 : The specified data length is invalid.
3 : The data number is invalid because the specified number is not from 0 to 6.
4 : The specified data attribute is invalid because the attribute data is neither –1 nor a value from 1 to n (n is the number of axes). Alternatively, the specified axis number is greater than the number of controlled axes.
6 : There is no workpiece coordinate shift option added.
[Output data structure]
Top address + 0
2
4
6
8
10
(Function code) 16
(Completion code) ?
(See the explanation of the completion codes.)
(Data length) L
(L: Input data)
(Data number) N
(N = Input data)
(Data attribute) M
(M = Input data)
Workpiece origin offset value Signed binary number (A negative value is represented in 2’s complement.)
Value
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
709
[Description]
Parameter data in the CNC can be read.
There are four types of parameters in the CNC: Bit parameters having a definite meaning for each bit, byte parameters holding 1–byte data, word parameters holding 2–byte data, and double word parameters holding 4–byte data. Therefore, the length of the read data varies according to the parameter number specified.
Note that bit parameters cannot be read in bit units. The eight bits (one byte) for a parameter number must be read at a time.
For axis parameters, data for a specific axis can be read, or data for all axes can be read at a time.
Specify pitch error compensation data in data Nos. 10000 to 11023 (1024 points in total).
For details of parameter data, refer to the Operator’s manual of the CNC.
[Input data structure]
Top address + 0
2
4
6
8
10
(Function code) 17
(Completion code) —
(Need not be set)
(Data length) —
(Need not be set)
(Data number) N
(N = parameter number)
(Data attribute) M
(M = 1 to n or –1)
(Data area) —
(Need not be set)
� �
42
M = 0: No axis
M = 1 to n: A specific axis
M = –1: All axes
When all axes are specified by spindle parameters (parameters 4000 to 4799), only two axes are specified.
B.4.6 Reading a Parameter (�Low–Speed Response)
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
710
[Completion codes]
0 : Parameter data has been read normally.
3 : The parameter number specified for reading is invalid.
4 : The specified data attribute is invalid because it is neither 0, –1, nor a value 1 to n (n is the number of axes).
6 : Although a certain option, such as the pitch error compensation option, is required for the data of the parameter number specified for reading, it is not provided.
[Output data structure]
Top address + 0
2
4
6
8
10
(Function code) 17
(Completion code) ?
(See the explanation of the completion codes.)
(Data length) L
(L = 1, 2, 4, 1*n, 2*n, 4*n)
(Data number) N
(N = Input data)
(Data attribute) M
(M = Input data)
Parameter data Parameter–dependent form
Value
L = 1: Bit or byte parameter L = 2: Word parameter L = 4: Double word parameter
When no axis or one axis is specified
When all axes are specified L = 1*n : Bit or byte parameter L = 2*n: Word parameter L = 4*n: Double word parameter
For the RB5/RB6, macro executor parameters 9000 to 9011 cannot be read.
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
711
[Description]
Data can be written in a parameter in the CNC.
There are four types of parameters in the CNC: Bit parameters having a definite meaning for each bit, byte parameters holding 1–byte data, word parameters holding 2–byte data, and double word parameters holding 4–byte data. Therefore, the length of the written data varies according to the parameter specified.
Note that bit parameters cannot be written in bit units. The eight bits (one byte) for the parameter number must be written at a time. This means that when a bit needs to be written, the whole data for the corresponding parameter number shall be read first, modify the target bit in the read data, then the data shall be rewritten.
For axis parameters, data for a specific axis can be read, or data for all axes can be read at a time.
For details of parameter data, refer to the Operator’s manual of the CNC.
Some parameters cause a P/S alarm 000 when data is written. (The power must be turned off before continuing operation.)
[Input data structure]
Top address + 0
2
4
6
8
10
(Function code) 18
(Completion code) —
(Need not be set.)
(Data length) L
(L = 1, 2, 4, 1*n, 2*n, 4*n)
(Data number) N
(N = parameter number)
(Data attribute) M
(M = 0, 1 to n, or –1)
Parameter data Parameter–dependent form
Value
When no axis or one axis is specified L = 1: Bit or byte parameter L = 2: Word parameter L = 4: Double word parameter
When all axes are specified L = 1*n: Bit or byte parameter L = 2*n: Word parameter L = 4*n: Double word parameter
M = 0: No axis M = 1 to n: A specific axis M = –1: All axes
When all axes are specified by spindle parame- ters (parameters 4000 to 4799), only two axes are specified.
B.4.7 Writing a Parameter (�Low–Speed Response)
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
712
[Completion codes]
0 : Parameter data has been written normally.
2 : The data byte length of the parameter specified for writing is invalid.
3 : The parameter number specified for writing is invalid.
4 : The specified data attribute is invalid because it is neither 0, –1, nor a value from 1 to n (n is the number of axes).
6 : Although a certain option, such as the pitch error compensation option, is required for the data of the parameter number specified for writing, it is not provided.
[Output data structure]
Top address + 0
2
4
6
8
10
(Function code) 18
(Completion code) ?
(See the explanation of the completion codes.)
(Data length) L
(L = Input data)
(Data number) N
(N = Input data)
(Data attribute) M
(M = Input data)
Parameter data: Input data Parameter–dependent form
Value
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
713
[Description]
The CNC setting data can be read.
There are four types of setting data in the CNC: Bit setting data having a definite meaning for each bit, byte setting data stored in bytes, word setting data stored in 2–byte units, and double–word setting data stored in 4–byte units. Therefore, the length of the read data varies according to the setting data specified.
Note that bit setting data cannot be read in bit units. The eight bits (one byte) for the setting data number must be read at a time.
For axis parameters, data for a specific axis can be read, or data for all axes can be read at a time.
For details of setting data, refer to the Operator’s manual of the CNC.
[Input data structure]
Top address + 0
2
4
6
8
10
(Function code) 19
(Completion code) —
(Need not be set)
(Data length) —
(Need not be set)
(Data number) N
(N = Setting data number)
(Data attribute) M
(M = 1 to n or –1)
(Data area) —
(Need not be set)
� �
42
M = 0 : No axis
M = 1 to n: A specific axis
M = –1: All axes
B.4.8 Reading Setting Data (�Low–Speed Response)
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
714
[Completion codes]
0 : Setting data has been read normally.
3 : The setting number specified for reading is invalid.
4 : The specified data attribute is invalid because it is neither 0, –1, nor a value from 1 to n (n is the number of axes).
[Output data structure]
Top address + 0
2
4
6
8
10
(Function code) 19
(Completion code) ?
(See the explanation of the completion codes.)
(Data length) L
(L = 1, 2, 4, 1*n, 2*n, 4*n)
(Data number) N
(N = Input data)
(Data attribute) M
(M = Input data)
Setting data Parameter–dependent form
Value
L = 1: Bit or byte parameter L = 2: Word parameter L = 4: Double word parameter
When no axis or one axis is specified
When all axes are specified L = 1*n: Bit or byte parameter L = 2*n: Word parameter L = 4*n: Double word parameter
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
715
[Description]
Data can be written as setting data in the CNC.
For details of setting data, refer to the Operator’s manual of the CNC.
[Input data structure]
Top address + 0
2
4
6
8
10
(Function code) 20
(Completion code) —
(Need not be set.)
(Data length) L
(L = 1, 2, 4, 1*n, 2*n, 4*n)
(Data number) N
(N = Setting data number)
(Data attribute) M
(M = 0, 1 to n, or –1)
Setting data Setting data–dependent form
Value
When no axis or one axis is specified L = 1: Bit or byte parameter L = 2: Word parameter L = 4: Double word parameter
When all axes are specified L = 1*n: Bit or byte parameter L = 2*n: Word parameter L = 4*n: Double word parameter
M = 0: No axis
M = 1 to n: A specific axis
M = –1: All axes
B.4.9 Writing Setting Data (�Low–Speed Response)
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
716
[Completion codes]
0 : Setting data has been written normally.
2 : The byte length of the setting data specified for writing is invalid.
3 : The setting data number specified for writing is invalid.
4 : The specified data attribute is invalid because it is neither 0, –1, nor a value from 1 to n (n is the number of axes).
5 : Data exceeding the allowable range was specified as setting data to be written. For example, when data outside the range from 0 to 3 is specified as the setting data to be written for I/O data, this completion code is returned.
[Output data structure]
Top address + 0
2
4
6
8
10
(Function code) 20
(Completion code) ?
(See the explanation of the completion codes.)
(Data length) L
(N = Input data)
(Data number) N
(N = Input data)
(Data attribute) M
(M = Input data)
Setting data: Input data Setting data–dependent form
Value
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
717
[Description] A custom macro variable in the CNC can be read. Custom macro variables may or may not be read depending on the variable type. (1) Local variables
Local variables (#1 to #33) cannot be read. (2) Common variables
Common variables (#100 to #149 and #500 to #531) can be read in floating–point representation. When the option to add common variables is provided, however, common variables range from #100 to #199 and #500 to #999.
NOTE Power Mate–D (two–path control), Power Mate–F: #100 to 199, #500 to 699. Memory module A of one–path control: #100 to #149, #500 to #531. Memory module B/C of one–path control: #100 to #199, #500 to #699.
(3) System variables System variables (#1000 and up) can be read in floating–point representation. For details of the custom macro variables, refer to the Operator’s Manual for the CNC.
NOTE For the RB5/RB6, system variables cannot be read.
[Input data structure]
Top address + 0
2
4
6
8
10
(Function code) 21
(Completion code) —
(Need not be set)
(Data length) —
(Need not be set)
(Data number) N
(N = Custom macro variable number)
(Data attribute) M
(M: Number of decimal places)
(Data area) —
(Need not be set)
� �
42
B.4.10 Reading a Custom Macro Variable (�Low–Speed Response)
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
718
[Completion codes]
0 : The custom macro variable has been read normally.
3 : The number of a custom macro variable that cannot be read was specified as the data number. Only common variables can be read as custom macro variables by this library command.
5 : The custom macro variable is not within the range from 0.0000001 to 99999999.
6 : The custom macro option is not provided. The specified variable number is out of range. ( Power Mate–D, F)
[Output data structure]
Top address + 0
2
4
6
8
10
(Function code) 21
(Completion code) ?
(See the explanation of the completion codes.)
(Data length) L
(L: Byte length of custom macro variable data)
(Data number) N
(N = Input data)
(Data attribute) M
(M: Number of decimal places)
Custom macro variable data (4 bytes) Mantissa (custom macro B)
Signed binary (A negative value is represented in 2’s complement.)
Value
Custom macro variable data (2 bytes) Exponent (custom macro B): The num- ber of decimal digits
Signed binary 0 to 8 (no negative values)
14
L = 6: Custom macro B The mantissa of a floating– point number is indicated in 4 bytes, and the exponent is indicated in 2 bytes.
M = 0: The number of decimal places is not specified.
M = 1� n� 7: The number of decimal places is specified. n stands for the number of decimal places.
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
719
[Description]
Data can be written in a custom macro variable in the CNC.
For details of common variables, refer to the Operator’s manual of the CNC.
[Input data structure]
Top address + 0
2
4
6
8
10
(Function code) 22
(Completion code) —
(Need not be set)
(Data length) L
(L: Byte length of custom macro variable data)
(Data number) N
(N = Custom macro variable number)
(Data attribute) —
(Need not be set)
Custom macro variable data (4 bytes) Mantissa (custom macro B)
Signed binary (A negative value is represented in 2’s complement.)
Value
Custom macro variable data (2 bytes) Exponent (custom macro B): The num- ber of decimal digits
Signed binary (A negative value is represented in 2’s complement.)
14
L = 6: Custom macro B The mantissa of a floating–point number is indicated in 4 bytes, and the exponent is indicated in 2 bytes.
B.4.11 Writing a Custom Macro Variable (�Low–Speed Response)
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
720
[Completion codes]
0 : The custom macro variable has been written normally.
2 : The specified data length is invalid because it is not 6.
3 : A custom macro variable number that cannot be written as the data number was specified.
6 : The custom macro option has not been provided.
The specified variable number is out of range. ( Power Mate–D, F)
[Output data structure]
Top address + 0
2
4
6
8
10
(Function code) 22
(Completion code) ?
(See the explanation of the completion codes.)
(Data length) L
(L: Input data)
(Data number) N
(N = Input data)
(Data attribute) —
(Need not be set)
Custom macro variable data: Input data Mantissa (custom macro B)
Signed binary (A negative value is represented in 2’s complement.)
Value
Custom macro variable data: Input data Exponent (custom macro B): The num- ber of decimal digits
Signed binary 14
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
721
[Description]
When the CNC is in the alarm status, the alarm status data can be read.
The following alarm status data can be read:
(1) First byte of alarm status data
PS1 PS2 PS3 PS OTS OH SV MALM
7 6 5 4 3 2 1 0
PS1 : P/S alarm 100 (PWE (parameter write enable) is set to 1.)
PS2 : P/S alarm 000 (Turn off the power before continuing operation. Some parameters activate this alarm status when they are written.)
PS3 : P/S alarm 101 (The part program recording area is disordered. This alarm is activated when the power to the CNC is turned off during part program editing or reading of a machining program. To release the alarm, then press the RESET key while holding down the PROG key.)
PS : A P/S alarm other than the above alarm is generated
OTS : Stroke limit alarm
OH : Overheat alarm
SV : Servo alarm
MALM: Memory alarm
B.4.12 Reading the CNC Alarm Status
B.4.12.1 Except Power Mate–D and –F
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
722
(2) Second byte of alarm status data
APAL SPA (Not used) (Not used) (Not used) (Not used) (Not used) (Not used)
7 6 5 4 3 2 1 0
APAL: APC alarm
SPA : Spindle alarm
[Input data structure]
Top address + 0
2
4
6
8
10
(Function code) 23
(Completion code) —
(Need not be set)
(Data length) —
(Need not be set)
(Data number) —
(Need not be set)
(Data attribute) —
(Need not to be set)
(Data area) —
(Need not be set)
� �
42
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
723
[Completion codes]
0 : This alarm status in the CNC has been read normally.
[Output data structure]
Top address + 0
2
4
6
8
10
(Function code) 23
(Completion code) ?
(See the explanation of the completion codes.)
(Data length) 2
(Data number) —
(Data attribute) —
CNC alarm status data 2 byte bit data. For the meanings of the bits, see [Description] in this section.
Value
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
724
(1) Overview
PMC application programs can read CNC alarm information.
(2) Alarm information
1) Alarm status
Information concerning the alarm type
2) Detailed alarm
Information concerning the alarm number and axis information
(3) Input data configuration
Top address+0 +2 +4 +6 +8 +10 Function Completion Data Data Data Data
code code length number attribute area
Function code : 23 (fixed)
Completion code : No specification required.
Data length : No specification required.
Data number : Number of alarms which can be stored. (Up to 30). If 31 or more are specified, the value is assumed to be 30.
Data attribute : Other than 0 : Alarm status information
: Detailed alarm information, indicated in two–byte bit–type data described below (multiple bits can be specified.)
Data area : No specification required.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 bit
Bit 0 : P/S alarm 100 (PS1)
(PWE, parameter write enable, is set to 1.)
Bit 1 : P/S alarm 000 (PS2)
(Turn off the power. Writing data into certain parameters may cause this alarm.)
Bit 2 : P/S alarm 101 (PS3)
(Part program storage has been disrupted. This alarm is issued when the CNC is turned off during tape editing or machining program reading. To release this alarm, press the RESET key while holding down the PROG key.)
Bit 3 : A P/S alarm (PS) other than those described above has been issued. (Up to 255)
Bit 4 : Stroke limit alarm (OTS)
B.4.12.2 For Power Mate–D and –F
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
725
Bit 5 : Overheat alarm (OH)
Bit 6 : Servo alarm (SV)
Bit 7 : Not used
Bit 8 : APC alarm (APAL)
Bit 9 : Spindle alarm (SPA)
Bit 10 : P/S alarm 5000 or greater (PS_2)
Bit 11 to Bit 15 : Not used
Data attribute : 0 : Alarm status information
(4) Output data configuration
Top address+0 +2 +4 +6 +8 +10 Function Completion Data Data Data Data
code code length number attribute area
Function code : 23 (fixed)
Completion code : Always 0.
Data length : 2 when the input data attribute is set to 0 and no alarm is issued.
2 + 4*n when the input data attribute is set to other than 0 (n stands for the number of alarms issued).
Data number : Same as that for the input data.
Data attribute : Same as that for the input data.
Data area : Two–byte bit–type data when the input data attribute is set to 0 (each bit indicates the same information as that for the input data).
(2 + 4*n)–byte data, described below, for all alarm states specified in the input data attribute when the input data attribute is other than 0.
7 6 5 4 3 2 1 0
15 14 13 12 11 10 9 8
Bit 0 = 1 : When an alarm is is sued for the first axis
Bit 1 = 1 : When an alarm is issued for the second axis
Bits 2 to 15 are always set to 0.
Axis information Alarm number
2byte 2byte 2byte 4byte 4byte
n
Number of alarms
First alarm Second alarm
n–th alarm
(n: Number of alarms issued)
⋅ ⋅
⋅ ⋅
⋅ ⋅
(5) Completion code
0 : CNC alarm status has been read normally.
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
726
[Completion codes]
0 : This alarm status in the CNC has been read normally.
[Output data structure]
Top address + 0
2
4
6
8
10
(Function code) 23
(Completion code) ?
(See the explanation of the completion codes.)
(Data length) 2
(Data number) —
(Data attribute) —
CNC alarm status data 2 byte bit data. For the meanings of the bits, see [Description] in this section.
Value
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
727
[Description]
The program number of a machining program being executed on the CNC can be read.
When a subprogram is executed on the CNC, the program number of the main program can also be read. Note that the main program is the first loop program from which the subprogram was called (even in nested).
[Input data structure]
Top address + 0
2
4
6
8
10
(Function code) 24
(Completion code) —
(Need not be set)
(Data length) —
(Need not be set)
(Data number) —
(Need not be set)
(Data attribute) —
(Need not to be set)
(Data area) —
(Need not be set)
� �
42
B.4.13 Reading the Current Program Number
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
728
[Completion codes]
0 : The program number of the program currently being executed has been read normally.
[Output data structure]
Top address + 0
2
4
6
8
10
(Function code) 24
(Completion code) ?
(See the explanation of the completion codes.)
(Data length) L
(L = 4)
(Data number) —
(Data attribute) —
Current program number: ON Unsigned binary, 2 bytes long
Value
Program number of the main program: OMN
12
(a) Current program number (ON)
The program number of the program being executed is set.
(b) Program number of the main program (OMN)
When the currently executed program is a subprogram, the number of its main program (first loop main program) is set. When the currently executed program is not a subprogram, 0 is set.
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
729
[Description]
The sequence number of a machining program being executed on the CNC can be read. If sequence numbers are not assigned to all blocks of the machining program, the sequence number of the most recently executed block is read.
[Input data structure]
Top address + 0
2
4
6
8
10
(Function code) 25
(Completion code) —
(Need not be set)
(Data length) —
(Need not be set)
(Data number) —
(Need not be set)
(Data attribute) —
(Need not to be set)
(Data area) —
(Need not be set)
� �
42
B.4.14 Reading the Current Sequence Number
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
730
[Completion codes]
0 : The current sequence number has been read normally.
[Output data structure]
Top address + 0
2
4
6
8
10
(Function code) 25
(Completion code) ?
(See the explanation of the completion codes.)
(Data length) L
(L = 4)
(Data number) —
(Data attribute) —
Current sequence number Unsigned binary
Value
Note that the data length must be set to 4 bytes even though the current program number is 2 bytes long (the sequence number is indicated by 5 digits).
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
731
[Description]
The actual velocity of a movement on CNC–controlled axes can be read. Note that the read speed is the composite velocity for the controlled axes. When movement involves only the basic three axes, the X, Y, and Z axes, the composite velocity equals the actual velocity. When movement, however, involves the fourth axis, such as a rotation axis or a parallel axis, as well as some of the basic three axes, the composite velocity for all the relevant axes does not equal the actual velocity.
[Input data structure]
Top address + 0
2
4
6
8
10
(Function code) 26
(Completion code) —
(Need not be set)
(Data length) —
(Need not be set)
(Data number) —
(Need not be set)
(Data attribute) —
(Need not to be set)
(Data area) —
(Need not be set)
� �
42
B.4.15 Reading the Actual Velocity of Controlled Axes
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
732
[Completion codes]
0 : The actual velocity for the controlled axes has been read normally.
[Output data structure]
Top address + 0
2
4
6
8
10
(Function code) 26
(Completion code) ?
(See the explanation of the completion codes.)
(Data length) L
(L = 4)
(Data number) —
(Data attribute) —
Actual velocity for controlled axes Unsigned binary <Data increments> �Input in mm
1 mm/min �Input in inches
0.01 inch/min.
Value
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
733
[Description]
The absolute coordinates of the CNC–controlled axes for movement can be read. The read absolute coordinates equal the absolute coordinates (absolute position) indicated on the current position display screen in the CNC. (The screen is displayed by pressing function button POS.)
[Input data structure]
Top address + 0
2
4
6
8
10
(Function code) 27
(Completion code) —
(Need not be set)
(Data length) —
(Need not be set)
(Data number) —
(Need not be set)
(Data attribute) M
(M = 1 to n or –1 )
(Data area) —
(Need not be set)
� �
42
M = 1 to n: Absolute coordinate of a specific axis. n is the axis number.
M = –1: Coordinates of all axes
[Completion codes]
0 : The absolute coordinates of the controlled axes have been read normally.
4 : Data specified as the data attribute is invalid because it is neither –1 nor a value from 1 to n (n is the number of axes). Alternatively, the specified axis number is greater than the number of controlled axes.
B.4.16 Reading the Absolute Position (Absolute Coordinates) of Controlled Axes
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
734
[Output data structure]
Top address + 0
2
4
6
8
10
(Function code) 27
(Completion code) ?
(See the explanation of the completion codes.)
(Data length) L
(L = 4*n, n is the number of axes specified.)
(Data number) —
(Data attribute) L
(L: Input data)
Absolute coordinate of the controlled axis specified (4 bytes)
Signed binary (A negative value is represented in 2’s complement.)
Value
When the number of controlled axes is 4
10 Absolute coordinate of the first axis (4 bytes)
Signed binary (A negative value is represented in 2’s complement.)
Value
14 Absolute coordinate of the second axis (4 bytes)
18 Absolute coordinate of the third axis (4 bytes)
22 Absolute coordinate of the fourth axis (4 bytes)
Output data unit
Input system Incrementsystem IS–B Increment
system IS–C
Machining center system
mm, deg system 0.001 0.0001y
Power Mate–D, F inch system 0.0001 0.00001
Radius specification mm, deg
0.001 0.0001
Lathe Diameter specification
g system
0.001 0.0001
system Radius specification
inch system 0.0001 0.00001
Diameter specification
inch system 0.0001 0.00001
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
735
[Description]
The machine coordinates of CNC–controlled axes for movement can be read. The read value equals the machine coordinate indicated on the current position display screen displayed in the CNC. (This screen can be displayed by pressing the function button POS.)
[Input data structure]
Top address + 0
2
4
6
8
10
(Function code) 28
(Completion code) —
(Need not be set)
(Data length) —
(Need not be set)
(Data number) —
(Need not be set)
(Data attribute) M
(M = 1 to n or –1 )
(Data area) —
(Need not be set)
� �
42
M = 1 to n: Machine coordinate of a specific axis. n is the axis number.
M = –1: Coordinates of all axes
[Completion codes]
0 : The machine coordinates of the controlled axes have been read normally.
4 : Data specified as the data attribute is invalid because it is neither –1 nor a value from 1 to n (n is the number of axes). Alternatively, the specified axis number is greater than the number of the controlled axes.
B.4.17 Reading the Machine Position (Machine Coordinates) of Controlled Axes
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
736
[Output data structure]
Top address + 0
2
4
6
8
10
(Function code) 28
(Completion code) ?
(See the explanation of the completion codes.)
(Data length) L
(L = 4*n, n is the number of axes specified.)
(Data number) —
(Data attribute) M
(M: Input data)
Machine coordinate of the controlled axis specified (4 bytes)
Signed binary (A negative value is represented
in 2’s complement.)
Value
When the number of controlled axes is 4
10 Machine coordinate of the first axis (4 bytes)
Signed binary (A negative value is represented
in 2’s complement.)
Value
14 Machine coordinate of the second axis (4 bytes)
18 Machine coordinate of the third axis (4 bytes)
22 Machine coordinate of the fourth axis (4 bytes)
Output data unit
Input system Incrementsystem IS–B Increment
system IS–C
Machining center system
mm, deg system 0.001 0.0001y
Power Mate–D, F inch system 0.0001 0.00001
Radius specification mm, deg
0.001 0.0001
Lathe Diameter specification
g system
0.001 0.0001
system Radius specification
inch system 0.0001 0.00001
Diameter specification
inch system 0.0001 0.00001
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
737
[Description]
When a block of the skip operation (G31) is executed by the CNC and the skip signal goes on to stop the machine, the absolute coordinates of the stop position on the axes of movement can be read.
[Input data structure]
Top address + 0
2
4
6
8
10
(Function code) 29
(Completion code) —
(Need not be set)
(Data length) —
(Need not be set)
(Data number) —
(Need not be set)
(Data attribute) M
(M = 1 to n or –1 )
(Data area) —
(Need not be set)
� �
42
M = 1 to n: Skip coordinate on a specific axis. n is the axis number.
M = –1: Coordinates on all axes
[Completion codes]
0 : The coordinates of the skip stop position for the controlled axes have been read normally.
4 : Data specified for the data attribute is invalid because it is neither –1 nor a value from 1 to n (n is the number of axes). Alternatively, the specified axis number is greater than the number of controlled axes.
B.4.18 Reading a Skip Position (Stop Position of Skip Operation (G31)) of Controlled Axes
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
738
[Output data structure]
Top address + 0
2
4
6
8
10
(Function code) 29
(Completion code) ?
(See the explanation of the completion codes.)
(Data length) L
(L = 4*n, n is the number of axes specified.)
(Data number) —
(Data attribute) M
(M: Input data)
Skip coordinate of the controlled axis specified(4 bytes)
Signed binary (A negative value is represented in 2’s
complement.)
Value
When the number of controlled axes is 4
10 Skip coordinate of the second axis (4 bytes)
Signed binary (A negative value is represented in 2’s
complement.)
Value
14 Skip coordinate of the third axis (4 bytes)
18 Skip coordinate of the fourth axis (4 bytes)
22 Skip coordinate of the first axis (4 bytes)
Output data unit
Input system Incrementsystem IS–B Increment
system IS–C
Machining center system
mm, deg system 0.001 0.0001y
Power Mate–D, F inch system 0.0001 0.00001
Radius specification mm, deg
0.001 0.0001
Lathe Diameter specification
g system
0.001 0.0001
system Radius specification
inch system 0.0001 0.00001
Diameter specification
inch system 0.0001 0.00001
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
739
[Description]
The servo delay, which is the difference between the specified coordinates of CNC–controlled axes and the actual servo position, can be read.
[Input data structure]
Top address + 0
2
4
6
8
10
(Function code) 30
(Completion code) —
(Need not be set)
(Data length) —
(Need not be set)
(Data number) —
(Need not be set)
(Data attribute) M
(M = 1 to n or –1 )
(Data area) —
(Need not be set)
� �
42
M = 1 to n: Servo delay for a specific axis
M = –1: Servo delay for all axes
B.4.19 Reading the Servo Delay for Controlled Axes
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
740
[Completion codes]
0 : The servo delay for the controlled axes have been read normally.
4 : The data specified as the data attribute is invalid because it is neither –1 nor a value from 1 to n (n is the number of axes). Alternatively, the specified axis number is greater than the number of controlled axes.
[Output data structure]
Top address + 0
2
4
6
8
10
(Function code) 30
(Completion code) ?
(See the explanation of the completion codes.)
(Data length) L
(L = 4*n, n is the number of axes specified.)
(Data number) —
(Data attribute) M
(M: Input data)
Servo delay for the controlled axis spe- cified (4 bytes)
Signed binary (A negative value is represented in 2’s
complement.)
Value
When the number of controlled axes is 4
10 Servo delay for the first axis (4 bytes) Signed binary (A negative value is represented in 2’s
complement.)
Value
14 Servo delay for the second axis (4 bytes)
18 Servo delay for the third axis (4 bytes)
22 Servo delay for the fourth axis (4 bytes)ww
w. cn
cc en
ter .co
m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
741
[Description]
The acceleration/deceleration delay, which is the difference between the coordinates of controlled axes programmed in the CNC and the position after acceleration/deceleration is performed, can be read.
[Input data structure]
Top address + 0
2
4
6
8
10
(Function code) 31
(Completion code) —
(Need not be set)
(Data length) —
(Need not be set)
(Data number) —
(Need not be set)
(Data attribute) M
(M = 1 to n or –1 )
(Data area) —
(Need not be set)
� �
42
M = 1 to n: Acceleration/deceleration delay for a specific axis
M = –1: Acceleration/deceleration delay for all axes
[Completion codes]
0 : The acceleration/deceleration delay for the control axis has been read normally.
4 : The data specified as the data attribute is invalid because it is neither –1 nor a value from 1 to n (n is the number of axes). Alternatively, the specified axis number is greater than the number of controlled axes.
B.4.20 Reading the Acceleration/ Deceleration Delay on Controlled Axes
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
742
[Output data structure]
Top address + 0
2
4
6
8
10
(Function code) 31
(Completion code) ?
(See the explanation of the completion codes.)
(Data length) L
(L = 4*n, n is the number of axes specified.)
(Data number) —
(Data attribute) M
(M: Input data)
Acceleration/deceleration delay for the controlled axis specified (4 bytes)
Signed binary (A negative value is represented in 2’s
complement.)
Value
When the number of controlled axes is 4
10 Acceleration/deceleration delay for the first axis (4 bytes)
Signed binary (A negative value is represented in 2’s
complement.) 14 Acceleration/deceleration delay for the
second axis (4 bytes)
18 Acceleration/deceleration delay for the third axis (4 bytes)
22 Acceleration/deceleration delay for the fourth axis (4 bytes)
Output data unit
Input system Incrementsystem IS–B Increment
system IS–C
Machining center system
mm, deg system 0.001 0.0001y
Power Mate–D, F inch system 0.0001 0.00001
Radius specification mm, deg
0.001 0.0001
Lathe Diameter specification
g system
0.001 0.0001
system Radius specification
inch system 0.0001 0.00001
Diameter specification
inch system 0.0001 0.00001
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
743
[Description]
Modal information can be read from the CNC.
(1) Format and types of modal data for the G function
Data corresponding to the specified identification code is read and stored in the data area. Whether the data is specified in the block specified in the attribute of the data is determined by the value at the most significant bit.
7 0
Code in a group 1byte
0: Not specified in the block
1: Specified in the block
6 5 4 3 2 1
1byte
�
NOTE G codes for machining centers are also used for the Power Mate–D and –F except those marked with *. G codes marked with ** are not provided for the Power Mate–F.
(1/2)
Data type Data Data type Data
Identificati G code for machining (M)
Code in a G code for lathe (T, G) Code in a on code center (M) group A series B series C series group
0
G00 G01
��G02 ��G03 �G33
0 1 2 3 4
G00 G01 G02 G03 G32 G33 G34 G90 G92 G94 G71 G72 G73 G74
G series only
G00 G01 G02 G03 G33
G34 G77 G78 G79 G71 G72 G73 G74
G series only
G00 G01 G02 G03 G33
G34 G20 G21 G24 G72 G73 G74 G75
G series only
0 1 2 3 4 8 9 5 6 7 10 11 12 13
1 G17 G18 G19
0 8 4
G96 G97
G96 G97
G96 G97
1 0
2 G90 G91
0 1
G90 G91
G90 G91
0 1
3 G68 G69
G68 G69
G68 G69
1 0
4 G94 G95
0 1
G98 G99
G94 G95
G94 G95
0 1
5 G20 G21
0 1
G20 G21
G20 G21
G70 G71
0 1
B.4.21 Reading Modal Data
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
744
(2/2)
DataData typeDataData type
Identificati on code
Code in a group
G code for lathe (T, G)Code in a group
G code for machining center (M)
Identificati on code
Code in a groupC seriesB seriesA series
Code in a group
G code for machining center (M)
6 �G40 �G41 �G42
0 1 2
G40 G41 G42
G40 G41 G42
G40 G41 G42
0 1 2
7 G43 G44 G49
1 2 0
G25 G26
G25 G26
G25 G26
0 1
8
G73 G74 G76 G80 G81 G82 G83 G84 G85 G86 G87 G88 G89
10 11 12 0 1 2 3 4 5 6 7 8 9
G22 G23
G22 G23
G22 G23
1 0
9
�G98 �G99
0 1
G80 G83 G84 G85 G87 G88 G89
G80 G83 G84 G85 G87 G88 G89
G80 G83 G84 G85 G87 G88 G89
0 1 2 3 5 6 7
10 �G50 �G51
0 1
G98 G99
G98 G99
0 1
11 G66 G67
1 0
G66 G67
G66 G67
G66 G67
1 0
13
�G54 �G55 �G56 �G57 �G58 �G59
0 1 2 3 4 5
G54 G55 G56 G57 G58 G59
G54 G55 G56 G57 G58 G59
G54 G55 G56 G57 G58 G59
0 1 2 3 4 5
14
�G61 �G62 �G63 �G64
1 2 3 0
15 �G68 �G69
1 0
16 �G15 �G16
0 1
17 G40.1 G41.1 G42.1
1 2 0
18 G25 G26
0 1
19 G50.2 G51.2
G50.2 G51.2
G50.2 G51.2
0 1
20 G13.1 G12.1
0 1
G13.1 G12.1
G13.1 G12.1
G13.1 G12.1
0 1
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
745
(2) Format and types of modal data for other than the G function
Number of input digits
0: Positive
1: Negative
4 bytes
1 byte
Data
FLAG2
–
0: Not specified in the current block
1: Specified in the current block
FLAG1 1 byte
7 6 5 4 3 2 1 0
0: A decimal point not specified
1: A decimal point specified
Number of decimal places–––– –
The specification of whether a decimal point is specified or not, in FLAG1, and the specification of the number of decimal places, in FLAG2, are valid only for F code. Even if a decimal point is not specified, the number of deci- mal places may not be 0.
Data type Identification code Specified address
–2 Enter identification codes 100 to 126 at one time.
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
B D E F H L M S T R P Q A C I J K N O U V W X Y Z
M2 M3
(second auxiliary function)
(reserved)
NOTE The Power Mate–D or –F is not provided with the second auxiliary function.
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
746
[Input data structure]
Top address + 0
2
4
6
8
10
(Function code) 32
(Completion code) —
(Need not be set)
(Data length) —
(Need not be set)
(Data number) N
(N: Data type)
(Data attribute) M
(M: Specified block )
(Data area) —
(Need not be set)
� �
20
M = 0 : Current block
M = 1 : Next block
M = 2 : Block after the next block
N = 0 to : See the list of data explained above.
N = –1: All data for G function
N = –2: All data for other than G function
When all data items are specified to be read, the data items are all output
simultaneously in the order specified in the above data table.
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
747
[Completion codes]
0 : Modal information has been read normally.
3 : Invalid data is specified as the data number.
4 : Invalid data is specified as the data attribute.
[Output data structure]
Top address + 0
2
4
6
8
10
(Function code) 32
(See the explanation above
(Completion code) ?
(See the explanation of the completion codes.)
(Data length) L
(L = 2, 6, 2*n, 6*m)
(Data number) N
(N: Input data)
(Data attribute) M
(M: Input data)
Modal data for G function (2 bytes) See the data format for the G function. The upper byte must always be set to 0.
Value
8
10
(Data attribute) M
(M: Input data)
Data part of modal data for other than G function(4 bytes)
See the data format for other than the G function.
Value
14 Flag part of modal data for other than G function(2 bytes)
See the flag format of the data for other than the G function. The upper byte must always be set to 0.
Or
L = 2 : G function
L = 2*n : All data for G function
L = 6 : Other than G function
L = 6*m : All data for other than G function (n: Number of groups for the G function) (m: Number of types other than for the G function)
When all data items are specified to be read, the data items are all output simultaneously in the order specified in the above data table.
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
748
[Description]
The information displayed on the diagnosis data screen in the CNC can be read.
[Input data structure]
Top address + 0
2
4
6
8
10
(Function code) 33
(Completion code) —
(Need not be set)
(Data length) —
(Need not be set)
(Data number) N
(N: Diagnosis No.)
(Data attribute) M
(M: 0, 1 to n, or –1)
(Data area) —
(Need not be set)
M = 0 : No axis
M = 1 to n: One axis
M = –1: All axes
B.4.22 Reading Diagnosis Data (�Low–Speed Response)
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
749
[Completion codes]
0 : Diagnosis data has been read from the CNC normally.
3 : The specified diagnosis data number is invalid.
4 : The data specified as the data attribute is invalid because it is neither 0, –1, nor a value from 1 to n (n is the number of axes).
6 : An option required for reading the specified diagnosis data, such as the remote buffer option, is not provided.
[Output data structure]
Top address + 0
2
4
6
8
10
(Function code) 33
(Completion code) ?
(See the explanation of the completion codes.)
(Data length) L
(L = 1, 2, 4, 1*n, 2*n, 4*n)
(Data number) N
(N: Input data)
(Data attribute) M
(M: Input data)
Diagnosis data Data–dependent form
Value
When no axis or one axis is specified L = 1 : Bit or byte parameter L = 2: Word parameter L = 4: Double Word parameter
When all axes are specified L = 1*n Bit or byte parameter L = 2*n: Word parameter L = 4*n: Double word parameter
ww w.
cn cc
en ter
.co m
B. WINDOW FUNCTION DESCRIPTION (EXCEPT FS 15B PMC–NB/NB2) B–61863E/10APPENDIX
750
[Description]
The load current for the CNC control axis can be converted to analog voltage, and input to the A/D converter in the CNC to obtain digital data. The output of the A/D converter can then be read.
[Input data structure]
Top address + 0
2
4
6
8
10
(Function code) 34
(Completion code) —
(Need not be set)
(Data length) —
(Need not be set)
(Data number) N
(N: Type of analog voltage)
(Data attribute) M
(M – 1 to 8: Axis specification)
(Data area) —
(Need not be set)
(a) Type of analog voltage (data number)
N Type of analog voltage
0 General–purpose analog voltage information (for four channels)
2 Load information for the CNC–controlled axes
NOTE Only one–path control of the Power Mate MODEL–D is provided with one channel of general–purpose analog voltage information.
B.4.23 Reading A/D Conversion Data
ww w.
cn cc
en ter
.co m
B–61863E/10 B. WINDOW FUNCTION DESCRIPTION
(EXCEPT FS 15B PMC–NB/NB2)APPENDIX
751
(b) Specifying a CNC–controlled axis (data attribute)
Specify a CNC–controlled axis for which the voltage conversion data for the load current is to be read. Data must be specified according to the following table:
Specification of CNC controlled–axis
Specified data Connector in the CNC
1 2 3 4 5 6 7 8
JV1 (MAIN BOARD) JV2 (MAIN BOARD) JV3 (MAIN BOARD) JV4 (MAIN BOARD) JV5 (OPTION BOARD) JV6 (OPTION BOARD) JV7 (OPTION BOARD) JV8 (OPTION BOARD)
[Completion codes]
0 : A/D conversion data has been read normally.
3 : The data specified for the data number is invalid.
4 : The data specified for the data attribute is invalid, or the specified axis number is greater than the number of controlled axes.