AGG Software Forums
December 03, 2024, 08:17:16 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome on our forum!
 
   Home   Help Search Login Register  

Pages: [1]
  Print  
Author Topic: TCP/IP Logger begin logging on event trigger from device  (Read 13050 times)
jrob007
Newbie
*

Karma: +0/-0
Posts: 1


View Profile
« on: November 07, 2019, 07:22:28 PM »

We have a simple PLC using Modbus TCP. I was wondering if it's possible to have TCP/IP Data Logger listen for a simple 1-bit register change on the PLC then trigger the TCP/IP Data Logger to start/stop logging when the bit flips.

For example: PLC has a graphical toggle button mapped to a 1-bit register and PC with Data Logger installed is listening to the PLC through Modbus TCP. If I push the button on the PLC the bit = 1 then Data Logger would begin logging. If I push the button on the PLC again the bit = 0 then Data Logger should stop logging. I'm trying to avoid clicking start/stop logging from the PC if we were to put the PC in a remote location.

Is this possible somehow?
« Last Edit: November 07, 2019, 08:52:24 PM by jrob007 » Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #1 on: November 11, 2019, 07:40:59 AM »

Hello,

Yes, it is possible using the "Script Execute" plugin. It can analyze and save a state of the specified variable between calls. Also, it can discard data packets if the current state is 0 (for example).

Similar tutorials:
https://www.aggsoft.com/asdl-modbus-control-filter.htm
https://www.aggsoft.com/opc-data-logger/tutorials/filter1.htm
https://www.aggsoft.com/opc-data-logger/tutorials/filter2.htm
https://www.aggsoft.com/opc-data-logger/tutorials/filter3.htm

Please, configure all the necessary MODBUS requests. After this, I may help you with the script.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines