Use the following command to set the target dialog to a specified value. Also refer to the description of the parameter <TargetAddressURI>.
value of theFor secured access, you can use additional call parameter switches.
Usage:
ControllerAssistant -connect ip <TargetAddressURI>
Examples:
ControllerAssistant -connect ip 192.168.1.33
ControllerAssistant -connect ip etcp3://192.168.1.33
ControllerAssistant -connect ip etcp2://192.168.1.33
ControllerAssistant -connect ip "enodename3://MyController (192.168.1.33)"
Use the following command to set the default path of the dialog boxes to a specified value.
andUsage:
ControllerAssistant -file <Path>
Example:
ControllerAssistant -file C:\Temp\Default.bpd
Use the following command to start a backup of the specified controller and to save the backup as the image. The process sequence of this backup is entered into the specified log file. The program runs without graphical user interface. Also refer to the description of the parameter <TargetAddressURI>.
For secured access, you can use additional call parameter switches.
For reading the device user rights management you can use the optional command line argument -ReadOnlineUserRightsManagement <ignore|read>
. If you want to read the device user rights management, then you need additionally the command line argument -UserRightsManagementPassword <MyUserRightsManagementPassword>
. For the graphical version and a detailed explanation see Device User Rights Management.
Usage:
ControllerAssistant [-username <UserName>] [-password <Password>] [-renewalpassword <RenewalPassword>] [-imagedirectory <ImageDirectoryPath>] -loadcontrol <TargetAddressURI> [-ReadOnlineUserRightsManagement <ignore|read> -UserRightsManagementPassword <MyUserRightsManagementPassword>] [<logfile>]
Examples:
ControllerAssistant
-loadcontrol ip etcp3://190.201.100.100 C:\Temp\Logfile.log
ControllerAssistant
-imagedirectory c:\Temp\MyImage
-loadcontrol ip etcp3://190.201.100.100 C:\Temp\Logfile.log
ControllerAssistant -username MyUserName -password MyPassword -renewalpassword MyRenewalPassword -imagedirectory c:\Temp\MyImage -loadcontrol ip etcp4://190.201.100.100 -ReadOnlineUserRightsManagement read -UserRightsManagementPassword MyUserRightsManagementPassword C:\Temp\Logfile.log
-savefile
.
NOTICE | |
---|---|
Use the following command to save the image in the specified controller. The saving sequence is entered into the specified log file. The program runs without graphical user interface. Also refer to the description of the parameter <TargetAddressURI>.
For secured access, you can use additional call parameter switches.
For writing the device user rights management you can use the optional command line argument -WriteOnlineUserRightsManagement <keep|overwrite|restore>
. If you want to overwrite the device user rights management, then you need additionally the command line argument -UserRightsManagementPassword <MyUserRightsManagementPassword>
. For the graphical version and a detailed explanation see Device User Rights Management.
Usage:
ControllerAssistant [-username <UserName>] [-password <Password>] [-renewalpassword <RenewalPassword>] [-imagedirectory <ImageDirectoryPath>] -savecontrol <TargetAddressURI> [-WriteOnlineUserRightsManagement <keep|overwrite|restore> -UserRightsManagementPassword <MyUserRightsManagementPassword>] [<logfile>]
Examples:
ControllerAssistant
-savecontrol ip etcp3://190.201.100.100 C:\Temp\Logfile.log
ControllerAssistant -imagedirectory c:\Temp\MyImage
-savecontrol ip etcp3://190.201.100.100 C:\Temp\Logfile.log
ControllerAssistant -username MyUserName -password MyPassword -renewalpassword MyRenewalPassword -imagedirectory c:\Temp\MyImage -savecontrol ip etcp4://190.201.100.100 -WriteOnlineUserRightsManagement overwrite -UserRightsManagementPassword MyUserRightsManagementPassword C:\Temp\Logfile.log
-savecontrol
command line argument, the file system of the controller is overwritten without any prompt at the point of execution of the command, and the controller thereafter resets.
WARNING | |
---|---|
In order to load the active image from a single image file (file extension *.bdp), call -loadfile
before.
To load the specified *.bpd file as the image, use the following command. The loading sequence is entered into the log file specified. The program runs without graphical user interface.
Usage:
ControllerAssistant [-imagedirectory <ImageDirectoryPath>]
-loadfile <ImageFilePath> [<logfile>]
Examples:
ControllerAssistant -loadfile C:\Temp\Default.bpd C:\Temp\Logfile.log
ControllerAssistant -imagedirectory c:\Temp\MyImage
-loadfile C:\Temp\Default.bpd C:\Temp\Logfile.log
To save the image in the specified *.bpd file, use the following command. The saving sequence is entered into the log file specified. The program runs without graphical user interface.
Usage:
ControllerAssistant [-imagedirectory <ImageDirectoryPath>]
-savefile <ImageFilePath> [<logfile>]
Examples:
ControllerAssistant -savefile C:\Temp\Default.bpd C:\Temp\Logfile.log
ControllerAssistant -imagedirectory c:\Temp\MyImage
-savefile C:\Temp\Default.bpd C:\Temp\Logfile.log
Use the following command to save an XML file with a list of the firmware versions of the given controller type that can be found on this PC at the result path. The result provides the same information as available inside the graphical user interface.
If the switches -ProductName
and -ProductVersion
are set, the XML file contains only results for the given product name and product version.
Usage:
ControllerAssistant
-getinstalledfirmwareversionsXml <ControllerType> <ResultPath> [-ProductName <ProductName>]
[-ProductVersion <ProductVersion>] [<logfile>]
Example:
ControllerAssistant
-getinstalledfirmwareversionsXml LMC058 c:\Temp\MyVersions.xml
ControllerAssistant
-getinstalledfirmwareversionsXml M241 c:\Temp\MyVersions.xml -ProductName SoMachineSoftware -ProductVersion V4.3
ControllerAssistant
-getinstalledfirmwareversionsXml M262 c:\Temp\MyVersions.xml -ProductName EcoStruxureMachineExpert
Use the following command to save an XML file with a list of all the firmware versions of all Sercos devices of the given controller type that can be found on this PC at the result path. The result provides the same information as available inside the graphical user interface.
Usage:
ControllerAssistant
- getinstalledsercosfirmwareversionsXml <ControllerType> <ResultPath>
[<logfile>]
Example:
ControllerAssistant
- getinstalledsercosfirmwareversionsXml LMC600C c:\Temp\MyVersions.xml
The call via command line creates the image from the given controller type or family and the given version. The same functionality is also available in the graphical user interface.
Usage:
ControllerAssistant -createimage <ControllerType> <FirmwareVersion> [<logfile path>] [imagepath=<image path>]
Example:
ControllerAssistant -createimage LMC400C 1.50.1.3 c:\Temp\MyLogfile.log
The call via command line updates the firmware of the active image by the given version. The same functionality is also available in the graphical user interface. The controller type and the firmware version are given by the existing image directory. If a compatible version is detected, the update is performed without removing the existing application.
Usage:
ControllerAssistant [-imagedirectory <ImageDirectoryPath>]
-updateimage <FirmwareVersion> [<LogFile>]
Examples:
ControllerAssistant -updateimage 1.50.1.3 c:\Temp\MyLogfile.log
ControllerAssistant -imagedirectory c:\Temp\MyImage
-updateimage 1.50.1.3 c:\Temp\MyLogfile.log
The call via command line updates the communication settings of a controller inside an existing image by the given communication settings. The same functionality is also available in the graphical user interface.
Usage:
ControllerAssistant [-imagedirectory <ImageDirectoryPath>]
-updatecommunicationsettings <IPaddress>
<SubnetMask> <Gateway> <IPMode(fixed | bootp | dhcp)> <DeviceName>
[<logfile path>]
The DeviceName
is used with IPMode dhcp
. On some controllers, IPMode
and DeviceName
are ignored.
Examples:
ControllerAssistant
-updatecommunicationsettings 10.128.111.222 255.255.255.0 10.128.111.1 fixed "" c:\temp\version.log
ControllerAssistant -imagedirectory "c:\temp\MyImage"
-updatecommunicationsettings 10.128.111.222 255.255.255.0 10.128.111.1 dhcp "MyDeviceName" c:\temp\version.log
Use the following command to retrieve the version number of the Controller Assistant application. The optional log file <LogFile>
is used to log the result and detected errors. Also refer to the description of optional and default values.
Usage:
ControllerAssistant -getProgramVersion [<logfile>]
Example:
ControllerAssistant -getProgramVersion c:\temp\version.log
Use the following command to add specific files to a controller image.
Usage:
ControllerAssistant [-imagedirectory <ImageDirectoryPath>]
-addCustomFiles <sourcePath> [<relativeDestinationPath>]
[logfile=<logfile>]
The SourcePath
is a folder containing the files that are copied into the controller image. This path can also contain subdirectory structures. The RelativeDestinationPath
is optional and specifies a subfolder inside the controller image where the files are stored. The subfolder or a structure of subfolders is relative to the root folder of the imagepath
.
Examples:
ControllerAssistant -addCustomFiles "c:\temp\MyRecipes"
ControllerAssistant -imagedirectory "c:\Temp\MyImage"
-addCustomFiles "c:\temp\MyRecipes" "MyFiles\MyRecipes" logfile=c:\temp\MyLogfile.log
Use the following command to add an application to an existing controller image. For example, for the LMC•0•C controller family, the *.app and the corresponding *.crc files are copied into the image folder and the CmpApp
section of the *sysc3.cfg file is modified.
Usage:
ControllerAssistant [-imagedirectory <ImageDirectoryPath>]
-addapplication <ApplicationPath> <ApplicationName>
[logfile=<logfile>]
Example:
ControllerAssistant -imagedirectory c:\temp\MyImage
-addapplication c:\temp\MyApplicationFolderPath
MyApplicationName logfile=c:\temp\version.log
The ApplicationPath
is the folder containing the *.app and the corresponding *.crc files. The ApplicationName
is the name of the *.app file (the file name without extension).
Use the following command to list the possible commands with its arguments on the console.
Usage:
ControllerAssistant -help
Example:
ControllerAssistant -help
Use the CreateRemoteConnection
command to establish a static remote connection to a controller specified by the IP address and the port.
Syntax:
-CreateRemoteConnection <ipAddressAndOptionalPort> [<RetryIfConnectionBreaks>]
Parameter |
Description |
---|---|
|
IP address and optional port, separated by a |
|
Optional parameter that defines the behavior in case of connection interruption:
|
Examples:
ControllerAssistant -CreateRemoteConnection 192.168.2.50
ControllerAssistant -createremoteconnection 192.168.2.50:1105
ControllerAssistant -createRemoteConnection 192.168.2.50:1105 1
Status of the connection:
After you have executed the CreateRemoteConnection
command, a dialog box is displayed:
It provides information on the status of the remote connection.
It allows you to terminate the connection by clicking
.If the connection cannot be established or is terminated, it provides further information on the possible reasons.
It indicates whether you have activated the <RetryIfConnectionBreaks>
parameter by notifying you that automatic reconnection attempts are performed.
Application example:
You can use the CreateRemoteConnection
command, for example, in OPC server applications. It is useful if the OPC server is installed on a PC and intends to establish a connection to a controller that resides in another subnet (remote connection). In this case, establish the remote connection bridge with this command before starting the server. The remote controller can then be scanned by the local gateway. Terminate the connection after you have stopped the server.
Use the StopAllApplications command to stop the applications of the specified controller.
For secured access, you can use additional call parameter switches.
Usage:
ControllerAssistant [-username <UserName>] [-password <Password>] [-renewalpassword <RenewalPassword>] -stopallapplications <TargetAddressURI> [<logfile>]
Examples:
ControllerAssistant -StopAllApplications etcp3://192.168.2.50
ControllerAssistant -StopAllApplications "enodename3://MyController (192.168.2.50)" "C:\Temp\Logfile.log"
ControllerAssistant -username MyUserName -password MyPassword -renewalpassword MyRenewalPassword -StopAllApplications "enodename3://MyController (192.168.2.50)" "C:\Temp\Logfile.log"
The CNC files are stored on the internal memory of the controller in the folder <root>/MECNC
.
The cncsettings
call parameter switch can be used to set the behavior for the CNC files through the firmware creation or update process.
dontcreate
(default setting): The files in the folder <root>/MECNC
folder are deleted through the firmware creation or update process.
path <PathToZippedFile>
: The files from the ZIP file (including subfolders) are copied to the folder <root>/MECNC
.
preserve
: The files in the folder <root>/MECNC
are preserved through the firmware creation or update process.
<root>/MECNC/License
and are not modified through the firmware creation or update process.
Usage:
ControllerAssistant -cncsettings [dontcreate|path <PathToZippedFile>|preserve]
Examples:
ControllerAssistant -cncsettings path C:\Temp\CNCfilesUpdate.zip
Refer to Network Device Identification Call Parameters for additional command line calls specific for Network Device Identification.