More in the INTRO course: https://sklep-plcspace.pl/1500-intro-scl
Table of topics:
00:15 Discussion of conditional program function invocation
00:21 Simulating the operation of a conveyor controlled by the start button and selector
00:31 Checking the active conditions of the selector switch and the green light pulsation
00:52 Stopping the belt by turning the selector to the right
01:11 Explanation of why the belt continues to run despite an unmet condition
01:11 Continuation of the conditional function invocation
01:20 Explanation of why the belt continues to run despite an unmet condition
02:30 Presentation of a situation where the belt continues to run despite an unmet condition
03:37 Principle of operation of a conveyor controller
03: 44 Stopping the Belt by Turning the Selector Right
04:51 Demonstration of a Situation Where the Function Is Not Executed
05:11 Explanation of the Changes in the Preview Display Depending on the Function Being Executed
This lesson discussed conditional function calls in a program simulating the operation of a conveyor. The program checks the conditions of the active switch and the flashing green light to update the conveyor's status. If the condition is not met, the function is not called. To stop the belt, turn the selector right, which causes the function to be called again and the zero values to be written to memory. The next part of the lesson discussed why the conveyor continued to operate despite the condition not being met. Turning the selector again enabled the function and stopping the belt. Finally, it was emphasized that when calling functions conditionally, caution should be exercised in such situations.