Automation Direct Do-More Native Driver

#1

Any more thoughts on doing native drivers for Automation Direct PLCs. The Do-More line is pretty powerful and the price point is also a plus. I know Host is willing. Let me know what can be done to get the discussion rolling with the right people!

0 Likes

#2

Is there a spec for whatever protocol “native” is for these devices?

AFAIK they all do Modbus and you can just use our Modbus driver.

0 Likes

#3

Yes but Modbus is slow and mapping is just one extra step. I am messing with the BRX line and trying to get MQTT setup, but have not been successful thus far. It would be nice just to be able to map directly to the do-more memory locations with a direct driver.

But I’ll take your answer as Ignition isn’t interested at this time…

0 Likes

#4

That’s not necessarily true, but I’ve never seen any documentation for another “native” protocol for these.

0 Likes

#5

Are you on the Host Engineering forums by chance? It looks like Host is willing to make this happen…

0 Likes

#6

I went ahead and posted in that thread.

0 Likes

#7

That’s awesome Kevin! And I finally got the MQTT working…on to more trials and testing!

0 Likes

#8

@dwhite I have a brx PLC sitting in my office right now. I’d be interested in knowing if you’d be willing to post anything on using MQTT with it, or maybe a link. Thanks

0 Likes

#9

@dkhayes117 What would you like to know? First I would suggest downloading Do-More Designer version 2.5 if you have not done so already. Version 2.5 has some expanded instruction sets (JSONBUILD and JSONPARSE) that allow you to do a little less work on both sides (BRX and IA). Then you need to make sure you have the Cirrus Link Modules added to your Ignition Gateway. Let me know if you have all that ready or if you need assistance setting that up.

You can also leverage any other MQTT broker as well. I was successful in setting up Mosquitto on my machine as well.

0 Likes

#10

I have do-more 2.5 already, and I have the trial version of the Cirrus Link modules installed. I will play around with it some later, and if I run into any snags I will give you a holler if you don’t mind. The question I have right now is if I want to monitor an output with mqtt, do I have to setup the instruction on the rung, or can you “map” the outputs to a topic like you would with Modbus (if that makes any sense at all)?

0 Likes

#11

Right now you have to do it with the instruction. In DMD you will need to do the following (this assumes that you have everything working on a local machine, Inductive, Broker and Do-More):

  1. Select Configure (XY Button by Devices) in DMD
  2. Highlight device configuration (on the left side of the pop up window)
  3. Select New Device Pushbutton (right side of window)
  4. Select MQTT Client >> Then Okay
  5. Device Name can be anything as long as it follows DMD nickname convention I believe
  6. Select Use IP Address and enter 127.0.0.1 (or DNS lookup and type localhost)
  7. You can leave Other Settings default for now
  8. Start with a clean ladder (just for testing) and add the following:
  • Rung 1 - ST1 (always on contact) and JSONBUILD (instruction)
  • Rung 2 - ST1 and MQTTPUB

Setup JSONBUILD Instruction with the following information:

  1. Record type = object
  2. Add and then fill out (Field Name = YourTagName (this can be anything you want Tag1, MyTag, etc and then select a type and memory location from Do-More, Save)
  3. Add another record (select String and memory location SS1)
  4. For JSON output record use string structure and use SS0

Setup MQTTPUB Instruction with the following information:

  1. Select continuous on Power Flow (you can do 1 sec interval)
  2. Add optional topic “DoMoreTags/” (needs to include double quotes as shown, but you can replace DoMoreTags with something more meaningful if required
  3. Either insert of double click item 1 and edit topic (select Use common Option Topic) fill in topic with “jsontags/” and payload = SS0 (output from your JSONBUILD)

In data view add SS0, SS1 and whatever you inserted as your first entry of your JSONBUILD…could be D0 (integer), R0 (float).

You can then connect to the Do-More Sim and download the program. Next we can setup Ignition.

1 Like

#12

To setup the Ignition Gateway, complete the following:

  1. Start the gateway and then go to the gateway URL (Typically http://localhost:8088/main) or use the link in the gateway utility
  2. Select configure and login with your username and password (if this is the IA trial then username = admin and password = password)
  3. You said you already had the modules installed, so select MQTT Distributor/Settings
  4. Make sure Enable MQTT Server is checked
  5. Enable Non-TLS connection (for now)
  6. Scroll all the way day and select advance settings and check enable Anonymous

Next go to the MQTT Engine/Settings

On the general tab

  1. Ensure enable MQTT Engine is checked
  2. Primary Host ID should be localhost in your case

On the Servers Tab

  1. Charlot SCADA should be connected at this point (this will be your broker)

On the Namespace Tab

  1. Select Custom
  2. Create new Custom Namespace
  3. For Name (you can type whatever you would like…ie DoMore)
  4. Subscription type DoMoreTags/# (this should match your topic in the PLC see MQTTPUB step 2)
  5. Ensure Parse the payload as a JSON string is checked

Once all those changes have been made and saved you can start the designer
Once you have the designer open go to the tag browser (left side of the screen in the middle)
Expand All Providers
Expand MQTT Engine (you should not see your tags at this time)

Go back to Do-More Designer and connect to the SIM-PLC and download your program
Run the SIM

Go back to the IA Designer and refresh your tags in the tag browser
Expand All Providers
Expand MQTT Engine (you should now see your folder DoMoreTags which you can expand and see your values coming from the PLC)

1 Like

#13

Awesome, thanks for taking the time to list your steps

0 Likes