As python cannot really be connected to a bus cycle in your case I would suggest to use the PLC. Create a task with the cycle time needed by you (e.g. 5ms). Setup an array with 10k variables space and go.
Of course you could also use python or data bases / cloud connector apps for this e.g. via the Bosch - DeviceBridge, Cedalo - Eclipse Mosquitto MQTT Broker or ctrlX CORE - Node-RED App.
... View more