r0m1 - 2023-01-05

Hello, i come from javascript programming for home automation and i want to use WAGO 750-891 now with codesys.

Sometimes i need to send many variables BOOL or INT to control many outputs and in javascript i used arrays for that, i wrote the output name/adress (for eg: lamp1,lamp2,pool or %QX24.0,%QX24.1,%QX24.2) on row 1 of my array and the target value (on/off, true/false, INT dimming value ...) on row 2. Each column corresponds to a different output. after that i can call a function to send each traget value to each output

I try something in codesys (see screenshot) look like my prog in javascript but for sure that can't work like that.

I'm looking for a solution from 4 hours and can't find anything ...

Please can someone help me ?

Regards