Author Topic: Basic Button to CLICK PLC over ethernet exmple  (Read 869 times)

jgmdesigns

  • Newbie
  • *
  • Posts: 15
    • View Profile
Basic Button to CLICK PLC over ethernet exmple
« on: January 10, 2022, 06:15:53 PM »
Hello,
I am somewhat new to using this software and I am trying to understand how to interface to the Automation Direct CLICK PLC using Ethernet.

I am familiar with Modbus and ModbusTCP on teh PLC side, but I am not so sure about how to get the ball rolling in this software suite.

Is there anyone that couple give me a few pointers on what comms driver I should be using, and how to do a simple button set up on the HMI side, and what to set the PLC up to do?  I am looking through prior posts and scratching my head somewhat.

Thanks, Looking forward to the feedback

Jim

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5323
    • View Profile
    • AdvancedHMI
Re: Basic Button to CLICK PLC over ethernet exmple
« Reply #1 on: January 10, 2022, 06:38:05 PM »
You will use the ModbusTCPCom driver.

The addressing can be a little tricky because the driver wants Modbus style address (e.g. 40001 for a word). Since using a button, you will be using an address that start with a 0 such as 00001 for function code 1 address 0

jgmdesigns

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Basic Button to CLICK PLC over ethernet exmple
« Reply #2 on: January 10, 2022, 08:00:23 PM »
Thanks Archie!  I ended up figuring it out.

I can write to a Control Relay, or a holding register and I just have to watch how I do the addressing like you said.  Also, best not to write directly to an output as it can mess things up.

Thanks gain!  Please call this issue resolved.

JIm