2 PLC transCON PLC-CANopen
2.4 Configuration in the CoDeSys Programming Environment
2.4.2 Changing the Settings for the Target Platform CAUTION
You may only change the settings for the target platform if you are extremely familiar with the settings and parameters. For everyday applications, the default settings are more than adequate. Unqualifed persons making uninformed changes to these settings may result in the system failing to function correctly.
You can access the settings for the target platform once you have created a new project by means of "File | New", (see above), or by double-clicking "Target Platforms" in the
"Resources" window of an existing project.
"Target platform"tab
Dialogue box Meaning
Maximum argument size on stack (byte) Stack size for arguments in bytes. Default setting: 40
"Memory Layout"tab
Dialogue box Meaning
Code Size of code area
Global Size of a data segment
Memory Size of the fag area
Input Size of the input process image
Output Size of the output process image
Retain Size of the retentive data area
Retain in own segment (tick/untick) Ticked: Retentive data managed in own segment Total size of data memory Total size of data memory
Maximum number of POUs Maximum number of POUs in the project
"General"tab
Dialogue box Meaning
I/O Configuration: Configurable Ticked: Support configurable I/O configura-tion and download configuraconfigura-tion descripconfigura-tion to the PLC
Download as file Ticked: I/O configuration downloaded to PLC in file format
No address check Ticked: IEC addresses not checked when compiling the project
Support preemptive multitasking Ticked: Support task configuration and download task description to the PLC Byte addressing
mode
Ticked: Addressing in bytewise form (e.g.
var1 AT % QD4 contains start address % QB4) Initialize zero Ticked: General initialisation with zero Online Change
Update unused I/Os
Download symbol file Ticked: If a symbol file is generated during a download, this is downloaded to the PLC Symbol config. from INI file Ticked: The parameters for symbol
configura-tion are not read from the dialogue box in the project options, but instead from the CoDeSys.
ini file or, if specified, another ini file.
Dialogue box Meaning
PLC Browser Ticked: PLC browser functionality
Trace Ticked: Trace
Initialize inputs Not ticked: For optimisation reasons, an initialisation code is not generated for the inputs declared with "AT %IX" (-> undefined values until the 1st bus cycle!).
Load bootproject automatically Ticked: Following a download, a boot project is automatically generated from the new program and transmitted to the PLC.
"Network functionality"tab
Dialogue box Meaning
Support parameter manager Ticked: The parameter manager appears on the Resources tab. This allows the creation of an object directory for variables and parameters, which can then be used for active data ex-change with other PLCs.
Dialogue box Meaning
Index ranges... ...for parameters Index range for parameters
…for variables Index range for variables
…for mappings Index range for mappings
Caution: If this range is defined, the CanDevice for mapping will only take this into account (i.e. if an index range for parameters has been defined (see above), this will not be taken into account).
Subindex range Index range that can be used for subindices within the index ranges referred to above for parameters or variable SDOs.
Support network variables Ticked: Network variables used for automatic data exchange on the network are supported Names of network interfaces supported List of the network types that are supported
(e.g. CAN, UDP)
"Visualization"tab
Dialogue box Meaning
Display width in pixel Display height in Pixel
Visual limits determined by the values specified here are displayed when a visualisation is created in the editor window; for example, in order to highlight the area of the screen where the visualisation will subse-quently be displayed.
Dialogue box Meaning
Simplified input handling When this option box is ticked, the inputs in a visuali-sation are simplified in online mode. You do not need to use the <Tab> or <Space> buttons to switch from one input feld to the next; instead, you are automati-cally taken to the next feld as soon as you have con-firmed an input by pressing <Enter>. It is also possible to access an input feld using the arrow keys or <Tab>
button and begin with this input.
If the box for this option is not ticked, it will be neces-sary to use the <Tab> and <Space> buttons to access the next input feld and thus enable it for entering information.
Compression If the box for this option is ticked, the following web visualisation files that are to be transferred by CoDeSys to the web server/PLC will be transferred in compressed (zip) format (any other files will be trans-ferred in their original format):
- XML files for visualisations
- Image files (only *.bmp in this case; otherwise, com-pression will not be successful)
- Language files (*.xml for dynamic text,
*.tlt, *.vis)
In addition to their existing names, the files will also possess the ".zip" extension. Any dots in existing file names will be replaced by an underscore. (For exam-ple, "PLC_VISU.xml" becomes "PLC_VISU_xml.zip".) The Java archive (minml.jar, webvisu.jar) and main page (webvisu.htm) will not be compressed.
Inhibit download of visualization files
By ticking the box for this option, the visualisation files used in the current visualisation are not downloaded onto the target platform during a download. Visualisa-tion files are only transferred for target or web visuali-sation. These may be bitmap files, language files or - in the case of web visualisation - even XML description files.
Keyboard usage for tables If the box for this option is ticked, the keyboard can be used for tables in the visualisation, in online mode (CoDeSys HMI, web visualisation, target visualisation).
Deactivating this means that no codes will be gene-rated for the key functions, which, for reasons of per-formance, may make sense for target visualisations.
This concludes the settings for the target platform. You can now close the "Target Set-tings" dialogue box by pressing "OK".