Riaz Pervez
Assistant Professor Software of PLC devices
ME, RUET
The organizational blocks are the interface between the system program and
the application program.
They are called by the operating system and control the cyclical and alarm
controlled program processing, the start up behavior of the automation system
and the error treatment.
The first group is being called by the The second group are the integrated
system program. special functions.
The members of this group control the They are inherent parts of the system
program processing, the start up program and are called in the
behavior of the processor and the application program if required.
behavior in case of an error.
These OBs are to be programmed by the
user.
DBs contain (fixed or alterable) data the application program works with. This
type of blocks does not contain executable code and differs basically from the
other blocks in its function.
At the beginning of each cycle the states of all binary inputs are scanned and
stored in the process image of the inputs.
During program processing the central processing unit accesses the signal
states in the process image table but not the signal states of the inputs.
During one cycle of the application program the states of the inputs therewith
are consistent.
Binary operations
Operand types
R/S-flip flops
Binary Timers
A network is limited to the left by a vertical line, knows as the "left conductor
rail", and to the right by a vertical line, known as "right conductor rail". The
right conductor rail may be omitted.
The state of the vertical connection is the OR function of the "ON" states of its
left hand horizontal connections; this means the state of the vertical
connection is as follows:
The state of the vertical line determines the state of all horizontal lines
connected to the right side. The state is not copied to one of the connections
on the left side.
A coil copies the state of its left hand connection to the state of its right hand
connection without any change and takes over the state of its left hand
connection into the associated boolean variable.
The initial state of the program is determined by the initial values of its
internal and external variables and by the set of initial steps, i.e. by the steps
being active at the beginning.
A transition specifies the condition which causes the control to move from one
or more steps preceding the transition to one or more steps following the
transition along the directional connection.
The transition is represented by a horizontal line crossing the vertical
directional connection. A boolean variable or expression, which specifies the
transition condition, is associated with it
The direction of control movement is from the bottom side of a predecessor
step (or more than one) to the top side of a following one (ore more than one).
It moves along the directional connections.
Each transition has an associated Transition condition, which is the result
of the analysis of a single boolean expression.
To each step one or more actions can be associated. The actions define the
operations that are always to be performed when the respective step is active.
A step, that has no associated actions is to be considered to have a Waiting
function (i.e. to be waiting for a following transition to become true).