In the previous lessons you learned that when you want to use SIMATIC timers in your PLC programs you need to assign the time value as S5TIME format. For instance, if you want this timer here to time for 10 milliseconds, you need to enter S5T#10ms as the time value for the timer. But in some projects, you need to assign a variable as the time value instead of a fixed amount. For instance you can assign a memory address like MW0 as the time value for the timer. By doing this, any value that you assign to this address will be considered as the time value for the timer. So here the timer can have different time values depending on the value that you enter for this address.
In the previous lesson you learned that you can assign a variable, like a memory address, as the time value for the timer instead of fixed amount. But you saw that, in this case, when you enter a value greater than 9, a "BCD conversion error" happens and that causes the CPU to stop working and th...
When you're using S7 or SIMATIC counters in your PLC program, one of the things that might be limiting in some projects is that these counters can only count up to 999 and not beyond that. That means, for instance, when you're using an S7 counter to count the number of the products passing on a c...
In the previous lesson you learned how you can build a customized counter by combining two counters to extend the amount that an S7 counter is able to count. As I previously explained, the basic idea here is since each of these counters can only count up to 999, I will combine them in a way that ...
11 Comments