Programming
4.3 Time-based IO
High-precision input/output with Time-based IO
Function Manual, 11/2019, A5E33454822-AC
51
4.3.4
TIO_DQ: Output edges time-controlled at the digital output
Description
TIO_DQ enables a digital output of a TIO module to be switched at specified times.
Startup characteristics
During startup of the CPU, the instruction TIO_DQ 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. The input
parameters REQ, Out_Mode, TimeStampRE and TimeStampFE can be changed during
normal operation. In the event of an error, the instruction does not change to normal
operation and generates an error message.
Functional description
The instruction outputs edges time-controlled at a digital output during normal operation.
●
At the time defined at the TimeStampRE input parameter, a positive edge is output at the
digital output.
●
At the time defined at the TimeStampFE input parameter, a falling edge is output at the
digital output.
Depending on the program execution model, a time stamp must exceed the following value:
Program execution model
TimeStampRE> ...
TimeStampFE > ...
IPO model
TI T
APP
+ T
O
OIP model
TI T
APP
+ Sen T
O
Use the input parameter Out_Mode to determine if only one edge or both edges are output.
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: ......