396 HEIDENHAIN Technical Manual MANUALplus 620
Module 9438 Change the string value of a machine parameter
permanently
Use Module 9438 to enter a string in the indicated machine parameter. The
value of the machine parameter is overwritten in the run-time memory, and
the new value is stored (persistently) in the *.cfg file, overwriting the previous
value.
The new parameter value takes effect immediately, and is not lost when the
machine is switched off.
Constraints:
The module can only be called in a spawn or submit job.
Call:
PS B/W/D/K/S<Name of the configuration object>
e.g. "CfgActivateKinem"
PS B/W/D/K/S<Key name>
Key name of the configuration object, e.g. "CH_NC"
Transfer empty string if config object has no key name
PS B/W/D/K/S<Name of the machine parameter>
e.g. "kinemToActivate"
PS B/W/D/K <Index>
Index of the parameter within an array (list field)
0: Parameter without array (list field)
PS B/W/D/K/S<New value of machine parameter>
CM 9438
PL B/W/D <Error>
See "Return codes of PLC Modules 9430 to 9433, 9436,
9438 (error stack)" on page 397.
Error recognition:
Marker Value Meaning
NN_GenApiModule
Error (M4203)
0 Machine parameter was written
1 Machine parameter was not written, for
error see W1022 or
NN_GenApiModuleErrorCode
NN_GenApiModule
ErrorCode (W1022)
1 Parameter out of value range
2 Parameter invalid or does not exist, or
other error
3 Invalid string number
6 Changing this value not allowed
13 Error while communicating with the config
server
20 Module was not started from a spawn or
submit job