Programming / parameter assignment
Instruction Manual PROTECT-PSC
V 2.6R01 / 04.19
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
Load hexadecimal constant H to
S1.
Load decimal constant S1 to S2.
Translate data of S1 from binary to
BCD and load these data to S2.
Translate data of S1 from BCD to
binary and load these data to S2.
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 “&”.