beautypg.com

2 read machine parameter (module 9032) 7-140 – HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual

Page 601

background image


7-140

TNC 407/TNC 415/TNC 425

4 PLC Modules

01.98

4.2.2 Read Machine Parameter (Module 9032)

Reads the value of a machine parameter that is defined by its number and index from the editable
machine parameter list.

Constraints:
- The value of the machine parameter is returned as an integer, with the decimal point being shifted

by the number of possible places after the decimal. Example MP910.0 = 100.12 mm is read as
1001200 (four places after the decimal lead to a multiplication by 10000).

- Only the value from the editable machine parameter list is read, not any value in the run-time

memory modified by PLC Module 9031.

- Zero must be given as the index for non-indexed machine parameters.

Possible errors:
- The machine parameter specified by the MP number and index does not exist.
- The module was not called from a Submit Job.

Call:

PS

B/W/D/K

PS

B/W/D/K

CM

9032

PL

B/W/D

/
1: No such MP number
2: No separator
3: MP value out of range
4: MP not in file
5: No MP file found
6: Call was not from SUBMIT Job

Error status after call: M3171 =

0: MP was read
1: Error condition see above

4.2.3 Select Machine Parameter File (Module 9033)

The machine parameter file with the specified name is selected (M status assigned) and a control
reset is executed if another file was previously selected.

Constraints:
- The module can only be called from a SUBMIT Job.
- The module disregards any safety problems when initiating the control reset (e.g. free run-out of

axes and spindle).

- The module can only be used on files in the RAM.
- The new MP file to be selected is checked, a faulty file is not selected.
- There is no return to the calling PLC program if file selection is successful.
- The file name is specified in a string that must contain the file name with extension. Additional

characters (including blanks) are not allowed.

- If the PLC program is created externally ensure that lower-case letters are not used for the file

name.

- Once the NC program has started the module only operates during the output of M/G/S/T/T2/Q

strobes.