Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: brianthechemist on March 01, 2024, 09:26:58 AM

Title: Command to disable only one function or device in modbus?
Post by: brianthechemist on March 01, 2024, 09:26:58 AM
Hi everyone,

I'm looking for either a register or a command to start/stop specific modbus functions and/or devices.  (similar to right-clicking on the device or function in the Modbus Diagnostics window).  I'm trying to limit overhead and only use the toolchanger modbus when needed so I can turn off the toolchanger between changes.

I was able to find the command register to enable/disable ALL of the modbus at once: mbcntl/command but I was hoping for more granularity

I'm also able to find the status of each device/function but they appear to be readback only and not commands (for example MB2-6052/function0/rc )

Thanks!
Title: Re: Command to disable only one function or device in modbus?
Post by: compewter_numerical on June 09, 2024, 01:13:35 AM
just set a coil to turn it on or off and use a global in the PLC.

many ways you can do this, input_sig comes to mind
Title: Re: Command to disable only one function or device in modbus?
Post by: brianthechemist on July 04, 2024, 04:12:56 PM
Could you explain a bit more? Sounds like the solution to me