Справочник Пользователя для Mitsubishi Electronics FXCPU

Скачать
Страница из 838
5 Basic Instruction
5.10 SET, RST
81
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
1
O
utlin
e
2
Instruc
tion Li
st
3
Configurati
on of 
Instruction
4
Ho
w t
o R
ea
Explanati
on of 
Ins
truction
s
5
B
asic
 Instruction
6
Step Ladder 
Instruct
ions
7
Ap
pl
ied Inst
ruct
io
ns 
(Program Flow)
8
Appl
ied
 In
stru
cti
ons 
(Mov
e and 
C
omp
are)
9
App
lie
d Instr
uction
(Ari
thm
eti
c and
 
Lo
gic
al O
per
at
ion)
10
App
lied Inst
ructi
ons 
(Rot
ati
on and 
Shift O
perati
on)
5.10
SET, RST
Outline
1) Setting a bit device (SET instruction [holding operation])
When the command input turns ON, SET instruction sets to ON an output relay (Y), auxiliary relay (M),
state relay (S) and bit specification of word device.
Even if the command input turns OFF after that, the device which was set to ON by SET instruction
remains ON.
2) Resetting a bit device (RST instruction [resetting folding operation])
RST instruction resets an output relay (Y), auxiliary relay (M), state relay (S), timer (T), counter (C) or bit
specification of a word device. 
Use the RST instruction to reset (reset to OFF) a device which was set to ON by SET instruction.
3) Clearing the current value of a word device (RST instruction [Clearing current value and resister])
RST instruction clears the current value data of a timer (T), counter (C), data register (D), extension
register or (R)index register (V) (Z). (The same result can be obtained by MOV instruction which transfers
the constant K0.)
RST instruction can be used also to reset the current value and return the contact of retentive type timers. 
SET and RST instructions can be used for a same device as many times as necessary in an arbitrary
order.
1. Format and operation, execution form
*1.
This symbol is applicable to the bit type data only.
2. Set data
3. Applicable devices
S: Refer to "Cautions". 
FX
3U(C)
FX
3G(C)
FX
3S
FX
2N(C)
FX
1N(C)
FX
1S
FX
U
/FX
2C
FX
0N
FX
0(S)
Instruction 
name
Execution 
form
Expression in each language
Structured ladder/FBD
ST
SET
Continuous
SET(EN,d);
Example:
SET(X000,Y000);
RST
Continuous
RST(EN,d);
Example:
RST(X001,Y000);
Variable
Description
Data type
Input
variable
EN
Execution condition
Bit
Output
variable
ENO
Execution state
Bit
Applicable device or variable
SET
Bit
RST
ANY_SIMPLE
Instruction
Bit Devices
Word Devices
Others
System User
Digit Specification
System 
User
Special 
Unit
Index
Constant
Real 
Number
Character 
String
Pointer
X Y M T C S D
.b KnX KnY KnM KnS T C D R U
\G
V Z Modifier K
H
E
"
"
P
SET
z z
z
S1
S3
RST
z z z z z
S1
z z z
S2
z z
S3
SET
EN
ENO
d
Y000
X000
X000
*1
Or
Y000
S
RST
EN
ENO
d
Y000
X001
X001
*1
Or
Y000
R