aleksander

MrPLC Member
  • Content count

    8
  • Joined

  • Last visited

Community Reputation

1 Neutral

About aleksander

  • Rank
    Newbie

Profile Information

  • Country Poland
  1. Hi All    After consulting with the Client, I calculated all the cams and other key parameters versus the speed of the machine. I set the main task to 2ms and everything has been working fine for two days. Now it's time for my modernization... Thank you for the discussion.
  2. Thank You @photovoltaic. No good news but always new knowledge.
  3. Dear interested in topic    Finally, we decided (with Client) that new algorithms handling Cognex scaner will be build in PLC S7-1200 Siemens. Manufacturer didn't allow change PrimaryTasks's timings.    S7-1200 will do the job and with I/O I will send to Omron PLC fault signals. In Omron PLC I will add only faults handling.    My only one problem is to show some values from S7-1200 on HMI NA5 Omron. I added new external device to the project but there is only Omron manufacturer ;/    From where I can get Siemens PLC libraries and how add them in SysmacStudio? Unfortunately, I did not find this information on the Internet.    In SysmacStudio I am there:   As always, I am grateful for your help Best regards!
  4. Hi    Thank You All.    With each of your new entries, the strength of my arguments in the conversation with the Client increases.    I will do some tests and will talk with Client. Finally I will write how the case ended. @pturmel I found in Cognex docs: Requested Packet Intervals (RPI) The Requested Packet Interval (RPI) determines how fast the cyclic data packets are exchanged between controller and I/O module, and are typically entered in milliseconds (ms). Sensors accept RPI values in 1 to 15 ms intervals for the first 15ms. For RPI values greater than 15, sensors will accept values in 5 ms increments. For values between 16 and 20, data will be exchanged in 20 ms increments. For values between 21 and 25, data will be exchanged in 25 ms increments.    So my 10ms was correct.    Best regards!
  5. @pturmel - I attached file, I left RPI [ms] = 10 and then PPS was set automatically on 200. I have EZ-EDS app, where I can find declaration of supported range of RPI? In Siemens (Profinet) there was no need to setup this attributes. @photovoltaic - primary task is average 390us (before my interference). I cant touch that task, it is not my machine - I have no permission. Tomorrow I will try to find out what is the problem with my INOUTs, if Production Team will let me ;) In GlobalVariables I have declaration of INPUTS and OUTPUTS as structures, offsets tryed as CJ, user - always timeouts. Tomorrow will check NJ but in that case sum of bytes changes and I am sure there will be mismatch (maybe I find out something;). @chelton - Siemens machines are "my machines" and can do everything what I want with them. Omron machine is not my and I cant touch primary task (original code and period time must be not changed). I now it will work with greater time but cant do this. Manufacturer forbids - let's not get into this. 02A60305052E0100.eds
  6. Hi    Yesterday I did changes on machine. I created new task (10ms) and assigned to it new ethernet INOUTs.    Timeout happened (and critical stop of machine) but due to new task so now I am one step further, something is wrong with declaration of INOUTs.    Communication with EIP was so long that it did "insufficient system service time error".    I must find out where is problem with INOUTs declaration and it should work.    Best regards!
  7. Hi    @io_rack, @photovoltaic - thanks for answear     I dont want to change anything in primary task (code and timings) because of possible future problems with production. All I want/must to do is add EAN scaner and check codes (one per 2sec, but in the appropriate CAM). I will add new task (with period 5-10ms, must recount CAMs speed) but first I must make the new inputs independent of the primary task. New task will only cause synchronical stop to the machine, not more.    I have build similar, little faster machines on Siemens PLC where is about 5ms main cycle (also with 3-4 axes) and everything works fine. Adding new nodes on ethernet/profinet is no problem. In that machine manufacturer made 500us main cycle and adding new node to connection is problem. No one wants to take responsibility for problems after the change in primary task. As always it is case of time and m...y ;)    I also think that primary task performed in 1ms (even longer) whould works fine but have no permission.    So, after my changes (new task, new inputs assigned to new task in REGISTER TO SETTINGS FOR EXCLUSIVE CONTROL OF VARIABLES IN TASK ) timings should look like this: 1. primary task 500us then 2. read my new inputs (with period 5ms, long 160us) then 3. perform my new task (with period 5ms, long ~100u-200us) then 4. free time  back to 1. Possible to work? :) Best regards!  
  8. Hi I am new in Omron, most of time I spend with Siemens products so that's why I shyly want to ask about communication over EthernetIP in the case of PLC Omron. I am working with not my machine with PLC NJ301-1100 where are 3 axes on EtherCat, no nodes on Ethernet/IP, only HMI NA5. Primary task with cycle 500us (and additional periodic task 10ms but it is not important). I want to add Cognex scaner on EthernetIP. I use SysmacStudio. In first step I add EDS file and two structures IN (80bytes)/OUT(80bytes) to PLC, no algorythms. After downloading changes to machine in a while it stops with PRIMARY TASK TIMEOUT. With original program the task execution is ave 394us, max 467us. For NJ301 adding 160bytes is additional around 100us to communication cycle. Is that cycle part of each task (primary and others) or it is parallel proces? I am little confused. Additional communication time is 160*0,0015 + 160*0,56 + 2,15 + 7,5 = 99,49us. Am I correct? And this is the problem, I am out of the range of WatchDog? For now I didnt add any algorythms. In the future I will add new periodic task to PLC and this new InOuts will not be used in primary task. Thank You for any advice. ps I have found option for my inputs/outputs REGISTER TO SETTINGS FOR EXCLUSIVE CONTROL OF VARIABLES IN TASK. I created and chose new periodic task for them. Will it helps? I won't be able to check it until Monday so if You have any advices I will be gratefull ;) Best regars!