Activity for ofey

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

    Okey, thank you! Do you think it is something in this library, that makes it possible to do the configuration in a PRG? https://content.helpme-codesys.com/en/libs/IODrvEtherCATDriver/Current/IoDrvEtherCAT.html#id1 I think the codesys modbus libraries support configuration and connection to modbus slaves without having to add the slave devices in the device tree. Just do it from function blocks inside the program. I was hoping for something similar with EtherCAT.

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

    Hi, everyone! I'm trying to set up a PLC controller and a connection to an EtherCAT slave device in Codesys. I want to create a flexible program that I can upload to multiple controllers with different remote IO connected (same program). On one plant i may have 5 AI-cards and 3 DO-cards, and on another I may have 4 AI-cards and 2 DO-cards. For not needing to maintain several different programs wih different devices defined in the program (one for each set up) I thought that using a remote IO would...

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

    Hi! I have usually only connected one OPC client (our system) to an OPC server created in the codesys environment on a PLC. This OPC client has a lot of write privileges. A customer also want OPC access, but I want to restrict his access to only read certain values. Do you know if this is possible inside the single codesys runtime running on a controller?

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

    Hi! I have usually only connected one OPC client (our system) to a the OPC server created in the codesys environment on a PLC. This OPC client has a lot of write privileges. A customer also want OPC access, but I want to restrict his access to only read certain values. Do you know if this is possible inside the single codesys runtime running on a controller?

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

    Hi! I thought to hear what you guys think is the best way to test the program in my scenario. I have some PLC programs that have been made and deployed on different PLC's. The program has added the specific devices and IO that is applicable. I have made a test environment for everything outside of the PLC, ie. the same SCADA system that is talking to the PLC, and a program running locally is simulating the plant (level regulation of different tanks). Pr. now I have had to manually change the variables...

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

    Hi! I thought to here with you guys what you think is the best way to test the program in my scenario. I have some PLC programs that have been made and deployed on different PLC's. The program has added the specific devices and IO that is applicable. I have made a test environment for everything outside of the PLC, ie. the same SCADA system that is talking to the PLC, and a program running locally is simulating the plant (level regulation of different tanks). Pr. now I have had to manually change...

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

    Hi! I have som variables that I communicate to a Modbus Master. These variables are declared in a "Global Variable List" where I have assigned them memory addresses. To organize this mapping I want to make a MODBUS list where I show all the variable names together with the memory address. Is there an easy way to export this list from CODESYS? Either through script or some export function maybe?

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

    Hi! I have som variables that I communicate to a Modbus Master. These variables are declared in a "Global Variable List" where I have assigned them memory addresses. To organize this mapping I want to make a MODBUS list where I show all the variable names together with the memory address. Is there an easy way to export this list from CODESYS? Either through script or some export function maybe?

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

    Hi! I tried setting up the PLC I'm working with (Beijer GN-9373) to connect to a modbus master running on a laptop. I have an ethernet connection (via USB-C to ethernet) between the laptop and the controller. I have tried following tutorial on how to set this up. I have added an ethernet device with the IP-address of the PLC. Further I added a ModbusTCP_Slave_Device with default settings. I get the error "Failed to open TCP Port: 1" when I try to go online with the PLC. Earlier I tested the exact...

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

    Hi! Do anybody know how I can add and enable the parameter 'Default Modbus TCP slave' on a device? I am currently writing a program where the PLC shall be set up as a Modbus TCP client, but I dont know how to add parameters to devices in codesys. I'm pretty new to the codesys environment. The picture in the attachment is on a similar PLC project where I have not written the code. my goal is to add this parameter in another project.

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

    Hi! Do anybody know how I can add this parameter on a device? I an currently writing a program where the PLC shall be set up as a Modbus TCP client, but I dont know how to add parameters to devices in codesys. I'm pretty new to the codesys environment. The picture in the attachment is on a similar PLC project where I have not written the code. my goal is to add this parameter in anothrt project.

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

    I also get an error when I try to add a certificate for the OPC server (see attachment). I dont know if this is related to the bad connection.

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

    Thank you for your reply! Greatly appreciated. I have tried to change a lot of settings to get it to work. I'm a bit afraid that I have changed the settings too fast without thinking. Maybe there is a way to "reset the device" to factory or something? Anyway. I changed the security settings in accordance with your attachment. This is what is in the log after running (regarding the "CmpOPCUAServer").

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

    Hi! I'm sorry if this has been asked before. I have tried looking up previous topics regaring this, but even though I'm following tutorials and other posts I cant seem to get this to work consistently. I actually got the connection established on a test project after some trial and error. I only got it to work with the "Anonymous login". But after i deleted the test project and tried to get the same thing to work on another project I cant get it to work anymore. What I'm trying to do: Set up and...

1