OBs

Join Date
May 2009
Location
egypt
Posts
43
Hi all
If I want to use any OBs in the program how can I program it
I use an OB but I insert it without programming I want to know if this true or false
Thank you
Adel abd el aziz
 
OB's are called from the operating system of the cpu. You do not need to call them like an FC or FB.

Off course you must write code into OB1 if only a call to an FC or FB. As a matter of fact you can write 'all code' inside OB1.
 
Hi there
Refer to the link below
http://www.plctalk.net/qanda/showthread.php?t=31378

Diffrent OBs are called upon on occurance of a particular error. Example--> PLC calls OB121 when there is program execution error. You can write the following code inside the OB121:
L #OB121_SW_FLT
T MB 150

So when OB121 is called upon it will place a relavent error code value in byte MB150, for example if MB150 shows 21 then its BCD conversion error.For more details highlight OB121 and press F1.

Its not compulsory to programme OB's.
 
Hi all
If I want to use any OBs in the program how can I program it
I use an OB but I insert it without programming I want to know if this true or false
Thank you
Adel abd el aziz

Each OB is called from the system you do not need to call them.

Apart from OB1 you do not need to use any other OB unless you need the functionality. Read the documents on their function, some are timed, some are for first scan initialisation, some are for faults, etc, etc.
 
OB81 is a fault handling OB, if you do not have OB81 programmed and that fault occurs, then the PLC will go into STOP.

If OB81 is created and downloaded to the PLC, then the PLC will not go into STOP, the OB TEMP's will indicate the fault and your programming can be used toi determine if you would like to STOP the PLC or not.
 

Similar Topics

Hi, When I use an interrupt OB (let's say OB38 which is processed every 10ms), does it read the state of the inputs at the time it is called, or...
Replies
18
Views
2,378
I said earlier I'm now semi-retired and I will take on only 'the good jobs. After 50 years of grafting, I now have more time to remember the...
Replies
6
Views
1,699
Hello all, I love programming PLC's and am very thankful for my job. That being said, I am finding is impossible to work 40 hours per week in...
Replies
68
Views
22,954
We use FishBowl for our Main Business unit. They make very standard products so it works fine for them. But there is nothing about FishBowl that...
Replies
0
Views
1,142
Out of all the 'trades' electrical engineering has to be the most varied. You can be designing a new state of the art automated system one day And...
Replies
31
Views
9,893
Back
Top Bottom