3 SPECIFICATION
3.1 Details of the FB Library
21
3
M+CamCtr_CamOutput_F (Cam output)
Name
M+CamCtr_CamOutput_F
Overview
Label
■Input label
■Output label
Item Description
Function overview Turns on and off the cam output according to the input angle (count value).
Symbol
No. Name Variable name Data type Setting range Description
(1) Execution
command
i_bEN Bit ON, OFF ON: The FB is activated.
OFF: The FB is not activated.
(2) Channel number i_uCh Word [Unsigned]/
Bit string [16-bit]
1 to 3 Set the channel to be used.
(3) Cam output
number
i_b48CamOutputNo Bit (0..47) ON, OFF Set the cam output number to be
enabled.
ON: The cam output is enabled.
OFF: The cam output is stopped.
(4) Current value i_uCounterValue Word [Unsigned]/
Bit string [16-bit]
0 to [Global label]
M+Global_FX5CPU_CamCtrLatch: uResolution
Input the current position
provided by the encoder.
Input a value converted from
Gray code to binary.
The upper limit is i_uResolution
(Resolution) set in
M+CamCtr_CamOutputTable_F
(Cam output table setting).
No. Name Variable name Data type Default value Description
(5) Execution status o_bENO Bit OFF ON: The execution command is on.
OFF: The execution command is off.
(6) Normal
completion
o_bOK Bit OFF When this label is on, it indicates that the cam output control
is in progress.
(7) Error completion o_bErr Bit OFF When this label is on, it indicates that an error has occurred in
the FB.
(8) Error code o_uErrId Word [Unsigned]/
Bit string [16-bit]
0 The error code that occurred in the FB is stored.
(9) Cam output o_b48CamOutput Bit (0..47) OFF The cam output enabled by i_b48CamOutputNo (Cam output
number) is turned on or off by comparing the cam output data
set in i_uCounterValue (Current value) and
M+CamCtr_CamOutputTable_F (Cam output table setting).
i_bENB:
o_uErrId UW:
M+CamCtr_CamOutput_F
o_bErr B:
o_bOK B:
o_bENO B:
i_b48CamOutputNoB:
i_uChUW :
(1) (5)
(6)
(7)
(8)
(2)
(3)
i_uCounterValueUW :
(4)
(9)o_b48CamOutput B:
(10): pbo_uRevolvingSpeed