Programming
4.3 Time-based IO
High-precision input/output with Time-based IO
38
Function Manual, 11/2019, A5E33454822-AC
Parameter
The table below shows the parameters of the TIO_DI instruction.
Parameter
Declaration in
library version
Data type
Default
Description
< V2.0
≥ V2.0
S7-1500
HWID*
Input
HW_IO
0
Hardware identifier for TIO module from hardware
configuration
Channel*
Input
UInt
0
Number (0 ... m) of the digital input of the connected TIO
module
EdgeSel
Input
UInt
3
Specify the edges for which time stamps are detected:
0
D
: Invalid
1: Two rising edges
2: Two falling edges
3: Rising and falling edge (order depending on
occurrence)
4: First rising, then falling edge
5: First falling, then rising edge
6 to 255: Invalid
EdgeSel can be changed during normal operation.
DI
Output
Bool
False
Status of digital input.
If an inversion of the digital input is configured, this
parameter is inverted as well.
TimeStampRE Output
LTime
LT#0ns
Time stamp: Time at which a positive edge was
detected.
Exception:
EdgeSel = 2: Time at which a falling edge has been
detected (if
multiple
falling edges have occurred during
the application cycle).
TimeStampFE Output
LTime
LT#0ns
Time stamp: Time at which a falling edge was detected.
Exception:
EdgeSel = 1: Time at which a rising edge has been
detected (if
multiple
rising edges have occurred during
the application cycle).
EventCountRE Output
UInt
0
Counter: Is incremented with each new, valid time stamp
at a positive edge. The counter is reset with each CPU
startup.
EventCountFE Output
UInt
0
Counter: Is incremented with each new, valid time stamp
at a falling edge. The counter is reset with each CPU
startup.
LEC
Output
UInt
0
Counter: Number of edges for which no time stamp
could be saved. The module can count a maximum of
seven edges per application cycle. The counter is reset
with each new application cycle.
Status
Output
DWord
16#0
Status of the instruction: see description of Status
parameter
Содержание SIMATIC ET 200AL
Страница 2: ......
Страница 143: ......
Страница 218: ......
Страница 250: ......
Страница 296: ......
Страница 337: ......
Страница 365: ......
Страница 392: ......
Страница 419: ......
Страница 451: ......
Страница 483: ......
Страница 597: ......
Страница 648: ......
Страница 702: ......
Страница 739: ......
Страница 781: ......
Страница 804: ......
Страница 828: ......
Страница 853: ......
Страница 880: ......
Страница 906: ......
Страница 996: ...Diagnostics ...
Страница 1121: ......
Страница 1565: ......