uptown47
Lifetime Supporting Member
Hi all,
I'm currently upgrading an S5 system to S7 and I'm trying to recreate the functionality.
The S5 system has a 434 card on it which is basically a card that calls an interrupt OB (OB 2) every time one of the 8 inputs goes high.
The interrupt OB 2 then checks which input went high and either adds 1 to a count or subtracts 1 from a count. It does this for a vertical and a horizontal axis.
The machine has two toothed sprockets and proxy sensors counting the pulses.
I need to recreate this functionality in my S7. I'm using an S7-314C-2DP as this is quite a quick PLC.
I can set up that the pulses from the proxys come into the High Speed Counter that's built into the 314C-2DP.
My question is this..
Do I need to set up an interrupt like they have done in S5? If so, how would I go about it. I've looked into the OB's in S7 and there's OB30 - OB38 which are Cyclic Interrupts. There's also OB40 - OB47 which are "hardware interrupts".
I'm guessing that its the hardware interrupt I need but I've never had any dealings with them whatsoever so I'm a bit stuck.
Can someone tell me how to set up a hardware interrupt or has anyone got any better ideas on how I can achieve the same thing another way??
A really big thank you to anyone who can help me out with this. I must have downloaded and searched through about ten manuals from the Siemens site and I'm getting nowhere!
Cheers
I'm currently upgrading an S5 system to S7 and I'm trying to recreate the functionality.
The S5 system has a 434 card on it which is basically a card that calls an interrupt OB (OB 2) every time one of the 8 inputs goes high.
The interrupt OB 2 then checks which input went high and either adds 1 to a count or subtracts 1 from a count. It does this for a vertical and a horizontal axis.
The machine has two toothed sprockets and proxy sensors counting the pulses.
I need to recreate this functionality in my S7. I'm using an S7-314C-2DP as this is quite a quick PLC.
I can set up that the pulses from the proxys come into the High Speed Counter that's built into the 314C-2DP.
My question is this..
Do I need to set up an interrupt like they have done in S5? If so, how would I go about it. I've looked into the OB's in S7 and there's OB30 - OB38 which are Cyclic Interrupts. There's also OB40 - OB47 which are "hardware interrupts".
I'm guessing that its the hardware interrupt I need but I've never had any dealings with them whatsoever so I'm a bit stuck.
Can someone tell me how to set up a hardware interrupt or has anyone got any better ideas on how I can achieve the same thing another way??
A really big thank you to anyone who can help me out with this. I must have downloaded and searched through about ten manuals from the Siemens site and I'm getting nowhere!
Cheers