Siemens SIMATIC ET 200AL System Manual page 2196

Distributed i/o system
Hide thumbs Also See for SIMATIC ET 200AL:
Table of Contents

Advertisement

Programming
4.3 Time-based IO
Parameter
The table below shows the parameters of the TIO_DI instruction.
Parameter
Declaration in
library version
< V2.0
HWID*
Input
Channel*
Input
EdgeSel
Input
DI
Output
TimeStampRE
Output
TimeStampFE
Output
EventCountRE
Output
EventCountFE
Output
LEC
Output
Status
Output
38
Data type
Default
≥ V2.0 S7-1500
HW_IO
0
UInt
0
UInt
3
Bool
False
LTime
LT#0ns
LTime
LT#0ns
UInt
0
UInt
0
UInt
0
DWord
16#0
Description
Hardware identifier for TIO module from hardware
configuration
Number (0 ... m) of the digital input of the connected TIO
module
Specify the edges for which time stamps are detected:
0
: Invalid
D
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.
Status of digital input.
If an inversion of the digital input is configured, this
parameter is inverted as well.
Time stamp: Time at which a positive edge was
detected.
Exception:
EdgeSel = 2: Time at which a falling edge has been
multiple
detected (if
falling edges have occurred during
the application cycle).
Time stamp: Time at which a falling edge was detected.
Exception:
EdgeSel = 1: Time at which a rising edge has been
multiple
detected (if
rising edges have occurred during
the application cycle).
Counter: Is incremented with each new, valid time stamp
at a positive edge. The counter is reset with each CPU
startup.
Counter: Is incremented with each new, valid time stamp
at a falling edge. The counter is reset with each CPU
startup.
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 of the instruction: see description of Status
parameter
High-precision input/output with Time-based IO
Function Manual, 11/2019, A5E33454822-AC

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents