Equipment's:: Lab#08 Ladder Programming-4 Objective
Equipment's:: Lab#08 Ladder Programming-4 Objective
Lab#08
Ladder Programming-4
Objective:
To briefly study about Flow controller.
Equipment’s:
Fatek FBs-14MA
Winproladder
Theory:
Flow Control
Flow controllers are special function blocks that are used to make special changes in our
program like to emergency stopping a machine or to skip a specific task etc. that’s why flow
controllers are used. Some blocks are as:
Label
Jump
Master Control
Skip
For
Next
Call
Label
This instruction is used to make a ta on certain address within a program, to provide a target
address for execution of JUMP, CALL instruction and interrupt service. The label name can be
formed by any 1~6 alphanumeric character and can’t be duplicate in the same program. Following
function are used for interrupt function usage.
JMP
When jump control “EN”=1 or from 0to1(P instruction), PLC will jump to the location behind
the marked label and continues to execute the program. This instruction is especially suit for the
applications where some part of the program will be executed only under certain condition. This
can shorter the scan time while not executes the whole program. The jump instruction allows only
for jumping among main program or umping among subroutine area, it can’t jump across
main/subroutine area.
MC
There are a total 128MC loops (N=0~127). Every mater Control start instruction, MC N, must
correspond to a Master control End instruction, MCE N, which has the same loop number as MC
N. they must always be used in pairs and you should be used in pairs and you should also make
sure that the MCE N instruction is after the MC N instruction.
When Master Control input “EN” is 1, then this MC N instruction will not be executed, as it does
not exist.
When Master Control input “EN” is 0, then master control loop is active.
SKIP
The purpose of skip function when enabled is to skip a specific task during a process like to skip
adding flavor in a lay’s process line such type of operation is performed by skip functions.
MCE
Every MCE N must correspond to master control start instruction. They must always be used
as a pair and you should also make sure that the MCE N instruction is after the MC N instruction.
After the MC N instruction has been executed, all putput coil status and timers will be cleared 0
and no other instruction will be executed. The program execution will resume until a MCE
instruction which has the same N number as MC N instruction appears.
For
This instruction has no input control is connected directly to the power line, and cannot be in
series with any conditions. The programs within the FOR and NEXT instruction form a program
loop. When PLC executes the FOR instruction, it first records the N value after that it jumps out
of the loop, and continues executes the instruction immediately after the NEXT instruction.
Next
This instruction and FOR instruction together form a program loop. The instruction itself has
no input control, is connected directly to the power line, and cannot be in series with any
conditions. When PLC has not yet entered the loop but the next instruction is reached, then PLC
will not take any action, just as if this instruction did not exist.
CALL
When call control “EN”=1 or from 0to1 (P instruction) , PLC will call the subroutine bear the
same label name as the one being called. When execute the subroutine, the program will execute
continuous as normal program does but when the program encounters the RTS instruction then the
flow of the program will return back to the address immediately after the CALL instruction.
Conclusion:
The above are flow controller in Fatek that perform specific actions in a program.