Hello Guest it is September 23, 2023, 01:13:42 PM

Author Topic: Mach 4 modbus setup with Click PLC  (Read 1155 times)

0 Members and 1 Guest are viewing this topic.

Mach 4 modbus setup with Click PLC
« on: November 02, 2020, 10:21:56 AM »
This is my first time attempting to set up a PLC so I am very new with this.
I am trying to get Mach 4 to communicate on a basic level with a Click PLC using serial RTU. I am wondering if there is some sort of tutorial I can follow to help me through this.
So far I have set up a modbus connection to the PLC but I have no idea how to control the PLC Using Mach 4.
I have attempted to create modbus functions but I can't seem to put all of the pieces together.
any help would be really appreciated!
Re: Mach 4 modbus setup with Click PLC
« Reply #1 on: November 05, 2020, 08:43:14 PM »
this post would be best in the Mach4 General Discussion Board, it will get more response.

Using the Mach4 Modbus plugin generates Registers into which you may place data or alternately read data
from the Modbus device.

You will need to write Lua scripts that place the required data into the outgoing data registers and read in incoming
data registers.

It is common to write macros, named m100, m101 etc and then whenever you need to execute code just MDI m100 for example.

'I enjoy sex at 73.....I live at 71 so its not too far to walk.'