Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share single CNC connection across multiple output types. #73

Open
MRIIOT opened this issue Nov 2, 2022 · 6 comments
Open

Share single CNC connection across multiple output types. #73

MRIIOT opened this issue Nov 2, 2022 · 6 comments

Comments

@MRIIOT
Copy link
Contributor

MRIIOT commented Nov 2, 2022

Allow output to SHDR and MQTT, for example, from a single CNC connection to avoid multiple Focas connections to CNC.

@tukusejssirs
Copy link
Contributor

@MRIIOT, am I right to assume that this issue is about using a single FOCAS connection to a machine for every type of data gathered from that machine?

I would be awesome and a huge performance gain if we currently use a connection per feature (or something along the lines).

@MRIIOT
Copy link
Contributor Author

MRIIOT commented Nov 2, 2022

It is actually the other way around. We observed performance degradation when using multiple Focas connections. One to mqtt, one to Influx.

So the suggestion is to output to mqtt and Influx from a single Focas connection.

Even though the driver is async, I would imagine that the Focas connection blocks another somewhere. But this should be Wiresharked.

@MRIIOT
Copy link
Contributor Author

MRIIOT commented Nov 3, 2022

@tukusejssirs, I don't think multiple connections to the same CNC will improve performance... From Focas docs:

Multi-thread
Win32 supports multi-thread. Each function in this library can be called from the multiple threads at a time. The access to the single system resource, such as CNC/PMC's internal memory, at a time is exclusively controlled by this library.

@MRIIOT
Copy link
Contributor Author

MRIIOT commented Jan 28, 2023

It is also worth noting that using Fast Ethernet instead of Embedded Ethernet improves performance.

@tukusejssirs
Copy link
Contributor

It is also worth noting that using Fast Ethernet instead of Embedded Ethernet improves performance.

Is that a config on the machine or something you need to implement in fanuc-driver. If the former, how can you configure the machine to use fast eth?

@MRIIOT
Copy link
Contributor Author

MRIIOT commented Jan 28, 2023

It is a physically separate network interface on the machine (if available).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants