Programming
4.2 Programming of Time-based IO
High-precision input/output with Time-based IO
30 Function Manual, 08/2014, A5E33454822-AB
Programming of Time-based IO
Introduction
For use of Time-based IO, the TIO instructions must be called in a "Synchronous Cycle" OB.
The application can also run in another OB. In this way, you can shorten the runtime of the
"Synchronous Cycle" OB.
You need the following TIO instructions according to the required task:
CM 4xIO-Link
• Per sensor, one TIO_IOLink_IN for read-in
• Per actuator, one TIO_IOLink_OUT for
output
One TIO_SYNC (for up to
eight TIO modules)
TM Timer DIDQ
• Per digital input, one TIO_DI for read-in
• Per digital output, one TIO_DQ for output
This section below describes the programming of the CPU for Time-based IO.
Hardware configuration in the TIA Portal:
● The TIO modules are assigned to an isochronous network.
● The TIO modules are assigned to a shared process image partition.
● The process image partition is assigned to a "Synchronous Cycle" OB.
Additional information on configuration of Time-based IO is available in the section Settings
for Time-based IO (Page 26).
1. Create a TIO_SYNC TIO instruction in the "Synchronous Cycle" OB.
2. Connect all TIO modules to be synchronized at the TIO_SYNC TIO instruction using
parameters HWID_1 to HWID_8.
The HWID is located in HWCN under the module properties.
3. Configure the send clock at the TIO_SYNC TIO instruction.
The send clock is listed in the properties of the ET 200 station.