Lorne,
You might want to look at the SetSystem statement.
Specifically SetSystem 8, n
This is the documentation that I found:
Allow the PLC to change its own ID from within TBASIC temporarily to the lower 8-bit value provided in the "data" parameter for individual COMM port. The new ID is volatile. It does not overwrite the default PLC ID which can only be changed from a host program using the "IWxx" command.
SETSYSTEM 8, n
COMM1: n = &H0001 to &H00FF
COMM2: n = &H0101 to &H01FF
COMM3: n = &H0201 to &H02FF
COMM4 (Ethernet): n = &H0301 to &H03FF
ID for the respective COMM port will be set to 01 to FF after running the above command. (only applicable to PLC with firmware r76 and above)The documentation suggests that the changed to the device ID is "temporary". You will probably have to run this command each time the PLC restarts.
You may, also, want to look at the Status(
function. This returns some version of the PC ID. I suspect that the value returned is the default value that was assigned to the PLC and not the temporary ID assigned with the SETSYSTEM command.
Lorne, I noticed that you are using the "Fx" series PLCs. With my customers that use the Fx PLCs or the FMD PLCs with the RTC/256M memory card, I use the FTP server mechanism to manage PLC configuration data. I generate an ASCII text file and upload this file to the PLC's FTP server. The PLC, periodically, checks for the configuration file and if it is found does the following with it:
1. Reads it to determine that it is valid
2. Parses out the configuration data and saves them the EEPROM.
3. Erases the uploaded file. This indicates that the PLC processed the configuration data.
4. Writes out to a 2nd FTP file the new PLC configuration. This allows me to check and verify the configuration of the PLC program.
I also, allow, my customer's to change configuration parameters via the HMI. When the customer commits to the changes, the PLC will write out a new 2nd FTP file that documents the new configuration.
This 2nd FTP file can be copied from the FTP server, renamed and then used to configure other PLCs or just archived for documentation purposes.
Maybe this will help,
Gary D*ckinson