Activity for dhumphries

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

    Thanks for the response, as I've thought about this problem over the last month I began to suspect this was a problem with not being able to exactly represent .1 as a 32 bit binary number. I think I've found a work around by making the number an integer, then dividing it by 10 and storing that value as a floating point number. There is still an issue with the value not being exact somewhere in the 8th or 9th decimal place, but because I'm incrementing an integer value then dividing it, the error...

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

    Bump

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

    Try calling IFM customer support, they have been really helpful for me in the past.

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

    I'm not sure I understand what you're asking, but I don't believe a function block with this behavior exists in the default libraries. I think the best solution would be using multiple and/or blocks or make your own function block.

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

    Are you running the installer with admin privileges?

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

    I have discovered a rounding error, either in Codesys or in my understanding of numbers. The attached ladder shows that when the up button is pressed the number increases by 0.1, when the down button is pressed number decreases by 0.1, after several button presses the number isn't equally divisible by 0.1. Have I discovered a bug or am I doing something wrong?

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

    I have discovered a rounding error, either in Codesys or in my understanding of numbers. The attached ladder shows that when the up button is pressed the number increases by 0.1, when the down button is pressed number decreases by 0.1, after several button presses the number isn't equally divisible by 0.1. Have I discovered a bug or am I doing something wrong?

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

    I'm trying to determine which Codesys Control license I need, the Control Standard S has all the features I think I'll need, but the code size is limited to 3mb, I created a simple program with only 1 line of ladder logic and a simple visualization with a button and an indicator. When I generate code I get some messages, one indicates that the total allocated memory size for code and data is 2.1mb. Is this metric the correct size of the code? I question the size because it exceeds the allowable code...

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

    you can configure the button actions in the hotkey tab in the visualization.

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

    You get fewer tools when you create a new POU and choose ladder diagram instead of ladder logic diagram. Create a new POU and select ladder logic diagram and you should find the additional tools you are looking for in the toolbox.

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

    You get fewer tools when you create a new POU and choose ladder diagram instead of ladder logic diagram.

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

    The green icon with an ! next to the device is concerning. Is the data type correct for the input, you are using a byte input but the description says string. Is there anything useful in the status tab?

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

    Does the device have a green icon next to it when the PLC is running? If not you have some kind of communication problem, wireshark may be picking up some data but the scanner may not be configured correctly to receive the data. Check the T>O and O>T bytes and make sure they match on both the scanner and adapter. I've had very little success loading a .eds file and having the configuration work without some manual configuration. If you have a green icon, have you enabled the device to always update...

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

    Does the device have a green icon next to it when the PLC is running? If not you have some kind of communication problem, wireshark may be picking up some handshaking but the scanner isn't establishing a connection with the adapter. If you have a green icon, have you enabled the device to always update variables?

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

    Have you enabled the device to always update variables?

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

    Have you set the device to always update variables?

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

    Have you set the device to always update variables?

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

    Nothing wrong with ladder, in a lot of applications it is simpler than ST or CFC, you're a lot less likely to have syntax issues in a ladder diagram than in structured text as long as you stick with traditional ladder elements. Your attempt was almost valid, but you tried to change the currentvisu variable using a blend of structured text and ladder, which isn't allowed. You need to use the MOVE operator and define the visualization name as a string on the input side and the visuelems.currentvisu...

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

    Nothing wrong with ladder, in a lot of applications it is simpler than ST or CFC, you're a lot less likely to have syntax issues in a ladder diagram than in structured text as long as you stick with traditional ladder elements. Your attempt was almost valid, but you tried to change the currentvisu variable using a blend of structured text and ladder, which isn't allowed. You need to use the MOVE operator and define the visualization name as a string on the input side and the visuelems.currentvisu...

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

    When you create a new POU be sure to choose "Ladder Logic Diagram" instead of "Ladder Logic" and you'll get all the additional toolbox items.

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

    Try using a password instead of a public key to log into the controller. I have a video showing how to do this on a default installation of Ubuntu server, it should work the same for Ubuntu Core. https://youtu.be/rj0dOhgnGjs?si=352PmveEP7JXZnO- I sign in to the controller at about 6:40 in the video. I have never tried to remove the public key and revert to signing in using a password, but it looks pretty straightforward https://askubuntu.com/questions/745423/how-to-turn-off-password-less-login-f...

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

    make sure the PLC and the programming PC have IP addresses that are on the same subnet, you'll have to know the default address of the PLC or you may need to connect to it with a special cable and use a software tool to set the IP address.

  • dhumphries dhumphries modified a comment on discussion Runtime πŸ‡¬πŸ‡§

    Try using an Ethernet/IP scanner instead of an adapter, I'm guessing the 2 devices you're trying to communicate with are adapters, you have to have a scanner somewhere and Codesys should be a scanner. I don't know why you're getting the error, you should be able to use your Ethernet port as an EthernetIP adapter (although I've never had a reason to try,) but it's probably not what you wanted to do, unless you're connecting to another PLC that is a scanner. Good luck configuring the devices you're...

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

    Try using an Ethernet/IP scanner instead of an adapter, I'm guessing the 2 devices you're trying to communicate with are adapters, you have to have a scanner somewhere and Codesys should be a scanner. I don't know why you're getting the error, you should be able to use your Ethernet port as an EthernetIP adapter (although I've never had a reason to try,) but it's probably not what you wanted to do, unless you're connecting to another PLC that is a scanner. Good luck configuring the devices you're...

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

    Make sure the O->T and T->O bytes required by the remote device match the configuration in Codesys. Most of the EDS files I've imported have not worked by default. See the attached images for the connections and assemblies tabs. Note that the connections are in Bytes and the assemblies are in bits, you have to have enough bits to equal the bytes. Either mismatch will give a red/orange triangle. Page 343 of the manual (assuming the STF10-IP is an applied motion microstep driver) has some recommended...

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

    Make sure the O->T and T->O bytes required by the remote device match the configuration in Codesys. Most of the EDS files I've imported have not worked by default. See the attached images for the connections and assemblies tabs. Note that the connections are in Bytes and the assemblies are in bits, you have to have enough bits to equal the bytes. Either mismatch will give a red/orange triangle. Page 343 of the manual (assuming the STF10-IP is an applied motion microstep driver) has some recommended...

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

    Make sure the O->T and T->O bytes required by the remote device match the configuration in Codesys. Most of the EDS files I've imported have not worked by default. See the attached images for the connections and assemblies tabs. Note that the connections are in Bytes and the assemblies are in bits, you have to have enough bits to equal the bytes. Either mismatch will give a red/orange triangle. Page 343 of the manual (assuming the STF10-IP is an applied motion microstep driver) has some recommended...

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

    You have to install any libraries needed by the sample program. Click the button with ... next to one of the errors (see attached image,) then choose download missing libraries. Codesys should automatically locate and install the missing libraries, it's not flawless though, I've had some issues getting libraries to install. The best advice I can give if it doesn't work is re-install Codesys.

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

    Try changing the port mode to digital input for each port you want to have 2 inputs in the connection settings for the device. I've successfully used ports for inputs on an AL1920 this way, I think the procedure should be the same for an AL1332.

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

    First make sure the programming laptop and HMI are both on the same subnet. For example if the IP address of the HMI is 192.168.1.125 with a subnet mask 255.255.255.0 set your laptop IP to 192.168.1.120 with a subnet mask of 255.255.255.0. Make sure the cables are fully connected (the ethernet port on my programming laptop will click once but the cable is not fully seated.) Make sure the HMI is powered on, try pinging the device from a command prompt, if you can't ping the HMI there is a network...

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

    I have a video demonstrating the procedure to install the runtime on a linux device. https://youtu.be/rj0dOhgnGjs?si=OJoA-kgc1saxIweR This demonstration shows how to install the runtime on a X86 based controller, it should be the same for an ARM based device, but you'll need to install the add-in for Codesys control for Linux ARM SL (or the 64 bit add-in.)

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

    Function blocks in a SFC are executed left to right, top to bottom, instructions in ST are executed from left to right top to bottom as well. I think you are asking about the execution of POUs although you use the name function block, I believe POUs are executed in the order they are shown under the main task.

  • dhumphries dhumphries modified a comment on discussion Runtime πŸ‡¬πŸ‡§

    I'm working on a low cost project and I'm considering installing the Codesys runtime on a PC running Linux Debian instead of buying a PLC with a pre-installed runtime. For my needs the Control Standard S license should be capable of running some IO over ethernet/ip, and a webvisu. The PC I am considering has a AMD GX-424CC 2.4GHz processor (4 core/4 thread) and 4GB RAM. This may compare to a raspberry pi4, but I know an X86 processor doesn't directly compare to an ARM processor, and a processor can...

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

    I'm working on a low cost project and I'm considering installing the Codesys runtime on a PC running Linux Debian instead of buying a PLC with a pre-installed runtime. For my needs the Control Standard S license should be capable of running some IO over ethernet/ip, and a webvisu. The PC I am considering has a AMD GX-424CC 2.4GHz processor (4 core/4 thread) and 4GB RAM. This may compare to a raspberry pi4, but I know an X86 processor doesn't directly compare to an ARM processor, and a processor can...

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

    Adding the command worked. I was able to deploy the runtime on an ubuntu server installation. Thanks!

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

    I'm running the 3.5.18.20 IDE, installed the control for linux SL package from the installer. Following the directions here: https://content.helpme-codesys.com/en/CODESYS%20Control/_rtsl_install_runtime_on_controller.html it says: Installing the runtime package with CODESYS on the Linux device Click Tools β†’ Update CODESYS Control for <device> SL.</device> I don't have the update option in my tools menu. I've tried it without opening a project, as well as with a project open that uses the control...

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

    I've had this problem as well on multiple installations. I reached out to Codesys about the issue and their recommendation was to uninstall and reinstall the IDE, it's 50/50 odds if the reinstall will work. Hopefully a future update will resolve the issue, I'm still on 3.5.17.0 because after much effort I finally got it working on 3 programming workstations. I tried installing 3.5.18.20 on a new workstation but it had the same library issues so instead of upgrading all the workstations to the new...

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

    I have a motor driver (Igus Dryve D1) I'm trying to control with a Codesys PLC, the manufacturer has provided a Seimens Step 7 sample project with a function block for controlling the drive using ModbusTCP (#13 sample on this page: https://www.igus.co.uk/info/motor-control-system-drylin-e-software). I have a Step 7 license, I have the sample project, is there any way to export the function block from Step 7 and import it in Codesys?

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

    Library issues have been a re-occurring problem for me (at least in SP17,) uninstalling and reinstalling Codesys has been the only solution I've found. Unfortunately it takes a couple hours to uninstall and reinstall the software.

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

    Looking further down the device log, there is an error "CodeMCreateInitialSoftcontainer: ERROR: $Firmware$/.SoftContainer_CmRuntime.wbb file missing" I don't know much about CodeMeter it has just worked when installed on other machines, do I need to configure something?

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

    I tried deleting the folder and re-downloading. No change, I still get the same error.

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

    I'm using Codesys 3.5.17.0, when I create a new project using the standard project template and set the device to the Codesys Control Win V3 x64 PLC and attempt to login to the PLC I get the following message: Download failed: Unknown reason. See Log Page in Device Dialog for details. If I click on details the log message says: EXCEPTION [GlobalInit] code: App=[Application], Exception=[AccessViolation]. The problem is unique to one workstation, I am running the same version on 2 other PCs without...

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

    It turns out the network setting for my computer was set to public instead of private, Windows was blocking incoming connections. I changed the network type to private and now I can interact with the webvisu remotely.

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

    I added the webvisu.htm to the address and it still doesn't work. I am using the demo license for the soft PLC, I'm unable to find a good description of features that are enabled or not on the demo license, is it possible the demo license doesn't allow remote connections to the web server?

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

    I'm trying to access a webvisu from another pc on the same network and can't seem to get it working. I can enter localhost:8080 in a browser window on the PC running the softPLC and see the visualization, however from a different PC connected to the same network if I enter 192.168.1.42:8080 in the browser address bar, I get a timeout message. I have confirmed the windows firewall has rules to allow inbound connections for Codesys, and created a custom rule to specifically allow port 8080. I can ping...

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

    Based on an hour or so of searching, it seems like questions about missing or broken libraries are never answered here. I did reach out to Codesys directly and got a suggestion to try re-installing Codesys. Their reasoning was that the CmpIoMgr Interfaces library is part of the Codesys installation, if it's not working the library must have been corrupted and can only be restored with a re-install. I haven't tried re-installing because I have a project where all the needed libraries are working,...

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

    Based on an hour or so of searching, it seems like questions about missing or broken libraries are never answered here. I did reach out to Codesys directly and got a suggestion to try re-installing Codesys. Their reasoning was that the CmpIoMgr Interfaces library part of the Codesys installation, if it's not working the library must have been corrupted and can only be restored with a re-install. I haven't tried re-installing because I have a project where all the needed libraries are working, I don't...

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

    When I create a new project using the standard project template I am greeted with a library manager error stating: Could not open library 'CmpIoMgr Interfaces, * (System)'. (Reason: The library 'CmpIoMgr Interfaces, * (System)' has not been installed to the system.) This wasn't a problem a couple months ago when I did training, I created dozens of new projects this way and never had any problems. I've tried clicking on the ... box and choosing download missing libraries, but the resulting dialog...

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

    Thanks, installing the ethernet/ip plugin fixed the problem

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

    I have a desktop and a laptop both with the latest version of Codesys installed. I have an archive I've opened on each PC, the same archive was used, all the same import options were checked. I've attached a screenshot showing that the device window has more tabs on one computer than on the other computer. Obviously the missing tabs are important, I'd like to know how to view all the tabs on both computers.

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

    I have a desktop and a laptop both with the latest version of Codesys installed. I have an archive I've opened on each PC, the same archive was used, all the same import options were checked. I've attached a screenshot showing that the device window has more tabs on one computer than on the other computer. Obviously the missing tabs are important, I'd like to know how to view all the tabs on both computers.

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

    I have a desktop and a laptop both with the latest version of Codesys installed. I have an archive I've opened on each PC, the same archive was used, all the same import options were checked. I've attached a screenshot showing that the device window has more tabs on one computer than on the other computer. Obviously the missing tabs are important, I'd like to know how to view all the tabs on both computers.

1