Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I am waiting on other socket or keyboard input in addition to a message from a PLC. Can I use select() directly on PLCIO file descriptors?

0
Posted

I am waiting on other socket or keyboard input in addition to a message from a PLC. Can I use select() directly on PLCIO file descriptors?

0

No. In unsolicited mode, PLCIO internally manages a table of file descriptors that can grow or shrink based on the number of PLCs currently connected to your application. The API is not capable of providing you with this list of file descriptors. We recommend cycling between select() and plc_receive() in your application, with a short (30 milliseconds or less) timeout for each.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123