
System Manual Compact Systems
7 Start-Up
HI 800 141 E Rev. 2.02
Page 61 of 110
Table 34: System Parameters of the User Program - CPU OS V7 and Higher
Notes specific to the
Code Generation Compatibility
Parameter
:
In a new project, SILworX selects the latest value for the
Code Generation Compatibility
parameter. This ensures that the current, enhanced features are activated and the latest
hardware and operating system versions are supported. Verify that this setting is in
accordance with the hardware in use, e.g., in HIMatrix standard devices,
Minimum
Configuration Version
must be set to
SILworX V2.
In a project converted from a previous SILworX version, the value for
Code Generation
Compatibility
remains the value set in the previous version. This ensures that the
configuration CRC resulting from the code generation is the same as in the previous version
and the generated configuration is compatible with the operating systems in the hardware.
For this reason, the value of
Code Generation Compatibility
should not be changed for
converted projects.
If a
Minimum Configuration Version
of
SILworX V4
or higher is set for a resource (see
above), the
Code Generation Compatibility
parameter must be set to
SILworX V4
in every
user program. If
SILworX V2
is required, the
Minimum Configuration Version
resource
parameter must be set to
SILworX V2
.
7.3.4
Configuring the Inputs and Outputs
In the Hardware Editor, the inputs and outputs are configured by connecting global variables to
the system variables for input and output channels.
To access the system variables for input and output channels
1. Display the desired resource in the Hardware Editor.
2. Double-click the required input or output module to open the corresponding Detail View.
3. In the Detail View, open the tab with the required channels.
The system variables for the channels appear.
Use of Digital Input
To use the value of a digital input in the user program
1. Define a global variable of type BOOL.
2. Enter an appropriate initial value, when defining the global variable.
3. Assign the global variable to the channel value of the input.
4. In the user program, program a safety-related fault reaction using the error code
-> Error
Code [Byte].
The global variable provides values to the user program.
For digital input channels for proximity switch internally operating in analog mode, the raw value
can also be used and the safe value can be calculated in the user program. For more
information, see below.
To get additional options for programming fault reactions in the user program, assign global
variable to
DI.Error Code
and
Module Error Code
. For more information on the error codes,
refer to the manual of the corresponding compact system or module.
Use of Analog Inputs
Analog input channels convert the measured input currents into a value of type INT (double
integer). This value is then provided to the user program. If analog inputs of type FS1000 are
used, the range of values is 0...1000, with analog inputs of type FS2000, the range of values is
0...2000.
To use the value of an analog input in the user program
1. Define a global variable of type INT.
2. Enter an appropriate initial value, when defining the global variable.
Содержание HIMatrix F30
Страница 102: ...12 Disposal System Manual Compact Systems Page 102 of 110 HI 800 141 E Rev 2 02...
Страница 109: ......