AGG Software Forums
February 24, 2020, 04:26:10 AM *
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]
Author Topic: TCP/IP Logger begin logging on event trigger from device  (Read 1254 times)

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
Hero Member

Karma: +0/-0
Posts: 772

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


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:

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

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines