54 HEIDENHAIN Technical Manual iTNC 530 HSCI
Concluding PLC 
actions
After the SHUTDOWN soft key has been pressed, the PLC program can delay 
or prevent the display of the pop-up window (shutdown: yes/no). The 
message "The TNC will be shut down and machine functions will be 
performed" in the operating modes window indicates this condition. An 
appropriate user guidance must have been programmed by using the available 
tools, such as dialog texts, pop-up windows, vertical soft key, etc., in order to 
inform the user about concluding operating steps that may be necessary.
The previous possibilities of configuring a shutdown (MP4040 and the 
subsequent functions) can continue to be used, because these settings do not 
become effective until the prompt "Do you really want to switch off?" has been 
acknowledged.
 New: M4195
The new marker M4195 is set when the SHUTDOWN soft key is pressed 
(= 1). The PLC program can prevent the control from shutting down by 
resetting the marker in the next PLC cycle. In this phase (M4195 = 0), the 
text "The TNC will be shut down and machine functions will be performed" 
is displayed in the operating modes window and the PLC program can 
execute specific actions before shutting down the control. The TNC remains 
in this condition until the marker M4195 is set again. 
 New: M4197
If the PLC actions cannot be concluded, the PLC can cancel shutdown of the 
control by setting marker M4197 = 1. Then the TNC returns to its original 
mode of operation and the two markers also return to their initial state.
Diagnostics In order to make debugging in PLC programs easier, the following markers can 
be used to record additional PLC module calls and their parameters. The data 
are written to the new log file PLC:\JHPLCLOG\PLCMODULES.LOG. If one of 
the three markers is set, this results in the one-time NC error message "Debug 
functions of the PLC are active." The existing log files PLC:\PLCDEBUG.LOG, 
PLC:\MYDEBUG.LOG, PLC:\VERSION.TXT and PLC:\MakeCycle.log are now 
contained in the directory PLC:\JHPLCLOG\. Also, the file PLC:\VERSION.TXT 
was renamed to PLC:\VERSION.LOG. When updating the software, the 
previous log files will be identified by the extension .OLD and will be copied to 
the new directory. Then they will be deleted from the previous directory PLC:\.
 New: M4751
Recording of transfer and return parameters of PLC modules that are called 
in the cyclic PLC program.
 New: M4752
Recording of transfer and return parameters of PLC modules that are called 
in submit/spawn processes.
 Modified: M4753
The existing function no longer writes the recorded data to the previous file 
PLC:DEBUG.LOG, but to the new file 
PLC:\JHPLCLOG\PLCMODULES.LOG.