Variable linking is tedious and prone to outright disappear. It could be cool to have a tool for this.
Options I can think of now:
- Name based links: link PLC io to HWIO through both variable names
- Rely on exported links ('mappings'): so you can verify in CI whether the last export matches the current project, then your maps become very explicit
- Rely on external mappings - basically a .txt that contains either exact maps or maybe also some kind of regex matches (to minimize content)
- Use variable comments - something like:
myVar AT %I*: BOOL; // link: Master/EK91100/EL200/channel1
- Though this gets more difficult when we use intermediate IO objects, e.g.
FB_DigitalOut. The I/Q variables themselves cannot be bound with specific links.
Variable linking is tedious and prone to outright disappear. It could be cool to have a tool for this.
Options I can think of now:
FB_DigitalOut. The I/Q variables themselves cannot be bound with specific links.