Auto Control Module don’t load all triggers

Forum Home Forums Development and Integration Auto Control Module don’t load all triggers

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #7776
    Krzysztof
    Participant

    Welcome.
    I have a very annoying problem and I cannot deal with it.
    I have two inputs 7239 and 7240 identically configured. One of them is loaded by AutoControlModule, the other is not. I changed the input number, reconfigured triggers, reloaded the server, nothing helps. Maybe you have an idea. I also have this problem with other inputs and I don’t know where to look for the cause

    <Trigger id=”66″ active=”true” name=”F0-Komora_A” type=”CnlDataTrigger”>
    <CnlDataTriggerProps>
    <CnlNum>7239</CnlNum>
    <ChkCnlVal>false</ChkCnlVal>
    <CnlValCond>
    <CompareOperator1>LessThan</CompareOperator1>
    <CompareArgument1>0</CompareArgument1>
    <LogicalOperator>None</LogicalOperator>
    <CompareOperator2>LessThan</CompareOperator2>
    <CompareArgument2>0</CompareArgument2>
    </CnlValCond>
    <Deadband>0</Deadband>
    <ChkCnlStat>true</ChkCnlStat>
    <CnlStat>14-15</CnlStat>
    <Delay>0</Delay>
    <Repeat>0</Repeat>
    <RepeatCnt>0</RepeatCnt>
    </CnlDataTriggerProps>
    <Commands>
    <Command cmdTypeID=”1″>
    <KPNum>1000</KPNum>
    <CmdNum>1</CmdNum>
    <CtrlCnlNum>0</CtrlCnlNum>
    <UserID>0</UserID>
    <Delay>0</Delay>
    <SendOnFiring>true</SendOnFiring>
    <SendOnNorm>true</SendOnNorm>
    <CopyCmdVal>false</CopyCmdVal>
    <EditMode>Str</EditMode>
    <CmdDataStr>CPD;CPD ŚRODOWISKO: {CnlStat};URZĄDZENIE: {CnlName}: {CnlVal}
    DATA: {Now}
    OBIEKT: CPD</CmdDataStr>
    </Command>
    </Commands>
    </Trigger>

    <Trigger id=”67″ active=”true” name=”F0-LAN-WAN_A” type=”CnlDataTrigger”>
    <CnlDataTriggerProps>
    <CnlNum>7240</CnlNum>
    <ChkCnlVal>false</ChkCnlVal>
    <CnlValCond>
    <CompareOperator1>LessThan</CompareOperator1>
    <CompareArgument1>0</CompareArgument1>
    <LogicalOperator>None</LogicalOperator>
    <CompareOperator2>LessThan</CompareOperator2>
    <CompareArgument2>0</CompareArgument2>
    </CnlValCond>
    <Deadband>0</Deadband>
    <ChkCnlStat>true</ChkCnlStat>
    <CnlStat>14-15</CnlStat>
    <Delay>0</Delay>
    <Repeat>0</Repeat>
    <RepeatCnt>0</RepeatCnt>
    </CnlDataTriggerProps>
    <Commands>
    <Command cmdTypeID=”1″>
    <KPNum>1000</KPNum>
    <CmdNum>1</CmdNum>
    <CtrlCnlNum>0</CtrlCnlNum>
    <UserID>0</UserID>
    <Delay>0</Delay>
    <SendOnFiring>true</SendOnFiring>
    <SendOnNorm>true</SendOnNorm>
    <CopyCmdVal>false</CopyCmdVal>
    <EditMode>Str</EditMode>
    <CmdDataStr>CPD;CPD ŚRODOWISKO: {CnlStat};URZĄDZENIE: {CnlName}: {CnlVal}
    DATA: {Now}
    OBIEKT: CPD</CmdDataStr>
    </Command>
    </Commands>
    </Trigger>

    Log AutoControlModule
    2020-12-20 15:56:07 Start ModAutoControl module
    2020-12-20 15:56:07 Check “Automatic control module” registration:
    Registration key is valid
    2020-12-20 15:56:07 Module state loaded from file
    2020-12-20 15:56:07 Load tables of the configuration database
    2020-12-20 15:56:18 Trigger state changed “ENV\F0-LAN-WAN_A”: Waiting

    CalcEngine
    public double CalcCnl7239Val() { return Convert.ToDouble(Cnl/10); }
    public int CalcCnl7239Stat() { return CnlStat; }
    public void CalcCnl7239Data(ref SrezTableLight.CnlData cnlData) { try { BeginCalcCnlData(7239, cnlData); cnlData = new SrezTableLight.CnlData(CalcCnl7239Val(), CalcCnl7239Stat()); } finally { EndCalcCnlData(); }}
    public double CalcCnl7240Val() { return Convert.ToDouble(Cnl/10); }
    public int CalcCnl7240Stat() { return CnlStat; }
    public void CalcCnl7240Data(ref SrezTableLight.CnlData cnlData) { try { BeginCalcCnlData(7240, cnlData); cnlData = new SrezTableLight.CnlData(CalcCnl7240Val(), CalcCnl7240Stat()); } finally { EndCalcCnlData(); }}

    #7784
    Mikhail
    Moderator

    Hello,
    We need to clarify the issue. Could you provide links tp the screenshots of the settings, describe expected and actual behavior?

    #7789
    Krzysztof
    Participant

    Hello Mikhail

    Channel 7239 and 7240 should wait for status change. However, in the AutoControlModule log, chanel 7239 doesn’t exist at all, but the 7240 is also configured and works properly.
    Some time ago I reported the problem that the point changes status, while in AutoControlModule it doesn’t execute the command. I found that the trigger is not loading into memory and is not supervised, just can’t understand why. I guess I checked everywhere. I can still try to remove the chanel and put it back on, although I’ve already changed the number and the effect is the same

    https://drive.google.com/file/d/11b4n-bIcVV9zvrInV9GZW8BtPCb7s9zE/view?usp=sharing
    https://drive.google.com/file/d/1Xo6_8NtpFv4IAv1bUbOV7ALFiEmhB1us/view?usp=sharing
    https://drive.google.com/file/d/1TsRz1a5pRQZ0hh8j-VHGEdv4Op8ZcIXy/view?usp=sharing
    https://drive.google.com/file/d/1n9NKwTN8bX_fkISx7sM_VAvM9D1Dvu4W/view?usp=sharing
    https://drive.google.com/file/d/1Vxz3NLYxXwc5zOvQloeT9kzAuC8cGvJc/view?usp=sharing

    #7798
    Mikhail
    Moderator

    Hi,

    Thank you for the screenshots.
    Please check the following:
    1. Is there the trigger for 7239 in ModAutoControl.xml that is located in C:\SCADA\ScadaServer\Config?
    2. Is there any mention of the trigger name in C:\SCADA\ScadaServer\Log\ModAutoControl.log ?

    What are the versions of SCADA-Server and ModAutoControl.dll?

    #7799
    Krzysztof
    Participant
    #7807
    Mikhail
    Moderator

    Settings and logs look good.

    Trigger is written in ModAutoControl.log when a channel changes. If you stop Communicator and the restart only Server, I expect no triggers in ModAutoControl.log

    Please do the following:
    1. Stop the Communicator service.
    2. Set different values for the channels 7239 and 7240 using the Generator function in Administrator. What are the results?

    #7882
    Mikhail
    Moderator

    I did the above and got the following in ModAutoControl.log

    2020-12-30 10:37:47 Trigger state changed "ENV\F0-LAN/WAN-A": Waiting
    2020-12-30 10:37:55 Trigger state changed "ENV\F0-Komora-A": Waiting
    2020-12-30 10:38:31 Trigger state changed "ENV\F0-Komora-A": Firing
    2020-12-30 10:38:31 Command is enqueued to be sent at 10:38:31. Device 1000, Command 1
    2020-12-30 10:38:31 Sending trigger commands completed
    2020-12-30 10:38:31 Command is sent. Device 1000, Command 1
    

    Try the same and tell about results.

    Note: I don’t recommend to use Averaging checkbox of input channels because it is deprecated and will be removed. Use the formulas instead.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.