Jump to content

ORSO2001

Privileged Member
  • Posts

    310
  • Joined

  • Last visited

  • Days Won

    11

ORSO2001 last won the day on February 19

ORSO2001 had the most liked content!

About ORSO2001

  • Birthday 10/21/1975

Profile Information

  • Gender
    Male

Contact Methods

  • Skype
    abertoldo.piovan

Recent Profile Visitors

4,906 profile views

ORSO2001's Achievements

UniGuru

UniGuru (4/4)

19

Reputation

  1. Hi all thanks for answer...ya maybe my "request" is not so clear...i try again...so...I am creating a replacement of a contro card; the original card can exchange data with SVS/external controller by modbus rtu; so for example has registers from adress "0" to adress "1000"; some of theser registers return the value of "process temperature", "process step", "alarms" etc...some of these return (read only) how the RS485 port is set up (ID, baud rate, parity)...in the unilogic when I create a modbus Slave istance a struct is automatically created in the global tags...in this struct i have the ID of the slave but nothing about baud rate, parity, bit format, stop bit....what tags, available for the ladder, have these info in the unilogic? i don't need these to configure the rs485 port (i know how to do) but I need these to fill modbus register and made these info available. honestly I don't know if these modbus register will be really requested/used from third party externa control (SVS etc) but these are available in the exchange data document...so I have to implement...obviously I can set a static value but this means that I will exchange "fake" data. hope that is more cleare.
  2. hi, I have to create a replacement of a control card; this card exchange data by modbus rtu (RS485); some of the registers are about SERIAL COM set up (baud rate, ID, parity etc)...I know how to have the ID...but how to have the others values in the Unilogic? thanks
  3. i did a test....i created a table of 20.000 rows; in each rows are present 10 tags of uint32 so at the end 800.000 bytes (39% of non retained memory!) to store and read; each store and read (full data table) need between 1.7/2.0 seconds...
  4. hi @mm440 i don't know what are the specification of your project, and mostly the size of your data table, but maybe you can solve your problem modifying the "strategy"...i mean...what is the frequency of the data table update? if it is in a reasonable timing you can think about use a data table with not retained memory and save/upload it from the SD (without CSV and zip files).
  5. hi @Fagus do you already check the RTC battery?
  6. hi kvlada, did you check the examples where the "num to string" UDFB is?
  7. 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
  8. 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...
  9. 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.
  10. 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
  11. 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?
  12. hi @russedwards what error code return the modbus master struct?
  13. @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
  14. seems that I reach almost the max size that I can upload...someone can tell me how free space? thanks
  15. 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...
×
×
  • Create New...