Maverick

Forum Replies Created

  • In reply to: Movicon drawing .NET assembiles

    4 July 2016 at 12:19 pm #21175
    Maverick
    Participant

    I will make sure to check, thank you for the help already in advance! I will post here soon as I have figured it out.

    I have seen on another machine that there exist a solution where they launch the application from within Movicon (via VB.NET I would assume) and then handle the application in itself. I don’t know if there is any data exchange on the software side, and if yes how they handled. Maybe they have also just ‘hardwired’ some I/Os to circumvent the issue. But I can’t be the only one to integrate a third party software that is not ActiveX right? I’m rather new to the topic, so just a quick general description on how someone else handles this would be amazing (accessing shared variables somehow through Movicon, completely separating the softwares and working throug I/Os, Interfaces that can be accessed via some Library, etc..?). I am really lost here. I am not integrating this for commercial purposes, I am a student working on a project, so it’s just for my personal joy and understanding. Thank you everyone for you consideration, time, help and effort 🙂

  • In reply to: Movicon drawing .NET assembiles

    1 July 2016 at 10:57 am #21174
    Maverick
    Participant

    Or maybe better you can try to load your .net objects in .net form and try to open them  directly from the Movicon vb.net environment.

    You can  take a look at the Progea Example ES_UseWWBNET that is present on their web site.

  • In reply to: Movicon drawing .NET assembiles

    1 July 2016 at 10:26 am #21173
    Maverick
    Participant

    Hi Thomas If your application , your component, exposes an ROT interface you may try to access the data with Movicon along this way. I’m not sure is feasible.

  • In reply to: how to create a polygon (or bezier figure) at runtime ?

    4 February 2016 at 12:05 pm #21206
    Maverick
    Participant

    I saw in the Movicon Help that there is a function : ‘Add PolyPoint, Draw Cmd Target Function’, as a workaround you could insert the object (polygon) into the screen in design mode, I mean a ‘crude’  a ‘minimal’ polygon which could be as a point,  so invisible and could be hidden in the graphic interface.

    Then you can go and move it in runtime, add points, change  background color using the Draw Cmd Target.

     I know  It s ‘a workaround because the object is not created at runtime, but the object exist and it  is only modified in runtime but maybe it could work for your app.

  • In reply to: how to create a polygon (or bezier figure) at runtime ?

    1 February 2016 at 10:24 am #21204
    Maverick
    Participant

    By using the ‘Create New Symbol’ VB cmd function, I do not think that you can work directly with the polygon objects.
    You could for instance work with the line object and add more lines in order to create your segments.

     I think you could build in runtime your polyline in this way. Simply going to add more lines and acting properly in the x (starting point ) and y (end point) of each line…

     ‘ —- Line 1 —-

         SymbolName = ‘Line_1’
         mySyn.DestroySymbol(SymbolName)
         Set obj = mySyn.CreateNewSymbol(SymbolName,”,6)
         obj.BackBrushPattern = 2
         obj.BackBrushVisible = True
         obj.BorderType = 0
         obj.EdgeColor = RGB(255,0,0)
         obj.LineStartingX = Line1X
         obj.LineStartingY = Line1Y
         obj.LineEndingX = Line2X
         obj.LineEndingY = Line2Y
         obj.PenWidth = 4

     ‘ —- Line 2 —-

         SymbolName = ‘Line_2’
         mySyn.DestroySymbol(SymbolName)
         Set obj = mySyn.CreateNewSymbol(SymbolName,”,6)
         obj.BackBrushPattern = 2
         obj.BackBrushVisible = True
         obj.BorderType = 0
         obj.EdgeColor = RGB(247,95,7)
         obj.LineStartingX = Line2X
         obj.LineStartingY = Line2Y
         obj.LineEndingX = Line3X
         obj.LineEndingY = Line3Y
         obj.PenWidth = 4

    ‘ —- Line 3 —-

    .

    .

    obj.LineStartingX = Line3X
    obj.LineStartingY = Line3Y
    obj.LineEndingX = Line4X
    obj.LineEndingY = Line4Y

    .

    .

    ‘ —- Line 4 —-

  • In reply to: how to access parameterized name from scripts

    13 January 2016 at 1:58 pm #21201
    Maverick
    Participant

    Hello
    I hope to understand well your request; locally in the parameterized screen you could use directly the Alias name that you pass through the parameterization screen.
    In the display you’re using this aliases and not the variables members e.g. Value1.
    You can use this ‘Alias’ values in the script e.g.
    Public Sub Click()
    Debug.Print Value1
    End Sub
    Other workarounds:

    You could think to add the name of the motor directly in the variable structure as a member and add this new alias in the parameterization file. This will be available locally in the screen. Normally I use this way in my Movicon applications.

    Again you could use a dummy internal variable , in the Progea example  is  ‘SelectedMotor’ is populated in the command list while you are opening the synoptic.

    Or there is also a VB function

    ‘GetParameterVariable, SynopticCmdTarget Function’

    I’m copyng this info from the Progea help-on line

    This function returns the name of the variable whichreplaced the variable referenced with the IspzVariableName parameter in thescreen’s parameter file. When a screen is parameter driven this means that thevariables used in symbols execution properties can be replaced with othersspecified in the object’s text file.  Please refer to the  ParameterFileName property for the Parameter Filesettings.

  • In reply to: Chromecast

    1 September 2015 at 5:09 pm #19463
    Maverick
    Participant

    Hi Paul, funny idea, look at this:
    https://www.youtube.com/watch?v=s97h5
    I never tried but it should work , maybe the performance could slow down…

  • In reply to: Visibility of processpictures

    7 August 2015 at 12:36 pm #21616
    Maverick
    Participant

    Hi poorboy with PCs  you can use directly the object property ‘ Image Animation’ that you can find in Dynamics > Image Animations property windows of the object;
    More info in the Movicon Help on line Draws and Objects > Common Prop. for Object > Image animation.

    Anyway your Post is for a CE environment,  CE brings some more limitation, please look at the Graphics Restrictions for CE in the manual ; normally I workaround on CE with the Visible Animation property ( dynamic property of the objects) I mean creating more objects with different background images and show them when I need trough a variable.

    Hope this can help you

  • In reply to: Report designer

    26 May 2015 at 11:31 am #21196
    Maverick
    Participant

    Hi Paul,In order to achieve this you will need to use the Movicon ‘ReportViewerNET.exe’ tool, which is found in the Movicon installation folder (see the Movicon help forfurther information on the ‘ReportViewerNET.exe’ parameters that you can pass with this commands).Running this tool by passing different parameters you can creating and also run/execute the report.In the ‘string cmd’ you can set different parameters like the ODBC ,..If the report is not associated with the data logger resource I think is what you are looking for.With my experience I started from the example available in the Progea web site.

  • In reply to: Grid SQL

    30 April 2015 at 10:33 pm #21193
    Maverick
    Participant

    Hi Paul,
    Well my personal experience (from a good Movicon user , at least I hope so  🙂 ).
    I can’t see a direct association between the grid object and the report; ok 2 DB viewers but you have to configure the application in different environments.
    For the grids I guess you created custom DSNs to get different DBs, there is  VB function ‘SaveToTextFile’, associated to your request and that let you export the data on a text file.
    Now talking about reports you can work with Report Designer (a good free reporting tool embedded in  Movicon) I remember one example always here in the Progea web site that uses the ReportViewerNET.exe (take a look on that, with this you can use the ODBC DSN created for the grid objects) ;
    or you can always create a custom data source directly in the report designer environments to reach different DBs

  • In reply to: SQL Express Remote database

    16 April 2015 at 9:56 am #21190
    Maverick
    Participant

    Hi Luis,
    what you describe looks a normal networking architecture.  So the Data base is only on the Server machine and you access from the client exploiting the Movicon networking capability. Working in this way is very easy.

    In addition with Movicon you can always have a direct connection with any remote DB that is reachable in networking (In your case the SQL Express instance) with ODBC.

    You need to create manually a custom ODBC in the ‘client’ PC with the Windows ODBC Data Source tool ( you have to install in the ‘client’ only the ODBC Driver ,in the correct version for get the SQL Server ) and pointslink the DB on the ‘server’.

    Then, you have to use this custom ODBC in the Movicon project resources like the data loggers, in its properties, Data Base Option > ODBC Manager > ODBC DSN.

  • In reply to: Operating System Shutdown from Movicon

    1 April 2015 at 10:10 am #21187
    Maverick
    Participant

    Hello Luis,
    Since that an empty Movicon project works as for your expectations;

    I would suggest you to focus primarily on which resources are put in use by the Movicon project from this application, in particular:

    -Communication with Field / PLC
    -Connection with the database

    -Screens VB scripts in memory

    For example, in the ODBC properties (for all the Movicon DB interfaces, I mean Historical Logs, Dataloggers, …) you have parameters such as ‘Max. Error Number’

    When the project is stopping Movicon expects to see 3 (default number) errors before close the connection.

    Did you test with the command Shut Down App how it behaves.

    Anyway If you force the shutdown of the same project directly from the operating system I think you get a similar behaviour.

  • In reply to: Siemens S7-1500

    25 February 2015 at 2:00 pm #21185
    Maverick
    Participant

    Hi Paul,

    You have to use the Siemens S7-300/400 driver  > ‘S7TCP’  (S7TCP.dll).

    In the TIA portal CPU Security features, you have to set ‘Full Access’ without protection

    You have to enable the GET/PUT function  from remote partners (PLC, HMI…);

    And remove the flag ‘Block Access Optimized’ for all the Data Blocks (DB)

    Movicon works for absolute addressing, not for symbolic name.

  • In reply to: Datalogger.

    4 December 2014 at 8:44 am #21180
    Maverick
    Participant

    Hi Paul

    I remember a similar experience, try to record every 60 minutes instead of set 1hr in the time frequency, you should solve in this way.

  • In reply to: Windows Form in Embedded Screen

    1 December 2014 at 12:12 pm #21177
    Maverick
    Participant

    Hi ,

    Well, if I understood your needs what you require should be possible.
    For confirmation I tried with the Progea sample (es_usewwbnet), adding the screen with the button containing the Windows.Forms inside an embedded view and it is working fine.