Activity for pernockham

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

    I have done the switch (linux mint, virtual windows through QEMU/KVM) now and is generally pleased. Have had problems in two areas initially. To bridge IP to the Virtual unit (solved), I overthought things initially. Solution. Configure manually a bridge in the mint-"network connections". Use that bridge in the Qemu settings as "Bridge device", "Device name": "name of the configured bridge" Figure out where to store the projects. I started out have the data in linux world (sort of) and linking it...

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

    I have done the switch (linux mint, virtual windows through QEMU/KVM) now and is generally pleased. Have had problems in two areas initially. To bridge IP to the Virtual unit (solved), I overthought things initially. Solution. Configure manually a bridge in the mint-"network connections". Use that bridge in the Qemu settings as "Bridge device", "Device name": "name of the configured bridge" Figure out where to store the projects. I started out have the data in linux world (sort of) and linking it...

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

    I have done the switch now and is generally pleased. Have had problems in two areas initially. To bridge IP to the Virtual unit (solved), I overthought things initially. Solution. Configure manually a bridge in the mint-"network connections". Use that bridge in the Qemu settings as "Bridge device", "Device name": "name of the configured bridge" Figure out where to store the projects. I started out have the data in linux world (sort of) and linking it the windows with "virtio-fs". That had some serious...

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

    Using Codesys runtime for Linux and thinking of the process of preparing multiple such systems for my customer. I don't necessarily have physical access to these units, they can be (very) remote. The idea so far is to use an image to install the Linux OS and codesys runtime. Application updates can be done by distribution of the PlcLogic/Application/application.app and application.crc files. But whats the most practical way of managing the license for these units? Do each controller need to be physically...

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

    Using Codesys runtime for Linux SL and thinking of the process of preparing multiple such systems for my customer. I don't necessarily have physical access to these units, they can be (very) remote. The idea so far is to use an image to install the Linux OS and codesys runtime. Application updates can be done by distribution of the PlcLogic/Application/application.app and application.crc files. But whats the most practical way of managing the license for these units? Do each controller need to be...

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

    Back in november I paused this, but wanted to reattempt using the persistent manager, the behavior is still the same. Most "login attempts" s are stopped with the message "One or more errors occurred" but I have no idea what that error might be. The only clue is this message is presented while the lower left status box says "Generating code...: relocation pou". For clarification. Build/Generate code is successful, no errors. Error appears when I try to download/login (physical or simulation) to a...

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

    Back in november I paused this, but wanted to reattempt using the persistent manager, the behavior is still the same. Most "login attempts" s are stopped with the message "One or more errors occurred" but I have no idea what that error might be. The only clue is this message is presented while the lower left status box says "Generating code...: relocation pou". I did manage to login (in simulation mode) at one point, but then the error message "PersistenceChannel: Config file not found!". And no...

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

    Back in november I paused this, but wanted to reattempt using the persistent manager, the behavior is still the same. Most "login attempts" s are stopped with the message "One or more errors occurred" but I have no idea what that error might be. The only clue is this message is presented while the lower left status box says "Generating code...: relocation pou". I did manage to login (in simulation mode) at one point, but then the error message "PersistenceChannel: Config file not found!" I have done...

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

    Interesting, thanks! Didnt know about ANY before, and will sure find a use-case for it. Im not sure it will help me here though, it seems to me that an ANY will not accept a string assignment? I actually think that the "ALIAS" should work, that was a hard found error. I had a fair bit of scratching my head looking for misdirected pointers before I understood what was (not) happening. I will use the work-around of individual structs instead.

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

    Apparently my construction will not work as any of the sub-types are not be able to accept any (further) value-initiation. Ie: string_item : log_data_base := (string_value := 'test', val_type := STRING_); is not eq to (the string_value will not be assigned): string_item_2 : log_data_string := (string_value := 'test'); Because effectively for the compiler this is eq. to a "double" assignment where the compiler sees only the first assignment (my guess). string_item_2 : log_data_base := (val_type :=...

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

    Apparently my construction will not work as any of the sub-types are not be able to accept any (further) value-initiation. Ie: string_item : log_data_base := (string_value := 'test', val_type := STRING_); is not eq to (the string_value will not be assigned): string_item_2 : log_data_string := (string_value := 'test'); Because effectively for the compiler this is eq. to a "double" assignment where the compiler sees only the first assignment (my guess). string_item_2 : log_data_base := (val_type :=...

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

    Apparently my construction will not work as any of the sub-types are not be able to accept any (further) value-initiation. Ie: string_item : log_data_base := (string_value := 'test', val_type := STRING_); is not eq to (the string_value will not be assigned): string_item_2 : log_data_string := (string_value := 'test'); Because effectively for the compiler this is eq. to a "double" assignment where the compiler sees only the first assignment (my guess). string_item_2 : log_data_base := (val_type :=...

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

    Apparently my construction will not work as any of the sub-types are not be able to accept any value-initiation. Ie: string_item : log_data_base := (string_value := 'test', val_type := STRING_); is not eq to (the string_value will not be assigned): string_item_2 : log_data_string := (string_value := 'test'); Because effectively for the compiler this is eq. to a "double" assignment where the compiler sees only the first assignment (my guess). string_item_2 : log_data_base := (val_type := STRING_)...

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

    A good start seems to be this YT from Jakob Sagatowski: https://www.youtube.com/watch?v=Vqk5Td-uWqk

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

    Started playing with the idea of ditching windows for linux, one of the obstacles would be Codesys development. Alternatives: - linux with wine? - Run windows/codesys through virtual machine I guess a vm is the way to go? Anyone out there that could share their experience?

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

    Easier that I thought, by ALIAS TYPE log_item_val_type : ( BOOL_ := 0, INT_, REAL_, STRING_ ); END_TYPE TYPE LOG_DATA_BASE STRUCT val_type : log_item_val_type; (* value, name etc *) ENDSTRUCT ENDTYPE TYPE LOG_DATA_BOOL : LOG_DATA_BASE := (val_type := log_item_val_type.BOOL_); END_TYPE TYPE LOG_DATA_INT : LOG_DATA_BASE := (val_type := log_item_val_type.INT_); END_TYPE TYPE LOG_DATA_REAL : LOG_DATA_BASE := (val_type := log_item_val_type.REAL_); END_TYPE TYPE LOG_DATA_STRING : LOG_DATA_BASE := (val_type...

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

    Im looking for a way to define predefined version of the same structures through "extends"/inheritance. What I want to do is best shown with an example: TYPE log_item_val_type : ( BOOL_ := 0, INT_, REAL_, STRING_ ); END_TYPE TYPE LOG_DATA_BASE STRUCT val_type : log_item_val_type; (* value, name etc *) ENDSTRUCT ENDTYPE (* this/below is not possible as I understand from the compiler?? *) TYPE LOG_DATA_BOOL extends LOG_DATA_BASE : STRUCT val_type : log_item_val_type := log_item_val_type.BOOL_; END_STRUCT...

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

    I think this will not work. I reworked and used an int as source instead.

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

    I have a time which I want to modify with a slider. I have confirmed it is possible to set the value of the slider by to_real(time) (I can see that the slider changes according to 'my_time_value's value). Slider variable: to_real(my_time_value); However I fail to access the current slider instance value when I want to write back the value as time (write to a variable will not work as I need a type-conversion before assignment). my_time_value := to_time(slider-instance-value); I tried with this^.?...

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

    I have a debian linux host running Control SL. I tried to manage IP-addresses through codesys/Control SL but that was not successful. What works though is manually editing the network-interfaces config file. /etc/network/interfaces. Is there a way to set this up so that IP-addresses can be managed from within codesys instead? Thanks! / Per

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

    Never seen VAR_TEMP before, but seems to be what I was looking for! Thank you!!

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

    Thats what I did. The files existed originally, but when I had problems logging in as described I deleted those files (if they in some way had been corrupted causing my problems to login?). After that I have not managed to get the system to re-created these def-files. I manually created the folder structure (from CODESYS file browser) but this has not helped.

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

    Also. Every third (or so) attempt to login/compile is unsuccessful with the error prompt "one or more errors occurred", however there is no information available on what this error might be. If I remove the PersistenceManager-module, these problems are not present.

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

    Also. Every third (or so) attempt to login to the system is unsuccessful with the error prompt "one or more errors occurred", however there are no information available on what this error might be. If I remove the PersistenceManager-module, these problems are not present.

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

    Alos. Every third (or so) attempt to login to the system is unsuccessful with the error prompt "one or more errors occurred", however there are no information available on what this error might be. If I remove the PersistenceManager-module, these problems are not present.

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

    Seconds. Every third (or so) attempt to login to the system is unsuccessful with the error prompt "one or more errors occurred", however there are no information available on what this error might be. If I remove the PersistenceManager-module, these problems are not present.

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

    Trying to utilize the persistence manager, but system do not write to file and do not create the config file. System is a Linux SL, version 4.13.0.0 Problems with persistence/config started when I had other problems to go online, I deleted the config file and the persistent files, but the system will not re-create them. I have tried to remove/re-install the "PersistenceManager"-module, create the folder-structure myself. And also reinstall the linux-runtime but its clearly not working. Any help ...

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

    Im using a pointer as input for a FB and for convenience I like to use 'referenced' variable internally. I use this setup in methods which works because internal variables are instantiated for each call. In a FB these variables are instantiated and initiated for the first call only. Is there a pragma/attribute available that changes this behaviour to mirror a 'method'-call?

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

    Im using a pointer as input for a FB and for convenience I like to use 'referenced' variable internally. In methods I like this setup which works because internal variables are instanced for each call. In a FB these variables are instance and initiated for the first call only. Is there a pragma/attribute available that changes this behaviour to mirror a 'method'-call?

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

    I have a project where a single PLC shall control multiple nodes (up to 10 units?) with IO connected through profinet. Ideally each node should be identical however with time I see situations were different setups/configurations will be used. Codesys PLC (GVLs) |Profinet | |--PNIO-node-1--| | | AIO, | | DIO, | | CNT etc. | |--PNIO-node-2--| | | AIO, | | DIO, | | CNT etc. Ideally I think of a configuration through yaml/xml-files (the assignment/linking of the profinet nodes towards GVL-variables in...

1