Mitsubishi Electric M800VW Series Programming Manual page 326

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.9 Data Processing Instructions
ENCO, ENCOP: Encoding from 256 bits to 8 bits
Setting
Bit devices
data
X
Y
M
L
F
S
D
n
[Instruction symbol] [Execution condition]
ENCO
ENCOP
 Setting data
Setting data
S
Number of devices where encoded data is being stored
D
Head No. of the device where encoding results will be stored
n
Valid bit length (1 to 8)
 Functions
ENCO
 2n bit of the device specified by S is encoded and the result is stored in the lower n bit from the device specified by D as
encode data.
 The value of "n" can be designated between "1" and "8".
 When "n" is "0", the device data specified by D does not change due to no operation. When "n" is "9" or above, the device
data specified by D becomes indefinite.
 The bit devices specified by D are treated as 1 bit, and the word devices specified by D are treated as 16 bits.
 If more than 1 bit is set to "1", processing will be conducted at the upper bit location.
 When the 2n bit blocks data is all "0", "0" is stored in D.
 Operation errors
 In the following cases, an arithmetic error occurs, the error flag (SM0) turns ON, and an error code is stored at SD0.
- A part of the device area of 2n bits from the (S) device does not exist. (Error code: 82)
Usable devices
B SB
T SM V
T
C
Command
Command
Meaning
Con-
Word devices
stant
D
R/ZR W SW SD
Z
K
305
Digit
Pointer
designa-
Index
tion
H
P
ENCO
S
D
n
ENCOP
S
D
n
Data type
BIN 16 bits
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents