More complex data types

As one who has programmed Opto devices to control a bunch of four pipe fan coils, it would be awesome if we could have struct types in PAC Control (and local vars), but we have to make do with what is there.

I recommend reading this post: PAC Control 101: Why/when/how would I use POINTERS?

The general idea is to write your program as if you are controlling one device (and even test it if you can), and then surround the logic in a loop and grab the data you need from tables. I have a comment on using MS Excel* to help build initialization tables in Optoscript. It makes managing projects like this a bit easier and less tedious. I’m not the only Opto user to use that method.

*I actually use Libre Office, because Excel does dumb things when I copy and paste the generated Optoscript, it’s almost like it’s Microsoft’s goal to get us to use something else…