January 2012 7.1 Display and Operation 1275
Entering data in log 
files
The error log file can be used by the PLC for diagnostic purposes.
Entering data from the PLC into the error log file:
 Use Module 9275 to write ASCII data into the error log file
 Use Module 9276 to write the contents of operands into the error log file
Module 9275 Write ASCII data into the log
The module writes a character string from a PLC string or an immediate string 
into the error log file. The entry can be given a special identifier for fast finding 
or later editing.
A buffer of approx. 210 bytes is available for the data to be written (including 
the entry identification). 
Call:
PS B/W/D/K/S<Log entry>
–1: No entry
PS B/W/D/K/S<Log identifier>
–1: No entry
PS B/W/D/K <Priority>
0: Information
1: Warning
2: Error
CM 9275
Error recognition: 
Do not use Modules 9275 and 9276 in the PLC program as shipped. 
Instead, use them only for debugging. Otherwise the processing times 
could be increased and the hard disk could be written to unnecessarily.
Marker Value Meaning
NN_GenApiModule
Error
0 Entry was written
1 Error code in NN_GenApiModuleErrorCode
NN_GenApiModule
ErrorCode
1 Invalid priority
2 Invalid string number or invalid immediate 
string
12 No string end identifier
20 Module was not called in a spawn or submit 
job