Roald87 / roald87.github.io

Mostly cooking and coding in TwinCAT.
https://cookncode.com
MIT License
4 stars 2 forks source link

Short post with tips #4

Closed Roald87 closed 2 years ago

Roald87 commented 2 years ago

- Use `{attribute 'call_after_init'}` to call a method once after some  _after_ the function block has  been initialized instead of using `bInitialize`. 
- Reduce the use of REFERENCE and POINTER as much as possible
- Do not call methods from multiple tasks. If you do use [this](https://infosys.beckhoff.com/content/1033/tc3_plc_intro/45844579955484184843.html?id=2972649925198044529). 
Roald87 commented 2 years ago

Closing. Added eba070011b4eeab59dd656f05e1f293583d22a8e