Programming
4.3 Time-based IO
High-precision input/output with Time-based IO
46
Function Manual, 11/2019, A5E33454822-AC
Parameter
The table below shows the parameters of the TIO_DI_ONCE instruction.
Parameter
Declaration Data type
Default
Description
S7-1500
REQ
Input
Bool
False
Starts the job at a positive edge.
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
If edge-triggered enable is used, the following also applies:
1: Enable at first positive DI edge
2: Enable at first falling DI edge
3: Enable at first DI edge
4: Enable at first positive DI edge
5: Enable at first falling DI edge
EdgeSel can be changed during normal operation.
DONE
Output
Bool
False
DONE = True: The job was completed without errors.
BUSY
Output
Bool
False
BUSY = True: The job has not yet been completed.
Error
Output
Bool
False
Error = True: An error has occurred. For detailed information
see Status parameter.
Error is reset as soon as the error is corrected.
Status
Output
DWord
16#0
Status of the instruction: see description of Status parameter
DI
Output
Bool
False
Status of digital input.
If an inversion of the digital input is configured, this parameter is
inverted as well.
Time-
StampRE
Output
LTime
LT#0ns
Time stamp:
EdgeSel = 1: The last but one read-in time at which a positive
edge was detected (if
multiple
positive edges have occurred).
EdgeSel = 2: The last read-in time at which a falling edge was
detected (if
multiple
falling edges have occurred).
EdgeSel = 3; 4; 5: The last read-in time at which a falling edge
was detected.
Summary of Contents for SIMATIC ET 200AL
Page 2: ......
Page 143: ......
Page 218: ......
Page 250: ......
Page 296: ......
Page 337: ......
Page 365: ......
Page 392: ......
Page 419: ......
Page 451: ......
Page 483: ......
Page 597: ......
Page 648: ......
Page 702: ......
Page 739: ......
Page 781: ......
Page 804: ......
Page 828: ......
Page 853: ......
Page 880: ......
Page 906: ......
Page 996: ...Diagnostics ...
Page 1121: ......
Page 1565: ......