20
3 SPECIFICATION
3.1 Details of the FB Library
Error code
FB version upgrade history
Note
This chapter includes information related to the function block.
It does not include information on restrictions of use such as combination with modules or programmable controller CPUs.
Please make sure to read user's manuals for the corresponding products before using the products.
Restrictions and
precautions
(1) This FB does not include error recovery processing. Program the error recovery processing separately in accordance with the
required system operation.
(2) This FB uses M+Global_FX5CPU_CamCtrLatch (Setting data of 3CH (Latch data)).
(3) The cam output table setting must be completed before the execution of this FB, as the ON/OFF advance angle amount is
judged from the maximum value of the ON/OFF advance angle amount set by Page 10 M+CamCtr_CamOutputTable_F
(Cam output table setting).
(4) The following shows the number of calls per channel of this FB.
• Automatic angle advance: Once for cam output numbers 0 to 15 (16 points) in common
• Individual advance angle: Up to 4 times for cam output numbers 0 to 3 (4 points)
(5) Turn off i_bEN (Execution command) after o_bOK (Normal completion) or o_bErr (Error completion) is turned on. By turning off
i_bEN (Execution command), o_bOK (Normal completion) and o_bErr (Error completion) are turned off and o_uErrId (Error
code) is cleared to 0.
(6) When o_bErr (Error completion) is turned on, the values set in the input label are not reflected and thus the settings remains
the same as before the FB execution.
(7) Using the FB in a program that is to be executed only once, such as a subroutine program or a FOR-NEXT loop, has a problem
that i_bEN (Execution command) can no longer be turned off and normal operation is not possible; Always use the FB in a
program that is capable of turning off i_bEN (Execution command).
(8) This FB requires the configuration of the ladder for every input label. Set the global label as necessary.
(9) Do not perform operation in a direction opposite to the rotation direction (i_bRotateDirection) set in Page 10
M+CamCtr_CamOutputTable_F (Cam output table setting) during operation of this FB.
(10)During low-speed rotation in which an encoder value does not change for 50 ms or more, rotation speed may be calculated as
0 rpm.
(11)During high-speed rotation, rotation speed may not be calculated properly.
(12)The capacity of the latch label must be 5.03 KB or more for using this FB.
Relevant manual • MELSEC iQ-F FX5 User's Manual (Startup)
• MELSEC iQ-F FX5U User's Manual (Hardware)
• MELSEC iQ-F FX5UC User's Manual (Hardware)
• MELSEC iQ-F FX5 User's Manual (Application)
• MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks)
• MELSEC iQ-F FX5 Programming Manual (Program Design)
• GX Works3 Operating Manual
Performance value (1) When automatic angle advance is set: 52 ms
(2) When individual automatic angle advance is set: 52 ms
(3) When automatic angle advance is cleared: 420 s
Error code
(hexadecimal)
Description Action
100H The setting value of i_uCh (Channel number) is out of range. Review and correct the setting and then execute the FB again.
102H The setting value of i_uwCamNo (Cam output number) is out of
range.
Review and correct the setting and then execute the FB again.
105H The setting value of i_u21AngleAdvFuncSet (Angle advance
function setting) is out of range.
Review and correct the setting and then execute the FB again.
Version Date Description
00A January 2019 First edition
Item Description