TCP/IP Logger begin logging on event trigger from device

Started by jrob007, November 07, 2019, 04:22:28 PM

Previous topic - Next topic

jrob007

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?

Arthur Grasin

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.
If you like my work, please take a few seconds and add feedback about our site or our software [here]