Programming
4.3 Time-based IO
High-precision input/output with Time-based IO
Function Manual, 11/2019, A5E33454822-AC
43
4.3.3
TIO_DI_ONCE: Reading in edges once at the digital input and associated time
stamps
Description
TIO_DI_ONCE detects the edges at a digital input of a TIO module once and returns the
associated time stamps. Alternatively, you can use this instruction to control a timer DI
channel that is configured as an edge-triggered enable for another channel.
Startup characteristics
During startup of the CPU, the instruction TIO_DI_ONCE applies the input parameters once
and checks the following:
●
Checking HWID
●
Checking to see if the number of the digital input (Channel) is in the permitted range
(depending on addressed module and channel configuration)
●
Checking TIO_SYNC_Data.ERROR: Is an error present at TIO_SYNC?
●
Checking TIO_SYNC_Data.TO_TIMES for plausibility (0 ms to 4 ms)
●
Checking to see whether the OB is isochronous
If startup takes place without errors, the instruction changes to normal operation. In the event
of an error, the instruction does not change to normal operation and generates an error
message.
Functional description: Time stamp detection
In normal operation, the instruction detects the edges at a digital input and the associated
time stamps of the first valid, defined edge pair after the start of a read-in job. Use the input
parameter EdgeSel to determine the edges for which time stamps are detected. To detect a
new edge pair, a new positive edge is required at the REQ input parameter of the instruction.
You connect the input TIO_SYNC_Data with the output of the same name of the TIO_SYNC
instruction. This ensures a shared time basis.
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: ......