From RTE 34.25.2, the INIT.CFG file was introduced, which must be present in the /INIT folder.
This file allows the values of alias folder to be changed.
NOTE: In the default case, F@ and FA have the same characteristics as they had in previous versions of RTE.
Comments can be inserted; the syntax is ";" followed by the comment.
Every other line must have the following syntax:
ALIAS_CFOLDER = "/dirname/", with "/dirname/" the path to a valid folder.
By setting bit 26 (0x040000) of the predefined variable sys_cfg, the replacement of the alias folder with its value is also enabled in BCC commands and R3 instructions/functions.
For example, the shell command "fview /SETUP_DIR/rte.cfg" is converted to "fview /FA/rte,cfg" (if in the INIT.CFG file the alias SETUP_DIR has not been set otherwise).
With the example INIT.CFG file that you can find under the shell command "fview /SETUP_DIR/rte.cfg" would be converted to "fview /setup/rte.cfg".
WARNING: Any references to alias folder present in the RDE project instead will not be replaced.
INIT.CFG file example
; INIT.CFG file sample USER_DIR = "/application/" HW_DIR = "/config/hw/" NET_DIR = "/config/net/" CAN_DIR = "/config/can/" ECAT_DIR = "/config/ecat/" FB_DIR = "/config/fb/" MODBUS_DIR = "/modbus/" SETUP_DIR = "/setup/" |