-
Notifications
You must be signed in to change notification settings - Fork 31
Control Loop

The control loop starts with the TX/RX handled by Ethercrab. It sends the EtherCat frome to all devices and waits for recieval. Although EtherCAT supports multiple in-flight frames we just use one at a time.
We loop over every device and check if the inputs for this device match the expected length (byte length).
If the size matches we give the inputs to the TxPdo object of the device which will decode and store the inputs.
We loop over all known actors and call their act function. This is where the control loop logic happens. They can read the input and write the output.
We loop over every device and check if the outputs for this device match the expected length (byte length).
If the size matches we give the outputs to the RxPdo object of the device which will encode the outputs.
QiTech Control | GitHub | Video Demo | Open Source Framework for Industrial Control
- Getting Started
- Adding a Machine
- Adding a minimal machine e.G. 4CH DO
- Code Style
- Performance
- Testing
- Adding Presets to Machines
- NixOS
Beckhoff:
WAGO:
- 4 Digital In (750-402)
- 8 Digital In (750-430)
- 8 Digital In + 8 Digital Out (750-1506)
- 4 Analog In (750-455)
- 2 Digital Out (750-501)
- 8 Digital Out (750-530)
- Stepper (750-671 & 750-672)
- Power Supply (2789‐9052)
- Serial Interface (750-652)
- 4-channel Analog input module Pt100 RTD (750-460)
- 8 Digital In + 8 Digital Out (750-430 + 750-530)
Elrest:
WAGO: