January 2012 8.12 Tables 1615
Module 9250 Starting the editor for sections of a table
In Machine mode, the module starts a table editor on the screen, which is used 
to edit the given rows and columns of a table. For this purpose a temporary 
copy of the file is created, which can be checked with Modules 9240, 9241, 
9245 and 9247 before the edited data is transferred to the original file with 
Module 9251.
Constraints:
 The complete path or a symbolic name must be entered for the file to be 
edited.
 All fields to be edited must be entered in the order that they are to appear 
on the screen. Do not enter the field with the line number: it appears 
automatically. The field names must be separated from each other by blank 
spaces.
 An empty string may also be given for the fields to be edited. In this case all 
fields from the original file are assumed. 
 The module creates the file SSYS:\TEMP\PLCTABED.TDB, which only 
exists for the time of the editing process. It can be read by the PLC, but 
must be closed before the editor is ended with Module 9251.
 If the PLC program is translated again while the editor is open, the editor is 
closed without updating the original file.
 If the "END" key or soft key is pressed while the editor is active, the PLC 
marker NN_GenTableEditEnd is set. The NC does not end the editor 
automatically. The PLC checks the entry because of this marker, and if 
necessary, ends the editor with Module 9251.
 Marker NN_GenTableEditEnd is deleted in advance when the module is 
called. It can also be reset by the PLC program.
 If –1 is entered for the last line to be edited, the file is edited to the end of 
the file.
 If all lines and columns are being edited, you can choose whether deletion 
or insertion of lines is permitted. There is also an option for editing the 
original file directly. However, Module 9251 cannot then be used to undo 
the changes.
 The line numbering begins with line 0.
Call:
PS B/W/D/K/S<File name>
(string number 0..n or constant string)
PS B/W/D/K/S<Fields to be edited>
(string number 0..n or constant string)
PS B/W/D/K <First line to be edited>
0 to 65535
PS B/W/D/K <Last line to be edited>
0 to 65535
PS B/W/D/K <Additional parameters>
Mode:
Bit 0 = 1: Lines can be inserted and deleted 
(only for all lines and columns)
Bit 1 = 1: Edit the original file 
(only for all lines and columns)
Bit 2 = 1: Show as form (otherwise table)
Bit 3 = 1: Write-protection of the file to be opened is 
respected
CM 9250