M800V/M80V Series PLC Programming Manual (2/2)
14 PLC Help Function
14.1 Program Format Switch
14.1 Program Format Switch
14.1.1 Outline
G code switch of program format ("program format switch" hereafter) is a function designed to switch the program format (G
code system) using G codes (G188/G189) or PLC signal. While the switch is active, the control runs a program based on the
switched G code system. When you run a lathe-based multi-tasking machine, and if you change the G code system to that of
M system, you can use a free-curved surface machining program made with CAM without modifying the program.
This function can be used when "#1254 set26/bit1" is set to "1".
G code method and PLC I/F method are distinguished in the following points:
This switches by G188/G189 commands in automatic operation.
G code method
(e.g. to switch the format dynamically for some machining processes)
Not in automatic operation
PLC I/F method
(e.g. to enable the state in which the G code system is switched at the time of power up)
This chapter describes the PLC signal method.
14.1.2 Explanation of Function
When the Program format switch request (PFCHR: YD00) turns ON or OFF in the part system designated by the parameter
"#1047 G_Chg_En_Sno" during an operation other than automatic operation, the control enables or disables the program
format switch.
Program format switch
When the Program format switch request signal (PFCHR: YD00) is turned ON, the control switches the program format from
L-system to M-system G code system (G code system 1 (Command type 2)). When the switchover of program format is
completed, the Program format switch in progress signal (PFCHS: XCF0) turns ON. If you start automatic operation with the
Program format switch in progress signal (PFCHS: XCF0) ON, the control runs a program based on the M-system G code
system.
Program format switch
request(PFCHR:YD00)
Program format switch in
progress (PFCHS: XCF0)
In automatic operation
"Run" (OP)
If you change the Program format switch request signal (PFCHR: YD00) from OFF to ON during automatic operation (In
automatic operation signal "run" (OP: XC12) is ON), the operation error (M01 0215) occurs and the program format switch
is not implemented. Turning OFF of this signal cancels the operation error (M01 0215).
If you turn ON Program format switch request signal (PFCHR: YD00) and then start automatic operation in any G modal
state that disables program format switch, the program error (P29) occurs and automatic operation is not implemented.
After turning ON Program format switch request signal (PFCHR: YD00), wait until Program format switch in progress signal
(PFCHS: XCF0) turns ON before you execute automatic operation. Otherwise, it cannot be assured that "the control runs a
program based on the switched G code system from the top block of the program".
Execute program with M system G code system
561
IB-1501668-B