392 HEIDENHAIN Technical Manual MANUALplus 620
Module 9431 Read the numeric value of a machine parameter
Use this module to read the value of the given machine parameter from the
run-time memory.
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. "CfgPositionLimits"
PS B/W/D/K/S<Key name>
Key name of the config object, e.g. "PX"
Transfer empty string if config object has no key name
PS B/W/D/K/S<Name of the machine parameter>
e.g. "swLimitSwitchNeg"
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 <Factor>
Division factor for conversion to a floating-point number
Enter 1 to receive integer parameters
CM 9431
PL B/W/D/K <Value of the machine parameter>
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 No error, data was read
1 Error code in NN_GenApiModuleErrorCode
(W1022)
NN_GenApiModule
ErrorCode (W1022)
1 Parameter out of value range
2 Parameter invalid or does not exist
13 Error while communicating with the config
server
20 Module was not started from a spawn or
submit job