i am trying to get the communication line state and send it to input channel,so that i can record event on change to let user know the communication line state through the web platform ant let user konw when was the time that device went Idle or Terminated. it confused me for three days,could you help me how can i make it work, thanks a lot.
Hi, I used the following work around.
Added extra channels as temporary data
InCnl 10101: Signal 1 of device 1, real, Line 1 Device 1 Stat
InCnl 10201: Signal 1 of device 1, real, Line 1 Device 1 Stat
add extra channel to monitor status
InCnl 101: stat(10101), Calculated discrete, Line 1 Device 2 Stat (O means offline, 1 online)
InCnl 102: stat(10201), Calculated discrete, Line 1 Device 2 Stat (O means offline, 1 online)
InCnl 100: Stat(10101)+Stat(10201)==0?0:1, Calculated discrete, Line 1 Stat (O means offline, 1 online)
then enable event on change of these 3 channels, to log event of online/offline
** assuming all device offline = communication line offline.
you can miniplate formulas to have more states as you needed
it is a good idea thanks
but it will cost plenty to config input channel.
i write a kpdriver to analysis the commonsvc log file and a send status to inputchannels there are four states.you can see it in project code.
i use a master server and many slave servers in a large project. i use gate module to send data between them.
i also write a kpdriver to monitor the tcp status between servers.
i write an big screen project to show tcp state and line state.