Programming / parameter assignment
Instruction Manual PROTECT-PSC
V 2.6R01 / 04.19
6-40
Examples
Set flag M013 if the WORD value of flag K010 is larger than or equal to the WORD
value of D0019.
Set flag M014 if the Low BYTE value in the special register D0019 is smaller than
or equal to 2Ah.
Data transfer
Instruction
OP1
OP2
Function
MOV
H
S1
Load hexadecimal constant H to
S1.
WMOV
MOVE
S1
S2
Load decimal constant S1 to S2.
WMOVE
BCD
S1
S2
Translate data of S1 from binary to
BCD and load these data to S2.
WBCD
BIN
S1
S2
Translate data of S1 from BCD to
binary and load these data to S2.
WBIN
Agenda
S
1,2
: register
H : hexadecimal constant
D
: decimal constant
T
T
a
a
b
b
l
l
e
e
6
6
-
-
6
6
O
O
v
v
e
e
r
r
v
v
i
i
e
e
w
w
o
o
f
f
t
t
h
h
e
e
d
d
a
a
t
t
a
a
t
t
r
r
a
a
n
n
s
s
f
f
e
e
r
r
f
f
u
u
n
n
c
c
t
t
i
i
o
o
n
n
s
s
Examples
Write 10h as WORD value in flag K000.
Write the LOW Byte of the special register D0004 to the LOW Byte of flag K001.
In case of reading a Counter Value with one of the Data Transfers commands in a
Function block, the Variable of the Counter Value must be preceded by an “&”.
Summary of Contents for PROTECT-PSC
Page 4: ......
Page 8: ......
Page 112: ......
Page 132: ......
Page 252: ......
Page 265: ...Annex 8 Instruction Manual PROTECT PSC V 2 6R01 04 19 8 5 8 3 EC Type Examination certificate ...
Page 266: ...Annex 8 Instruction Manual PROTECT PSC V 2 6R01 04 19 8 6 8 4 Declarations of conformity W ...
Page 267: ...Annex 8 Instruction Manual PROTECT PSC V 2 6R01 04 19 8 7 8 5 Index ...