Basic Instructions
2 − 47
Examples of applying direct specification of set value area numbers
Changing set values based on specified conditions
The set value is K50 when X0 is on and K30 when X1 is on.
Ladder diagram Boolean Time chart
T5
X2
TMX 5, SV 5
Y30
ST/ X 1
AN X 0
F0 (MV)
K50
SV 5
ST/ X 0
AN X 1
F0 (MV)
K30
SV 5
ST X 2
TMX 5
SV 5
ST T 5
OT Y 30
X0
X1
X2
5s
T5
X0 X1
F0 MV, K 30, SV 5
X1 X0
F0 MV, K 50, SV 5
3s
SV5
K0 K50 K30 K50
on
off
on
off
on
off
on
off
Example of setting a set value from external digital switches
The BCD data of the digital switches connected to X0 through XF is converted and becomes the set value
T5
R11
TMX 5, SV 5
Y30
ST R 10
F81 (BIN)
WX 0
SV 5
ST R 11
TMX 5
SV 5
ST T 5
OT Y 30
R10
F81BIN,WX0,SV5
CPU and input units
0 7 9 4
WX0
Digital switch
Set value
of timer
Connection example Ladder diagram Boolean
With the FP2SH/FP10SH, FP−X (Ver 2.0 or later), a memory area such as a data register DT can be specified
as the set value. Regarding the operation, refer to the operation when specifying the SV.