EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-F FX5 - Page 9

Mitsubishi Electric MELSEC iQ-F FX5
44 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2 INPUT/OUTPUT FB
2.2 M+FX5UCPU-IO_CompareRelayOnTimes
7
2
Output label
*1 Note that if o_udOutputOnTotal (Integration value of number of relay ON times) exceeds "4294967295", the integration value returns to
0, and o_bFbResult (Comparison operation result) turns ONOFF.
FB details
No. Variable name Name Data type Default value Description
(5) o_bENO Execution status Bit OFF ON: The execution command is ON.
OFF: The execution command is OFF.
(6) o_udOutputOnTotal Integration value of
number of relay ON
times
Double Word
[Unsigned]
0 Stores the counted integration value of the number of
times the specified relay device number has turned
ON.
*1
(7) o_bOK Normal completion Bit OFF When this label is ON, it indicates that the FB is
counting the relay ON times.
(8) o_bErr Error completion Bit OFF When this label is ON, it indicates that an error has
occurred in the FB.
(9) o_uErrId Error code Word [Unsigned] 0 Stores the error code that occurred in the FB.
(10) o_bFbResult Comparison operation
result
Bit OFF
*1
When this label is ON, it indicates that
o_udOutputOnTotal (Integration value of number of
relay ON times) is larger than i_udCompareCount
(Number of comparisons).
Item Description
Available device CPU module FX5U CPU, FX5UC CPU
Engineering tool GX Works3 Version 1.007H or later
Language Ladder diagram
Number of basic steps 118 steps
The number of steps of the FB in a program depends on the CPU module used and input and output definition.
Processing This FB outputs the integration value of the number of output ON times of the relay specified by i_uRaNo (Target relay
device number) in the module specified by i_stModule (Module label) to o_udOutputOnTotal (Integration value of number of
relay ON times) when i_bEN (Execution command) turns ON.
If o_udOutputOnTotal (Integration value of number of relay ON times) exceeds the value set by i_udCompareCount (Number
of comparisons), o_bFbResult (Comparison operation result) turns ON.
If the setting value of i_uRaNo (Target relay device number) is out of the setting range, o_bErr (Error completion) turns ON
and the processing of this FB is aborted. o_uErrId (Error code) stores the error code "100 (hexadecimal)". For the error code,
refer to Page 8 Error code.
FB compilation method Macro type
FB operation Always executed
Timing chart of I/O signals [When the operation is completed successfully]
(In the case of "o_udOutputOnTotal (Integration value of number of relay ON times) i_udCompareCount (Number of
comparisons)")
i_bEN
o_bENO
o_bOK
Target relay device
o_bErr
o_uErrId
o_bFbResult
0H
01
N
2
i_udCompareCount
o_udOutputOnTotal

Other manuals for Mitsubishi Electric MELSEC iQ-F FX5

Related product manuals