Forum Home › Forums › Development and Integration › Auto Control Module don’t load all triggers
- This topic has 6 replies, 2 voices, and was last updated 3 years, 3 months ago by Mikhail.
-
AuthorPosts
-
December 20, 2020 at 3:27 pm #7776KrzysztofParticipant
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”: WaitingCalcEngine
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(); }}December 21, 2020 at 12:39 pm #7784MikhailModeratorHello,
We need to clarify the issue. Could you provide links tp the screenshots of the settings, describe expected and actual behavior?December 21, 2020 at 1:38 pm #7789KrzysztofParticipantHello 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 samehttps://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=sharingDecember 22, 2020 at 1:06 pm #7798MikhailModeratorHi,
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?
December 22, 2020 at 1:49 pm #7799KrzysztofParticipantThe links are screenshots and files directly from the server in the directory. The problem is not easy, because I don’t see an error anywhere and basically everything should work. The points configuration is still from version 5.6. Migrations done, every time according to the instructions
https://drive.google.com/file/d/1ySNLTNPreilXzVzHF1N1x-dGO7yWE3yI/view?usp=sharing
https://drive.google.com/file/d/1WmjJxBdDJUGt43nguktiU8ow01-HcRzY/view?usp=sharing
https://drive.google.com/file/d/1SjRVOciMwOamCJpFJyWuuFZIq2spBKEv/view?usp=sharing
https://drive.google.com/file/d/1FumMBsIeDcKD7u8x7mq6j9HZYmDy_Wf9/view?usp=sharing
https://drive.google.com/file/d/1XoXqSPSOytikUFhRmtTzBDURGPF4g2cN/view?usp=sharing
https://drive.google.com/file/d/1yU3yxDw984xY2bXJtExCIQxmbaDWE2-W/view?usp=sharingDecember 23, 2020 at 2:31 pm #7807MikhailModeratorSettings 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?December 30, 2020 at 7:41 am #7882MikhailModeratorI 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.
-
AuthorPosts
- You must be logged in to reply to this topic.