1266 HEIDENHAIN Technical Manual MANUALplus 620
OEM log
Module 9277 Write data into the OEM log
With Module 9277 the PLC can write data into a specific OEM log. Up to eight 
OEM logs can be used at the same time. The module can be called from a 
cyclic PLC program or from a spawn job or submit job. The string for the log 
entry may contain two wildcards (data1 and data2). Only wildcards that occur 
are replaced. The output format is controlled through the entry %d for integers 
or the entry %f for floating point numbers with three decimal places. 
Alternatively, you can define the number of decimal places with %.1f to %.6f. 
Example of a string for the log entry:
S“data1: %.2f data2: %d“
If the maximum log size of 1 MB is exceeded, the log is copied to 
<name>.LOG.OLD and a new log with the same name is created. Once the 
logs have been called, they remain open until the control is shut down.
Call:
PS B/W/D/K/S<Path with file name (without .LOG extension)>
PS B/W/D/K/S<String with placeholder for log entry>
PS B/W/D/K <Value for data1>
PS B/W/D/K <Value for data2>
PS B/W/D/K <Switch for additional entries>
Bit 0 = 0/1: Entry without/with time stamp
Bit 1 = 0/1: Entry without/with PLC cycle counter
CM 9277
Error recognition: 
Writing to OEM logs must only take place in worthwhile intervals, since 
under circumstances the processing time could be affected negatively, and 
the hard disk written to unnecessarily.
Marker Value Meaning
NN_GenApiModule
Error (M4203)
0 Data written into OEM log
1 Error code in NN_GenApiModuleErrorCode 
(W1022)
NN_GenApiModule
ErrorCode (W1022)
2 Invalid string number or invalid string
22 Message cannot be transmitted