Mitsubishi Electronics 13JW55 ユーザーズマニュアル

ページ / 350
 
 
App. - 68
 
 
Appendix 9  FB 
Appendix 9.1  FB 
FB is an abbreviation for a Function Block that is designed to convert a ladder block, 
which is used repeatedly in a sequence program, into a component (FB) to be 
utilized in a sequence program. 
This not only increases the efficiency of program development but also reduces 
programming mistakes to improve program quality. 
 
Converted into 
a component
FB
 
 
Figure App. 9.1 Converting a sequence program into a component 
 
 
Appendix 9.1.1    Conversion into components 
The following section explains the process to convert a simple program into a 
component. 
Input
Input label
Output label
Output
X1
X1
 Y12 
 Y22 
X2
 D1  K12
   Y12   
 INCP D1 
Internal device
Input
label
i_Count
Count_Num1
i_Count
o_C_UP
Count_Num2
i_Count
o_C_UP
Create input/output ladders (Setting parameter).
i_Count
o_C_UP
Count_Num
Output
label
o_c_up
i_Count
 m_Cnt  K12 
  o_C_UP  
 INCP  m_Cnt 
Internal label
Count process 2
Count process 1
Program to be converted into a 
component
When changed to an FB
Divide into input and output. In addition, 
replace the internal device with an internal label.
Pasting the FB to a program
1)
2)
3)
4)
 
Figure App. 9.2 Flow of conversion into components