Jump to content

MarinZ

Members
  • Posts

    7
  • Joined

  • Last visited

  • Days Won

    1

MarinZ last won the day on February 4

MarinZ had the most liked content!

MarinZ's Achievements

Newbie

Newbie (1/4)

2

Reputation

  1. To bring topic back. I have spoken with one colegue and he did gave me some point of idea. Maybe I could use arrays which is filled with cordinate. For example, when operator chose start and end point of movement plus increment for every new line of movement. I could write those in array in that mater where array will be filled like table with max and min cordinate incremented for every movement. And then, when motor is started from zero position it moves forward and watch for 0 array where data for stop position are stored. There for example I can store end position 1000, next movement 500Y axis and now check another array element where it says 10X axis, etc, etc.... I don't know how practical this can be, but i think code would be much more flexibile in way of changing movement and sizes. Also Data Table can be maybe used for this and data table can be edited on HMI or outside......
  2. I know for state machine, actually my approach is quite similar as you can see. I constantly check when movement is withing limit and when is out that other movement is set untill it reaches limits and it continues..... Only I use compare block, instead state machine. But, I would just like too see if there is another, maybe more flexible idea to implement same thing. As, if i want more movements , than thit becomes relly complicated.
  3. Hello! I have machine which moves left - right, up - down based on counts from HSC, counts are like 8 pulses per 1cm of movement as precision is not factor here. Since i have multiple points ( liek go forward for 100, back 100, forward 50 etc, etc) I did solve those by counting and compare blocks, so when HSC value goes over set value it sets coil and when other rung does it sets other and resets that one.... And than I do run inverter by classic run fwd and run rev logic command from outputs. As you can see I do have direct coil for each output on PLC and I set them ON by contact, which are triggered by set/reset coils on rung where rest is. What you think is that good practice or not? For now it works ok, and even great for this kind of precision. But in case I need to have multiple choices of movements and triggering direction, than things get veeeeery complicated (much of rungs and contacts for set/reset). I have posted code and would like to hear if someone had better more effective approach to this, plus is it better to trigger output this way, or direct from compare blocks? P.S. This is just part of project, but you will get point. thanks! hsc_test_v1.ulpr
  4. UPDATE: Support send me file, which when loaded via USB fix this error, so in case somebody will have same, there is a fix!
  5. A bit of update.......since it did work i continued to do some test, than after about 1 hour while i left system off, i powered system and it booted with boot error: -Wrong identification of PLC model (code 5) Again after few DOWNLOAD ALL and restarts it get back to normal life.....I will try to do some more, but I think this is not safe to work with it anymore?
  6. Hello, I have brand new US5-B5-T42 plc and did made simple program on it to try HSC with quadrature encoder, it was working fine for two days and did some changes for test etc everything was ok. Than i powered it off and when powered on this morning i got errors: -Wrong indentification of plc (code 5) -PLC (CPU) did not boot successfully (code 7) I tried few times to reboot via menu or powering off-on but same. Than i tried to re-load programm to plc, but did got also error, -PLC (CPU) did not boot successfully (code 7). After trying to reboot again from menu, i had error --PLC (CPU) did not boot successfully (code8 ) After that i went to plc menu and rebooted PLC only and it worked. I have tried to power off-on and for now it works...... There is one thing, last night I have enter few elements inside "high priority tast", (hsc counting part of my programm) that did worked well after upload, but I doubt that could couse boot problem? polirka_V0.rar
  7. Hi there! I have simple task of readibg few registar in each of 80 modbus rtu slaves via rs485, and than writing some registar to them. Basicly it's bit for on or off and speed reference, so nothing new. Thing is, with unistream for example b3 model with add on rs485 io, would i have problem doing that on 80 slaves? I worked with visio and i know there were sojme task about time to wait between reading or writing to each slave. Is it same on unilogic, or i can just read all slaves, put data on registar, do something and than write other back to slaves? I know datasheet says slave number is unlimited but would like to hear opinion or some idea. Thanks!
×
×
  • Create New...