X20AI4632-en V3.20
X20AI4632-en V3.20
X20AI4632
1 General information
1.1 Other applicable documents
The module is equipped with 4 inputs with 16-bit digital converter resolution and very fast conversion time. It is
possible to select between the current and voltage signal using different terminals.
Functions:
• Scaling
• Filtering
• Error monitoring
• Analysis functions
Scaling
The A/D converter data can optionally be scaled by the user to ensure the greatest possible flexibility.
Input filter
An input filter can be configured for each individual analog input.
Error monitoring
The input signal is monitored for range overshoot, synchronization errors and invalid sampling cycles. User-defined
limit values can also be defined.
Analysis functions
In addition to sampling the analog input signal, the values determined can also be analyzed:
• Limit value analysis
• Recording the sampled values
• Trace
2 Technical description
2.1 Technical data
Order number X20AI4632
Short description
I/O module 4 analog inputs ±10 V or 0 to 20 mA
General information
B&R ID code 0x1BA1
Status indicators I/O function per channel, operating state, module status
Diagnostics
Module run/error Yes, using LED status indicator and software
Inputs Yes, using LED status indicator and software
Channel type Yes, using software
Power consumption
Bus 0.01 W
Internal I/O 1.5 W 1)
Additional power dissipation caused by actuators -
(resistive) [W]
Certifications
CE Yes
UKCA Yes
ATEX Zone 2, II 3G Ex nA nC IIA T5 Gc
IP20, Ta (see X20 user's manual)
FTZÚ 09 ATEX 0083X
UL cULus E115267
Industrial control equipment
HazLoc cCSAus 244665
Process control equipment
for hazardous locations
Class I, Division 2, Groups ABCD, T5
DNV Temperature: B (0 to 55°C)
Humidity: B (up to 100%)
Vibration: B (4 g)
EMC: B (bridge and open deck)
LR ENV1
KR Yes
ABS Yes
BV EC33B
Temperature: 5 - 55°C
Vibration: 4 g
EMC: Bridge and open deck
EAC Yes
KC Yes
Analog inputs
Input ±10 V or 0 to 20 mA, via different terminal connections
Input type Differential input
Digital converter resolution
Voltage ±15-bit
Current 15-bit
Conversion time 50 μs for all inputs
Output format INT
Output format
Voltage INT 0x8001 - 0x7FFF / 1 LSB = 0x0001 = 305.176 µV
Current INT 0x0000 - 0x7FFF / 1 LSB = 0x0001 = 610.352 nA
Input impedance in signal range
Voltage 20 MΩ
Current -
Load
Voltage -
Current <400 Ω
Input protection Protection against wiring with supply voltage
Permissible input signal
Voltage Max. ±30 V
Current Max. ±50 mA
Output of digital value during overload
Undershoot
Voltage 0x8001
Current 0x0000
Overshoot
Voltage 0x7FFF
Current 0x7FFF
Conversion procedure SAR
Input filter Hardware - Third-order low-pass filter / cutoff frequency 10 kHz
For a description of the various operating modes, see section "Additional information - Diagnostic LEDs" in the
X20 System user's manual.
Figure LED Color Status Description
r Green Off No power to module
Single flash RESET mode
Double flash BOOT mode (during firmware update)1)
Blinking PREOPERATIONAL mode
On RUN mode
e Red Off No power to module or everything OK
On Error or reset status
Double flash System error:
• Violation of the scan time
• Synchronization error
1-4 Green Off Open line2) or sensor is disconnected
On Analog/digital converter running, value OK
1) Depending on the configuration, a firmware update can take up to several minutes.
2) Open line detection only possible when measuring voltage.
2.3 Pinout
r e
X20 AI 4632
1 2
3 4
AI + 1 I AI + 2 I
AI + 1 U AI + 2 U
AI - 1 U/I AI - 2 U/I
AI + 3 I AI + 4 I
AI + 3 U AI + 4 U
AI - 3 U/I AI - 4 U/I
To prevent disturbances, the following modules must be separated by at least one module:
• Bus receiver X20BR9300
• Supply module X20PS3300/X20PS3310
• Supply module X20PS9400/X20PS9402
• Power supply module X20PS9600/X20PS9602
• Controller
AI
Voltage measurement Current measurement
PTC
AI + x I
Shunt
AI + x U Input value
A/D
converter
I/O status
AI - x U/I
LED (green)
2.6 Derating
X20 module
3 Function description
3.1 Analog inputs
The module is equipped with analog inputs with connected 16-bit A/D converters. Each of the inputs can be con-
figured separately for either voltage or current input for the following ranges:
• Permissible voltage: ±10 V
• Permissible current: 0 to 20 mA
Configuration must take place in addition to using suitable terminals.
Information:
The register is described in "Channel configuration" on page 16.
3.1.1 Scaling
The A/D converter data can optionally be scaled by the user. The following additional registers are available for this:
• Gain = ku
• Offset = du
Scaling calculation:
Scaled value = k * A/C value + d
Gain k = kCalibration * ku
Offset d = dCalibration + du
The value must be limited since it can exceed the 16-bit constraints. If the application requires a restriction of the
range of values, the user can define custom limit values. These are also used for the module's error statistics.
Information:
Within the module, 32-bit numbers are used for the limit values. A limit value violation can therefore
also be detected if the permissible range of values of -32768 to 32767 has been defined.
Information:
The registers are described in "User-defined scaling" on page 17.
3.1.2 Filtering
If filtering has been enabled, the basic data of the A/D converters is filtered per channel. The filter order and
respective cutoff frequency of the low-pass filter can be configured for this.
Internal filter orders greater than 1 are implemented as cascaded first-order filters.
Calculating the cutoff frequency of an nth-order filter:
Cutoff frequency = Cutoff frequencyn / ((2 ^ (1 / n) - 1) ^ 0.5)
Approximate calculation
yn = a * xn + b * y(n-1)
a = Sampling timeSec / (Sampling timeSec + 1 / (2 Pi * Cutoff frequencyHz))
b=1-a
Information:
Since low-pass filtering takes place using an approximation procedure with fixed-point arithmetic,
there are discrepancies to the effective cutoff frequency that depend on the sampling cycle and filter
sequence.
Information:
The registers are described in "Filtering" on page 17.
There are various counter registers in the module that can be used to record the occurrence of certain errors.
The counters in these registers follow the rules of the event error counter, i.e. each occurrence or reset of an error
increases the counter value. The last bit of the counter indicates the error state:
• Last bit = 1 → Error pending
• Last bit = 0 → No error
The following errors are monitored:
• Synchronization error
This error shows how often the conversion task was triggered more than 5 μs after the previous X2X cycle.
• Invalid sampling cycles
This error indicates a cycle time violation. The error occurs if the conversion task triggers a sampling task
before the last sampling cycle has been completed.
• Workspace overshoots
This indicates errors outside the maximum possible measurement range of the module.
• Range undershoots
This indicates range undershoots below the value set as "Minimum limit value".
• Range overshoots
This indicates range overshoots above the value set as "Maximum limit value".
Overshoots and undershoots
These counters are only operated if the static error counters are enabled in the channel configuration.
Information:
The registers are described in "Error monitoring and counters" on page 19.
In addition to sampling the analog input signal, this module can also be used to perform additional analysis of the
values obtained.
Limit value analysis must be enabled for the desired channel. The sampled value of the channel is then compared
with the minimum and maximum values stored internally within the module. If a new measurement period is trig-
gered, the values from the last measuring period can be read out from the registers provided for this purpose.
If limit value analysis has been enabled for a channel, the sampled minimum and maximum values are latched
within the module. A measurement period can be triggered via the control byte. If the corresponding configured
edge is generated by the application, the limit values of the last measurement period are displayed and the internal
latch registers are reset.
Information:
The registers are described in "Limit values" on page 23.
If the recording of sampled values has been enabled for a channel, the sampled values are also recorded in a
module-internal FIFO memory. When the configured event occurs, the contents of the FIFO memory are transmitted
to the application.
Information:
Recording of sampled values can only be used if the module is operated on an X2X master that is a
type SG4 controller.
The analog signal is sampled in 2 steps.
• Conversion task
The A/D converter digitalizes the inputs signals for the enabled inputs once per conversion cycle. Then the
results are available internally in the module. To ensure that this process is executed without delays, the
corresponding task will be handled with very high priority.
The timespan needed for conversion results from the set sampling time.
• Processing task
The converted A/D converter values are further processed according to the user settings (filtering, scaling,
limit values, error statistics, min/max analysis, hysteresis comparison). The task for this process has low
priority. The timespan needed for further processing depends on the configured functions and is the second
portion of the sampling time.
Cycle time violation
In normal operation, further processing is triggered after each conversion. The conversion and sampling tasks run
synchronous to one another. If the predefined sampling time is not sufficient to convert all enabled channels and
complete the configured functions, a cycle time violation occurs.
Information:
The register is described in "Sampling time" on page 16.
3.3.3 Trace
If the module is operated on a type SG4 controller, the digitized input values can be recorded by the module.
Module monitoring must be enabled to use measured value recording.
Recording must be enabled for the desired channel. The enable bits can then control the recording at runtime. The
sampled values are recorded in the module's internal FIFO memory.
If the previously defined state occurs on the channel, the contents of the FIFO memory are transmitted to the
application. Whether the FIFO memory continued to be filled depends on how recording is configured.
Information:
The trace mechanism cannot be used if the module is operated behind a bus controller, but only when
it is directly connected to the controller.
Information:
The registers are described in "Trace" on page 23.
Library "AsIOTrc" is used to read out the trace data.
Register "TraceChannelEnable" on page 23 determines the structure of the trace buffer.
Example of the structure of the trace buffer:
3 channels of the module are used in this example. All 3 channels are sampled per trigger and stored one after
the other in the trace buffer.
Channel sequence
1
2
3
1
2
3
:
The length of the trace buffer is determined with registers "TraceTriggerStart" on page 27 and "TraceTriggerS-
top" on page 27.
Parameter "Number of trace buffers" must be defined in Automation Studio in order to configure the trace function
block.
In order to adapt the trace as closely as possible to the requirements of the application, the trace function can also
be controlled using the comparator. Threshold values (hysteresis) can be defined within the permitted range of
values to do so. 2 status bits are then generated for each enabled channel:
• InRange bit
The InRange status is "1" if the measured value falls within the defined limits.
The InRange status is "0" if the measured value falls outside the defined limits.
• Threshold value bit
The threshold value bit is "1" if the measured value exceeds the upper threshold value.
The threshold value bit is "0" if the measured value falls below the lower threshold value.
The InRange and threshold bits of all channels are combined in the least significant byte of register CompState-
Collection. In addition, the states of the previous sampling are stored in the high-order byte.
The 4 status messages of each channel can be linked via a link mask using AND or OR operators according to
the following logic and used as triggers for recordings.
delta = (Current_HysteresisStatus ^ NominalValues)// Difference between current status and preset
cond = delta & Selected_HysteresisStatusBits// Eliminate irrelevant status messages
cond = Selected_HysteresisStatusBits (Current_HysteresisStatus ^ NominalValues)
if((0==(cond & ~LogicalOperators)) &&
(0!=(~cond & LogicalOperators))) {=> Generate trigger event}
Corresponds to register:
Selected_HysteresisStatusBits cfgComp_EnableMask
Current_HysteresisStatus CompStateCollection
Nominal values cfgComp_NominalState
Logical operators cfgComp_ConditionTypeMask
Information:
The registers are described in "Comparator for trigger conditions" on page 25.
The module has 16 kB available for the trace. The limitation of the FIFO memory means that a maximum of 8192
analog values can be recorded. The memory is divided evenly between the enabled channels. The actual maximum
number of possible recordings therefore depends on the number of channels registered for the trace:
1 channel enabled: Maximum 8192 recordings
2 channels enabled: Maximum 4096 recordings per channel
3 channels enabled: Maximum 2730 recordings per channel
4 channels enabled: Maximum 2048 recordings per channel
Time-shifted recording
If the recording should be defined with a time offset to the trigger, additional conditions can be defined for shifting
the start and stop time.
Information:
The registers are described in "Time-offset trace" on page 27.
4 Commissioning
4.1 Using the module on the bus controller
Function model 254 "Bus controller" is used by default only by non-configurable bus controllers. All other bus
controllers can use other registers and functions depending on the fieldbus used.
For detailed information, see section "Additional information - Using I/O modules on the bus controller" in the X20
user's manual (version 3.50 or later).
5 Register description
5.1 General data points
In addition to the registers described in the register description, the module has additional general data points.
These are not module-specific but contain general information such as serial number and hardware variant.
General data points are described in section "Additional information - General data points" in the X20 System
user's manual.
5.4 Configuration
Name:
ConfigOutput01 for channel 1
ConfigOutput06 for channel 2
ConfigOutput11 for channel 3
ConfigOutput16 for channel 4
The individual inputs for processing the current or voltage signal are configured in these registers. This configuration
must be made in addition to using suitable terminals.
Filtering, analysis and error monitoring (bits 4 to 6) can only be used if the channel is enabled (bit 7 = 0).
Data type Values Bus controller default setting
USINT See the bit structure. 0
Bit structure:
Bit Description Value Information
0 Terminal selector 0 Voltage terminal for ±10 VDC (bus controller default setting)
1 Current terminal for 0 to 20 mA
1 Gain selector 0 Voltage ±10 VDC (bus controller default setting)
1 Current 0 to 20 mA
2-3 Reserved -
4 Filtering active 0 Inactive (bus controller default setting)
1 Active
5 Minimum/Maximum analysis active 0 Inactive (bus controller default setting)
1 Active
6 Error monitoring active 0 Inactive (bus controller default setting)
1 Active
7 Enables channel 0 Channel enabled (bus controller default setting)
1 Channel disabled
Name:
ConfigOutput24
The sampling time is set to µs in this register. This makes it possible to improve the sampling cycle (resolution =
1 μs). The lowest configurable cycle time is 50 μs.
Data type Value Information
UINT 50 to 10,000 Bus controller default setting: 100
Information:
Values that are too low for the cycle time will result in cycle time violations.
5.4.3 Filtering
Name:
ConfigOutput26 for channel 1
ConfigOutput28 for channel 2
ConfigOutput30 for channel 3
ConfigOutput32 for channel 4
The filter order is specified in this register. The "Filter cutoff frequency" on page 17 register is used to configure
the respective cutoff frequency of the filter.
Data type Value Information
USINT 1 to 4 Bus controller default setting: 0
Name:
ConfigOutput27 for channel 1
ConfigOutput29 for channel 2
ConfigOutput31 for channel 3
ConfigOutput33 for channel 4
The cutoff frequency of the respective filter is configured in these registers.
Data type Value Information
UINT 1 to 65,535 Cutoff frequency in hertz.
Bus controller default setting: 0
Information:
The highest cutoff frequency is limited by the Nyquist Shannon sampling theorem (based on the sam-
pling cycle time). The system does not check for violations of this sampling theorem.
Name:
ConfigOutput04 for channel 1
ConfigOutput09 for channel 2
ConfigOutput14 for channel 3
ConfigOutput19 for channel 4
The user-defined gain for the A/D converter data of the respective physical channel can be specified in these
registers.
The value 65536 (0x10000) corresponds to a gain of 1.
Data type Values Information
DINT -2,147,483,648 Bus controller default setting: 65536
to 2,147,483,647
Name:
ConfigOutput05 for channel 1
ConfigOutput10 for channel 2
ConfigOutput15 for channel 3
ConfigOutput20 for channel 4
The user-defined offset for the A/D converter data of the respective physical channel can be specified in this register.
The value 65536 (0x10000) corresponds to an offset of 1.
Data type Values Information
DINT -2,147,483,648 Bus controller default setting: 0
to 2,147,483,647
Name:
ConfigOutput02 for channel 1
ConfigOutput07 for channel 2
ConfigOutput12 for channel 3
ConfigOutput17 for channel 4
The minimum limit value is configured in this register. This limit value is also used for the undershoot error statistics
(see register "Ch0xUnderflow" on page 21).
Data type Values Information
INT -32768 to 32767 Bus controller default setting: -32768
Name:
ConfigOutput03 for channel 1
ConfigOutput08 for channel 2
ConfigOutput13 for channel 3
ConfigOutput18 for channel 4
The maximum limit value is configured in this register. This limit value is also used for the overflow error statistics
(see register "Ch0xOverflow" on page 21).
Data type Values Information
INT -32767 to 32767 Bus controller default setting: 32767
The analog inputs of the module convert the current or voltage values with a resolution of 16 bits. The information
can be used by the application via the registers described here.
Name:
AnalogInput01 to AnalogInput04
The analog input value is mapped in this register depending on the configured operating mode.
Data type Value Input signal
INT -32,768 to 32,767 Voltage signal ±10 VDC
0 to 32,767 Current signal 0 to 20 mA
Name:
SampleCycleCounter
The number of times the input signal has been sampled is provided in this register.
Data type Values
UINT 0 to 65535
Name:
Channel01OK to Channel04OK
SyncStatus
ConvertionCycle
This register collects error messages synchronously with the network cycle. Temporary error states that were
registered in a conversion cycle remain active for at least 2 network cycles. In order to receive detailed error
information, the corresponding error counters and X2X network events should also be observed.
Data type Values
USINT See the bit structure.
Bit structure:
Bit Description Value Information
0 Channel01OK 0 OK
1 Errors
• Range overshot
• Range undershot
• Workspace overshoot
... ...
3 Channel04OK 0 OK
1 Errors
See description for bit 0.
4-5 Reserved -
6 SyncStatus1) 0 OK
1 Not synchronized
7 ConvertionCycle2) 0 OK
1 Errors
1) Identical to bit 0 of the registers "SynchronizationViolationErrorCounter" on page 20.
2) Identical to bit 0 of the registers "SampleCycleViolationErrorCounter" on page 20.
Name:
Channel01outofrange to Channel04outofrange
This register indicates whether the input value overshoots the module's maximum measurement range. The indi-
vidual bits in this register are identical to the value of the lowest bit of register "Ch0xOutOfRange" on page 20.
Data type Values
USINT See the bit structure.
Bit structure:
Bit Description Value Information
0 Channel01outofrange 0 No error
1 Working range violation (pos.) of channel 1
... ...
3 Channel04outofrange 0 No error
1 Working range violation (pos.) of channel 4
4-7 Reserved -
Name:
Channel01underflow to Channel04underflow
Channel01overflow to Channel04overflow
This register indicates whether the limit values defined by registers "Minimum limit value" on page 18 and
"Maximum limit value" on page 18 have been overshot or undershot. The individual bits in this register are
identical to the value of the lowest bit of registers "Ch0xUnderflow" on page 21 and "Ch0xOverflow" on page
21.
Data type Values
USINT See the bit structure.
Bit structure:
Bit Description Value Information
0 Channel01underflow 0 No error
1 Range exceeded (.neg) on channel 1
... ...
3 Channel04underflow 0 No error
1 Range exceeded (.neg) on channel 4
4 Channel01overflow 0 No error
1 Range exceeded (.pos) on channel 1
... ...
7 Channel04overflow 0 No error
1 Range exceeded (.pos) on channel 4
Name:
SynchronizationViolationErrorCounter
This register counts how often the conversion task was triggered more than 5 µs after the next-coming X2X cycle.
In this case, the module is considered being no longer synchronized with X2X Link.
Data type Value Information1)
UINT 0 to 65535 Counter value
0 to 1 Bit 0: Error status
1) For details, see "Error monitoring" on page 8.
Name:
SampleCycleViolationErrorCounter
This register is used to indicate the number of cycle time violations that have occurred thus far. A cycle time violation
occurs if the conversion tasks initiates a sampling task before the last sampling cycle has finished. See "Recording
the sampled values" on page 9.
Data type Value Information1)
UINT 0 to 65535 Counter value
0 to 1 Bit 0: Error status
1) For details, see "Error monitoring" on page 8.
Name:
Ch01OutOfRange to Ch04OutOfRange
This register indicates errors outside the maximum possible measurement range of the module. These errors result
in a final deflection of the A/D converter.
Data type Value Information1)
UINT 0 to 65535 Counter value
0 to 1 Bit 0: Error status
1) For details, see "Error monitoring" on page 8.
Name:
Ch01Underflow to Ch04Underflow
This register indicates the range undershoots below the value set in register "Minimum limit value" on page 18.
Data type Value Information1)
UINT 0 to 65535 Counter value
0 to 1 Bit 0: Error status
1) For details, see "Error monitoring" on page 8.
Name:
Ch01Overflow to Ch04Overflow
This register indicates range exceeded violations (pos.) of the value configured in the register "Maximum limit
value" on page 18.
Data type Value Information1)
UINT 0 to 65535 Counter value
0 to 1 Bit 0: Error status
1) For details, see "Error monitoring" on page 8.
In addition to sampling the analog input signal, this module can also be used to perform additional analysis of the
values obtained.
Name:
ConfigOutput21
This register can be used to configure whether the falling edge is used to trigger the trace and determine the input
value in register "Analysis control byte" on page 22.
Data type Values Bus controller default setting
USINT See the bit structure. 0
Bit structure:
Bit Description Value Information
0 TraceTrigger01 0 No trigger (bus controller default setting)
1 Falling edge active as trigger
1-3 Reserved -
4 MinMaxStart01 0 No determination (bus controller default setting)
1 Falling edge determines input value of channel 1
... ... ...
7 MinMaxStart04 0 No determination (bus controller default setting)
1 Falling edge determines input value of channel 4
Name:
ConfigOutput22
This register can be used to configure whether the rising edge is used to trigger the trace and determine the input
value in register "Analysis control byte" on page 22.
Data type Values Bus controller default setting
USINT See the bit structure. 0
Bit structure:
Bit Description Value Information
0 TraceTrigger01 0 Trigger not initiated on positive edge (bus controller default set-
ting)
1 Rising edge active as trigger
1-3 Reserved -
4 MinMaxStart01 0 No determination (bus controller default setting)
1 Rising edge determines input value of channel 1
... ... ...
7 MinMaxStart04 0 No determination (bus controller default setting)
1 A positive edge determines the input value of channel 4.
Name:
TraceTrigger01
MinMaxStart01 to MinMaxStart04
The trace function and determination of the minimum/maximum input values can be started in this register.
Whether the rising and/or falling edge is used to trigger the functions can be configured using the registers "Trigger
condition on falling edge" on page 21 and "Trigger condition on rising edge" on page 22.
Data type Values Bus controller default setting
USINT See the bit structure. 0
Bit structure:
Bit Description Value Information
0 TraceTrigger01 0 Trigger/Trace not triggered (bus controller default setting)
1 Initiates trigger/trace
1-3 Reserved -
4 MinMaxStart01 0 Determination not triggered (bus controller default setting)
1 Determination of the input value of channel 1 is triggered.
... ... ...
7 MinMaxStart04 0 Determination not triggered (bus controller default setting)
1 Determination of the input value of channel 4 is triggered.
Information:
To reduce the cyclic data transfer, this register combines the trace and limit value determination func-
tions.
Name:
MinMaxStart01Readback to MinMaxStart04Readback
The currently requested module-internal analyses can be checked in this register.
Data type Values
USINT See the bit structure.
Bit structure:
Bit Description Value Information
0-3 Reserved -
4 MinMaxStart01Readback 0 or 1 Current state of the trigger bits for determining the limit values
on channel 1
... ... ...
7 MinMaxStart04Readback 0 or 1 Current state of the trigger bits for determining the limit values
on channel 4
Name:
MinInput01 to MinInput04
The minimum value of the preceding trigger period is saved in this register based on the filtered, scaled and user-
defined limit values. The register value is 0 if the channel is inactive.
Data type Value
INT -32,768 to 32,767
Name:
MaxInput01 to MaxInput04
The maximum value of the preceding trigger period is saved in this register based on the filtered, scaled and user-
defined limit values. The register value is 0 if the channel is inactive.
Data type Value
INT -32,768 to 32,767
Name:
Ch01MinMaxLatchCounter to Ch04MinMaxLatchCounter
The number of valid events that trigger a new measurement period for the limit value analysis is counted in this
register.
Data type Value
UINT 0 to 65535
5.9 Trace
Name:
TraceChannelEnable
The respective channel is enabled for the trace with this register.
Data type Values
USINT See the bit structure.
Bit structure:
Bit Description Value Information
0 Channel 1 0 Channel disabled
1 Channel enabled
... ... ...
3 Channel 4 0 Channel disabled
1 Channel enabled
4-7 Reserved -
Name:
TraceSampleDepth
The module has 16 kB available for the trace. The limitation of the FIFO memory means that a maximum of 8192
analog values can be recorded. The memory is divided evenly between the enabled channels. The actual maximum
number of possible recordings therefore depends on the number of channels registered for the trace.
Data type Value
UINT 2 to 8192
Name:
ConfigOutput25
The priority of the trace can be increased with this register.
Data type Value Function
USINT 3 Standard
6 Trace priority higher than X2X Link communication
Name:
TraceEnable01
This register can be used to enable recording according to the edge control or comparator specifications.
Data type Values
USINT See the bit structure.
Bit structure:
Bit Description Value Information
0 TraceEnable01 0 Disables the trace function
1 Enables the trace function
1-7 Reserved -
Name:
TraceEnabled
TraceWriteActive
TraceReadActive
ReadyForTrigger
TriggerActive
TraceOk
TraceError
The status of the trace is represented in this register.
Data type Values
USINT See the bit structure.
Bit structure:
Bit Name Value Information
0 TraceEnabled 0 Trace inactive
1 Trace active
1 Reserved -
2 TraceWriteActive 0 Data not recorded
1 Data recorded
3 TraceReadActive 0 Data not output/read
1 Data output/read
4 ReadyForTrigger 0 Not ready for triggering
1 Ready for triggering
5 TriggerActive 0 No trigger active or already executed
1 Trigger active
6 TraceOk 0 Overflow or inactive
1 No overflow
7 TraceError 0 No error or inactive
1 Trace buffer full
Name:
FreeBufferSize
Specifies the free FIFO memory area for the trace in bytes.
Data type Values
UINT 0 to 65535
Name:
TriggerCount
This register indicates the number of trigger events that have occurred since the start of the trace.
Data type Values
UINT 0 to 65535
Name:
TriggerFailCount
Counts the trigger events for which the trace could not be carried out.
Data type Values
UINT 0 to 65535
Name:
cfgComp_LowLimitCh01 to cfgComp_LowLimitCh04
The lower limit value for hysteresis is configured in this register.
Data type Values
INT -32768 to 32767
Name:
cfgComp_HighLimitCh01 to cfgComp_HighLimitCh04
The upper limit value for hysteresis is configured in this register.
Data type Values
INT -32768 to 32767
Name:
CompStateCollection
The hysteresis status of the input channels for the current and last cycle are represented in this register.
Data type Values
UINT See the bit structure.
Bit structure:
Bit Name Value Information
0 Channel01 hysteresis status in the current cycle 0 Lower limit value exceeded
1 Upper limit value exceeded
1 Channel01 InRange status in the current cycle 0 Value lies outside of range defined by the limit values
1 Value is between the lower and upper limit value.
... ... ...
6 Channel04 hysteresis status in the current cycle 0 Lower limit value exceeded
1 Upper limit value exceeded
7 Channel04 InRange status in the current cycle 0 Value lies outside of range defined by the limit values
1 Value is between the lower and upper limit value.
8 Channel01 hysteresis status in the last cycle 0 Lower limit value exceeded
1 Upper limit value exceeded
9 Channel01 InRange status in the last cycle 0 Value lies outside of range defined by the limit values
1 Value is between the lower and upper limit value.
... ... ...
14 Channel04 hysteresis status in the last cycle 0 Lower limit value exceeded
1 Upper limit value exceeded
15 Channel04 InRange status in the last cycle 0 Value lies outside of range defined by the limit values
1 Value is between the lower and upper limit value.
Name:
cfgComp_NominalState
The desired comparison state for the hysteresis status is indicated in this register.
Data type Values
UINT See the bit structure.
Bit structure:
Bit Name Value Information
0 Channel01 hysteresis status in the current cycle 0 Lower limit value exceeded
1 Upper limit value exceeded
1 Channel01 InRange status in the current cycle 0 Value lies outside of range defined by the limit values
1 Value is between the lower and upper limit value.
... ... ...
6 Channel04 hysteresis status in the current cycle 0 Lower limit value exceeded
1 Upper limit value exceeded
7 Channel04 InRange status in the current cycle 0 Value lies outside of range defined by the limit values
1 Value is between the lower and upper limit value.
8 Channel01 hysteresis status in the last cycle 0 Lower limit value exceeded
1 Upper limit value exceeded
9 Channel01 InRange status in the last cycle 0 Value lies outside of range defined by the limit values
1 Value is between the lower and upper limit value.
... ... ...
14 Channel04 hysteresis status in the last cycle 0 Lower limit value exceeded
1 Upper limit value exceeded
15 Channel04 InRange status in the last cycle 0 Value lies outside of range defined by the limit values
1 Value is between the lower and upper limit value.
Information:
This is a positive list. This means that recording starts as soon as the current status message assumes
the state specified here.
Whether one match is sufficient or whether several matches are required depends on the selection of
the relevant hysteresis status bits and logical operators.
Name:
cfgComp_EnableMask
This register can be used to select which status bits of the hysteresis comparison should be used to generate
the trigger.
For information about using this register, see "Comparator for trigger conditions" on page 11.
Data type Values
UINT See the bit structure.
Bit structure:
Bit Name Value Information
0 Channel01 hysteresis status in the current cycle 0 Do not use
1 Use for generation
1 Channel01 InRange status in the current cycle 0 Do not use
1 Use for generation
... ... ...
6 Channel04 hysteresis status in the current cycle 0 Do not use
1 Use for generation
7 Channel04 InRange status in the current cycle 0 Do not use
1 Use for generation
8 Channel01 hysteresis status in the last cycle 0 Do not use
1 Use for generation
9 Channel01 InRange status in the last cycle 0 Do not use
1 Use for generation
... ... ...
14 Channel04 hysteresis status in the last cycle 0 Do not use
1 Use for generation
15 Channel04 InRange status in the last cycle 0 Do not use
1 Use for generation
Name:
cfgComp_ConditionTypeMask
This register is used to select the desired operators of the states with which the status bits are linked with one
another to generate a trigger.
At least one OR operation must be configured, but it does not necessarily have to be located on a channel config-
ured with "1" in the "cfgComp_EnableMask" on page 26 register.
Data type Values
USINT See the bit structure.
Bit structure:
Bit Name Value Information
0 Channel01 hysteresis status in the current cycle 0 Use AND operation
1 Use OR operation
1 Channel01 InRange status in the current cycle 0 Use AND operation
1 Use OR operation
... ... ...
6 Channel04 hysteresis status in the current cycle 0 Use AND operation
1 Use OR operation
7 Channel04 InRange status in the current cycle 0 Use AND operation
1 Use OR operation
8 Channel01 hysteresis status in the last cycle 0 Use AND operation
1 Use OR operation
9 Channel01 InRange status in the last cycle 0 Use AND operation
1 Use OR operation
... ... ...
14 Channel04 hysteresis status in the last cycle 0 Use AND operation
1 Use OR operation
15 Channel04 InRange status in the last cycle 0 Use AND operation
1 Use OR operation
Name:
TraceTriggerStart
The relative start position in relation to the configured trigger condition (pos./neg. edge) is defined in this register.
Positive values mean that recording begins x samplings after the trigger condition. Negative values mean that the
recording starts x samplings before the trigger condition.
With value -32768, recording is started immediately when the trace is enabled.
Data type Value Information
INT -32767 to 32767
-32768 Continuous trace without a stopping point
Name:
TraceTriggerStop
The relative unsigned stop position in relation to the configured trigger condition is defined in this register.
• When configuring an early recording start, this value refers to the trigger event.
• When configuring a delayed start of recording, the value refers to the start of recording.
Data type Values
UINT 0 to 65535
Name:
AsynSize
When using the stream, the data is exchanged internally between the module and controller. A defined number of
acyclic bytes is reserved for this slot for this purpose.
Increasing the acyclic frame size results in increased data throughput on this slot.
Information:
This configuration involves a driver setting that cannot be changed during runtime!
Data type Values Information
- 8 to 28 Acyclic frame size in bytes. Default = 24
The minimum cycle time specifies how far the bus cycle can be reduced without communication errors occurring.
It is important to note that very fast cycles reduce the idle time available for handling monitoring, diagnostics and
acyclic commands.
Minimum cycle time
Standard priority 200 μs
High priority with 300 μs
trace function