Download Print this page

Mitsubishi Electric MELSEC FX-1HC User Manual page 5

Special function block
Hide thumbs Also See for MELSEC FX-1HC:

Advertisement

3.3 Buffer memories (BFM)
BFM number
#0
#1
#3, #2
Write
#4
#11, #10
#13, #12
#15, #14
#21, #20
Write / Read
#23, #22
#25, #24
#26
#27
Read
#29
#30
#5~#9, #16~19, #28, #31 are reserved.
(1) BFM #0 Counter mode (K0 to K11), BFM #1 DOWN/UP command
Count modes
2-phase input
(phase difference pulse)
1-phase 2-input (add/subtract pulse)
1-phase 1-input
(a)
32-bit counter modes
A 32-bit binary counter which executes UP/DOWN counting will change
from the lower limit to the upper limit or the upper limit to the lower limit
when overflow occurs. Both the upper and lower limits are fixed values:
the upper limit is +2,147,483,647, and the lower limit is -2,147,483,648.
(b)
16-bit counter modes
A 16-bit binary counter handles only positive values from 0 to 65,535.
Changes to zero from the upper limit or to the upper limit from zero when
overflow occurs; the upper limit is determined by BFMs #3 and #2.
Counter mode K0 to K11
DOWN/UP command (1-phase 1-input mode)
Ring length Upper/Lower
Command
Preset data Upper/Lower
YH compare value Upper/Lower
YS compare value Upper/Lower
Counter current value Upper/Lower
Maximum count value Upper/Lower
Minimum count value Upper/Lower
Compare results
Terminal status
Error status
Model identification code K4010
32 bits
1 edge count
K0
2 edge count
K2
4 edge count
K4
K6
Hardware
K8
UP/DOWN
Software
K10
UP/DOWN
Contents
The counter mode is selected form the PC. As
16 bits
shown below, values between K0 and K11 are
K1
written to buffer memory BFM #0 form the PC.
K3
When a value is written to BFM #0 the contents
K5
of BFM #1 to BFM #31 are reset to default values.
K7
When setting this value use a TOP (pulsed)
instruction use M8002 (initial pulse) to drive the
K9
TO instruction.
K11
A continuous command is not allowed.
Default: K0
Default: K0
Default: K65,536
Default: K0
Default: K0
Default: K32,767
Default: K32,767
Default: K0
Default: K0
Default: K0
+2,147,483,647
Upper limit
Lower limit
-2,147,483,648
Ring length
(BFM #3, #2)

Advertisement

loading