Activity for TimvH

  • TimvH TimvH posted a comment on discussion Visualization πŸ‡¬πŸ‡§

    Maybe this helps: https://store.codesys.com/en/esc-image-button.html

  • TimvH TimvH posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    It sounds very complicated what you are trying to do. See https://faq.codesys.com/display/CDSFAQ/Modbus+master+slave+communication+over+Ethernet for a simple example of a Modbus Master and Modbus Slave configuration.

  • TimvH TimvH posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    What you could do is open the package with e.g. 7-zip, or rename the package to .zip and extract the .library files from the package. Then install them through Tools-Library repository. This is offcourse not the recommended way to do it, but in your case could be a solution.

  • TimvH TimvH posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    How did you install it? Since 3.5 SP17 there is a "CODESYS Installer". It is best to close all CODESYS instances and then start this CODESYS Installer. From here try to install the mail service again.

  • TimvH TimvH posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Apparently both libraries contain a LinearMemoryManager function or function block. The B111RS_Sp16.4_V0.0.22 KhIfmConversion3 library is using this function or function block, but the compiler doesn't know which one should be used. So the B111RS_Sp16.4_V0.0.22 KhIfmConversion3 library has to be changed to use e.g. CDS_MemMan.LinearMemoryManager, then the compiler known that this specific fun or fb should be used from this specific library.

  • TimvH TimvH posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Possible solution is to define a DUT Type Union with Array of 2 bytes and an int: TYPE U_2B_I : UNION ab : ARRAY[0..1] OF BYTE; i : INT; END_UNION END_TYPE Then declare a variable of this type in your application, write the 2 bytes into the array and use the int VAR u1 : U_2B_I; iResult: INT; END_VAR u1.ab[0] := 2#0000_0000; u1.ab[1] := 2#1000_0000; iResult := u1.i;

  • TimvH TimvH posted a comment on discussion Visualization πŸ‡¬πŸ‡§

    Probably you want to use VAR_IN_OUT variables in your visualization and place this visualization multiple times in another visualization by using "frames". In the configuration of this frame you can then link the specific variables to the various frames. Probably a good place to start is: https://help.codesys.com/webapp/_visu_call_visualization_with_interface;product=core_visualization;version=3.5.17.0 This is already supported from on of the first versions, so should also work in 3.5.8.

  • TimvH TimvH posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Maybe this helps: https://revolutionpi.de/forum/viewtopic.php?t=2702&p=11159 Contact them to get this package.

  • TimvH TimvH posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    See something similar here: https://faq.codesys.com/display/CDSFAQ/Task+Configuration%3A+Reading+the+Cycle+Time+and+Other+Information

  • TimvH TimvH posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Maybe something like this: VAR Result: CmpIecTask.RTS_IEC_RESULT; hTask : CmpIecTask.RTS_IEC_HANDLE; pCurrentTaskInfo: POINTER TO Task_Info2; CurrentTaskInfo: Task_Info2; xReset: BOOL; END_VAR hTask := IecTaskGetCurrent(ADR(Result)); pCurrentTaskInfo := IecTaskGetInfo3(hIecTask := hTask, pResult := ADR(Result)); CurrentTaskInfo := pCurrentTaskInfo^; IF xReset THEN xReset := FALSE; IF hTask <> 0 THEN Result := IecTaskResetStatistics(hIecTask := hTask); END_IF END_IF

  • TimvH TimvH posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Use a more powerfull PC?

  • TimvH TimvH posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    To quickly "implode" your project tree, select the top of your device tree and press the "/" key. You can also use +, - and * for this.

  • TimvH TimvH posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Probably the WebClient library can do this for you. For this you will need to know which HTTP message to send to which server. See https://store.codesys.com/iiot-libraries-sl.html

  • TimvH TimvH posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Probably pack mode 4 is used on your controller. You can add an "attribute" to the structure with e.g. pack mode 0 and it then probably works as you expect. See https://help.codesys.com/webapp/_cds_pragma_attribute_pack_mode;product=codesys;version=3.5.17.0 for more information.

  • TimvH TimvH posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Maybe the pack mode of the structure can help. See the following help topic on the standard behavior and also how you can set it specifically for your structure: https://help.codesys.com/webapp/_cds_pragma_attribute_pack_mode;product=codesys;version=3.5.17.0

  • TimvH TimvH posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    What happens when you choose "Update device" and select another one (or another version)? And what happens if you start a new project?

  • TimvH TimvH posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I tried to understand what you are trying to do, but you seem to make it much more complex then needed. Why not just have 2 instances of the fbBasicAuthWebClient and call this when needed.

  • TimvH TimvH posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    As far as I can remember, the Message Processor is called for each message which is received which matches your filter. For the sending of the messages, probably you have to create different senders, because it returns true when it is sent. I'm not sure if this is set immediately or could take a cycle, but you can probably easily test this if you already have it running.

  • TimvH TimvH posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    You could use the FB ModbusRequest2, so you don't have to create devices in the device tree: https://help.codesys.com/webapp/Qc2MKyULLzzWS3JELTbsDHGWaRw%2FModbusRequest2;product=IoDrvModbus;version=3.5.17.0 See also: https://forge.codesys.com/forge/talk/Engineering/thread/60b62c103f/ To open the COM port, see: https://help.codesys.com/webapp/RJFsL1rVvIWPJ9jLGcMefN90Huo%2FOpen;product=CAA%20SerialCom;version=3.5.17.0

  • TimvH TimvH posted a comment on discussion Visualization πŸ‡¬πŸ‡§

    I found the dwSelectionType options in the help of the VisuFctSelectElement: VISU_SELECTION_TAB : DWORD := 16#00000001; VISU_SELECTION_SHIFTTAB : DWORD := 16#00000002; VISU_SELECTION_FIRST : DWORD := 16#00000003; VISU_SELECTION_LAST : DWORD := 16#00000004; VISU_SELECTION_LEFT : DWORD := 16#00000005; VISU_SELECTION_UP : DWORD := 16#00000006; VISU_SELECTION_RIGHT : DWORD := 16#00000007; VISU_SELECTION_DOWN : DWORD := 16#00000008; VISU_SELECTION_AT : DWORD := 16#00000009; VISU_SELECTION_ELEMENT : DWORD...

  • TimvH TimvH posted a comment on discussion Visualization πŸ‡¬πŸ‡§

    Add the "Visu Utils" library and use the FbChangeVisu. See https://help.codesys.com/webapp/mboia5SiHOaYJghMib-ss_lejg8%2FFbChangeVisu;product=Visu%20Utils;version=3.5.17.0

  • TimvH TimvH committed [r79]

    Seek path variable changed from STRING to T_MaxString. Is required for deep nested xml file, or long tag names.

  • TimvH TimvH committed [r78]

    When the buffer is smaller than the filesize, it could happen that some data was not correctly parsed.

  • TimvH TimvH committed [r77]

    added (project embedded) xml file

  • TimvH TimvH committed [r76]

    Example project with small buffer and large file. creates a list of recipes with the memory location in the file. then details from this recipe can be parsed on request.

  • TimvH TimvH committed [r75]

    Added method to get current position where file is searched to be able to read the rest of the file.

  • TimvH TimvH posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Try: __POOL.SVN_VERSION_INFO.VERSION (double underscore before POOL) Or try: gvlSoftwareVersion.sSVNVersion

  • TimvH TimvH committed [r66]

    library including:

  • TimvH TimvH committed [r65]

  • TimvH TimvH committed [r64]

    create library folder

  • TimvH TimvH committed [r63]

    example including reading tag value (lib 0.3.4.0)

  • TimvH TimvH committed [r62]

    example reading tag value

  • TimvH TimvH posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Apparently the device manufacturer turned off the support for this in their device description file. Probably best to temporarily update the device to e.g. a Control Win until you have your hardware available.

  • TimvH TimvH posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    First of all this depends on the mail server you are using. Does this need TLS? If yes, then your controller also should support this. Check with your device vendor if this is supported. If it is a Microsoft based mail server (smtp.office365.com), then it probably will not work, as this needs STARTTLS, but this is not supported by the mail library. If you are trying to connect to a Google mail server (gmail), then check the 2 factor authorization work-around. See https://kinsta.com/knowledgebase/free-smtp-server/...

  • TimvH TimvH posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    It is best to add this standard library also to the library manager of your library (in the POU pool), so end-users will never have any problems when using your library.

  • TimvH TimvH posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I tried it, but also cannot get this to work. It just opens CODESYS, but not projects... I used: CODESYS --profile="CODESYS V3.5 SP16 Patch 1" --compare="C:\test\Project1.project""C:\test\Project2.project"

  • TimvH TimvH posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    See also: https://help.codesys.com/webapp/_cds_access_cds_func_in_python_scripts;product=codesys;version=3.5.15.0#example-reading-of-variables

  • TimvH TimvH posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I think you are using this incorrectly. Behind IP address is the IP address you can use. By default this is localhost. You can change this. Behind Port you can see the default port number that the Gateway will use. (probably you thought that below IP address you could enter the IP address, but you should look at the right side of it and change localhost to your desired IP address....)

<< < 1 2 3