Jump to content

ORSO2001

Privileged Member
  • Posts

    305
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by ORSO2001

  1. hi kvlada, did you check the examples where the "num to string" UDFB is?
  2. Hi @Joa attached a short video about the PID that I am using in the project that I am doing...the CV is used to manage a timer to ON/OFF a digital output...the PV is emulated increasing/decreasing a variable referred at the status of this DO. The autotune BIT is "0" because I did it before...stored that vale in a DTI...save to a file..so every time that i energize the PLC it is uploaded and th ePID can run ok without a new autotune. howevere I tried to immediately run the PID after the autotune and it works in the same ways as in the video. also I tried to replicate what you show...I think...and it works... so...one question is...how are the "control value derivative" and the "integral error" at the bottom of PID Config struct (missing in your picture)? PID.mp4
  3. ciao @altijdsoldaat maybe I am misunderstoonding your question but in the UNILOGIC IDE all variables are tagged by "name" and not by "memory block"...both for global (retained or not) and local variables; so you can create a variable called "myVariable" and call this in every place of the project...also for array or struct...
  4. hi @TANKEDUP99 take a look at THIS thread...i shared an example about how to use "millis counter"; if you need more precision i think you have to point to use also interrupts rutine.
  5. hi @e janssens i don't know what -6 means...could you share the function where you try to read data from DTI and sampling it? here attached a really simple example about what I meant in my previously post... sampler-XYtrend example.ulpr
  6. hi @russedwards error code 3 means "illegal data value"...description from the web: A value contained in the query data field is not an allowable value for the slave. This indicates a fault in the structure of remainder of a complex request, such as that the implied length is incorrect. It specifically does NOT mean that a data item submitted for storage in a register has a value outside the expectation of the application program, since the MODBUS protocol is unaware of the significance of any particular value of any particular register. so...when you read the register what you have as value ?...did you try send exactly the same value to check if it is valid?
  7. hi @russedwards what error code return the modbus master struct?
  8. @Cara Bereck Levy & @Joe Tauser thanks. so below the Custom Controls about the daily and monthly graph; also the HMI page where I use those. I don't know if the ladder functions that I use could be helpful...as said I created a struc with date (string), motor1, motor2 etc and a ID position of the day...this last is from 1 to 6 for the time slots and ID 7 for the TOT of the day....so I will search for the date string and the ID from 1 to 6 for daily; just 7 for the monthly. if needed I could share alse the LF. Energy.ulhe Energy_Day.uluce Energy_Month.uluce
  9. seems that I reach almost the max size that I can upload...someone can tell me how free space? thanks
  10. ya...designed by me...i created two customs controls...one for the month and one for the day...if selected day is "0" i show the monthly info if the day is not "0" i show the daily info; at the CC i pass the info take by the DT...one of these is the MAX value "found" to define what is the Y range...also I decide that if the MAX is less than 10 KW i show the value in Watt ... yes I can share these...but at the end is not so difficult done these...the most important thing is the "logic" that works "under the wood"...where and how store the data (what is the amount of it?) and when and how "read" the info... ok...seems that I can't post by the size problem...I will try to post on my own place...
  11. hi @e janssens in one of my project I did something like that...I measure the power consumption of some motors; i split the day in 6 parts +1 to store the sum of these in a DT; so at the end I can check for each moto the power cunsumption monthly and daily. I used bargraph....
  12. hi Rivka, ya...ticket created and sen to support. thanks
  13. hi All, i am having a strange issue with the password text box with release 1.35.227 in a specific project. As many of the UNILOGIC users I have my own basic UDFB and HMI modules like users management, alarms, debug, etc etc. so I am creating a new project using these basic modules and I discover that the password box doesn't have any effect with the variable coupled with it...this happens in each HMI screen (not just in one) where I put this element; if I use the simple text box all works fine so I think that nothing is wrong somewhere in the program...the strange thing for me is that if I create a new project with the same basic modules the password box back to works properly...so is something with the specific project...I already try rebuilt it many time; upload again the firmware 1.35, upload different project an upload back this one...nothing works...this project has this problem. any suggestion about what to do before ask an help from the support?...
  14. hi tonnerre maybe I am misunderstanding your mail but let me say that the "source" where you take the information (datas and position) is not so important...at the end you will pass these information at the trend structure that you must create to manage the XYTrend...so...as i wrote...when you star then stop the sampling a file (trend) will be saved...if the file has always the same name it will be overwrite; if the file name change every sampling campain you will be able to navigate in the history....if I well remember...but I have to check...the XYTrend just show all information in the specific space of "one chart"...
  15. hi e janssens I don't know what exactly is your needs but I think that you can use the XYTrend where you have 2 tags: data and position; "data" is the value of the curve (Y coordinates) "position" is the quantity of the data that you want show (X coordinates). so you have to enable the sampling then read the number in the specific rows of the DT then stop to sampling...obviously you have to consider the "functions" and "limits" of XYTrend. hope that is clear enough...
  16. hi All, just an update...i mailing to support that suggest to update at the release 1.35 (for security reason)...I did but nothing change...than I start to do the investigation...at the end all modules was costantly in the "boot" step...so..after a "deep" check we discovered a wrong wiring that I think make crazy the I/O bus....now the system seems works properly...and most important seems not damaged! thanks
  17. hi Kratmel, as in the picture that I post before I am using the unilogic 1.34...and the I/O module are quite new...I upload the I/O firmware by the unilogic and reboot the PLC but still have the same problem; i send a mail to support with the unilog file...hope that they will help me. regards
  18. hi Luis...let me jump in this topic...I downloaded your project and take a fast look...so...in my opinion...you have to modify a "little" how the program is planned...i mean...you just have the main function (function1) and a RTC to ASCII UDFB...in the main function you are doing to many things mostly to many thing in a single row...for example the below immage is NOT a good practice...let me say...i suggest you to split the whole "logic flow" in smalls logic block (UDFB) ...for example...one to manage the input and output, one to perform the calculation/formula...like you already did for the RTC to ASCII...then put the UDFB in main function...in this way the program should be more cleare and maintainable...last...you have not to pay for every ladder row (😁)so split the commands...in each row put just "one" command/action let at the row below go forward... than...you defined many tags about "ethernet" connection bu no one of these are really coupled with any "ethernet" struct of PLC...in your case "BCU Sick"...also you define the MODBUS TCP as "periodic"...some at 200 others at 100 ms and a response time about 500 ms...are you sure that this frequency are ok? usualy I use aperiodic strategy because i prefer send the query to the slave when i want...also usually i create tags to store the "success" and "fail" transaction...comparing these with the original tag of the ethernet struct I will know if every query was succesful or not...then i do what i need...also because with the aperiodic you can define an "ID" and "groupID" for each tag...that is pretty useful....at the end your ethernet struct has a "status" tag that define how is going...check it to have some more information....let us know.
  19. hi Vidmas30...if I well remember Unilogic PLC can manage until 32 clients (master) with the same server (slave)...so no other client instance are needed in your case.
  20. Hi all, I shared with one of my business partner, that doesn't has UNILOGIC IDE, the files to update the firmware and the program in a USP-070-x10/x08; all works fine but i have some problem with the I/O; attached some pictures of the PLC status . there is something that I am missing or my prtner has to install UNILOGIC IDE and do the I/O update by specific option in the "download" menu? thanks
  21. Hi, in all my projects i put many pages to show the status of the "inputs" and "outputs"...also I coupled the status of each modules with specific alarms and "icons" to help users to identify the position in the hardware configuration...could be possible add the "modules icon" as HMI object and couple at these the struct of the relative physical module to have the status (maybe green and red or other) and the status of each I/O (maybe black and green for ON/OFF and red or yellow for fault) ? hope that is clear enough what I mean... thanks
  22. hi All, i join the discussion...in my opnion the new features that Daniel wrote are really interesting...also, in my opinion, the variables grouping is a real good feature. for sure I will try this new release in the next project...starting from december/january...for the moment I can say "really appreciated".
  23. hi Saragani, I had never used the recipes until now...for what i need seems works great. thanks
  24. hi All, i am using the release 1.33.373; i created a UDFB where I upload from a txt file some strings and I save these in a DTI; this DTI has just one column with string variable; so to upload the right number of strings I set the column value (all rows at the same time using the specific function block) with the constant #""...and when I am online I see all the rows "empty" ...then I search for the first available #"" in the column and I save in the same position the new string...this doesn't works. to be more clear...I use the same UDFB at the power up of the PLC and it works...if I recal the same later it doesn't works...DTI is empty but not filled by new strings. the solution is write each single row with a variable that contain #""...this works always (at the beginning and later)... and i don't understand why. at the moment the DTI has juts 3 rows; in the last parameter of the "set column value" block i passed the "DTI.number of rows" ... and when i was online it show 3 ...the start index was "0"..and as I wrote all the rows was empty...I also manually filled the cells of the DTI to check if these was "reset"...and these was...so I don't understood what is wrong. hope that is clear enough. PS: could be possible add a "tool" in the UNILOGIC to automatically upload the txt, csv etc files as for the MEDIA file?...could be a table where you select the "source file" and the "destination folder" in the PLC..that could works during the upload of the project (by cable or by DOK) but also indipendently...otherwise we have to use the FTP or, as i did, create a specific place in the program to manage the files upload. thanks and regards
×
×
  • Create New...