Universal / pre-made / generic popup like motor

Forum Home Forums Development and Integration Universal / pre-made / generic popup like motor

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #17447
    Fou
    Participant

    It would be great to have a project that already includes a large set of pre-made popups, such as digital, analog, motor, valve, or PID popups.

    Has anyone seen something like that?

    #17449
    manjey73
    Participant

    In the new Mimic editor, there is such a thing as Faceplate. But that’s exactly what requires some intervention from the developer so that you can make these faceplates so that others can use them. So far, the main problem in them, as it seems to me, is channel binding, since different people can call the same things in different languages (for example, the tag code).
    Well, there’s also a whole list 🙂

    #17455
    Mikhail
    Moderator

    Hi,
    You could download the Image pack from the website. Then use the images in the mimic components.

    #17475
    Fou
    Participant

    @Mikhail
    can you share the link for css documentation ?
    You say it was inspired by that document. I want to create typical popup and i will be happy to share with all the people after.

    https://forum.rapidscada.ru/?topic=mimic-%D1%82%D1%83%D0%BC%D0%B1%D0%BB%D0%B5%D1%80

    #17483
    Mikhail
    Moderator

    Probably, you mean this document. It is not translated. Of course, we will prepare docs for mimics later.

    Also useful:
    Mimic Examples.zip
    MyFaceplate.zip

    • This reply was modified 1 week, 6 days ago by Mikhail.
    #17485
    Mikhail
    Moderator

    If you tell me more about what you plan to implement, I will try to guide you.

    #17488
    Fou
    Participant

    I have a main (welcome) screen with a generic motor faceplate used for all motors. Three channels are passed to the faceplate to display different states (Run, Stop, Alarm), and this works correctly.
    Each motor faceplate includes a button that opens a motor control popup (Start/Stop commands, status, etc.).
    How can I pass a text value and a channel reference to the popup when it is opened from the faceplate button?

    https://ibb.co/Q3DcmXsF

    • This reply was modified 1 week, 6 days ago by Fou.
    • This reply was modified 1 week, 6 days ago by Fou.
    #17491
    Fou
    Participant

    motor popup in developent (.mim)
    https://ibb.co/C5XWV1M1

    #17499
    Mikhail
    Moderator

    A popup is a separate view that has its own view ID. There is an old good mechanism named scheme templates that is also supported by mimics. It allows to use only one MotorPopup.mim file for similar popups.
    Example of the view arguments in the Views table: cnlOffset=200&titleCompID=4

    I suppose, you should add an export property to the faceplate to be able to set the view ID. By clicking the button the action script is executed to open a popup having the specified view ID.

    #17500
    Fou
    Participant

    can we add arguments by scripting to an link something like :
    mimic/mimic/9?bindingFileName=Bindings\Motor2.stb
    and “motor2” it’s a text value?

    #17501
    Fou
    Participant

    or change the View id in the link of the button?
    like the propeties Button.link.viewId =8 or 9

    8 Popup\FVNR.mim bindingFileName=Bindings\Motor2.stb
    9 Popup\FVNR.mim bindingFileName=Bindings\Motor2.stb

    #17506
    Mikhail
    Moderator

    All the above ideas can work.
    A popup can be opened by an action script, or by changing a link URL.

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.