Reconsider running commands through PLC with a bit mask variable rather than with `CommandTS`

Open
#15 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
c, python
Domain
embedded-iot

Research direction

The issue names no files, tests, or entry points; begin by examining the existing CommandTS path and the Python/C PLC integration described in the issue. Done is not defined beyond deciding, through a simulation, whether the bit-mask approach is quicker.

Written by the indexing model from the issue text.

Description

From Steven Beaumont at Faraday:

The approach that I would probably use in your case would be to

1:- Monitor a M or P variable from a PLC
2:- Change specific bits of the M or P variable from your ‘C’ program
3:- When your PLC sees the bit pattern change it would act upon it through an IF THEN statement then reset the bit pattern

image

Which approach is the quickest I couldn’t tell you without running a simulation

Dominant language
Python
Stars
3
Forks
1
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DiamondLightSource/pmacFilterControl

All issues in DiamondLightSource/pmacFilterControl

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.