Configuring Analog inputs



  • Hi All,

    I have created a subsystem to scale analog inputs so you can use either 0-10V or 4-20mA. It even has a parameter to turn on a TRND block. Can this be done on the Monarco HAT given how the flags are already separate configurations? I'm building a generic logger and would like the analog input to be software configurable if possible. This way I can use either V or mA transducers and and not have to change the code, just use the HMI to configure it.

    Cheers

    Mike

    Random Ideas.mdl



  • UPDATE!

    After posting earlier I wondered if something like this would be better?

    Not having the unused input flag showing an alarm might be tricky?

    Cheers

    Mike

    Random Idea2.mdl



  • Hi Mike,

    thanks for your question. Good job - your latest proposed solution makes sense. Just one small remark:
    For now it is possible to have ranges just 0-10V or 4-20mA. It is not possible to switch to 0-5V.

    Let me know if I can be of assistance.

    Regards
    Tomas



  • Thanks Tomas,

    Will the unused flag produce an error or alarm in the system log?

    I’ve also removed the 0-5v option 😀

    Cheers

    Mike



  • Hi Mike,

    I wasn't 100% right, sorry for that.

    It is prohibited to use both flags for AI at the same time by the compiler. The solution is not that straightforward however it is possible:

    If you need any additional help, let me know.

    Cheers,
    Tomas


Log in to reply