Characteristics and Technical Specifications of the SM 335
1-16
SM 335 – High-Speed Analog Input/Output Module for the SIMATIC S7-300
6ES7 335-7HG00-8BA1
1.6.2
Conditional Cycle mode
Conditional Cycle
In the conditional cycle operating mode, you can define the cycle time. Follo-
wing conversion of all analog inputs, the SM 335 can generate an end-of-cycle in-
terrupt to the CPU (see Subsection 3.4.1 Hardware Interrupt). The SM 335 then
waits while the analog outputs are updated and begins the next processing cycle
after the specified cycle time has expired.
The end-of-cycle interrupt can be used to synchronize a user program via OB 40.
Furthermore, the interrupt enables high-speed processing of the user program
(e.g., for closed-loop control routines).
Conditional Cycle mode is activated when a cycle time of 1 to 16 ms is set for the
SM 335 in HW Config.
Figure 1-4 shows the various components of the cycle time for a conditional cycle.
Conversion time for analog input
channel CH2
Conversion time for analog input
channel CH3
Conversion time for analog input
channel CH0
Conversion time for analog input
channel CH1
Updating of the analog outputs
End-of-cycle
interrupt
every 1 ms, 1.5 ms, etc., up to 16 ms
Optional
Time condition:
Start new cycle
Yes
NO
Fig. 1-4
Cycle time for a conditional SM 335 cycle