Programming
4.3 Time-based IO
High-precision input/output with Time-based IO
Function Manual, 08/2014, A5E33454822-AB
43
The table below shows the parameters of the TIO_DI instruction.
Hardware identifier for TIO module from HWCN
Channel* Input UInt 0 Number (0 ... m) of the digital input of the connected
TIO_SYNC_
Data*
Input "TIO_SYNC_
Data"
System time provided for the TIO instructions of the TIO
modules by the TIO_SYNC instruction. See UDT
"TIO_SYNC_Data" (Page 57).
Connect this input parameter with the "TIO_SYNC_Data" output
parameter of the TIO_SYNC instruction.
EdgeSel Input UInt 3 Specify the edges for which time stamps are detected:
0
D
: Reserved
1
D
: Only at positive edges
2
D
: Only at negative edges
3
D
: Positive and negative edges (order depending on
occurrence)
4
D
: First positive, then negative edge
5
D
: First negative, then positive edge
6 bis 255
D
: Reserved
TO* Input LTime LT#0ns T
o
: Time for output of isochronous output data.
Apply T
o
from the ET 200 station (properties of the PROFINET
DI Output Bool False Status of digital input.
If an inversion of the digital input is conf
igured, this parameter is
inverted as well.
TimeStamp
RE
Output LTime LT#0ns Time stamp: Time at which a positive edge was detected.
Exception:
D
: Time at which a negative edge was detected.
TimeStampF
E
Output LTime LT#0ns Time stamp: Time at which a negative edge was detected.
Exception:
EdgeSel = 1
D
: Time at which a positive edge was detected.
EventCount
Output UInt 0 Counter: Is incremented with each new, valid time stamp at a
positive edge. The counter is reset with each CPU startup.
EventCount
Output UInt 0 Counter: Is incremented with each new, valid time stamp at a
negative 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