Yaskawa YASNAC PC NC Maintenance Manual Manual do Utilizador Página 286

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 285
Chapter 8: Fixed File Operations PC NC Maintenance Manual
8-84
8.6 Properties File Customization
Each screen in the PC NC MMI may have a properties file with which it is associ-
ated. This allows the screen to have modifiable properties without code changes.
Some examples are:
fileManager.properties - defines directory choices in file manager drop
down.
tempSensor.properties - defines limits for CPU temperature and fan speed.
Button parameter screens, such as Offline Mode or Utilities: PC Settings
screens - each screen is a shared instance of the same screen object but with
different properties.
Environment Variables and Directories
Many items in the properties files use environment variables instead of
directory names. Environment variables are defined in the ‘applica-
tion.properties’ file. When a environment variable is referenced in another
properties file, is flanked by ‘%’ to indicate that is an environment vari-
able. For example, the following environment variable, MMIDATABASE,
is defined in the ‘application.properties’ file as follows:
MMIDATABASE = C:\\ypcnc\\database
Now other things may be defined using this macro. For example, if the help
file is ‘C:/ypcnc/database/help.text’, a properties file entry may be:
helpFile = %MMIDATABASE%\\help.text
Macros may be defined using other macros:
MMIDRIVE = C:
MMIROOT = %MMIDRIVE%\\ypcnc
MMIDATABASE = %MMIROOT%\\database
When defining subdirectories, note that ‘\\’, not ‘/’, is required between
subdirectory names.
Properties File Entries For Menus
Some properties files have entries that are used to specify what items are
shown in a drop-down menu on a particular screen. These files all use the
Vista de página 285
1 2 ... 281 282 283 284 285 286 287 288 289 290 291 ... 300 301

Comentários a estes Manuais

Sem comentários