1288 HEIDENHAIN Technical Manual iTNC 530 HSCI
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.
The transferred OEM log can be closed with the switch for additional entries
(bit 2). This makes it possible to save log files on the hard disk. In this case, all
parameters other than <Path with file name> are meaningless. Attempts to
close a log multiple times will not lead to a reaction or error message.
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
Bit 2 = 1: Log (= path with file name) is being closed
CM 9277
Error code:
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
M4203 0 Data written into OEM log
1 Error code in W1022
W1022 2 Invalid string number or invalid string
22 Message cannot be transmitted