RevpiEpics #190
Replies: 4 comments
-
Thank you for sharing, it's always interesting to see how our software is being used. I took a look through the code. I'm afraid I don't have any hardware to test it on so everything I say is purely from a visual inspection.
Hope this is what you were after! |
Beta Was this translation helpful? Give feedback.
-
Thank you @AlexanderWells-diamond for your comments.
I hadn’t thought of that solution. It’s definitely possible to create a list in RevPiEpics to link the PV name with the input/output name. This would allow me to remove the lambda function.
I wasn’t familiar with this type of configuration. My Python books are starting to get a bit old. I’ll take a closer look at this.
You’re right, for better code readability, I will replace these numbers with variables like this: ANALOG_INPUT_OFFSETS = [0, 2, 4, 6]
STATUS_INPUT_OFFSETS = [8, 9, 10, 11]
You’re right, I will try to fix that.
Unfortunately, after testing all possibilities, I only found this solution to determine the offset values of the cards and thus determine the input type.
This is the first time I’m using the logging module, so I will study it in more detail. I find this type of PLC very interesting, as it allows me to have an IOC integrated directly into it. If you’re interested, I invite you to check out this page: Documentation |
Beta Was this translation helpful? Give feedback.
-
Hello, @AlexanderWells-diamond I have made the modifications you advised. You can see them in the |
Beta Was this translation helpful? Give feedback.
-
I've made significant changes to my program. Thanks to your advisors, my program is now more flexible and understandable. Thank you. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I am sharing what I have been able to achieve with
pythonSoftIOC
on RevolutionPi boards.I have created a Python package to use the
pythonSoftIOC
implementation withrevpimodio2
.https://github.com/XavSPM/RevpiEpics
Currently, only AIO boards are supported. However, this may evolve in the future.
If you have any comments, please do not hesitate. Be indulgent, this is the first time I have created a Python package.
Xavier
Beta Was this translation helpful? Give feedback.
All reactions