Activity for TimvH

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

    Maybe you could use the "CAA Memory" library for this. This library contains a function MemMove. Here you can specify the pointer to memory of your source and target and set the number of bytes to "move". To get the pointer to your array of 18 Words, use ADR(nameOfYourArray) to get the pointer to it's memory location.

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

    See https://faq.codesys.com/pages/viewpage.action?pageId=1310825

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

    In recent CODESYS versions you can go to the device settings (similar location where you scan the network for your communication settings with your controller). Here is an additional entry (tab) called "Licensed software metrics". This will give you all information you need. See also: https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_f_obj_device.html and https://store.codesys.com/en/howto_applicationbasedlicenses

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

    Most likely you use a Runtime of SP19 or higher, because starting from this version the default setting is that only access to files in the PLC folder are allowed. This is for security reasons. You can allow the runtime to access files outside of this folder, but you have to modify the CODESYSControl_User.cfg. For the exact file name and it's location, see: https://faq.codesys.com/display/CDSFAQ/Location+of+the+configuration+file Or ask the vendor of your PLC. One option is to set the IecFilePath,...

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

    I'm not sure, but I guess it has the attribute 'no_assign'. Probably it is better to use a reference: VAR_INPUT slave : REFERENCE TO IoDrvModbus.ModbusSlaveComPort; END_VAR

  • TimvH TimvH committed [r3]

    Added projectarchive 3.5 SP18 P3

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

    The example project, which is included in the package, shows an example with CFC program (CFC_PRG). This calls the FB MsgProcessor_EchoCFC. This FB calls a method ProcessMessage, which calls the FB CAN.CANSender. This has a reference to the interface of the CANDriver and a reference to the Message you want to send. So you could use this FB to send any CAN message. The Message is a struct: TYPE MESSAGE : STRUCT udiCanID : UDINT; (* CAN-ID (Communication Object Identifier) is the bitId of a CAN-frame...

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

    Hi Ben, you are right, I answered too quickly. You need to send a message with own defined COB ID. Probably the CAN Level2 communication is your best option. There is an example project available which contains a library that encapsulates this communication method to access it in an OOP way. See the store: https://store.codesys.com/en/canbus-example.html In the package is a library and an example project. Hopefully this helps.

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

    CSV is short for comma separated value. So add comma's between your values. Probably you want to open it in Excel, then it depends on your country settings what your default delimiter is. In some cases a semi-colon could be better/easier than a comma, but this has nothing to do with CODESYS.

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

    I think you just installed the library in the repository and then used it, but the idea is that you can open the library in CODESYS and edit it. And yes, you can then change the layout, use other characters, so you then make your own dialog. You can then change the library information (menu: Project - Project Information - Summary). Enter you Company name, Title of the library and Version, then install it in the library repository and use it.

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

    I'm not sure you want to go in this direction, because the example below contains code which is marked as obsolete, but the library mentions that if no other option is possible, then it could be an escape... so be warned 😬 Add the following code to your "HandleClient" method xChangePage : BOOL; itfVisuClientRawData : VU.IVisualizationClientRaw; xQueryOK := __QUERYINTERFACE(itfClient, itfVisuClientRawData); IF xQueryOK AND xChangePage THEN VisuElems.g_VisuManager.SetMainVisu(pClientData := itfVisuClientRawData.ClientDataPointer,...

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

    I'm not sure you want to go in this direction, because the example below contains code which is marked as obsolete, but the library mentions that if no other option is possible, then it could be an escape... so be warned 😬 Add the following code in you "HandleClient" method xChangePage : BOOL; itfVisuClientRawData : VU.IVisualizationClientRaw; xQueryOK := __QUERYINTERFACE(itfClient, itfVisuClientRawData); IF xQueryOK AND xChangePage THEN VisuElems.g_VisuManager.SetMainVisu(pClientData := itfVisuClientRawData.ClientDataPointer,...

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

    Maybe this helps: https://forge.codesys.com/prj/codesys-example/visudialogs/home/Home/ ?

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

    https://forge.codesys.com/forge/talk/Engineering/thread/ea23226bbe/

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

    Unused inputs/outputs (not used anywhere in your application) are not updated by default by CODESYS. See: https://faq.codesys.com/pages/viewpage.action?pageId=106889249 for more information. PS, putting the PLC in RUN could also help :-).

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

    It is not clear what you want to do, because a DWORD contains 32 bits. If you just want to get a certain bit out of the DWORD, you could use e.g.: xBool := dwDword.0; If this is not what you want, then please specify which 4 bits you would like to have as output of the function.

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

    Ask the company which sold you the PLC.

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

    Probably you have to delete the cmact_license folder first and then reboot. See the FAQ about this (is for RaspPi, but similar for PFC): https://faq.codesys.com/pages/viewpage.action?pageId=1310825

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

    I'm not sure if I understand it correctly, but on an Android device you could install the CODESYS Web View. But your controller should then support the WebVisu to show the visualization in this "web app". See: https://play.google.com/store/apps/details?id=com.codesys.webview&hl=nl&gl=US

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

    You can read the status of the license from your application through the CmpCodeMeter library. See https://forge.codesys.com/forge/talk/Runtime/thread/1c1b00cfc7/ So the code could be something like (change the numbers according to the licenses you are searching for): VAR // add CmpCodeMeter library xCheckLicense: BOOL; xFound: BOOL; Handle: CmpCodeMeter.RTS_IEC_HANDLE; Result: CmpCodeMeter.RTS_IEC_RESULT; END_VAR // check for valid Raspberry Pi license IF xCheckLicense THEN xCheckLicense := FALSE;...

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

    As I understood it, the benefit of using the functions from the VisuUtils library are: - not required to call these functions from the Visu Task - end-user friendly call of function blocks (follows the common behaviour model) - future proof (backward compatible) - ... So you are motivated to use the function blocks from the VisuUtils library. Off course these are function blocks and you have to call them over multiple cycles until xDone is TRUE, because internally it has to wait until the visualization...

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

    I found out it only happens when you do this in a POU which is added to the POU Pool. If you add this POU to the application tree, this doesn't happen. It will be fixed with compiler version 3.5 SP20.

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

    As the Wago PLC has a Linux OS, I think this might be possible by "mounting a shared folder". This is not CODESYS related, but more a question of giving a Linux device access to this shared folder on the server. I have done something similar with another PLC with the following commands (I really don't know if this will work on the Wago PLC, but you could try): mount -t cifs -o username=<name>,password=<password>,domain=<domain_name> //<ip_address>/<shared_folder> /home/admin/networkshare So first...

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

    As the Wago PLC has a Linux OS, I think this might be possible by "mounting a shared folder". This is not CODESYS related, but more a question of giving a Linux device access to this shared folder on the server. I have done something similar with another PLC with the following commands (I really don't know if this will work on the Wago PLC, but you could try): mount -t cifs -o username=<name>,password=<password>,domain=<domain_name> //<ip_address>/<shared_folder> /home/admin/networkshare</shared_folder></ip_address></domain_name></password></name>...

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

    When you create your I/O configuration with CANopen Manager, automatically the CAA CiA405 library is added. This includes an FB SDO_WRITE4. You can use this to send the LSS messages.

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

    If they don't appear automatically when you use the input assistant to call the FB, then you can still add them manually. Maybe a bug in SP18 P2. In SP18 P3 I don't see this.

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

    In the main visualization place 1 frame. In this frame add 3 visualizations (2x green lamp, 1x red lamp). Link the FB instances as reference to the visualizations in the frame. Then there are multiple options to switch between which visualization to show in the frame. A simple one could be just to use the "Switch frame variable" and in your IF statement set the correct value for this variable.

  • TimvH TimvH committed [r2]

    First commit

  • TimvH TimvH committed [r1]

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

    First you need to know which VFD you want to use, then check how you want to control it (direct I/O or through bus like Modbus, Profinet, EtherCAT, ...). Then configure this in your CODESYS application and connect the Controller to your VFD.

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

    1620 * 10 - 1 = 16199 (not 16119)

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

    This is like creating two variables with the same name, so that doesn't work. A possible solution could be: - Double click on your device (where you also set the communication) - Go to PLC settings - At the Additional Settings - Enable symbolic access for IOs Now if your I/O module is named _750_1405, you can map the inputs directly on a Modbus output register: Application._750_1405.Digital_Inputs_0_15

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

    https://forge.codesys.com/prj/codesys-example/date-and-time/home/Home/

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

    If I understand it correctly you want to know what data the RFID reader will send to the PLC. For this you need to contact the company which sells the RFID reader. PS, maybe better to use the English language on an English forum.

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

    It is not the best answer, but maybe an alternative is to use the CODESYS Automation Server. You don't need any Python knowledge and anybody (without and coding knowledge) can schedule when a certain version of an application can be loaded on the various machines.

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

    2172731138 = hex 81 81 3F 02 hex 02 = dec 2 hex 3F = dec 63 hex 81 = dec 129 So this seems okay to me.

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

    You could also create a DUT of the Type Union. In the Union add an array of 4 bytes and a UDINT. Then create a variable of this type. Write to the UDINT of this union variable and read the array of bytes. See https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_datatype_union.html

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

    The data which is received is written in the STRING (memory). A string needs a 0 terminating byte to see the end of the string. In your case hello is just written to the first 5 characters of the string. The rest is not changed, it doesn't write a 0 in the 6th byte of the string (as it shouldn't). So what you could do is write some additional code to check the size of the message your received and then in the next byte write 0 in the string. You could see the string as an array of bytes. So you could...

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

    To prevent all these difficulties with setting up VPN connections, the alternative is to use the CODESYS Automation Server and manage your PLC's (and applications) there. Below the steps you need to take. 1) Create an account (subscription) for the CODESYS Automation Server in the Store: https://store.codesys.com/en/codesys-automation-server.html. This is free for 2 PLC's. 2) Install the Edge Gateway on Computer 2: https://store.codesys.com/en/codesys-edge-gateway-for-windows.html. 3) You need to...

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

    You should use the TextListUtils library for this which already has a GetText function. See https://faq.codesys.com/display/CDSFAQ/Access+to+Text+Lists+from+the+IEC+Code The problem you have with this (old) code is probably because you don't call it from the VISU_TASK. With the TestListUtils library function this is not necessary.

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

    As Modbus doesn't support REALs (32 bit), you need to send it as 2 WORDs (2x 16 bit). A REAL is internally represented as IEEE 754 value and this determines which bits are set when the value should be e.g. 0.05. See https://en.wikipedia.org/wiki/IEEE_754 and see https://baseconvert.com/ieee-754-floating-point to check which bits are set for the value 0.05. So the Hex value of 0.05 is 3D4CCCCD. So the first WORD is 3D4C and the second CCCD. In decimal this is 15692 and 52429. This is what you need...

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

    Probably you are in a network where another DNS server is available and should be used. Maybe you can connect your laptop to the same network and set your IP setting to automatically get a DNS server IP address. Then check what this IP address is. You could find this out by e.g. opening a CMD box and type: ipconfig /all. Then see which IP address your laptop got and use this as IP address for the DNS server in your application.

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

    Yes it depends... mainly on the processing power of the controller, because for each client the CODESYS runtime needs to handle the connection. What you can do is monitor the CPU load (see https://forge.codesys.com/forge/talk/Runtime/thread/51fe121066/), then open in e.g. Chrome multiple tabs which show the WebVisu. Then check how it increases the load of your CPU.

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

    You need to have access to a DNS server which can provide this for you. There seems to be a function block for this in Machine Expert: https://product-help.schneider-electric.com/Machine%20Expert/V1.1/en/TcpUdpCo/TcpUdpCo/Function_Blocks/Function_Blocks-61.htm Google also has a DNS server which you could use. The IP address is 8.8.8.8. The default port is 53, but the documentation of the FB describes that you do not have to enter this.

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

    Message should be something like: text <LATCH1> more text. See: https://content.helpme-codesys.com/en/CODESYS%20Visualization/_visu_extending_alarm_messages_with_latch_variables.html

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

    Message should be something like: text <latch1> more text.</latch1> See: https://content.helpme-codesys.com/en/CODESYS%20Visualization/_visu_extending_alarm_messages_with_latch_variables.html

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

    for each datasource, "implicit" variables are available. See below how you could use this. PS, this information is from several years ago. Maybe better solutions are available, but this should work: //Variable declaration VAR state: Datasources.DataSourceMonitoringState; error: Datasources.DataSourceError; END_VAR // get datasource communication state (e.g. of DataSource1) state := g_Datasources.Datasource1State; error := g_Datasources.Datasource1Error;

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

    You can start CODESYS and automatically run a script through the command line. See: https://content.helpme-codesys.com/en/CODESYS%20Scripting/_cds_starting_script_via_command_line.html Here you can find some examples, which don't answer your question, but hopefully give you more information to get started: https://content.helpme-codesys.com/en/CODESYS%20Scripting/_cds_access_cds_func_in_python_scripts.html

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

    Maybe this helps: https://store.codesys.com/en/alarm-manager.html

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

    When powering on the laptop, you should use the Windows functionality to automatically login with a user. Then you should start the HMI when the user is logged in. This is all Windows related functionality. Probably it is best to use a UPS to correctly shut down the laptop when the power of the machine is turned off.

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

    I had something similar which seems to be related to OneDrive, because this can change the default file location. What you can do is go to the properties of the desktop folder (right click - properties). Then select location. Here you can restore it to default, then I could select all folders on my laptop again.

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

    Probably you have to write some code to convert it to a string, find the dot, then remove everything behind the dot if the next character is a zero. If you create a function for this, you can reuse this code for all REAL variables which you want to show like this.

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

    Maybe good to follow the steps as described in the example. See https://forge.codesys.com/prj/codesys-example/reduexample/home/Home/ When you download the zip file, you can find a video describing each step in detail.

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

    the first steps are done correctly: - Set the SysSocket properties in the .cfg file - Enable the option in the Ethernet adapter to adjust the IP address but the code should be handled differently to change the IP adres of the PLC. 1) add the following instance to your variable declaration: Reconfigure : DED.Reconfigure; 2) In your application you should now write some code to: - first disable the ethernet adapter - then change the IP adres - then enable the ethernet adapter again So for example Set...

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

    Maybe better to use the "Visu Utils" library. Is much more user friendly.

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

    Maybe better to use the "Visu Utils" library. Is much more user friendly.

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

    You can use the "Visu Utils" library to iterate over all clients and through the interface of each client get the current visu.

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

    You should open COM1, not 0. Additionally, this might help: https://forge.codesys.com/forge/talk/Engineering/thread/33c7d2badd/

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

    It is not clear what you are trying to do. Is it for another device you want to connect which is not a Modbus device? Then the advise would be: do not do that. It could give conflicts with the standard Modbus communication. But if it is a Modbus device, then why not use the standard Modbus device configuration?

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

    Check the CODESYSControl.cfg. Here you can specify where the log output is written to, so you can also let it write to file. Please regard the numbering, because it should be kept in order (0, 1, 2, etc). Below a part which is copied from a .cfg file of the Control Win Runtime. This probably will look much the same on your controller. [CmpLog] Logger.0.Name=PlcLog ;Logger.0.Filter=0xFFFFFFFF Logger.0.Enable=1 Logger.0.MaxEntries=100000 Logger.0.MaxFileSize=500000 Logger.0.MaxFiles=3 Logger.0.Backend.0.ClassId=0x0000010B...

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

    Maybe the license is not activated? Then it will stop after 2 hours. I would suggest to check this first. You can check this in the log file (double click on the device and go to the log).

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

    You opened it probably with SP18. Then I would suggest to close CODESYS, start the CODESYS Installer, update the Visualization add-on to 4.2.0.0 (or later). Then open the project again in SP18 and set the Visualization Profile to this version (Project - Project settings - Visualization profile).

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

    Since SP17, you can start the CODESYS installer through the Windows menu. There you can find a list of add-ons. So you will have 3.5 SP17 installed as "essential version". In the CODESYS installer you can find the add-ons (for each installation) with its versions which you have installed. There you have the option to update the "Visualization" to a new version (latest currently is 4.2.0.0).

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

    There is a fix in V3.5 SP16 Patch 9 (and the Visualization add-on 4.1.0.0) related to old Web browsers. I would suggest to upgrade to a newer CODESYS version and try again.

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

    Do you mean the element list? Just open the visualization and go to the top to open it (small triangle), or in the menu: Visualization - Visual element List.

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

    This doesn't work when you have multiple clients, so you must iterate over the clients and then get the required info per client. E.g. add this to a program which you call from the VISU_TASK VAR pClient : POINTER TO VisuElems.VisuElemBase.VisuStructClientData; dwTargetVisuGroupID : DWORD; END_VAR VisuElems.VisuElemBase.g_ClientManager.BeginIteration(); WHILE (pClient := VisuElems.VisuElemBase.g_ClientManager.GetNextClient()) <> 0 DO IF pClient^.GlobalData.ClientType = VisuElems.VisuElemBase.Visu_ClientType.TargetVisualization...

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

    Many people have done this already. Download the "PFC200" package in the store, or install it though the CODESYS Installer. Then open the "Update PFC200" through the Tools menu and follow the installation procedure. More information can be found here: https://content.helpme-codesys.com/en/CODESYS%20Control%20for%20PFCx%20SL/_pfcx_install_runtime.html

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

    At the bottom of the "Communication settings" Tab of your Data Source, you can there enter the credentials for the Authentification.

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

    If you use GibHub, then make sure you have a token, because this is needed for apps to get access: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token Similar for BitBucket https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/

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

    Right click on "Application", choose Properties and go to the Tab "Build". Here you can add Compiler defines. Is this what you mean?

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

    When timestamp_hist = 0

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

    Maybe a good solution is to add the recipe manager and a Recipe set? Then put the array in the recipe set, create a new recipe (column) in the recipe set, then right click on it and select read and save. See: https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_using_recipes.html

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

    When online (double) click on the array. You will get a popup where you can enter the range you want to monitor. So do this for 1000-1999, 2000-2999 and 3000-3999.

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

    You can use the "Read" functionality. When you call this (after you opened the file succesfully), the result is written in the buffer you have assigned when you call the Read function. Then it reads the amount of the size of the buffer, of if the file is smaller than the buffer, the whole file. From this buffer, you can use other functions to find the string you are looking for. So in the example at the top, the variable "Data" will contain the contents you read from the file.

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

    You can use the "Read" functionality. When you call this (after you opened the file succesfully), the result is written in the buffer you have assigned when you call the Read function. Then it reads the amount of the size of the buffer, of if the file is smaller than the buffer, the whole file. From this buffer, you can use other functions to find the string you are looking for. So in the example at the top, the variable "Data" will contain the contents you read from the file.

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

    Yes, you should see the one from the library you selected.

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

    Yes, you should see the one from the library you selected.

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

    Link works fine (now)

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

    You only get to see this, if the general access to the web visu should or is protected. So then normally you will see the DefaultLogin. In your case add the following to the CODESYSControl.cfg and restart your PLC because this will add this standard protection: [CmpWebServerHandlerV3] AllowFileTransferServices=1 Maybe good to know is that you can quite easily create your own login pages, but some steps have to be followed: 1) Add user management functionality (based on runtime access as you showed...

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

    Maybe also good to have a demo project. See attached. So you need at least CODESYS 3.5 SP18 with the Visualization package 4.2.0.0

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

    You only get to see this, if the general access to the web visu should or is protected. So then normally you will see the DefaultLogin. In your case add the following to the CODESYSControl.cfg and restart your PLC because this will add this standard protection: [CmpWebServerHandlerV3] AllowFileTransferServices=1 Maybe good to know is that you can quite easily create your own login pages, but some steps have to be followed: 1) Add user management functionality (based on runtime access as you showed...

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

    1) Save and install into library repository is very useful when you want to test you library. Tip is to open CODESYS twice. One has the library opened and the other can contain your test project to test your library. Everytime you save and install your library, your test project will be automatically informed that it is updated and you can run your test again. But once you "release it" and share it with others, then you can choose for a "save as compiled library" and send this to them. 2) There is...

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

    These properties have nothing to do with the Visualization access, but with the general access to objects in your development environment. So you could use that when some developers or service engineers want to get limited access to objects in the source code of your application. What you need to do is grand the specific access to ojects in your visualization in the properties of the visu object. Once you have enabled the user management (which you already did), you can see this property at the bottom...

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

    Maybe your device doesn't have the arial font. Try to check this or install it on your device.

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

    Go to the communication settings of your device, then find your device. In the same tab, you can see at the top, the menu Device, Change Runtime Security Policy. You also need to create a certificate for the OPC UA Server running on the Device and when UaExpert has tried to connect, you need to accept the certificate. For this you can go to the menu View-Security Screen. Then go to devices, create your own certificate and move the quarantined certificate of UaExpert to the Trusted Certificates.

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

    You can find examples here: https://forge.codesys.com/prj/codesys-example/html5apiexample/home/Home/

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

    I remember I had the same problem some years ago. What I can remember is that the CODESYS log file gave quite a lot of usefull information. As I can remember, is that the Siemens PLC tried to set the IP address of the device, but it failed with the Gateway setting. So at first the IP address of the CODESYS Profinet Device was e.g.: 192.168.1.10 255.255.255.0 0.0.0.0 Then I changed the gateway to the same as the IP address and it worked: 192.168.1.10 255.255.255.0 192.168.1.10 I'm sure it is related...

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

    You need to be able to enable the "write" functionality to change the OS. Windows CE is loaded on startup with the default configuration. So you can write to it, but when restarting, it loads the default again. This is done for security and stability reasons. Pleae check with your vendor how to enable changing this.

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

    First of all try to ping the other PC to check the cable and IP address settings. In the CODESYS IDE make sure to have selected the correct device. So check if it is an RTE 32/64 bit and make sure you have selected the correct version. Then CODESYS should be able to find the RTE, unless the IPC blocks the incomming connection. For this reason try to (temporarily) disable the firewall on the IPC with the RTE, then try again.

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

    As you have a long ID, you should set the x29BitIdValue and Mask to TRUE. The mask works in a way that if you set the bit to 1, that it should exactly match the bit in the received message. If you set this to 0, then you don't care. So if you set the mask to 16#1FFFFFFF (29 bits bit true, so should exactly match the dwIdValue), then you should only see the message you want to see. For more information see: https://content.helpme-codesys.com/en/libs/CAA%20Can%20Low%20Level%20Extern/Current/CAN-Lo...

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

    I can't explain why this happens, but what is maybe an option is to use the tool MobaXterm. This is a Putty alternative in which it is very easy to edit files on the Linux device.

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

    Keep in mind that Modbus starts with address 1, but this is actually register 0. CODESYS uses a 0 based offset. So what you can try is to read 3200, because maybe your device uses a 1 based offset. Additionally maybe you can set the length to only one register just to see if this works.

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

    You could add the PLC by installing the PFC100 package and then installing the CODESYS Runtime on the PFC. You can test the runtime for 2 hours, but then have to restart the PLC, or you can buy a license for the runtime. In the documentation you can find the list of supported devices. Alternatively you could maybe use a Profinet / IO-Link gateway? See for more information: https://store.codesys.com/en/codesys-control-for-pfc100-sl.html

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

    An option is to add the "application composer - device diagnosis". This will generate code including a textlist containing the names of the devices. See: https://help.codesys.com/webapp/ac_device_diagnose_overview;product=core_Application_Composer;version=3.5.17.0 After configuring this module and generating the code, you can then get the name of all devices: IF DeviceDiagnosis.uiNumDDIs > 0 THEN FOR i := 0 TO DeviceDiagnosis.uiNumDDIs - 1 DO IF g_DDGInfos[i].pName <> 0 THEN sName := g_DDGInfos[i].pName^;...

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

    The RTE service has a dependency on the CodeMeter service so that should already see the dongle and the license before the RTE is started. When it doesn't start automatically, how was the RTE service ended before that? Is there a difference if you nicely shut down the PC, or just turn of the power and then restart? Maybe this helps: https://help.codesys.com/webapp/_cds_dlg_rtev3_system_configuration_application;product=core_codesys_control;version=3.5.17.0

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

    On the opened visualization, you could handle the input of the keyboard with the "hotkey configurator". https://help.codesys.com/webapp/_visu_configure_keyboard_shortcuts;product=core_visualization;version=3.5.17.0

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

    On the opened visualization, you could handle the input of the keyboard with the "hotkey configurator".https://help.codesys.com/webapp/_visu_configure_keyboard_shortcuts;product=core_visualization;version=3.5.17.0

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

    IF your string will remain less than 255 characters (which should be, because you defined it as standard string, so this will be max 80), then you can use the function LEN(sw1).

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

    Probably the best solution is to create your own Dialog library with a keyboard which only contains the characters you allow to use. See the installation folder of CODESYS where you can find a VisuDialogs.library which you can use as base for your own library: C:\Program Files\CODESYS 3.5.17.30\CODESYS\Projects\Visu\Dialogs

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

    Place a frame in the main visualization with a reference to the header visualization.

<< < 1 2 >