EasyManuals Logo
Home>Mitsubishi>Controller>FX1N Series

Mitsubishi FX1N Series Programming Manual

Mitsubishi FX1N Series
466 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
Page #177 background imageLoading...
Page #177 background image
FX Series Programmable Controlers Applied Instructions 5
5-57
5.5.3 ENCO (FNC 42)
Operation:
The highest active bit within the readable range has
its location noted as a numbered offset from the
source head address (S). This is stored in the
destination register (D).
Points to note:
a) The readable range is defined by the largest number storable in a binary format within the
number of destination storage bits specified by n, i.e. if n was equal to 4 bits a maximum
number within the range 0 to 15 can be written to the destination device. Hence, if bit
devices were being used as the source data, 16 bit devices would be used, i.e. the head bit
device and 15 further, consecutive devices.
b) If the stored destination number is 0 (zero) then the source head address bit is ON, i.e. the
active bit has a 0 (zero) offset from the head address. However, if NO bits are ON within the
source area, 0 (zero) is written to the destination device and an error is generated.
c) When the source device is a data or word device n must be taken from the range 1
to4as
there are only 16 source bits available within a single data word.
Mnemonic Function
Operands
Program steps
SD n
ENCO
FNC 42
(Encode)
Then location of
the highest active
bit is stored as a
numerical position
from the head
address
X, Y, M, S,
T, C, D, V,
Z
T, C, D, V,
Z
K, H,

Note:
S=X, Y, M, S then
n range=1-8
S= T,C,D then
n range = 1-4
n = 0, then no
processing
ENCO,
ENCOP:
7steps
FX
1S
FX
1N
FX
2N
FX
2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
X5
D 10 K 3
[ S ] [ D ]
M 10
[ n ]
ENCO
M15 M14 M13 M12 M11 M10M16M17
01000 000
7. 6. 5. 4. 3. 2. 1. 0.
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1
D10
421
..
+
= 3

Table of Contents

Other manuals for Mitsubishi FX1N Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi FX1N Series and is the answer not in the manual?

Mitsubishi FX1N Series Specifications

General IconGeneral
BrandMitsubishi
ModelFX1N Series
CategoryController
LanguageEnglish

Related product manuals