Specifications

7. Application Instructions
© DELTA ELECTRONICS, INC. ALL RIGHTS RESERVED
7-23
Program Example
X0
SFTL X0 K16M0 K4
X3 X2 X1 X0
M15 M14 M13 M12 M11 M10 M9 M8 M7 M6 M5 M4 M3 M2 M1 M0
1 3
4
5
2
4 bits in one group shift to the left
Ϩʳ Please Notice: If use the pulse wave contact to drive this command, X0
will shift
n
2
bits to the right when X0 is in the rising-edge. If use the
normal On contact to drive this command, the bit shifting operation will
occur every time during every scan.
40 ZRST
D1 D2 Resets a range of device specified.
Bit device Word device
Device
Operand
X Y M S K H KnX KnY KnM KnS T C D E F
D1
ϨϨϨ Ϩ Ϩ Ϩ
D2
ϨϨϨ Ϩ Ϩ Ϩ
Requirement:
D
1
Љ
D
2
, and must be in the same category.
Program Example
X0
ZRST M300 M399
ZRST C0 C127
Ϩʳ When X0 = O, M300 to M399 will be OFF. The value of C200 to C210
counters will be set to 0.
41 DECO
S D n 8 256 bit decode
Bit device Word device
Device
Operand
X Y M S K H KnX KnY KnM KnS T C D E F
S
ϨϨϨϨϨϨ ϨϨϨϨϨ
m
ϨϨϨ ϨϨϨϨϨ
D
ϨϨ
Decodes the lower n bits of device
S
and stores the result of
decode data to 2
n
bits which begin with the device
n
.
For “ n” , 1 to 8 can be specified.
When n=0 or n>8 the calculation error will occur.
A bit device is treated as one bit and a word device as 16 bits.
D
is used in the case of a bit device, 0<nЉ8
DECO X0 K3M100
X0
X002 X001 X000
M107 M106 M105 M104 M103 M102 M101 M100
00 0000 01
124
3
76 1054 23
1
1
0
When 3 is specified
at X0 to 2
Decode resul
t
When 3 is specified as effective
bits, 8 points are occupied
M13 at the third position
from M10 turns on.
D
is used in the case of a word device, 0<nЉ4