Activity for Fless

  • Fless Fless posted a comment on discussion Deutsch πŸ‡©πŸ‡ͺ

    Wie gesagt ich hatte noch keinen Kontakt mit SNMP. Um die Beispiele zu verstehen hier ein paar Tips: SetEngineId und CreateSNMPV3User sind Funktionsbausteine. Klicke rechts auf den Namen, Symbol suchen - Gehe zu Definition Dann sieht du entweder den Quelltext oder landest in der Bibliothek und kannst dir die Dokumentation ansehen. In deinen Fall siehst du den Quelltext. Die Funktionsbausteine sind in den Projekt POUs gespeichert weil das Projekt aus mehreren Applikationen besteht die alle diese FBs...

  • Fless Fless posted a comment on discussion Motion πŸ‡¬πŸ‡§

    Hi, I got good results with SMC_NCDecoder, SMC_CheckVelocities, etc. in a freewheeling task with lower priority (higher number). Still takes some time but I'm using many variables and loops in my g-code and more preprocessing like SMC_SmoothPath, SMC_LimitDynamics, SMC_CheckForLimits. PS: your buffer size seems a bit high for 34 lines of g-code

  • Fless Fless posted a comment on discussion Deutsch πŸ‡©πŸ‡ͺ

    Hallo, 1. Willkommen :-) 2. Da hast schon etwas worauf du aufbauen kannst. 3. Da gibt es von WAGO Hilfen wie man Projekte zu Codesys 3.5 migriert. 4. Mit SNMP habe ich keine Erfahrung, kann dir leider nicht weiterhelfen. 5. WAGO hat eine eigene SNMP Implementierung. Ich vermute WAGO entwickelt diese Libary nicht mehr parallel weiter, deshalb die Aussage des Supports. Die Codesys SNMP lib ist in das Paket IoT gepackt worden. Die Library kannst du ganz normal einbinden wenn du die IoT Lizenz fΓΌr das...

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

    Why will it retain the sum value from the last call? This is how PLC work. Usually variables only get initialized after a download or a reset (i.e. power loss). RETAIN variables are saved in a special kind of RAM and keep their value after a power loss. To initialize variables on every call of your FB use the VAR TEMP block. VAR_TEMP sum : INT; END_VAR

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

    with every call of the FB500 it keeps adding the INTs of the array to the sum variable. set sum to 0 before you start the loop.

  • Fless Fless posted a comment on discussion Motion πŸ‡¬πŸ‡§

    Update: We managed to avoid the warnings by changing the order of initialization by adding an attribute to the GVL with the variables. {attribute 'global_init_slot' := '49989'} The variables are initialized right before the regular GVLs (default GVL slot 49990). Note to Codesys: I see the problem, Codesys needs to initialize the CNC objects before the GVLs so they can be used in the GVL. But then you can't use variables from GVLs in CNC programs. Maybe you could disable the warning in your generated...

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

    use this to set an invalid reference Add_EVT_OUT REF= 0;

  • Fless Fless posted a comment on discussion Motion πŸ‡¬πŸ‡§

    Hello, we are porting a CNC project from codesys 3.5.16 to codesys 3.5.19. The project has lots of CNC programs with variables. now we get hundreds of messages like this. [WARNING] CNC Test SP19: TestCNC SPS: PLC Logic: Application: C0564: A reference to uninitialized variable varCNC is used for initialization of TestCNC_D. Accessing the uninitialized variable may result in unexpected behavior. The objects program_name_D are implicit generated by codesys. I see no way to generated them after the...

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

    either you have "Insert with namespace" enabled in the SmartCoding options or your GVL_GLOBAL starts with {attribute 'qualified_only'} btw it's considered good practice to put the namespace in front of the variable. you could have variable with the same name in your PRG or FB.

  • Fless Fless posted a comment on discussion Motion πŸ‡¬πŸ‡§

    you need to set the increments to 10 (the screenshot shows 10000 hex = 65536). all the turn settings to 1. and the application units to 366. But usually you use the resolver resolution per motor turn. Insert the gear ratios (1:1 for no gear) and the last field you put the circumference of your drive wheel.

  • Fless Fless posted a comment on discussion Motion πŸ‡¬πŸ‡§

    Hi, you should see 2 input fields in the scaling tab of your linear axis: increments and units in application just set increments to 10 and units in application to 366

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

    looks like you are running in a bug in the newest version 4.4.0 of the profinet library or the new library triggers a bug in your code. did you update your profinet device too? you could try to downgrade to an older version of the library. via library manager - placeholders, double click Profinet 4.4.0 in the library column and choose an older version.

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

    standard installation - white style included in SP7 , SP8, SP9, SP12, SP14 and SP16 not sure about later service packs

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

    To see the image ID variable you need to set the filter in properties to all or animation.

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

    Hi, documentation says it's not possible. Linear Motion G code: G1 .... Important Two consecutive identical positions always result in a movement stop at this position. The stop also occurs when the subsequent path connects steadily and could be traveled without stopping. https://content.helpme-codesys.com/en/CODESYS%20SoftMotion/_sm_cnc_din66025_line.html You're not moving the target coordinates (X,Y,Z) so the position doesn't change and the movement stops.

  • Fless Fless posted a comment on discussion Deutsch πŸ‡©πŸ‡ͺ

    Hallo, kΓΆnnte mit einer Textliste funktionieren Textliste FormatNachkommastellen mit den EintrΓ€gen ID Standard 0 %.0f 1 %.1f 2 %.2f .. .. n %.nf und dann in den Elementeigenschaften Eigenschaft Wert Textvariable rRealVariable Textliste 'FormatNachkommastellen' Textindex iNachkommastellen

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

    it looks like you're causing an exception in this library right on start. Codesys can't tell you where because it has no source for the library. Cause could be an invalid pointer.

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

    Hi, you can use local variables in the ST code action it's just not shown in the input assistant. as workaround use THIS^.iPassFirstTry

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

    Hi, the target support package is for the codesys IDE so you can program plc applications for your device. You have to install it via the add-ons in the codesys installer (or package manager for older codesys installations). the run time application is on your device so it can run the application. it's preinstalled on your plc, on other devices like raspberry pi you have to install it. note. make sure the target support package and run time got the same version.

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

    TYPE_ANYINT is the generic data type used for declarations. TypeClass only returns the elementary data type. See the table in Data Type: ANY

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

    You need to install the Codesys LD/FBD Add-On via Codesys Installer.

  • Fless Fless posted a comment on discussion Deutsch πŸ‡©πŸ‡ͺ

    Alternativ kannst du die 'CAA Memory' Bibliothek nutzen. rawDWord := MEM.PackWordsToDword(wHighWord:= UpperByte , wLowWord := LowerByte ); MEM.MemMove(pSource := ADR(rawDWord), pDestination := ADR(Daten), uiNumberOfBytes := SIZEOF(Daten)); PS: pt := ADR(X); // schreibt die Speicheradresse von x in then Pointer pt DW_TO_REAL := pt^; // schreibt den Wert der an der Speicheradresse pt steht in DW_TO_REAL // dereferenziert den Pointer

  • Fless Fless posted a comment on discussion Motion πŸ‡¬πŸ‡§

    Hi, the problem is in the way you set the Execute inputs. Done gets reset when you disable Execute. Take a look at the help and the signal figure of the example https://content.helpme-codesys.com/en/libs/SML_Basic/Current/PLCopen/MC_MoveRelative_SML.html

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

    Hi, I'm not entirely sure what you mean by "after reception of few PDOs". I guess you have set the CANopen master to produce SYNC. Your slave has a TPDO with transmission type "cyclic"? To see if the TPDO is received by the master you need to check the device state for "OPERATIONAL", but you have to disable nodeguard and heartbeat guarding . https://content.helpme-codesys.com/en/libs/CAA%20CiA%20405/Current/CAA-CiA-405/Function-Blocks/Query-state/GET_STATE.html

  • Fless Fless posted a comment on discussion Motion πŸ‡¬πŸ‡§

    you need to limit the speed of additional axis separately. N010 G01 Z247. F150. N011 G01 C15. FC25. N012 G01 Z-247. F150. N013 G01 C-15. FC25. N014 G01 Z247. F150. N015 G01 C15. FC25. N016 G01 Z-247. F150. N017 G01 C-15. FC25. and add SMC_ExtendedVelocityChecks to your path preprocessing.

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

    Welcome Francesco, this works for me: {attribute 'qualified_only'} {attribute 'strict'} TYPE INDEX : ( ID1, //0 ID2, //1 ID3, //2 {warning disable C0125} LASTELEM := ID3 {warning restore C0125} ); END_TYPE PROGRAM POU VAR values : ARRAY [0..INDEX.LASTELEM] OF INT; END_VAR values[INDEX.ID1] := 1; values[INDEX.ID2] := 10; values[INDEX.ID3] := 100;

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

    Hi, if you did things by the book, you have a task where you interpret the cnc code and prepare the queue. When this task processes line N22 the value of OFFSETX changes. I guess you want OFFSETX to change when the SMC_Interpolator if finished with the motion in line N21, therefor you need to insert a G75 between line N21 and N22.

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

    by default the string value of struct member is put in the table field via Text variable :: DataLogger.LogArr[INDEX].FlagAllame just put this in the property Toggle color: DataLogger.LogArr[INDEX].FlagAllame

  • Fless Fless posted a comment on discussion Motion πŸ‡¬πŸ‡§

    Hi, not sure if it's possible to see M-codes when you suppress them with PreAcknowledge. Check if SMC_PreAcknowledgeMFunction removes the M-codes in the SMC_OutQueue. I would use switch points (H-functions) when I don't want to stop.

  • Fless Fless posted a comment on discussion Motion πŸ‡¬πŸ‡§

    try setting 3d mode with G17 or G16 before you enable smooth path preprocessing (g51). this should fix your issues with 0 values for dZ

  • Fless Fless posted a comment on discussion Motion πŸ‡¬πŸ‡§

    Hi, G51 doesn't work because you don't call SMC_SmoothPath 😏 can your axis handle the speeds? a move from 0,0,0 to 10,10,50 means fast z speed. while move to 50,50,50 divides the speed to all axes. what is the period of the ripples? does it change with different speed settings? are you doing anything weird with 'rActualSpeed'?

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

    You could uninstall the softmotion package. Or turn it off in the current project in 'Project' - 'Project Settings' - 'Softmotion'. (You'll still be asked to update softmotion every time you open your project.) But if you use a softmotion target device you can't turn it off.

  • Fless Fless posted a comment on discussion Codesys V2.3 πŸ‡¬πŸ‡§

    take a look in your Program Modbus IF GVL.AC_Running := TRUE THEN AC_PWR_Use := GVL.AC_Watts; END_IF you wanted to check GVL.AC_Running = TRUE but you set it to true. to avoid such mistakes simply use statements like IF xRunning THEN ...; END_IF IF NOT xRunning THEN ...; END_IF

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

    you could use the alternative syntax ARRAY OF ARRAY FB: FUNCTION_BLOCK my_fb VAR_INPUT pNumberChecked: POINTER TO ARRAY[0..2] OF BOOL; END_VAR POU: VAR checked_options : ARRAY [0..199] OF ARRAY [0..2] OF BOOL := [200([3(FALSE)])]; my_fb : my_fb1; END_VAR my_fb1 (pNumberChecked:= ADR(checked_options[0]) );

  • Fless Fless posted a comment on discussion Codesys V2.3 πŸ‡¬πŸ‡§

    in the help for 3.5.10 is an example. No, idea why it's not in newer help versions. https://help.codesys.com/webapp/_cds_operator_move;product=codesys;version=3.5.10.0

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

    The frame switching variable is declared as part of the main screen (i.e. the one displayed via "Change Shown Visualization") and is called Frame (for obvious reason). Navigation buttons simply write the desired frame number into the Frame variable. Ok, so far so good. Instead of writing a frame switching variable. Try the action "Switch Frame Visualization" for each button. Use "Switch to any visualization" select your frame-element in your screen visualization and write the index of your sub-screen....

1