An overview of the existing code examples.
The following modules are enclosed as code examples or code fragments:
The following modules are enclosed as code examples or code fragments:
- Binary trigger:
- Classic binary trigger as HSL 2.0 module.
- Source code example:
code_examples\BinaryTrigger\src\10700_Binary_Trigger.py
- Lock:
- Classic lock as HSL 2.0 module.
- Source code example:
code_examples\BaseModule\src\10701_MyBaseModule_01.py
- Counter module:
- Block is remanent and outputs its value on the debug page.
- see also: remanent memory
- Source code example:
code_examples\BaseModule\src\10702_MyBaseModule_02.py
- Division module:
- Module is remanent and has an error output.
- see also: Exceptions
- Source code example:
code_examples\BaseModule\src\10703_MyBaseModule_03.py
- Telegram generator with random cycle length
- Demonstrates the threading concept
- see also: Threading
- Source code example:
threading\Telegram_generator_with_random_interval\src\10704_Telegram generator with random interval.py
- Loudspeaker system
- Demonstrates communication between instances of different building blocks
- see also: Communication between logic block instances
- Source code example:
communication_between_instances\SpeakerSystem\src\10705_SpeakerSystem Household.py
communication_between_instances\SpeakerSystem\src\10706_SpeakerSystem Player.py
- Web page query
- Demonstrates the replacement of the framework HTTP client class with standard Python modules
- see also: Framework documentation --> HTTP-Client
- Source code example:
https_client\WebRequest\src\10707_WebRequest (https).py
- Standard timer:
- Outputs a numeric or alphanumeric input value with a delay.
- Source code example:
code_examples\Timer\src\10708_MyTimer.py
- Interval Timer:
- Generates signals at an adjustable interval.
- Source code example:
code_examples\Timer\src\10709_MyIntervaltimer.py
- Calculation of the date of Easter:
- Calculates the exact date of Easter for the current year. Serves as a demonstrator for the import of external libraries.
- see also: XML definition file (import tag)
- Source code example:
code_examples\EasterDate\src\10710_Easter date.py