Hi, is there some way of triggering programs/functions to run by hardware interrupts from the digital inputs in the PLCnext Starter Kit-setup?
Hi Tom, This recent post discusses User Events, which can be used to trigger tasks based on any event that you define, including changes to digital input status. Depending on the relative priority of the User Event task, this can interrupt all other lower priority tasks. Is this the sort of thing you had in mind?
Hi Martin and thank you for you answer. Well, it depends I guess, on how quick of a signal the event can catch. I suppose there is a minimum time the digital input have to be on before it can trigger anything? My concern is if the signal is less than, lets say 1ms long, the User Event would not be triggered. Maybe it is better to catch short signals pulses with a counter module? (I am planning for a machine that would have to have an alarm triggered by a very short pulse)
Yes, signals coming in to an I/O module must be sampled by that module, then stored locally in the module, then transmitted to the “master” (the PLC), which is where the event detection happens. So there is a lower limit on the width of a detectable pulse. If you want to detect the pulse but you can live with a short delay before the event is processed, then I agree that something like a high-speed counter module (or an external latching relay) might be best. Depends on the width of the pulse and the timing specs on the I/O module and Axioline bus.
… and in case you are interested, this is the sort of latching relay (or pulse expansion module) that might be useful for your project: http://phoenixcontact.net/product/2903173 Electro-mechanical relays tend to have a pull-in time of around 50ms, which is probably too long for your application, but this one is a solid-state relay so it should pull in pretty much immediately. It also has a fairly flexible configuration. Hope this helps.
Yes, that is actually what I was looking for. Thank you Martin! On this topic: The digital input module DI8/1 DO8/1 (2701916) have a parameter “Filter time” that can be set to 3ms, 1ms or <0.1ms. If I set it to “<0.1ms”, what kind of reaction time on a User Event, as described in this post, are we talking about? I guess it is still more or less dependent on the scan time of the PLC. So, maybe the question is more like - at what rate is ESM1/2 running in the AXC F 2152? The minimum cyclic time is 1ms with the PLCnext Engineer, but that is not the cycle time of ESM1/2 right? Is this going to improve? (I mean, 1ms is a bit slow in this day and age, with competitors offering nano second precision) Best regards.
Hi Tom, for the total reaction time is not just the filter time important, more over is the processdata update time relevant. In case of the mentioned DIO 8 module it is <100 us.
The cycle time of the localbus is not that important, because the axioline bus needs just 1us for every module installed. By using than user events you are right, the events are called inside your task and the task is executed with a fixed cycle time. In case you are using an AXC F 2152 is the (currently) fastest cycle time 1ms.
With FW 2019.6 you can expect a task Jitter of ~100us, means you’ve a worst case reaction time of 1ms (adjusted cycle time) + 100us (module bus update + n (amount of modules)*1us + 150us Jitter. We know of course that the most important limitation is now the scan time of the PLC cycle. Let’s say we’ve there already something in our backlog… Cu Frank BTW.: The DIO8 2701916 is more or less a very basic one, with the module AXL F DI16/1 HS 1H you can reach a bus update rate of <5us (bussynchronous).