Configure multiple machines in one agent? #429
Replies: 10 comments 10 replies
-
You can have all the machines on the same agent. Just configure the adapter address for each machine. If you give me the info I can help with the config.
|
Beta Was this translation helpful? Give feedback.
-
Thanks! I'll gather up the info here soon. |
Beta Was this translation helpful? Give feedback.
-
Ok, I've done some digging and the Citizen MTConnect solution is unsurprisingly using cppagent, but it's from 2018. Here's an example agent.cfg. I'd like to understand how to consolodate all the machines to one agent if that's possible.
|
Beta Was this translation helpful? Give feedback.
-
Add each <Device …> Section for each machine to the Device.xml
For device, list the adapter. The adapters will be on different ports and possible hosts. As follows:
```
Adapters {
Machine1 {
Host = 127.0.0.1
Port = 7879
}
Machine2 {
Host = 127.0.0.1
Port = 7878
}
...
}
```
Where `Machine1` and `Machine2` are the names of the machines in the Device.xml. Each machine will need to have unique “id=…” attributes in the Device.xml. The data coming in from the adapter is keyed by name so they can be locally unique.
If you send me the Device.xml, I can send back an example.
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Correct. They just need unique ids in all the elements and then add the device names and their respective host/ports for the adapters. Tell me if you have any issues. If they are all identical or nearly identical device files, they will most likely have conflicting ids. You would need to prefix them or something to make them unique. |
Beta Was this translation helpful? Give feedback.
-
I looks like they all use the machine serial number as the device ID and UUID so I should be good to go. |
Beta Was this translation helpful? Give feedback.
-
Looks like all the attribute id's are |
Beta Was this translation helpful? Give feedback.
-
Ok, I have one example machine setup. I noticed that I don't get the nicely formatted web page when I open it in a browser. I don't think I still fully grok how the In the end, it really doesn't matter since I'm converting these to MQTT machines. So how do I setup a MQTT sink for each machine? |
Beta Was this translation helpful? Give feedback.
-
The latest version of the agent rewrites the stylesheet to the schema version if given. This was introduced in version 2.3. I'll check to make sure it is in the latest build. |
Beta Was this translation helpful? Give feedback.
-
I have several older Citizen lathes that have MTConnect but do not have a local computer to run the agent on. I would like to run
cppagent
on the same system we have Kepserver on. I see from the documentation I could create a config file per machine and install a service for each one but I would rather do it in a single service if possible/practical.Beta Was this translation helpful? Give feedback.
All reactions