July 2013 4.3 Input and output of machine parameters 489
Module 9313 Read machine parameters
Module 9313 reads the contents of machine parameters from the run-time
memory or from the current machine-parameter file. For machine parameters
defined as numerical values, the content can also be read as a string. Machine
parameters defined as strings cannot be read as numbers.
Machine parameters that have no function in the currently active machine
configuration (highlighted in the MP editor) previously reported the value 0
when they were read by PLC module 9313. As of software 340 49x-05, the
value entered in inactive machine parameters will also be reported. For
machine parameters, that are not in the MP file, the default value is read.
Call:
PS B/W/D/K <Mode>
Bit 0:
0 = Read MP as numerical value (MP must be a number)
1 = Read MP as string (MP can be a number or text)
Bit 1:
0 = Read MP from file
1 = Read MP from memory
PS B/W/D/K/S<File name>
not supported at present
(a value must be transferred, but the value entered is not evaluated
yet)
(only the active MP file can be read from)
PS B/W/D/K <MP number>
PS B/W/D/K <MP index>
PS B/W/D/K/S<Target word or target string>
Mode bit 0 = 0: Interpretation as a double-word address
Mode bit 0 = 1: Interpretation as a PLC string number
CM 9313
PL B/W/D <Error>
0: No error
1: MP number, PLC string or PLC double-word address invalid
2: No ":" separator in MP file, e.g. (MP 10: %0111)
3: MP value outside permissible value range
4: MP not found in file
5: No MP file found
6: Call was not in a submit or spawn job
7: MP (defined as string) cannot be read as a number
8: No system memory
Error code:
Marker Value Meaning
M4203 0 No error
1 See error code