Host Engineering Forum
General Category => Do-more CPUs and Do-more Designer Software => Topic started by: ATU on February 18, 2020, 08:12:12 AM
-
I have a C-More Micro linked to a BRX using the Modbus TCP Server. Could activity initiated on the Micro affect behavior of the interrupt routine?
-
I have a C-More Micro linked to a BRX using the Modbus TCP Server. Could activity initiated on the Micro affect behavior of the interrupt routine?
If my rememberer is working correctly, the logic interrupts are a higher priority than comm interrupts. Are you seeing changes?
-
I have one hardware interrupt and one timed interrupt at 200us. The timed interrupt routine runs about 160us. When you push a button on the screen, I believe I am missing some of the timed interrupts. I wonder if the micro could be setup as a modbus server and initiate all coms on the PLC side?
-
The timed interrupt routine runs about 160us.
Do you mean execution/turn around time of the servicing of the timed interrupt is 160us? Is it recurrent timed interrupt?
-
Yes, Every 200us, the routine time varies but max at 160us.
-
Yes, Every 200us, the routine time varies but max at 160us.
So 160us is the ISR duration, with a 200us interval?
-
Yes, sometimes less, max at 160us
Runs fine until you start pokin' the screen.
-
Yes, sometimes less, max at 160us
Runs fine until you start pokin' the screen.
Depending on the average of that ISR, you are (well?) over 50% CPU utilization. That's getting into the danger zone. Consider reducing timer frequency, or reduce the ISR time. Comms do shut interrupts off for short periods, that is probably delaying the servicing enough to push that 160 past 200.
-
Nothing like living on the edge. However, it never misses a lick if the hands are off the HMI. They will have to pause the test to make adjustments.
-
Nothing like living on the edge. However, it never misses a lick if the hands are off the HMI. They will have to pause the test to make adjustments.
You might move the HMI to the serial port. That might eliminate the issue.
-
I was considering that. Does the Serial Port use a system interrupt or is it part of the background?
-
I was considering that. Does the Serial Port use a system interrupt or is it part of the background?
It uses an interrupt, but it may be a lower impact than Ethernet.
-
I have one hardware interrupt and one timed interrupt at 200us. The timed interrupt routine runs about 160us. When you push a button on the screen, I believe I am missing some of the timed interrupts. I wonder if the micro could be setup as a modbus server and initiate all coms on the PLC side?
You really don't want a slave HMI, trust me. It is super messy. Pretty much guaranteed to never work like you want it to.
-
Going to give the serial link a try.