MortenHa
12-08-2008, 07:15 PM
Hi folks
I am somewhat uncertain how to read SIOC code. Especially Variable declaration and its use. Got some experience in programming, but SIOC is a bit strange, and I need to see if I got this right:
This is a declaration statement(?):
Var 302, Name RecallSwitch, Link IOCARD_SW, Input 2
If I want to use this variable in my programming, I can either:
Refer to it this way(?): V302
or
by its name(?): RecallSwitch
It is my understanding that these variables are global and they reside on the IOCP server(?)
Let's say I have SIOC Clients running on two different computer. Can both computer use RecallSwitch in their programming script(?)
I have also seen code examples where the Variable declarations are written after their first use, and this OK whenever(?)
The documentation says that the script associated with the variable is run after there's an event resulting in a change in value.
Making it possible for the script itself to contain code that would change the value yet again(?)
Thanx in advance:o
Morten
I am somewhat uncertain how to read SIOC code. Especially Variable declaration and its use. Got some experience in programming, but SIOC is a bit strange, and I need to see if I got this right:
This is a declaration statement(?):
Var 302, Name RecallSwitch, Link IOCARD_SW, Input 2
If I want to use this variable in my programming, I can either:
Refer to it this way(?): V302
or
by its name(?): RecallSwitch
It is my understanding that these variables are global and they reside on the IOCP server(?)
Let's say I have SIOC Clients running on two different computer. Can both computer use RecallSwitch in their programming script(?)
I have also seen code examples where the Variable declarations are written after their first use, and this OK whenever(?)
The documentation says that the script associated with the variable is run after there's an event resulting in a change in value.
Making it possible for the script itself to contain code that would change the value yet again(?)
Thanx in advance:o
Morten