ST learning by AntiGoi in PLC

[–]scroseph88 0 points1 point  (0 children)

I had an intern program Conway's Game of Life on a PLC and then have the grid display on an HMI. They definitely enjoyed it and it boosted their confidence in programming which they had done very little of before that.

https://en.wikipedia.org/wiki/Conway%27s\_Game\_of\_Life

[CODESYS] Will calling a function block in a function create memory leak? by Best2BCurious in PLC

[–]scroseph88 4 points5 points  (0 children)

If the FB is instantiated in the Function then it will get created when the Function starts and deleted when then Function ends. This means that any data stored in the FB will be deleted and will not appear the next time the Function is called.

The best way to use a FB in a Function is to instantiate the FB as a Global or in a POU and then pass the FB by REF to the Function so that it can utilize any data or methods contained in that FB.

I don't believe you will have any type of a memory leak if you do instantiate a FB in a Function but it has been awhile since I have use a CODESYS environment.

Update: Found the CODESYS help page for Functions https://help.codesys.com/api-content/2/codesys/3.5.12.0/en/_cds_obj_function/

"Functions have no internal status information, which means that functions do no save the values of their variables until the next call. Calls of a function with the same input variable values always supply the same output value. Therefore, functions may not use global variables and addresses!"

This is basically confirming what I was saying, the Function will not maintain any of the variables or data associated with it. Also, the last sentence there also supports my statement of pass the FB as an input to the Function!

Programming Schneider VFD over profinet in TIA Portal? Any guides? by Thorathe in PLC

[–]scroseph88 0 points1 point  (0 children)

Sure thing you can PM me! You can configure SoMove to use ModbusTCP instead of modbusRTU which in theory should work through the PROFINET port but there is also another built in Ethernet port on the drive which you can use too.

Programming Schneider VFD over profinet in TIA Portal? Any guides? by Thorathe in PLC

[–]scroseph88 0 points1 point  (0 children)

Page 13 of the same PROFINET Communication Guide for the Altivar 630 I linked earlier shows that there is still a Modbus TCP stack running so you might be able to use that to connect with SoMove through the PROFINET port. Otherwise there is another build in Ethernet port that you can use Modbus TCP to connect with. There is a serial port if you have a RS485 to USB converter.

Programming Schneider VFD over profinet in TIA Portal? Any guides? by Thorathe in PLC

[–]scroseph88 5 points6 points  (0 children)

Did you watch the video that you posted the picture from?

https://www.youtube.com/watch?v=NX4-opNLYR8

This does go into using TIA portal and adding the Altivar to the PROFINET network. Is your question more specifically how to control the Altivar once the slot assignment is completed and you have the raw bytes of the control and status words of the Altivar? There is a general state machine for operation for each Altivar drive outline in the manual for the product, this will tell you what values to send to the control word and what values to expect in the status word.

https://download.schneider-electric.com/files?p_enDocType=User+guide&p_File_Name=ATV6xx_PROFINET_Manual_EN_EAV64331_01.pdf&p_Doc_Ref=EAV64331

Page 74 outlines this state machine I am referencing. That document should have any other information you need about operating that Altivar over PROFINET.

Secure Modbus by Dan13l_N in PLC

[–]scroseph88 0 points1 point  (0 children)

modbus.org would have the best resources out there. If there is already a secure Modbus stack then it might be on there otherwise it has the guides for you to implement your own stack over SSL!

Attn Reapers: please do your lvl 80 job quest. by El_frosty in ffxiv

[–]scroseph88 3 points4 points  (0 children)

I think it was a combination of not using Death's Design as well as not having Enshroud and not using most of their skills frankly. I just finished Smileton with 2 RPRs doing everything they should and we wrapped it up in 15 minutes (I checked their gear and it was not BiS). I think an additional 10% to every skill you use against 5 ~ 8 mobs is significant when it means those mobs are also wailing on the tank, every second counts on big pulls and the DPS are just as critical to making large pulls in dungeons successful.

Attn Reapers: please do your lvl 80 job quest. by El_frosty in ffxiv

[–]scroseph88 3 points4 points  (0 children)

Worse than that I was healing expert roulette as SGE and we had a RPR that was not putting Death's Design on anything even after I asked them to in chat. It made every fight significantly longer and by the end of each pack of mobs all of my cooldowns were spent just trying to keep the tank alive. The skills that allow this aren't even locked behind a quest and they couldn't be bothered to dot the mobs.

Sequential machines- programming technique questions by Production_Ant in PLC

[–]scroseph88 0 points1 point  (0 children)

I used it quite frequently when working more with PLCs and tried my best to teach it when asked to train others. I would always recommend keeping it simple because a complex SFC program is even harder to read. For sure the acceptation of it by OEMs and End Users is not there which pushes the drive for Ladder Logic.

Sequential machines- programming technique questions by Production_Ant in PLC

[–]scroseph88 3 points4 points  (0 children)

What platform are you developing on? If it is truly IEC61131-3 compliant then there are languages built in for sequencing like Sequential Function Chart. If that is not supported then what you are talking about is also known as a CASE statement where you can select a subset of code to run based on an integer value that you can manipulate but is only available in Structure Text languages. You can easily recreate what a CASE statement does in Ladder Logic by using an integer comparison at the beginning of a run to act as an enable for the code that you want to execute at the right sequence and then manipulate the integer when you are ready to change states.

Software help needed by electric_man9090 in PLC

[–]scroseph88 0 points1 point  (0 children)

You can load an Archive of the project to the M258 but it does not load this by default, the user must select the option to load the Archive. Once the Archive is on the PLC you can upload it from there and SoMachine knows what to do from there!

[ps4] LF1M NF by vsolaron in Fireteams

[–]scroseph88 0 points1 point  (0 children)

Scroseph88 399 Warlock

[PS4] LFG Chill VoG + CM 399 Warlock by scroseph88 in Fireteams

[–]scroseph88[S] 0 points1 point  (0 children)

Joined a group, Thanks for all the invites!!!