45
5 CREATING PROGRAMS
5.5 How to Use the FB Library
5.5
How to Use the FB Library
Select an FB registered in the library from "Element Selection" window, and drag and drop it to the program editor. Create an
input ladder and an output ladder of the pasted FB to create a program.
Arrange the FB input ladder to the left side, and output ladder to the right side of the window in the same manner as standard
ladder programs.
1.
Select [Library] tab of the "Element Selection" window. Select [Library] [MotionControl_CCLinkIEFBasic] [FB]. From
[FB], select an FB to be used, and drop it in the program editor. When the "Undefined Label Registration" window
appears, input the label name and comment and click [OK]. The following table lists the FBs to be used in this manual.
When the program editor is not displayed, in the "Navigation" window, select [Program] [Scan] [MAIN]
[ProgPou] [ProgramBody], and double-click [ProgramBody].
2.
The FB is pasted to the program editor.
FB Label Name Comment
MC_Power_CCLinkIEFBasic_F MC_Power_CCLinkIEFBasic_F_1 Ready to operate FB1
MC_Power_CCLinkIEFBasic_F_2 Ready to operate FB2
MCv_Home_CCLinkIEFBasic_F MCv_Home_CCLinkIEFBasic_F_1 OPR FB1
MCv_Home_CCLinkIEFBasic_F_2 OPR FB2
MC_MoveRelative_CCLinkIEFBasic_F MC_MoveRelative_CCLinkIEFBasic_F_1 Relative positioning FB1
MC_MoveRelative_CCLinkIEFBasic_F_2 Relative positioning FB2