Page 1 of 1

Gate changes

Posted: Fri Jun 16, 2017 5:50 am
by joqr231210
Hi Sielco Support Team,

I have a few doubts about the development software ( I have Winlog Pro 3)

1. How can i change the value of a gate, 0 to 1, (from the 1st device), when a gate (from another device) change from 0 to 1 ? I know that its only a conditional logic, but i have not find how to do this.

2. Winlog can access to devices via a VPN? such as PLCs or something in other network?

Thanks a lot team. :geek:

Re: Gate changes

Posted: Wed Jun 21, 2017 2:48 pm
by admin
Dear Sir,
about your question:
1 - You have to use code:

Code: Select all

Function void setValue()
#startup

    while(WindowIsOpen())

        if (GetDigGateValue("MyFirstGate", 0) != GetDigGateValue("MySecondGate", 0)) then
            SetDigGateValue("MySecondGate", 0, GetDigGateValue("MyFirstGate", 0));
        end

        Sleep(500);
    end
end


2 - Yes, but vpn (or other network) must be set on Microsoft Windows.

Best regards