#S5 pulse timer
When the timer is started (there is a rising edge on the input terminal and the state of the input terminal is always 1), the state of the output terminal Q is 1, and after the preset time is reached, the state of the output terminal Q is 0.
# ##Command form
###command parameter
Start condition
Start (S) input terminal has a rising edge pulse. A signal change is always a necessary condition for enabling the timer. The time specified by the
longest period
input (TV) is the longest period
remaining time. The running status
can be checked through BI (integer) and BCD (BCD format). When the timer is started (there is a rising edge on the input and the input is The state of the output terminal is always 1), the state of the output terminal Q is 1, and after the preset time is reached, the state of the output terminal Q is 0. If the state of the input terminal changes before the time is over, the timer will stop and the timer will restart. . ###Case analysis: When the signal state of the input terminal I0.0 changes from '0' to '1' (rising edge in RLO), the timer T0 starts, as long as I0.0 is 1, the timer will continue to run as specified The timer is reset after reaching the specified time (20s). If the signal state of I0.0 changes from '0' to '1' before the timer reaches the predetermined time, the timer stops. As long as the timer is running, the output Q4.0 is logic "1". If the timer preset time expires or is reset, the output Q4.0 becomes "0". Regarding the reset of I0.1, if the signal state of I0.1 changes from '0' to '1' while the timer is running, the timer is reset to '0', and the remaining time of the time value is cleared to stop Timing. But when the timer is not running, the status change of I0.1 has no effect on the timer ##coil instruction ###instruction parameter ###Case
Analysis: The same as the instruction form. Not much to repeat.
#S5 Extended pulse timer
When the timer is started (there is a rising edge on the input terminal, the signal state of the input terminal is not required to be always '1'), and the state of the output terminal Q is 1. After reaching the preset time, The output terminal Q status is 0.
###command form
###command parameter
! [S5 extended pulse timer coil command parameter]
PS: The parameter setting is the same as the pulse timer. The difference between the two is mainly when there is one on the input terminal. After the rising edge, the state change of the input terminal affects the output terminal, current time value, etc.
###Case:
##coil instruction
###command parameter
###Case
analysis: When I0.0 changes from '0' to '1' (rising edge in RLO), T5 starts timing and the output terminal Q4.0 The signal state of the output terminal Q4.0 is '1' regardless of whether the state of I0.0 changes (whether the RLO has a falling edge), the signal state of the output terminal Q4.0 is always '1', until the timer reaches the preset value, that is, timing The end of the device. Reset: When I0.1 is powered on, the timer stops running.
#S5 The on-delay timer
has a rising edge at the input (s) (the signal state of the input must always be '1'), and the timer starts to count. During the period, the signal state of the timer's output terminal is '0'. When the timer reaches the preset value, the signal state of the output terminal becomes '1'.
Note that after the timer is running, its input (s) changes, the timer It also changes, and the current value of the timer is reset to zero, that is, the timer is timed again.
###Command format The
command parameters are the same as other timers.
###Case:
##coil instruction
###instruction parameter
###case
Analysis: When the signal state of I0.0 changes from '0' to '1' (the rising edge of RLO), T5 starts to run, and the signal state of Q4.0 also changes to '1'. When the signal state of I0.1 changes , T5 is reset, the timer stops working, and the current value of the timer returns to zero.
#S5 Retentive on-delay timer
has a rising edge at the input (s), and the timer starts timing. During the period, the signal state of the timer's output is '0'. When the timer reaches the preset value, it outputs The signal state of the terminal changes to '1'.
Note that after the timer is running, its input (s) changes and the timer also changes, but the current value of the timer does not change. When the input is re-powered, the timer The current value of (the value before the power failure, not a new start) will continue to start timing.
###Command format The
command parameters are the same as other timers.
###Case:
##coil mode
###Case:
Analysis: Same as the on-delay timer, but pay attention to the difference between the on-delay timer and the hold-on-delay timer.
#S5 Off-delay timer
When the input (s) has a falling edge, the timer will start. During the timer, the state is 1, which is the signal state of the output. When the timer reaches the preset value, the signal at the output The state is 0.
If the signal state of the input terminal is always '1', the state of the timer is also 1, that is,
when the input terminal (s) has a falling edge , the output terminal will be powered again, the timer will re-time, but the output the signal state remains '1', and only after the timer reaches a preset value, the output of the signal state will become a '1'
### in the form of instructions
### case:
## coil pattern
### case
Timer usage of Siemens 300PLC
Guess you like
Origin blog.csdn.net/yue008/article/details/72830736
Recommended
Ranking