Mitsubishi Electronics C6 Home Safety Product User Manual


 
8. Function Commands
ENCO, ENCOP
- 288 -
{ ENCO, ENCOP ... 256 8 bit encoding
Usable device
Bit device Word device
Con-
stant
Pointer
X Y M L F BSB T SM VTCDRWSWZSDKH P
Digit
desig-
nation
Index
No. of
steps
S
{ { { { { { {
D
{ { { { { { {
n
{ { { { { { { { {
{
5
ENCO
D
S n
Encode command
ENCO
ENCOP
ENCOP
D
S
n
Setting data
D
S
No. of device where
data to be encoded
is set.
Head No. of device to
store the encoding results.
Valid bit length
(1 to 8)
n
Function
(1) The 2
n
bits of the device designated with S are encoded, and the results are stored in the
low-order n bits from the device designated with D as the encoded data.
(2) 1 to 8 can be designated for n.
(3) No process is executed when n = 0, and the details of the device designated with D will not
change.
(4) The word device is handled as 16 bits.
(Note 1) An error will occur if n is other than the range of 0 to 8.
(Note 2) An error will occur when 2
n
bits from S exceeds the corresponding device range.
(Note 3) An error will occur when all data of 2
n
bits from S is 0.
Execution conditions
The execution conditions for ENCO, ENCOP are as shown below.
Decode command OFF
ENCO
ON
Executed per scan
Executed per scan
DECOP