OPTA PLC IDE and RS485

Hello everyone,
I want to use an OPTA Arduino for a university project. The idea is to use the PLC to read buttons and control indicators in a simple way, so with PLC IDE. However, I would also like to use it to control Dynamixel servomotors that are connected via RS485. There are Arduino libraries that allow controlling these servomotors.
My question is, is it possible to have a program made via PLC and a program made on the Arduino environment coexist (I understood that it was possible.), with in this case a shared resource, which would be the RS485?
I'm somewhat familiar with multitasking systems, and here I'm struggling to understand how the two "programs" could share the "resource".

Thanks a lot for your help,
Julien