Parameters |
Description |
TYPE |
Type of task that the action is to perform:
|
PROJECTNAME |
Project name with complete file path. |
LANGUAGE |
Language code. This parameter has an effect only if the TYPE parameter has one of the following values: |
CONVERTERID |
Identifier for PLC configuration programs. Possible values are:
This parameter has an effect only if the TYPE parameter has one of the following values: |
CONFIGURATIONPROJECT |
Name of the PLC configuration project to be exported. This parameter has an effect only if the TYPE parameter has one of the following values: |
DESTINATIONFILE |
Target file for data export. This parameter has an effect only if the TYPE parameter has one of the following values: |
SOURCEFILE |
Source file for the data import. This parameter has an effect only if the TYPE parameter has the following value: |
OVERWRITE |
If the target file already exists, this parameter indicates whether the file should be overwritten (0 = No, 1 = Yes). This parameter has an effect only if the TYPE parameter has the following value: |
IMPORTMATCH |
Alignment options during PLC data import. The import process tries to synchronize the imported objects with those that exist in the project. Depending on the selected option, the adaption is performed on the basis of the internal object IDs or identifying object names. If an imported object matches an existing function, the properties of the existing function are updated while new functions in the project are generated for non-adjustable objects. The options are:
This parameter has an effect only if the TYPE parameter has the following value: |
CONFIGFILE |
File path for configuration file for the generation of the schematic. This parameter has an effect only if the TYPE parameter has the following value: |
SINGLELINEPAGES |
If specified, single-line pages are generated (0 = No, 1 = Yes). |
MULTILINEPAGES |
If specified, multi-line pages are generated (0 = No, 1 = Yes). |
OVERVIEWS |
If specified overview pages are generated (0 = No, 1 = Yes). |
RACKOVERVIEWS |
If specified, rack overview pages are generated (0 = No, 1 = Yes). |
PLCSTATION |
Name of the PLC station to be exported. This parameter has an effect only if the TYPE parameter has the following value: |
PLCCPU |
Name of the CPU to be exported. This parameter has an effect only if the TYPE parameter has the following value: |
Export PLC data:
plcservice /TYPE:BUSDATAEXPORT /CONFIGURATIONPROJECT:Schneider-Electric /DESTINATIONFILE:"C:\tempdir\plcservice_export_1.xef" /PROJECTNAME:"C:\Users\Public\EPLAN\Projects\EPLAN_Sample_Project.elk" /LANGUAGE:de_DE /CONVERTERID:PlcDcXMLExchangerSchneider /OVERWRITE:1
Import PLC data:
plcservice /TYPE:BUSDATAIMPORT /SOURCEFILE:"C:\tempdir\plcservice_export_2.xml" /PROJECTNAME:"C:\Users\Public\EPLAN\Projects\EPLAN_Sample_Project.elk" /LANGUAGE:de_DE /CONVERTERID:PlcDcXMLExchangerUniversal
Generate schematic:
plcservice /TYPE:GENERATEPLCSCHEMATIC /PROJECTNAME:"C:\Users\Public\EPLAN\Projects\EPLAN_Sample_Project.elk" /CONFIGFILE:"C:\tempdir\schematics_generation_config.xml" /SINGLELINEPAGES:1 /MULTILINEPAGES:1
Export addresses / assignment lists:
plcservice /TYPE:EXPORTADDRESSOVERVIEW /PROJECTNAME:"C:\Users\Public\EPLAN\Electric P8\Projects\Microsoft\EPLAN_Sample_Project.elk" /CONFIGURATIONPROJECT:"CAx_AML_Drive_00" /PLCSTATION:"S71500/ET200MP station_1" /PLCCPU:"1" /DESTINATIONFILE:"c:\tempdir\address_overview_export.csv"