Programming
4.3 Time-based IO
High-precision input/output with Time-based IO
54
Function Manual, 11/2019, A5E33454822-AC
Parameter
The table below shows the parameters of the TIO_DQ instruction.
Parameter
Declaration in
library version
Data type
Default Description
< V2.0
≥ V2.0
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 output of the connected TIO
module
Out_Mode
Input
UInt
2
Specify the output mode for the edges at the digital output:
0: Only rising edge is output (TimeStampRE).
1: Only falling edge is output (TimeStampFE).
2: Both edges are output (TimeStampRE and
TimeStampFE).
3: Each edge is output directly if TimeStampRE = 0 or
TimeStampFE = 0 If both time stamps have the value "0" or
if no time stamp has the value "0", no edge is output.
4 to 255: Invalid
TimeStampRE Input
LTime
LT#0ns Time stamp: Time when a positive edge is to be output.
TimeStampFE Input
LTime
LT#0ns Time stamp: Time when a falling edge is to be output.
StatusDQ
Output
Bool
False
Actual status of the digital output.
If an inversion of the digital output is configured, StatusDQ
is inverted as well.
StatusDQ shows the internal state of the digital output
independent of the effect of any configured HW enable.
DONE
Output
Bool
False
DONE = True is displayed for one cycle: 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. In this case, BUSY and
DONE are set to False. 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
TIO_SYNC
_Data*
Input
InOut "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 58).
Connect this parameter with the TIO_SYNC_Data output
parameter of the TIO_SYNC instruction.
* Checked once at startup of the CPU
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: ......